From a3042d40d09f8cf9fe84443467d11a27a84a8c4d Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Tue, 11 Feb 2025 14:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=A2=E6=9C=8D=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=96=B0=E6=B6=88=E6=81=AF=E9=97=AA=E5=8A=A8=EF=BC=8C?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=A6=82=E4=B8=8B=EF=BC=9A=201=E3=80=81?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=A6=96=E9=A1=B5=E6=97=B6=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E5=AE=A2=E6=9C=8D=E6=B6=88=E6=81=AF=E6=80=BB?= =?UTF-8?q?=E6=95=B0=EF=BC=8C=E4=B9=8B=E5=90=8E=E6=AF=8F5=E7=A7=92?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=80=E6=AC=A1=E6=9C=80=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E6=80=BB=E6=95=B0=E5=B9=B6=E5=AF=B9=E6=95=B0=E6=8D=AE=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=AF=94=E5=AF=B9=EF=BC=8C=E4=B8=A4=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AD=98=E5=82=A8=E5=88=B0localStorage=E4=B8=AD=202?= =?UTF-8?q?=E3=80=81=E5=88=87=E6=8D=A2=E5=88=B0=E6=88=91=E7=9A=84=E7=9B=9B?= =?UTF-8?q?=E5=AE=89=E9=A1=B5=E9=9D=A2=E5=90=8E=E6=96=B0=E5=A2=9Einterval?= =?UTF-8?q?=EF=BC=8C=E6=AF=8F2=E7=A7=92=E8=B0=83=E5=8F=96=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E6=8D=AE=E8=BF=9B=E8=A1=8C=E6=AF=94=E5=AF=B9?= =?UTF-8?q?=203=E3=80=81=E6=89=93=E5=BC=80=E5=AE=A2=E6=9C=8D=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E7=A6=BB=E5=BC=80=E9=A1=B5=E9=9D=A2=E6=97=B6=E5=B0=86?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=9A=84=E5=AE=A2=E6=9C=8D=E6=80=BB=E6=95=B0?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=8E=89localStorage=E4=B8=AD=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 +- pages/index/index.vue | 1627 ++++++++++++++++++++++---------------- pages/msg/im.vue | 892 ++++++++++++++++----- pages/my/cooperation.vue | 1 - pages/my/index.vue | 130 ++- 5 files changed, 1754 insertions(+), 899 deletions(-) diff --git a/pages.json b/pages.json index 395a9a4..bf70bd9 100644 --- a/pages.json +++ b/pages.json @@ -2078,7 +2078,8 @@ "pagePath": "pages/my/index", "iconPath": "static/tabbar/bottom4_1.png", "selectedIconPath": "static/tabbar/bottom4_2.png", - "text": "我的盛安" + "text": "我的盛安", + "badge": "" } ] } diff --git a/pages/index/index.vue b/pages/index/index.vue index 457c445..4a13d7f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -8,15 +8,16 @@ --> - + - - + + + + {{ city }} - + @@ -39,24 +40,25 @@ - - - + + + - + - + 搜索 - + + @@ -73,7 +75,8 @@ - + @@ -97,20 +100,23 @@ 私密护理 - + 正骨拨筋 - + 盛安套餐 - + 服务疗程 - + 项目次卡 @@ -125,10 +131,12 @@ - + - + @@ -147,7 +155,9 @@ - + + + {{item.dingwei}}km @@ -163,7 +173,8 @@ - {{item.name}} + {{item.name}} @@ -171,9 +182,10 @@ - + - + {{item.tagsData[0]}} 助眠解压 @@ -210,7 +222,8 @@ - + {{item.name}} @@ -241,26 +254,16 @@ - + - + {{contentVideo}} @@ -270,51 +273,70 @@ - + - - - 预约 + + + 预约 - - - 上线 + + + 上线 - - - {{artificerItem.dzs}} + + + {{artificerItem.dzs}} - - - {{artificerItem.pls}} + + + {{artificerItem.pls}} - - + + - + + + - + 超值拼团 - + 充值赠送 @@ -339,6 +361,7 @@ \ No newline at end of file diff --git a/pages/my/cooperation.vue b/pages/my/cooperation.vue index ee3f7f0..8f2f7e1 100644 --- a/pages/my/cooperation.vue +++ b/pages/my/cooperation.vue @@ -154,7 +154,6 @@ this.pickVal=data.target.value; this.pickVal2=data.target.value; this.cityData=this.cityArr[0][this.pickVal2[0]].AreaName+'-'+this.cityArr[1][this.pickVal2[1]].AreaName+'-'+this.cityArr[2][this.pickVal2[2]].AreaName - }, // 选择时且未点击确定是的值 pluginclass(e) { diff --git a/pages/my/index.vue b/pages/my/index.vue index c787867..293bc8d 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -171,19 +171,21 @@ 我是经纪人 - + 申请业务员 - + 我是业务员 - + 申请分销员 - + 我是分销员 @@ -191,7 +193,8 @@ 申请渠道商 - + 我是渠道商 @@ -203,7 +206,7 @@ 我是代理商 --> - @@ -229,10 +232,12 @@ /套 - + ¥{{item.oldPrice}} - + /{{item.serviceCount?item.serviceCount:''}}次 ¥{{item.oldPrice}}/套 @@ -257,7 +262,7 @@ -当你累了 想起盛安到家- - + @@ -293,10 +298,12 @@ vipNameType: '', dataList: [], tagsData: [], - blIsJjr:'',//1是经纪人 0不是经纪人 - blIsFxy:'',//1是分销员 0不是分销员 - blIsYwy:'',//1是业务员 0不是业务员 - blIsQds:'',//1是渠道商 0不是渠道商 + blIsJjr: '', //1是经纪人 0不是经纪人 + blIsFxy: '', //1是分销员 0不是分销员 + blIsYwy: '', //1是业务员 0不是业务员 + blIsQds: '', //1是渠道商 0不是渠道商 + kfInterval: null, //是否有新客服消息逻辑定时任务 + haveNewMsg: false, //是否有新消息 } }, onLoad(e) { @@ -329,11 +336,27 @@ this.avatar = '../../static/logo.png' this.isVip = 0 } + + this.haveNewMsg = false + if (this.kfInterval == null) { + this.kfInterval = setInterval(() => { + this.selectMsg() + }, 2000) + } }, methods: { - danxiang(){ + selectMsg() { + let keFuLastMsgCount = this.$queue.getData('keFuLastMsgCount'); + let keFuNewMsgCount = this.$queue.getData('keFuNewMsgCount'); + if (keFuLastMsgCount == undefined) { + if (keFuNewMsgCount != 0) this.haveNewMsg = true + } else { + if (keFuNewMsgCount != undefined && keFuNewMsgCount > keFuLastMsgCount) this.haveNewMsg = true + } + }, + danxiang() { uni.navigateTo({ - url:'/pages/my/fuwuGengduo' + url: '/pages/my/fuwuGengduo' }) }, getUserInfo() { @@ -346,13 +369,13 @@ this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png' this.isAuthentication = res.data.isAuthentication this.isAgency = res.data.isAgency ? res.data.isAgency : 0; //是否是推广员 1是 2否 - this.blIsJjr=res.data.blIsJjr;//经纪人 - this.blIsFxy=res.data.blIsFxy;//分销员 - this.blIsYwy=res.data.blIsYwy;//业务员 - this.blIsQds=res.data.blIsQds;//渠道商 + this.blIsJjr = res.data.blIsJjr; //经纪人 + this.blIsFxy = res.data.blIsFxy; //分销员 + this.blIsYwy = res.data.blIsYwy; //业务员 + this.blIsQds = res.data.blIsQds; //渠道商 this.money = res.data.money this.couponnum = res.data.member - + // uni.setStorageSync('isAuthentication', res.data.isAuthentication) this.isShop = res.data.isShop ? res.data.isShop : 0; uni.setStorageSync('avatar', res.data.avatar) @@ -360,7 +383,7 @@ uni.setStorageSync('invitationCode', res.data.invitationCode) uni.setStorageSync('zhiFuBao', res.data.zhiFuBao) uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName) - + if (res.data.isAuthentication == 0 || res.data.isAuthentication == null) { this.renzheng = 0 uni.setStorageSync("renzheng", this.renzheng) @@ -383,13 +406,13 @@ this.renzheng = 6 uni.setStorageSync("renzheng", this.renzheng) } - + } }); }, - qiye(){ + qiye() { uni.navigateTo({ - url:'/pages/shop/qiyeListMy' + url: '/pages/shop/qiyeListMy' }) }, goMsg() { //客服聊天 @@ -626,7 +649,7 @@ } }); }, - + getIsVip() { this.$Request.get("/app/UserVip/selectUserVip").then(res => { @@ -755,21 +778,25 @@ itemClick(item) { let limit = 10; let page = 1; - if(item.type=='104'){ + if (item.type == '104') { uni.navigateTo({ - url:'/pages/my/serviceOderDrtail?id='+item.id+'&limit='+limit+'&page='+page+'&name='+'index'+'&isCanCoupon='+item.isCanCoupon + url: '/pages/my/serviceOderDrtail?id=' + item.id + '&limit=' + limit + '&page=' + page + + '&name=' + 'index' + '&isCanCoupon=' + item.isCanCoupon }) - }else if(item.type=='105'){ + } else if (item.type == '105') { uni.navigateTo({ - url:'/pages/my/cikarDrtail?id='+item.id+'&limit='+limit+'&page='+page+'&name='+'index'+'&isCanCoupon='+item.isCanCoupon + url: '/pages/my/cikarDrtail?id=' + item.id + '&limit=' + limit + '&page=' + page + + '&name=' + 'index' + '&isCanCoupon=' + item.isCanCoupon }) - }else if(item.type=='106'){ + } else if (item.type == '106') { uni.navigateTo({ - url:'/pages/my/fuwuliaochengDetail?id='+item.id+'&limit='+limit+'&page='+page+'&name='+'index'+'&isCanCoupon='+item.isCanCoupon + url: '/pages/my/fuwuliaochengDetail?id=' + item.id + '&limit=' + limit + '&page=' + page + + '&name=' + 'index' + '&isCanCoupon=' + item.isCanCoupon }) - }else{ + } else { uni.navigateTo({ - url:'/pages/my/fuwuDateil?id='+item.id+'&limit='+limit+'&page='+page+'&name='+'index'+'&isCanCoupon='+item.isCanCoupon + url: '/pages/my/fuwuDateil?id=' + item.id + '&limit=' + limit + '&page=' + page + + '&name=' + 'index' + '&isCanCoupon=' + item.isCanCoupon }) } } @@ -1022,7 +1049,7 @@ } .my-serve-view { - width:86%; + width: 86%; margin: 10px auto; display: flex; flex-direction: row; @@ -1032,14 +1059,14 @@ .my-use-list { width: 33%; - margin-top:15px; + margin-top: 15px; display: flex; flex-direction: column; align-items: center; } .my-serve-list { - width:22%; + width: 22%; display: flex; flex-direction: column; align-items: center; @@ -1066,9 +1093,11 @@ margin-left: 8px; margin-top: 5px; } + .width { width: 94%; } + .my-serve { background: #FFFFFF; border-radius: 21rpx; @@ -1143,7 +1172,7 @@ .my-head-mian-top-view-chong, .my-head-mian-top-view-ming { - width:260rpx; + width: 260rpx; height: 58rpx; line-height: 58rpx; text-align: center; @@ -1164,7 +1193,7 @@ .my-head-mian-top-view-qian { width: 100%; color: #333; - background-image: linear-gradient(to left, rgba(255, 236, 222, 0.7),rgba(255, 255, 255, 0.8)); + background-image: linear-gradient(to left, rgba(255, 236, 222, 0.7), rgba(255, 255, 255, 0.8)); margin: 0 auto; border-radius: 20rpx 20rpx 0 0; height: 76rpx; @@ -1340,4 +1369,29 @@ color: #fff; text-align: center; } + + /* 定义闪烁动画 */ + @keyframes blink { + + 0%, + 100% { + opacity: 1; + /* 初始和结束状态透明度为1 */ + } + + 50% { + opacity: 0.2; + /* 中间状态透明度降低 */ + } + } + + /* 应用动画到图片 */ + .blinking { + animation: blink 1s infinite; + /* 'blink' 是动画名, '1s' 是持续时间, 'infinite' 表示无限循环 */ + width: 50px; + /* 假设设置了宽度 */ + height: auto; + /* 自动调整高度 */ + } \ No newline at end of file