mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 10:16:38 +08:00
changemessage
This commit is contained in:
parent
df498f597a
commit
2ff3a5d256
@ -56,7 +56,7 @@ export const getleckCourse = (name, offset) => {
|
|||||||
* 加入购物车
|
* 加入购物车
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const postCourseId = (productCode,buyCount,memberId, mobile,productImg,productName,productPrice,specifications) => {
|
export const postCourseId = (productCode, buyCount, memberId, mobile, productImg, productName, productPrice, specifications, leftAllotment) => {
|
||||||
var data = {
|
var data = {
|
||||||
buyCount: buyCount,
|
buyCount: buyCount,
|
||||||
memberId: memberId,
|
memberId: memberId,
|
||||||
@ -65,7 +65,8 @@ export const postCourseId = (productCode,buyCount,memberId, mobile,productImg,pr
|
|||||||
productImg: productImg,
|
productImg: productImg,
|
||||||
productName: productName,
|
productName: productName,
|
||||||
productPrice: productPrice,
|
productPrice: productPrice,
|
||||||
specifications:specifications
|
specifications: specifications,
|
||||||
|
leftAllotment: leftAllotment
|
||||||
}
|
}
|
||||||
return fetch('/insertCartProductInfo', data, 'POST')
|
return fetch('/insertCartProductInfo', data, 'POST')
|
||||||
}
|
}
|
||||||
@ -620,9 +621,12 @@ export const getOrderList = (user, status) => {
|
|||||||
return fetch('memberAddress?type=' + type, data, 'POST')
|
return fetch('memberAddress?type=' + type, data, 'POST')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//微信支付二维码
|
||||||
|
export const updateOrderWX = (data) => {
|
||||||
|
return fetch('updateOrderWX', data, 'POST')
|
||||||
|
}
|
||||||
|
|
||||||
//支付宝支付二维码
|
//支付宝支付二维码
|
||||||
export const generateOrderAlipay = (data) => {
|
export const generateOrderAlipay = (data) => {
|
||||||
return fetch('generateOrderAlipay', data, 'POST')
|
return fetch('generateOrderAlipay', data, 'POST')
|
||||||
}
|
}
|
||||||
|
|
@ -97,7 +97,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-dialog :visible.sync="dialogAdd" class="diallog_width" width="'100%" :title="dialogAddTitle">
|
<el-dialog
|
||||||
|
:visible.sync="dialogAdd"
|
||||||
|
class="diallog_width"
|
||||||
|
width="'100%"
|
||||||
|
:title="dialogAddTitle"
|
||||||
|
>
|
||||||
<div class="tc dl_cont" v-if="dialogAdd">
|
<div class="tc dl_cont" v-if="dialogAdd">
|
||||||
<myAddress
|
<myAddress
|
||||||
@isClose="dialogCtrl"
|
@isClose="dialogCtrl"
|
||||||
@ -111,7 +116,7 @@
|
|||||||
width="'100%"
|
width="'100%"
|
||||||
title="选择收货地址"
|
title="选择收货地址"
|
||||||
>
|
>
|
||||||
<div class="tc dl_cont" style="padding-bottom: 50px;position: relative;">
|
<div class="tc dl_cont" style="padding-bottom: 50px; position: relative">
|
||||||
<div class="pop_list">
|
<div class="pop_list">
|
||||||
<el-row
|
<el-row
|
||||||
class="mypersonal"
|
class="mypersonal"
|
||||||
@ -120,7 +125,10 @@
|
|||||||
:class="item.isDefault ? 'active' : ''"
|
:class="item.isDefault ? 'active' : ''"
|
||||||
>
|
>
|
||||||
<el-col :span="4"
|
<el-col :span="4"
|
||||||
><input type="checkbox" v-model="item.checked" @click="selectPopAddress(item)"
|
><input
|
||||||
|
type="checkbox"
|
||||||
|
v-model="item.checked"
|
||||||
|
@click="selectPopAddress(item)"
|
||||||
/></el-col>
|
/></el-col>
|
||||||
<el-col :span="16" class="tl">
|
<el-col :span="16" class="tl">
|
||||||
<div>
|
<div>
|
||||||
@ -213,7 +221,7 @@ export default {
|
|||||||
this.useraddress = data;
|
this.useraddress = data;
|
||||||
},
|
},
|
||||||
editAddress(item) {
|
editAddress(item) {
|
||||||
this.dialogAddTitle='修改收货地址'
|
this.dialogAddTitle = "修改收货地址";
|
||||||
this.editAddressData = {
|
this.editAddressData = {
|
||||||
memberId: item.memberId,
|
memberId: item.memberId,
|
||||||
name: item.recipient,
|
name: item.recipient,
|
||||||
@ -231,7 +239,7 @@ export default {
|
|||||||
this.dialogAdd = true;
|
this.dialogAdd = true;
|
||||||
},
|
},
|
||||||
addAddress() {
|
addAddress() {
|
||||||
this.dialogAddTitle='新增收货地址'
|
this.dialogAddTitle = "新增收货地址";
|
||||||
this.editAddressData = {};
|
this.editAddressData = {};
|
||||||
this.dialogAdd = true;
|
this.dialogAdd = true;
|
||||||
},
|
},
|
||||||
@ -239,9 +247,9 @@ export default {
|
|||||||
this.useraddress.forEach((item) => {
|
this.useraddress.forEach((item) => {
|
||||||
if (item.id == cur.id) {
|
if (item.id == cur.id) {
|
||||||
item.isDefault = true;
|
item.isDefault = true;
|
||||||
item.checked=true
|
item.checked = true;
|
||||||
} else {
|
} else {
|
||||||
item.checked=false
|
item.checked = false;
|
||||||
item.isDefault = false;
|
item.isDefault = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -250,9 +258,9 @@ export default {
|
|||||||
this.useraddress.forEach((item) => {
|
this.useraddress.forEach((item) => {
|
||||||
if (item.id == cur.id) {
|
if (item.id == cur.id) {
|
||||||
item.isDefault = true;
|
item.isDefault = true;
|
||||||
item.checked=true
|
item.checked = true;
|
||||||
} else {
|
} else {
|
||||||
item.checked=false
|
item.checked = false;
|
||||||
item.isDefault = false;
|
item.isDefault = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -344,7 +352,8 @@ export default {
|
|||||||
postData[0].orderAddress.addressUserName +
|
postData[0].orderAddress.addressUserName +
|
||||||
" " +
|
" " +
|
||||||
postData[0].orderAddress.addressPhoneNumber,
|
postData[0].orderAddress.addressPhoneNumber,
|
||||||
wxPay: "weixin://wxpay/bizpayurl?pr=4RJbokxzz",
|
// wxPay: "weixin://wxpay/bizpayurl?pr=4RJbokxzz",
|
||||||
|
wxPay: res.data,
|
||||||
};
|
};
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/personal/userpay",
|
path: "/personal/userpay",
|
||||||
@ -384,9 +393,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
@import url("../../assets/css/global.less");
|
@import url("../../assets/css/global.less");
|
||||||
@import "./settlement.less";
|
@import "./settlement.less";
|
||||||
// @import url("../../assets/css/settlement.less");
|
// @import url("../../assets/css/settlement.less");
|
||||||
|
|
||||||
</style>
|
</style>
|
@ -113,7 +113,8 @@ export default {
|
|||||||
computed: {},
|
computed: {},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.userPayData = JSON.parse(this.$route.query.userPayData);
|
this.userPayData = JSON.parse(this.$route.query.userPayData);
|
||||||
this.qrtext=this.userPayData.wxPay
|
this.qrtext=this.userPayData.wxPay;
|
||||||
|
this.payOrderWX()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeDialogSuccess() {
|
closeDialogSuccess() {
|
||||||
@ -141,15 +142,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
//支付监听
|
//支付监听
|
||||||
async updateOrderWX() {
|
async payOrderWX() {
|
||||||
let res = await updateOrderWX();
|
let res = await updateOrderWX();
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.qrtext = '成功加入群的二维码';
|
this.qrtext = '成功加入群的二维码';
|
||||||
this.dialogSuccess = true;
|
this.dialogSuccess = true;
|
||||||
clearInterval(this.time);
|
} else if (res.fail) {
|
||||||
} else {
|
|
||||||
this.dialogFail = true;
|
this.dialogFail = true;
|
||||||
clearInterval(this.time);
|
}else{
|
||||||
|
this.payOrderWX()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -568,7 +568,8 @@ export default {
|
|||||||
item.picFile,
|
item.picFile,
|
||||||
item.productName,
|
item.productName,
|
||||||
item.basePrice,
|
item.basePrice,
|
||||||
item.specifications
|
item.specifications,
|
||||||
|
item.leftAllotment
|
||||||
);
|
);
|
||||||
if (data) {
|
if (data) {
|
||||||
this.productlist = data;
|
this.productlist = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user