Commit e56ff63c by 宋毅

tj

parent 4deb2ccd
...@@ -14,6 +14,6 @@ ...@@ -14,6 +14,6 @@
<el-input v-model="email" placeholder="请输入内容" type="email"></el-input> <el-input v-model="email" placeholder="请输入内容" type="email"></el-input>
</div> </div>
<h3>实付金额:<span>{{money}}元</span></h3> <h3>实付金额:<span>{{money}}元</span></h3>
<el-button type="primary" @click="btnClick()">主要按钮</el-button> <el-button type="primary" @click="btnClick()">去支付</el-button>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -6,19 +6,19 @@ ...@@ -6,19 +6,19 @@
year: "3个月", year: "3个月",
oldMoney: 180, oldMoney: 180,
newMoney: 90, newMoney: 90,
code:"zcdy3gy" code: "zcdy3gy"
}, { }, {
year: "6个月", year: "6个月",
oldMoney: 365, oldMoney: 365,
newMoney: 180, newMoney: 180,
code:"zcdy6gy" code: "zcdy6gy"
}, { }, {
year: "1年", year: "1年",
oldMoney: 730, oldMoney: 730,
newMoney: 365, newMoney: 365,
code:"zcdy1n" code: "zcdy1n"
}], }],
email: null, email: "",
money: 90, money: 90,
index: 0, index: 0,
itemCode: "zcdy3gy" itemCode: "zcdy3gy"
...@@ -34,6 +34,10 @@ ...@@ -34,6 +34,10 @@
this.money = this.timeList[this.index].newMoney; this.money = this.timeList[this.index].newMoney;
}, },
btnClick() { btnClick() {
if (!this.email) {
this.$message.warning("邮箱不能为空!");
return false;
}
let params = { let params = {
itemCode: this.itemCode, itemCode: this.itemCode,
order_appendinfo: { order_appendinfo: {
...@@ -46,14 +50,21 @@ ...@@ -46,14 +50,21 @@
orderType: "zzdd", orderType: "zzdd",
contacts: "", contacts: "",
mobile: "", mobile: "",
email: "renjian@gongsibao.com", email: this.email,
notes: "" notes: ""
}, },
tm: { tm: {
totalSum: this.money totalSum: this.money
} }
}; };
this.$root.postReq("/web/orderCtl/createOtherOrder", params).then( (d) => { if (!this.currentUser) {
this.$root.pushx({
title: "登录",
name: "/login"
});
return false;
}
this.$root.postReq("/web/orderCtl/createOtherOrder", params).then((d) => {
console.log("---------submitOrder-------"); console.log("---------submitOrder-------");
console.log(d); console.log(d);
if (d.code == 1) { if (d.code == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment