Commit a781d803903eddb52659792f72ae35de6ed12792
1 parent
cb56b769
Exists in
master
【工具】GM工具
Showing
1 changed file
with
8 additions
and
7 deletions
Show diff stats
src/components/PlayerEdit.vue
... | ... | @@ -107,8 +107,7 @@ |
107 | 107 | <el-input v-model="formSimPay.id"></el-input> |
108 | 108 | </el-form-item> |
109 | 109 | </el-form> |
110 | - <button type="button" class="btn btn-warning btn-block" @click="onSimPay">模拟支付</button> | |
111 | - <button type="button" class="btn btn-warning btn-block" @click="onSimPay">支付补单</button> | |
110 | + <button type="button" class="btn btn-warning btn-block" v-for="(text, index) of this.listPayTypes" :value=text @click="onSimPay($event)">{{text}}</button> | |
112 | 111 | </div> |
113 | 112 | </div> |
114 | 113 | <div class="col-3"> |
... | ... | @@ -158,6 +157,8 @@ export default { |
158 | 157 | input1: '', |
159 | 158 | puid: '1215485', |
160 | 159 | |
160 | + listPayTypes: ["模拟支付", "支付补单"], | |
161 | + | |
161 | 162 | formAddMoney: { |
162 | 163 | tp: '', |
163 | 164 | count: 0, |
... | ... | @@ -206,13 +207,13 @@ export default { |
206 | 207 | onAddMoney(event) { |
207 | 208 | this.onGmPost({ |
208 | 209 | Action: '玩家数据修改', |
209 | - Args: ["货币添加", this.formAddMoney.tp, this.formAddMoney.count] | |
210 | + Args: ["货币添加", this.formAddMoney.tp, this.formAddMoney.count.toString()] | |
210 | 211 | }) |
211 | 212 | }, |
212 | 213 | onAddTool(event) { |
213 | 214 | this.onGmPost({ |
214 | 215 | Action: '玩家数据修改', |
215 | - Args: ["工具添加", this.formAddTool.id, this.formAddTool.count] | |
216 | + Args: ["工具添加", this.formAddTool.id, this.formAddTool.count.toString()] | |
216 | 217 | }) |
217 | 218 | }, |
218 | 219 | onSetProp(event) { |
... | ... | @@ -224,14 +225,14 @@ export default { |
224 | 225 | onAddOther(event) { |
225 | 226 | this.onGmPost({ |
226 | 227 | Action: '玩家数据修改', |
227 | - Args: ["其他添加", this.formAddOther.tp, this.formAddOther.count] | |
228 | + Args: ["其他添加", this.formAddOther.tp, this.formAddOther.count.toString()] | |
228 | 229 | }) |
229 | 230 | }, |
230 | 231 | onSimPay(event) { |
231 | - console.log(event); | |
232 | + let v= event.srcElement.value | |
232 | 233 | this.onGmPost({ |
233 | 234 | Action: '玩家数据修改', |
234 | - Args: ["模拟支付", this.formSimPay.id.toString()] | |
235 | + Args: [v, this.formSimPay.id.toString()] | |
235 | 236 | }) |
236 | 237 | }, |
237 | 238 | } | ... | ... |