Commit 4fffe4e0 authored by Mac's avatar Mac

分享中心那里

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