Commit dd2bfd4b authored by 黄奎's avatar 黄奎

页面修改

parent 3cad308c
...@@ -96,8 +96,9 @@ ...@@ -96,8 +96,9 @@
<good-list :list="goodData" v-if="showGoodList" @close="closeGoodListHandler"></good-list> <good-list :list="goodData" v-if="showGoodList" @close="closeGoodListHandler"></good-list>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='goback'></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='goback'></auth>
<payCom v-if="payBtn&&u.TenantId!=27" :payInfo="payInfo" @closePay="closePay"></payCom> <payCom v-if="payBtn&&u.TenantId!=27" :payInfo="payInfo" @closePay="closePay"></payCom>
<submit2PayCom v-if="payBtn&&u.TenantId==27" :payInfo="payInfo" :isAlipay="isAlipay" :StuId='StuId' :TeacherIds='TeacherIds' @closePay="closePay"></submit2PayCom> <submit2PayCom v-if="payBtn&&u.TenantId==27" :payInfo="payInfo" :isAlipay="isAlipay" :StuId='StuId' :TeacherIds='TeacherIds'
@closePay="closePay"></submit2PayCom>
<u-popup v-model="payExit" mode="center" :mask-close-able="false"> <u-popup v-model="payExit" mode="center" :mask-close-able="false">
<view style="background:#fff;width:500rpx"> <view style="background:#fff;width:500rpx">
<view style="padding:10px 0 0 10px">提交失败</view> <view style="padding:10px 0 0 10px">提交失败</view>
...@@ -124,9 +125,9 @@ ...@@ -124,9 +125,9 @@
}, },
data() { data() {
return { return {
StuId:'', StuId: '',
TeacherIds:'', TeacherIds: '',
isAlipay:2,//1微信 2微信支付宝 isAlipay: 2, //1微信 2微信支付宝
pageTitle: "我的订单", pageTitle: "我的订单",
current: 0, current: 0,
list: [], list: [],
...@@ -204,11 +205,12 @@ ...@@ -204,11 +205,12 @@
}); });
}, },
onLoad: function(option) { onLoad: function(option) {
this.current = 0;
//option为object类型,会序列化上个页面传递的参数 //option为object类型,会序列化上个页面传递的参数
this.current = option.status || -1; if (option && option.status && option.status != '') {
this.current = option.status;
}
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
nickName: "未登录", nickName: "未登录",
...@@ -224,7 +226,6 @@ ...@@ -224,7 +226,6 @@
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.g = []; this.g = [];
this.payInfo.OpenId = uni.getStorageSync('mall_UserInfo').OpenId; this.payInfo.OpenId = uni.getStorageSync('mall_UserInfo').OpenId;
this.request2({ this.request2({
url: '/api/order/GetOrderStatusEnumList', url: '/api/order/GetOrderStatusEnumList',
data: {} data: {}
...@@ -246,22 +247,19 @@ ...@@ -246,22 +247,19 @@
); );
}, },
redirectToDetail(item) { redirectToDetail(item) {
if(item.VersionSource!=1){ if (item.VersionSource != 1) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/order/order-detail?id=" + item.OrderId, url: "/pages/order/order-detail?id=" + item.OrderId,
}); });
}else{ } else {
uni.navigateTo({ uni.navigateTo({
url: "/pages/order/educationO-detail?id=" + item.OrderId, url: "/pages/order/educationO-detail?id=" + item.OrderId,
}); });
} }
}, },
shouhuoHandler(id) { shouhuoHandler(id) {
this.showReviceModal = true; this.showReviceModal = true;
this.submitId = id; this.submitId = id;
}, },
submitReviceGoodHandler() { //确认收货 submitReviceGoodHandler() { //确认收货
let that = this let that = this
...@@ -323,21 +321,19 @@ ...@@ -323,21 +321,19 @@
this.Cancelmsg.OrderId = e.OrderId; this.Cancelmsg.OrderId = e.OrderId;
this.Cancelmsg.Type = e.OrderStatus == 1 ? 1 : 2; this.Cancelmsg.Type = e.OrderStatus == 1 ? 1 : 2;
}, },
// 待付款立即支付 // 待付款立即支付
payment(e) { payment(e) {
let list =[] let list = []
this.payInfo.OrderId = e.OrderId; this.payInfo.OrderId = e.OrderId;
this.payInfo.GoodsName = e.DetailList[0].GoodsName.slice(0, 10); this.payInfo.GoodsName = e.DetailList[0].GoodsName.slice(0, 10);
this.payInfo.PaymentWay = e.PaymentWay; this.payInfo.PaymentWay = e.PaymentWay;
this.payInfo.total_price = e.Income; this.payInfo.total_price = e.Income;
this.StuId= e.JJSWStuId this.StuId = e.JJSWStuId
e.DetailList.forEach(item=>{ e.DetailList.forEach(item => {
list.push(item.EduTeacherId) list.push(item.EduTeacherId)
}) })
this.TeacherIds = list.toString() this.TeacherIds = list.toString()
// console.log('jjjjjjjjjj',this.StuId)
// console.log('lllllllllllllll',this.TeacherIds)
this.payBtn = true this.payBtn = true
}, },
exitPay() { exitPay() {
...@@ -393,7 +389,6 @@ ...@@ -393,7 +389,6 @@
}, },
showGoodListHandler(i) { showGoodListHandler(i) {
this.goodData = this.g[i].DetailList; this.goodData = this.g[i].DetailList;
console.log(this.goodData);
this.showGoodList = true; this.showGoodList = true;
}, },
buy(y) { buy(y) {
...@@ -416,18 +411,18 @@ ...@@ -416,18 +411,18 @@
good.DetailList.push(g); good.DetailList.push(g);
}); });
forms = good; forms = good;
if(y.VersionSource !=1){ if (y.VersionSource != 1) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/order-submit/order-submit?formData=' + encodeURIComponent(JSON.stringify(forms)) + url: '/pages/order-submit/order-submit?formData=' + encodeURIComponent(JSON.stringify(forms)) +
'&IsFormShoppingCart=2&ShoppingCartIdList=' + JSON.stringify(ShoppingCartIdList) '&IsFormShoppingCart=2&ShoppingCartIdList=' + JSON.stringify(ShoppingCartIdList)
}); });
}else{ } else {
uni.navigateTo({ uni.navigateTo({
url: '/pages/order-submit/neweducation-submit?formData=' + encodeURIComponent(JSON.stringify(forms)) + url: '/pages/order-submit/neweducation-submit?formData=' + encodeURIComponent(JSON.stringify(forms)) +
'&IsFormShoppingCart=2&ShoppingCartIdList=' + JSON.stringify(ShoppingCartIdList) '&IsFormShoppingCart=2&ShoppingCartIdList=' + JSON.stringify(ShoppingCartIdList)
}); });
} }
}, },
reloadUserinfo() { reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
...@@ -565,4 +560,4 @@ ...@@ -565,4 +560,4 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
/** 显示的行数 **/ /** 显示的行数 **/
} }
</style> </style>
\ No newline at end of file
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