diff --git a/pages/index/index.vue b/pages/index/index.vue index 9415d1e..f94cbb6 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -2919,7 +2919,10 @@ .smrz { display: flex; justify-content: space-between; - padding-left: 20%; - padding-right: 20%; + margin-top: 5px; + padding-left: 20%; + padding-right: 20%; + /* padding-left: 48%; + padding-right: 5px; */ } \ No newline at end of file diff --git a/pages/my/index.vue b/pages/my/index.vue index 327e4f1..5426aa7 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -97,28 +97,40 @@ 我的服务 +
+
服务套餐
+
+
项目次卡
+
+
服务疗程
+
+
拼团
+
+
限时秒杀
+
+
企业预约
@@ -304,6 +316,14 @@ blIsQds: '', //1是渠道商 0不是渠道商 kfInterval: null, //是否有新客服消息逻辑定时任务 haveNewMsg: false, //是否有新消息 + wdfwTj: { //我得服务各内容未使用数量统计 个别服务统计结果并非最终未使用数 不能作为未使用数量依据 + fwtc: 0, + xmck: 0, + fwlc: 0, + pt: 0, + xsms: 0, + qyyy: 0 + }, } }, onLoad(e) { @@ -316,6 +336,7 @@ this.getDataX() }, onShow() { + this.queryKytcs() this.hyCheck = this.$queue.getData('hyCheck'); this.tgCheck = this.$queue.getData('tgCheck'); this.userId = uni.getStorageSync('userId') @@ -336,7 +357,7 @@ this.avatar = '../../static/logo.png' this.isVip = 0 } - + this.haveNewMsg = false if (this.kfInterval == null) { this.kfInterval = setInterval(() => { @@ -345,6 +366,43 @@ } }, methods: { + //查询可用套餐数量 + queryKytcs() { + let that = this + this.$Request.get('/app/user/package/queryKytcs', { + userId: uni.getStorageSync('userId'), + type: '104' + }).then(res => { + if (res.data) { + res.data.forEach(item => { + if (item.type == 104) that.wdfwTj.fwtc = item.count + if (item.type == 105) that.wdfwTj.xmck = item.count + if (item.type == 106) that.wdfwTj.fwlc = item.count + if (item.type == 111) that.wdfwTj.pt = item.count + if (item.type == 112) that.wdfwTj.xsms = item.count + if (item.type == 114) that.wdfwTj.qyyy = item.count + }); + } else { + that.wdfwTj = { + fwtc: 0, + xmck: 0, + fwlc: 0, + pt: 0, + xsms: 0, + qyyy: 0 + } + } + }).catch(res => { + that.wdfwTj = { + fwtc: 0, + xmck: 0, + fwlc: 0, + pt: 0, + xsms: 0, + qyyy: 0 + } + }) + }, selectMsg() { let keFuLastMsgCount = this.$queue.getData('keFuLastMsgCount'); let keFuNewMsgCount = this.$queue.getData('keFuNewMsgCount'); @@ -1071,6 +1129,7 @@ flex-direction: column; align-items: center; justify-content: center; + position: relative; } .my-serve-list image { @@ -1394,4 +1453,17 @@ height: auto; /* 自动调整高度 */ } + + .wdfw-dsy { + position: absolute; + top: 0px; + right: 8px; + width: 11px; + height: 11px; + display: inline-block; + background-color: #ff5b56; + border-radius: 12px; + border: 3px solid #fff; + z-index: 99; + } \ No newline at end of file