Commit e56ff63c by 宋毅

tj

parent 4deb2ccd
......@@ -14,6 +14,6 @@
<el-input v-model="email" placeholder="请输入内容" type="email"></el-input>
</div>
<h3>实付金额:<span>{{money}}元</span></h3>
<el-button type="primary" @click="btnClick()">主要按钮</el-button>
<el-button type="primary" @click="btnClick()">去支付</el-button>
</div>
</div>
\ No newline at end of file
......@@ -6,19 +6,19 @@
year: "3个月",
oldMoney: 180,
newMoney: 90,
code:"zcdy3gy"
code: "zcdy3gy"
}, {
year: "6个月",
oldMoney: 365,
newMoney: 180,
code:"zcdy6gy"
code: "zcdy6gy"
}, {
year: "1年",
oldMoney: 730,
newMoney: 365,
code:"zcdy1n"
code: "zcdy1n"
}],
email: null,
email: "",
money: 90,
index: 0,
itemCode: "zcdy3gy"
......@@ -34,6 +34,10 @@
this.money = this.timeList[this.index].newMoney;
},
btnClick() {
if (!this.email) {
this.$message.warning("邮箱不能为空!");
return false;
}
let params = {
itemCode: this.itemCode,
order_appendinfo: {
......@@ -46,14 +50,21 @@
orderType: "zzdd",
contacts: "",
mobile: "",
email: "renjian@gongsibao.com",
email: this.email,
notes: ""
},
tm: {
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(d);
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