diff --git a/src/components/PlayerEdit.vue b/src/components/PlayerEdit.vue index 3e3c816..c3f2f70 100644 --- a/src/components/PlayerEdit.vue +++ b/src/components/PlayerEdit.vue @@ -5,14 +5,14 @@
选择服务器
- +
玩家唯一ID
- +
@@ -23,7 +23,7 @@
- + @@ -35,21 +35,97 @@ - - 货币添加 + + 货币添加 +
+
+
+
+ + + + + + + + + + + + 工具添加
+
+ + + + + + + + + + + + + 属性设置 +
-
+
+ + + + + + + + + + + + + + + 其他添加 +
+
+
+
+
+
+ + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
测试 @@ -80,12 +156,28 @@ export default { }, serverselected: '本机', input1: '', - puid: '', + puid: '1215485', formAddMoney: { tp: '', count: 0, - } + }, + formAddTool: { + id: '1', + count: 0, + }, + formSetProp: { + tp: '等级设置', + count: 20, + }, + formAddOther: { + tp: '猜谜活动代币', + count: 0, + }, + formSimPay: { + id: 201, + }, + } }, methods: { @@ -111,10 +203,35 @@ export default { console.log(error); }); }, - onAddMoney() { + onAddMoney(event) { + this.onGmPost({ + Action: '玩家数据修改', + Args: ["货币添加", this.formAddMoney.tp, this.formAddMoney.count] + }) + }, + onAddTool(event) { + this.onGmPost({ + Action: '玩家数据修改', + Args: ["工具添加", this.formAddTool.id, this.formAddTool.count] + }) + }, + onSetProp(event) { + this.onGmPost({ + Action: '玩家数据修改', + Args: ["属性设置", this.formSetProp.tp, this.formSetProp.count.toString()] + }) + }, + onAddOther(event) { + this.onGmPost({ + Action: '玩家数据修改', + Args: ["其他添加", this.formAddOther.tp, this.formAddOther.count] + }) + }, + onSimPay(event) { + console.log(event); this.onGmPost({ Action: '玩家数据修改', - Args: ["货币添加",this.formAddMoney.tp,this.formAddMoney.count] + Args: ["模拟支付", this.formSimPay.id.toString()] }) }, } -- libgit2 0.21.0