Commit 20204cc3ce748cefd01717e33c67b168b9a8159b
1 parent
355fefc6
Exists in
master
【工具】GM工具
Showing
1 changed file
with
44 additions
and
2 deletions
Show diff stats
src/components/PlayerEdit.vue
| ... | ... | @@ -95,11 +95,20 @@ |
| 95 | 95 | <el-input v-model="formSimPay.id"></el-input> |
| 96 | 96 | </el-form-item> |
| 97 | 97 | </el-form> |
| 98 | - <button type="button" class="btn btn-warning btn-block" v-for="(text, index) of this.listPayTypes" :value=text @click="onSimPay($event)">{{text}}</button> | |
| 98 | + <button type="button" class="btn btn-warning btn-block" v-for="(text, index) of this.listPayTypes" | |
| 99 | + :value=text @click="onSimPay($event)">{{ text }}</button> | |
| 99 | 100 | </div> |
| 100 | 101 | </div> |
| 101 | 102 | <div class="col-3"> |
| 102 | 103 | <div class="card"> |
| 104 | + <el-form ref="form" :model="formClearActFlag" label-width="80px" size="default"> | |
| 105 | + <el-form-item label="活动ID"> | |
| 106 | + <el-select v-model="formClearActFlag.id" placeholder="活动ID"> | |
| 107 | + <el-option v-for="(obj, index) of this.listActUid" :label=obj.text :value=obj.v></el-option> | |
| 108 | + </el-select> | |
| 109 | + </el-form-item> | |
| 110 | + </el-form> | |
| 111 | + <el-button type="primary" size="default" @click="onClearActFlag">删除活动标记</el-button> | |
| 103 | 112 | </div> |
| 104 | 113 | </div> |
| 105 | 114 | <div class="col-3"> |
| ... | ... | @@ -156,6 +165,30 @@ export default { |
| 156 | 165 | listAddOther: ["猜谜活动代币", "星星商店代币", "破茧成蝶代币", "装修代币", "挖宝箱积分"], |
| 157 | 166 | listPayTypes: ["模拟支付", "支付补单"], |
| 158 | 167 | |
| 168 | + listActUid: [ | |
| 169 | + { text: '新手礼包', v: '20001' }, | |
| 170 | + { text: '每日礼包', v: '20002' }, | |
| 171 | + { text: '体力礼包', v: '20005' }, | |
| 172 | + { text: '工具礼包', v: '20003' }, | |
| 173 | + { text: '卡牌礼包', v: '20006' }, | |
| 174 | + { text: '无尽礼包六格', v: '20004' }, | |
| 175 | + { text: '无尽礼包三格', v: '20007' }, | |
| 176 | + { text: 'Solo积分活动', v: '10002' }, | |
| 177 | + { text: '挖沙子活动', v: '10005' }, | |
| 178 | + { text: '卡牌活动', v: '10008' }, | |
| 179 | + { text: '50人排行榜活动', v: '30002' }, | |
| 180 | + { text: '水晶球活动', v: '10006' }, | |
| 181 | + { text: '限时订单', v: '40000' }, | |
| 182 | + { text: '阶段任务订单', v: '40001' }, | |
| 183 | + { text: '大逃杀订单', v: '40002' }, | |
| 184 | + { text: '猜谜', v: '10011' }, | |
| 185 | + { text: '副本', v: '50001' }, | |
| 186 | + { text: '副本礼包', v: '50101' }, | |
| 187 | + { text: '破茧成蝶', v: '10021' }, | |
| 188 | + { text: '装修', v: '10031' }, | |
| 189 | + { text: '挖宝箱', v: '10041' }, | |
| 190 | + ], | |
| 191 | + | |
| 159 | 192 | formAddMoney: { |
| 160 | 193 | tp: '', |
| 161 | 194 | count: 0, |
| ... | ... | @@ -175,6 +208,9 @@ export default { |
| 175 | 208 | formSimPay: { |
| 176 | 209 | id: 201, |
| 177 | 210 | }, |
| 211 | + formClearActFlag: { | |
| 212 | + id: 20001, | |
| 213 | + }, | |
| 178 | 214 | |
| 179 | 215 | } |
| 180 | 216 | }, |
| ... | ... | @@ -226,12 +262,18 @@ export default { |
| 226 | 262 | }) |
| 227 | 263 | }, |
| 228 | 264 | onSimPay(event) { |
| 229 | - let v= event.srcElement.value | |
| 265 | + let v = event.srcElement.value | |
| 230 | 266 | this.onGmPost({ |
| 231 | 267 | Action: '玩家数据修改', |
| 232 | 268 | Args: [v, this.formSimPay.id.toString()] |
| 233 | 269 | }) |
| 234 | 270 | }, |
| 271 | + onClearActFlag(event) { | |
| 272 | + this.onGmPost({ | |
| 273 | + Action: '玩家数据修改', | |
| 274 | + Args: ["删除活动标记", this.formClearActFlag.id.toString()] | |
| 275 | + }) | |
| 276 | + }, | |
| 235 | 277 | } |
| 236 | 278 | } |
| 237 | 279 | </script> | ... | ... |