zhanghui преди 5 месеца
родител
ревизия
0257c46927

+ 3 - 2
common/js/api.js

@@ -997,10 +997,11 @@ export default {
     },
     },
 
 
     // 查询过期权益卡
     // 查询过期权益卡
-    getExpireEquityCard() {
+    getExpireEquityCard(data) {
         return request({
         return request({
             url: '/member/wechat/getExpireEquityCard',
             url: '/member/wechat/getExpireEquityCard',
-            method: 'get'
+            method: 'get',
+            data:data
         })
         })
     },
     },
 
 

+ 37 - 14
orderPages/activityDetail/activityDetail.vue

@@ -183,16 +183,20 @@
         </view>
         </view>
 
 
         <scroll-view class="scrollY" scroll-y>
         <scroll-view class="scrollY" scroll-y>
-          <view class="flex-row objectItem" :class="{'vBackGround': selectServiceObjectIndex === index}"
-                v-for="(item,index) in serviceObjectList" :key="index"
-                @click="selectServiceObjectIndex = index">
-            <image class="objectImage" :src="item.facePhotoUrl || '/static/ud4.png'"></image>
-            <view class="flex-col objectName ">
-              <text>{{ item.nickName }}</text>
+
+
+            <view class="flex-row objectItem" v-for="(item,index) in serviceObjectList" :key="index"  :class="{'vBackGround': selectServiceObjectIndex === index}"  @click="selectServiceObjectIndex = index">
+              <image class="objectImage" :src="item.facePhotoUrl || '/static/ud4.png'"></image>
+              <view class="flex-col objectName ">
+                <text>{{ item.nickName }}</text>
+              </view>
+              <image v-if="selectServiceObjectIndex === index" class="vImage"
+                     src="/static/index/xuanzhong.png"></image>
             </view>
             </view>
-            <image v-if="selectServiceObjectIndex === index" class="vImage"
-                   src="/static/index/xuanzhong.png"></image>
-          </view>
+
+
+
+
         </scroll-view>
         </scroll-view>
 
 
         <view class="flex-row justify-around">
         <view class="flex-row justify-around">
@@ -236,6 +240,7 @@ export default {
       inviteOrderId: null,
       inviteOrderId: null,
       inviteActivityId:null,
       inviteActivityId:null,
       isShareMax: false,
       isShareMax: false,
+      renewServiceObjectId:null
     }
     }
   },
   },
 
 
@@ -249,7 +254,12 @@ export default {
     }
     }
   },
   },
   onLoad(e) {
   onLoad(e) {
-    console.log(e)
+    console.log('+++++++++++e+++++++++++++',e)
+
+    if (e.renewServiceObjectId){
+      this.renewServiceObjectId = e.renewServiceObjectId
+    }
+
     if (e.id) {
     if (e.id) {
       this.id = e.id
       this.id = e.id
       console.log('上一个页面传递过来的活动ID===>', this.id)
       console.log('上一个页面传递过来的活动ID===>', this.id)
@@ -326,8 +336,17 @@ export default {
       return this.$api.listServiceObject(this.reqParm).then((res) => {
       return this.$api.listServiceObject(this.reqParm).then((res) => {
         let serviceObjectList = [];
         let serviceObjectList = [];
         res.data.data.forEach(i => {
         res.data.data.forEach(i => {
-          if (i.isSelf != 1) {
-            serviceObjectList.push(i);
+
+          if (this.renewServiceObjectId){
+            if (i.isSelf != 1) {
+              if (this.renewServiceObjectId == i.id){
+                serviceObjectList.push(i);
+              }
+            }
+          }else {
+            if (i.isSelf != 1) {
+              serviceObjectList.push(i);
+            }
           }
           }
         });
         });
         this.$set(this.serviceObjectList, 0, serviceObjectList);
         this.$set(this.serviceObjectList, 0, serviceObjectList);
@@ -376,7 +395,7 @@ export default {
         });
         });
         this.isActivityCheck = true
         this.isActivityCheck = true
         setTimeout(() => {
         setTimeout(() => {
-          uni.navigateTo({
+          uni.reLaunch({
             url: '/myPages/myActivity/myActivity'
             url: '/myPages/myActivity/myActivity'
           })
           })
         }, 2000)
         }, 2000)
@@ -508,10 +527,14 @@ export default {
       console.log(this.id, '活动ID')
       console.log(this.id, '活动ID')
       const data = {
       const data = {
         id: this.id,
         id: this.id,
-        inviteActivityId:this.inviteActivityId,
         inviteUserId:this.inviteUserId,
         inviteUserId:this.inviteUserId,
         inviteOrderId:this.inviteOrderId,
         inviteOrderId:this.inviteOrderId,
       }
       }
+
+      if (this.inviteActivityId){
+        data.inviteActivityId = this.inviteActivityId
+      }
+
       this.$api.activityDetail(data).then(res => {
       this.$api.activityDetail(data).then(res => {
         console.log(res)
         console.log(res)
         this.activity = res.data.data
         this.activity = res.data.data

+ 9 - 2
orderPages/activityList/activityList.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <view class="page">
   <view class="page">
-    <mescroll-item ref="MescrollItem" :i="0"  :index="0" :height="windowHeight">
+    <mescroll-item ref="MescrollItem" :i="0"  :index="0" :height="windowHeight" :renewServiceObjectId="renewServiceObjectId">
     </mescroll-item>
     </mescroll-item>
   </view>
   </view>
 </template>
 </template>
@@ -16,9 +16,16 @@ export default {
   data() {
   data() {
     return {
     return {
       windowHeight: '',
       windowHeight: '',
+      renewServiceObjectId: null
+
+
     }
     }
   },
   },
   onLoad(e) {
   onLoad(e) {
+    console.log('+++++++++++e++++++++++++++',e)
+    if (e.renewServiceObjectId){
+      this.renewServiceObjectId = e.renewServiceObjectId
+    }
     let sysInfo = uni.getSystemInfoSync()
     let sysInfo = uni.getSystemInfoSync()
     this.windowHeight = sysInfo.windowHeight + 'px'
     this.windowHeight = sysInfo.windowHeight + 'px'
   },
   },
@@ -29,4 +36,4 @@ export default {
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 @import '/common/css/common.css';
 @import '/common/css/common.css';
 @import './index.rpx.scss';
 @import './index.rpx.scss';
-</style>
+</style>

+ 9 - 1
orderPages/activityList/module/mescrollUni-item.vue

@@ -89,6 +89,14 @@ export default {
 		},
 		},
 		height: [Number, String], // mescroll的高度
 		height: [Number, String], // mescroll的高度
 
 
+    renewServiceObjectId:{
+      type:String,
+      default(){
+        return null
+      }
+
+    }
+
 	},
 	},
 	watch: {
 	watch: {
 
 
@@ -101,7 +109,7 @@ export default {
 
 
     goDetail(e){
     goDetail(e){
       uni.navigateTo({
       uni.navigateTo({
-        url:'/orderPages/activityDetail/activityDetail?id=' + e.id
+        url:'/orderPages/activityDetail/activityDetail?id=' + e.id + '&renewServiceObjectId=' + this.renewServiceObjectId
       })
       })
     },
     },
 
 

+ 24 - 4
orderPages/bookService/index.vue

@@ -297,7 +297,6 @@
 				})
 				})
 			},1000*60*5)
 			},1000*60*5)
 
 
-      this.getExpireEquityCard();
 		},
 		},
 		onShow() {
 		onShow() {
 
 
@@ -349,12 +348,32 @@
 
 
       },
       },
 
 
-      getExpireEquityCard(){
-        this.$api.getExpireEquityCard().then((res)=>{
+      getExpireEquityCard(serviceObjectId){
+        this.$api.getExpireEquityCard({
+          serviceObjectId:serviceObjectId
+        }).then((res)=>{
           this.expireEquityCard = res.data.data;
           this.expireEquityCard = res.data.data;
           if (this.expireEquityCard.length > 0){
           if (this.expireEquityCard.length > 0){
-            this.$refs.showExpireEquityCard.open()
+            uni.showModal({
+              title:'温馨提示',
+              content:'您有' + this.expireEquityCard.length + '张权益卡即将到期',
+              confirmText:'立即续费',
+              success:(res)=>{
+                if (res.confirm) {
+                  console.log('用户点击确定');
+                  uni.navigateTo({
+                    url:'/storePages/myRights/index'
+                  })
+                } else if (res.cancel) {
+                  console.log('用户点击取消');
+                }
+              }
+            })
           }
           }
+
+          // if (this.expireEquityCard.length > 0){
+          //   this.$refs.showExpireEquityCard.open()
+          // }
         })
         })
       },
       },
 
 
@@ -618,6 +637,7 @@
 					}
 					}
 
 
 				} else {
 				} else {
+          this.getExpireEquityCard(item.id)
 					this.$api.getServicePersonTime({
 					this.$api.getServicePersonTime({
 						personId: this.serviceTeacherList[0].personId,
 						personId: this.serviceTeacherList[0].personId,
 						date: this.periodDate.label,
 						date: this.periodDate.label,

+ 1 - 1
orderPages/orderDetail/index.vue

@@ -558,7 +558,7 @@
         let discountAmount = 0 //计算订单总优惠金额
         let discountAmount = 0 //计算订单总优惠金额
         for (const child of this.order.child) {
         for (const child of this.order.child) {
           if (child.status == 1 || child.status == 8){
           if (child.status == 1 || child.status == 8){
-            payAmount += child.payAmount - 0
+            payAmount += child.payAmount ? child.payAmount - 0 : child.servicePrice -0
             discountAmount += child.discountAmount - 0
             discountAmount += child.discountAmount - 0
           }
           }
         }
         }

+ 24 - 5
orderPages/storeService/index.vue

@@ -129,7 +129,7 @@
                 服务对象:{{ item.serviceObjectName || '' }}
                 服务对象:{{ item.serviceObjectName || '' }}
               </view>
               </view>
               <view class="title">
               <view class="title">
-                适用门店:{{ item.useStoreDesc || '' }} {{ item.use_store_desc || '' }} {{ item.useStoreDesc || '' }} {{ item.useStoreDesc || '' }}
+                适用门店:{{ item.useStoreDesc || '' }}
               </view>
               </view>
               <view class="title">
               <view class="title">
                 到期时间:{{ item.effectiveEndTime.slice(0,10) }}
                 到期时间:{{ item.effectiveEndTime.slice(0,10) }}
@@ -220,7 +220,6 @@
 				})
 				})
 			},1000*60*5)
 			},1000*60*5)
 
 
-      this.getExpireEquityCard();
 		},
 		},
 		onShow() {
 		onShow() {
 
 
@@ -270,12 +269,31 @@
 
 
       },
       },
 
 
-      getExpireEquityCard(){
-        this.$api.getExpireEquityCard().then((res)=>{
+      getExpireEquityCard(serviceObjectId){
+        this.$api.getExpireEquityCard({
+          serviceObjectId:serviceObjectId
+        }).then((res)=>{
           this.expireEquityCard = res.data.data;
           this.expireEquityCard = res.data.data;
           if (this.expireEquityCard.length > 0){
           if (this.expireEquityCard.length > 0){
-            this.$refs.showExpireEquityCard.open()
+            uni.showModal({
+              title:'温馨提示',
+              content:'您有' + this.expireEquityCard.length + '张权益卡即将到期',
+              confirmText:'立即续费',
+              success:(res)=>{
+                if (res.confirm) {
+                  console.log('用户点击确定');
+                  uni.navigateTo({
+                    url:'/storePages/myRights/index'
+                  })
+                } else if (res.cancel) {
+                  console.log('用户点击取消');
+                }
+              }
+            })
           }
           }
+          // if (this.expireEquityCard.length > 0){
+          //   this.$refs.showExpireEquityCard.open()
+          // }
         })
         })
       },
       },
 
 
@@ -444,6 +462,7 @@
 					this.orderParam.childService = this.orderParam.childService.filter(selectServiceObject =>
 					this.orderParam.childService = this.orderParam.childService.filter(selectServiceObject =>
 						selectServiceObject.serviceObjectId !== item.id)
 						selectServiceObject.serviceObjectId !== item.id)
 				} else {
 				} else {
+          this.getExpireEquityCard(item.id)
 					let periodTimeList = JSON.parse(JSON.stringify(this.periodTimeList))
 					let periodTimeList = JSON.parse(JSON.stringify(this.periodTimeList))
 					periodTimeList.forEach(i=>{
 					periodTimeList.forEach(i=>{
 						this.orderParam.childService.forEach(i1=>{
 						this.orderParam.childService.forEach(i1=>{

+ 4 - 3
storePages/myRights/index.vue

@@ -100,20 +100,21 @@
       },
       },
 
 
       navigateTo(item){
       navigateTo(item){
+        console.log('+++++++++++++++++++++++++++++++',item)
         if(item.activityId){
         if(item.activityId){
           let list = item.activityId.split(',')
           let list = item.activityId.split(',')
           if (list.length == 1){
           if (list.length == 1){
             uni.navigateTo({
             uni.navigateTo({
-              url:'/orderPages/activityDetail/activityDetail?id=' + item.activityId
+              url:'/orderPages/activityDetail/activityDetail?id=' + item.activityId +'&renewServiceObjectId=' + item.serviceObjectId
             })
             })
           }else {
           }else {
             uni.navigateTo({
             uni.navigateTo({
-              url:'/orderPages/activityList/activityList'
+              url:'/orderPages/activityList/activityList?renewServiceObjectId=' + item.serviceObjectId
             })
             })
           }
           }
         }else{
         }else{
           uni.navigateTo({
           uni.navigateTo({
-            url:'/orderPages/activityList/activityList'
+            url:'/orderPages/activityList/activityList?renewServiceObjectId=' + item.serviceObjectId
           })
           })
         }
         }