Commit 4fffe4e0 authored by Mac's avatar Mac

分享中心那里

parent 624910bb
......@@ -415,7 +415,7 @@
</view>
<view class="serve">
<view class="title">TA可服务会员卡<text style="font-size: 11px;color: #1B1D1E;">({{allCoupon.length}})</text></view>
<view class="setmeal-box">
<view class="setmeal-box" v-if="allCoupon.length>0">
<view v-for="(cl, ci) in allCoupon" :key="ci" @click="gocoupon(cl)">
<view class="setmeal-item" :style="{'margin-left':ci==0?'15px':'0','margin-right': ci+1==allCoupon.length?'15px':'5px'}">
<view class="setmeal-item-top">
......@@ -433,6 +433,9 @@
</view>
</view>
</view>
<view v-if="allCoupon.length==0" style="width: 100%;height: 50px;line-height: 50px;text-align: center;">
暂无服务会员卡~
</view>
<view class="title">TA可服务的商品<text style="font-size: 11px;color: #1B1D1E;">({{personal.goodsList.length}})</text></view>
<view class="d-goods">
<view class="d-goods-item" v-for="(c, j) in personal.goodsList" :key="c" @click="gogoods(c)">
......@@ -536,9 +539,14 @@
if (option && option.storeId) {
this.storeId = option.storeId
}
this.u = uni.getStorageSync("mall_UserInfo");
this.getDetail() //服务人员详情
this.getAllCPList();
this.getAppCommentList()
if (this.u) {
this.getAllCPList();
this.getAppCommentList()
}
},
mounted() {
uni.setNavigationBarTitle({
......@@ -658,6 +666,8 @@
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.getAllCPList();
this.getAppCommentList()
},
//关闭登录窗口
gbAuth() {
......@@ -672,11 +682,16 @@
},
//跳转至生成海报
goShare(){
uni.navigateTo({
url: "/pages/reserve/share_qrcode?ServiceLogo=" +
this.personal.ServiceLogo+'&Name='+this.personal.Name+
'&storeId='+this.storeId+'&ID='+this.ID
})
if (this.u) {
uni.navigateTo({
url: "/pages/reserve/share_qrcode?ServiceLogo=" +
this.personal.ServiceLogo+'&Name='+this.personal.Name+
'&storeId='+this.storeId+'&ID='+this.ID
})
} else {
this.showAuth = true;
}
},
},
......
......@@ -102,7 +102,7 @@
godingdan(){
uni.reLaunch({
url: '/pages/reserve/personal/orderlist?status=2',
url: '/pages/reserve/personal/orderDetails?status=2',
});
}
......
......@@ -626,7 +626,7 @@
this.u = uni.getStorageSync("mall_UserInfo");
this.init();
this.getSPList()//获取服务人员列表
this.getAllCPList()//获取门店套餐卡
wx.showShareMenu({
withShareTicket: true,
menus: ["shareAppMessage", "shareTimeline"],
......@@ -765,6 +765,7 @@
if (this.u) {
// this.initComments();
this.getGoodsComment()
this.getAllCPList()//获取门店套餐卡
}
} else {
......@@ -935,6 +936,7 @@
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.getGoodsComment()
this.getAllCPList()//获取门店套餐卡
},
//关闭登录窗口
......
......@@ -563,7 +563,7 @@
methods: {
//跳转至订单详情
redirectToDetail(item) {
// OrderClassify 0商品 1司导 2网课
// OrderClassify 0商品 1司导 2网课 3线下服务
if (item.OrderClassify == 0) {
uni.navigateTo({
url: "/pages/order/order-detail?id=" + item.OrderId + '&NewUserId=' + item.UserId,
......@@ -576,13 +576,32 @@
uni.navigateTo({
url: "/pages/school/personal/orderDetail?OrderId=" + item.OrderId + '&NewUserId=' + item.UserId,
});
} else if (item.OrderClassify == 3) {
uni.navigateTo({
url: "/pages/reserve/personal/orderDetails?id=" + item.OrderId + '&NewUserId=' + item.UserId,
});
}
},
//跳转至商品详情
openGood(item) {
uni.navigateTo({
url: '/pages/goods/goods?GoodsId=' + item.GoodsId
});
if (item.OrderClassify == 0) {
uni.navigateTo({
url: '/pages/goods/goods?GoodsId=' + item.GoodsId
});
} else if (item.OrderClassify == 1) {
uni.navigateTo({
url: "/pages/guidecar/guidecarGoodsdetails?GoodsId=" + item.GoodsId ,
});
} else if (item.OrderClassify == 2) {
uni.navigateTo({
url: "/pages/school/courseInfo?GoodsId=" + item.GoodsId ,
});
} else if (item.OrderClassify == 3) {
uni.navigateTo({
url: "/pages/reserve/goodsDetails?GoodsId=" + item.GoodsId ,
});
}
},
getHeadHeight() {
let that = this;
......
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