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,8 +107,7 @@ | ||
107 | <el-input v-model="formSimPay.id"></el-input> | 107 | <el-input v-model="formSimPay.id"></el-input> |
108 | </el-form-item> | 108 | </el-form-item> |
109 | </el-form> | 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 | </div> | 111 | </div> |
113 | </div> | 112 | </div> |
114 | <div class="col-3"> | 113 | <div class="col-3"> |
@@ -158,6 +157,8 @@ export default { | @@ -158,6 +157,8 @@ export default { | ||
158 | input1: '', | 157 | input1: '', |
159 | puid: '1215485', | 158 | puid: '1215485', |
160 | 159 | ||
160 | + listPayTypes: ["模拟支付", "支付补单"], | ||
161 | + | ||
161 | formAddMoney: { | 162 | formAddMoney: { |
162 | tp: '', | 163 | tp: '', |
163 | count: 0, | 164 | count: 0, |
@@ -206,13 +207,13 @@ export default { | @@ -206,13 +207,13 @@ export default { | ||
206 | onAddMoney(event) { | 207 | onAddMoney(event) { |
207 | this.onGmPost({ | 208 | this.onGmPost({ |
208 | Action: '玩家数据修改', | 209 | Action: '玩家数据修改', |
209 | - Args: ["货币添加", this.formAddMoney.tp, this.formAddMoney.count] | 210 | + Args: ["货币添加", this.formAddMoney.tp, this.formAddMoney.count.toString()] |
210 | }) | 211 | }) |
211 | }, | 212 | }, |
212 | onAddTool(event) { | 213 | onAddTool(event) { |
213 | this.onGmPost({ | 214 | this.onGmPost({ |
214 | Action: '玩家数据修改', | 215 | Action: '玩家数据修改', |
215 | - Args: ["工具添加", this.formAddTool.id, this.formAddTool.count] | 216 | + Args: ["工具添加", this.formAddTool.id, this.formAddTool.count.toString()] |
216 | }) | 217 | }) |
217 | }, | 218 | }, |
218 | onSetProp(event) { | 219 | onSetProp(event) { |
@@ -224,14 +225,14 @@ export default { | @@ -224,14 +225,14 @@ export default { | ||
224 | onAddOther(event) { | 225 | onAddOther(event) { |
225 | this.onGmPost({ | 226 | this.onGmPost({ |
226 | Action: '玩家数据修改', | 227 | Action: '玩家数据修改', |
227 | - Args: ["其他添加", this.formAddOther.tp, this.formAddOther.count] | 228 | + Args: ["其他添加", this.formAddOther.tp, this.formAddOther.count.toString()] |
228 | }) | 229 | }) |
229 | }, | 230 | }, |
230 | onSimPay(event) { | 231 | onSimPay(event) { |
231 | - console.log(event); | 232 | + let v= event.srcElement.value |
232 | this.onGmPost({ | 233 | this.onGmPost({ |
233 | Action: '玩家数据修改', | 234 | Action: '玩家数据修改', |
234 | - Args: ["模拟支付", this.formSimPay.id.toString()] | 235 | + Args: [v, this.formSimPay.id.toString()] |
235 | }) | 236 | }) |
236 | }, | 237 | }, |
237 | } | 238 | } |