Commit 04c0a8e4 authored by 黄奎's avatar 黄奎

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

# Conflicts:
#	plugin/api.js
parents 368add7d 3665102f
......@@ -445,6 +445,7 @@
}
this.requestJJSWAdmin(testCmd, postMsg,
(res) => {
console.log("111",res);
if (res.data.Data.length > 0) {
this.namelist = res.data.Data
this.Thename = res.data.Data[0].StuName
......@@ -560,32 +561,47 @@
},
res => {
if (res.resultCode == 1) {
if (that.checked == true) {
that.zhaoren = true;
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
let Up = u.UserPageType ? u.UserPageType : 0;
let SmallShopId = u.SmallShopId ? u.SmallShopId : 0;
if (SmallShopId == 0) {
//如果微店id为0 去找所属微店id
SmallShopId = u.UserSmallShopId ? u.UserSmallShopId : 0;
that.payInfo.OrderId = res.data.OrderId;
that.payInfo.total_price = that.ds.total_price;
if(res.data.OrderStatus==5){
let info = {
OrderId:that.payInfo.OrderId,
total_price: that.ds.total_price,
StuId:that.JJSWStuId,
TeacherIds:that.mrk,
}
that.path = '/pages/index/index?OrderId=' + res.data.OrderId +
"&user_id=" + uid + "&Up=" + Up +
"&SmallShopId=" + SmallShopId + '&JumpType=4';
} else {
that.payInfo.OrderId = res.data.OrderId;
that.payInfo.total_price = that.ds.total_price;
if (that.formdata.Use_Deposit_Id != 0 && that.ds.total_price ==
0) { //如果使用了储蓄卡 就直接支付成功 跳入支付结果
uni.reLaunch({
url: '/pages/order-submit/pay-success?payInfo=' +
JSON.stringify(that.payInfo)
})
} else { //没使用的话 就弹出支付页面
that.payBtn = true;
uni.reLaunch({
url: '/pages/order-submit/pay-success2?payInfo=' +
JSON.stringify(info)
})
}else {
if (that.checked == true) {
that.zhaoren = true;
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
let Up = u.UserPageType ? u.UserPageType : 0;
let SmallShopId = u.SmallShopId ? u.SmallShopId : 0;
if (SmallShopId == 0) {
//如果微店id为0 去找所属微店id
SmallShopId = u.UserSmallShopId ? u.UserSmallShopId : 0;
}
that.path = '/pages/index/index?OrderId=' + res.data.OrderId +
"&user_id=" + uid + "&Up=" + Up +
"&SmallShopId=" + SmallShopId + '&JumpType=4';
} else {
if (that.formdata.Use_Deposit_Id != 0 && that.ds.total_price ==
0) { //如果使用了储蓄卡 就直接支付成功 跳入支付结果
uni.reLaunch({
url: '/pages/order-submit/pay-success?payInfo=' +
JSON.stringify(that.payInfo)
})
} else { //没使用的话 就弹出支付页面
that.payBtn = true;
}
}
}
} else {
that.$refs.uToast.show({
title: res.data.message,
......@@ -737,13 +753,10 @@
list.push(j.EduTeacherId)
})
})
// console.log('88888888888888888',list)
this.mrk = list.toString()
// console.log('88888888888888888',this.mrk)
this.payInfo.GoodsName = this.mchs[0].goods_list[0].name.slice(0, 10);
this.formdata.DeliveryMethod = this.mchs[0].delivery.send_type;
this.ds = res.data;
console.log("this.ds ", this.ds)
this.expressPrice = 0.0;
this.goodPrice = 0.0;
this.couponPrice = 0.0;
......@@ -791,12 +804,10 @@
0) {
rootItem.GoodsRelevanceList.forEach(qitem => {
tempRelevancePrice += parseFloat(qitem.RelevancePrice);
console.log("tempRelevancePrice1", tempRelevancePrice)
})
}
})
}
console.log("tempRelevancePrice2", tempRelevancePrice)
//HK 2022-10-11 新增结束
this.goodPrice += parseFloat(x.total_goods_price) + parseFloat(tempRelevancePrice);
this.expressPrice += parseFloat(x.express_price);
......
......@@ -75,12 +75,12 @@
onLoad(option) {
if (option.payInfo) {
this.payInfo = JSON.parse(option.payInfo)
}
if (option.StuId) {
this.StuId = option.StuId
}
if (option.TeacherIds) {
this.TeacherIds = option.TeacherIds
if (this.payInfo.StuId) {
this.StuId = this.payInfo.StuId
}
if (this.payInfo.TeacherIds) {
this.TeacherIds = this.payInfo.TeacherIds
}
}
uni.setNavigationBarTitle({
title: "支付成功",
......
......@@ -3,6 +3,7 @@ export default {
Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
Vue.prototype.host2 = "http://192.168.10.128:8200"//本地
// Vue.prototype.host2 = "http://192.168.10.46:8200"
// Vue.prototype.host2 = "https://mallApi.oytour.com"//测试
//进阶思维后台地址
......@@ -139,20 +140,25 @@ export default {
msg: postMsg
},
success: res => {
if (res.Code == 10000) {
if (res.data.Code == 10000) {
let u = uni.getStorageSync("mall_UserInfo");
if (u) {
this.getLogin_t(u)
}
} else if (res.Code == 1) {
} else if (res.data.Code != 1) {
if (res.Message != '') {
uni.showToast({
title: res.Message,
icon: "none",
});
}
typeof failed == "function" && failed(res
);
typeof failed == "function" && failed(res);
} else {
typeof success == "function" && success(res);
}
......
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