From 6019afb30ed5de2cea87b441618233ebe4e9c9e7 Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Sat, 15 Jun 2024 20:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20=E6=B2=A1=E7=94=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/consistency-request.js | 1 - http/request.js | 8 +- my/vip/index.vue | 4 +- pages.json | 29 +- pages/index/index.vue | 120 +++-- pages/my/cureOderDrtail.vue | 8 +- pages/my/curePackage.vue | 387 --------------- pages/my/index.vue | 399 +++++++++++++-- pages/my/index1.vue | 5 +- pages/my/onceCardOderDrtail.vue | 464 ------------------ pages/my/onceCardPackage.vue | 387 --------------- pages/my/serviceOderDrtail.vue | 159 +++--- pages/my/servicePackage.vue | 156 +++--- pages/public/loginphone.vue | 4 +- pages/therapist/orderDetail.vue | 187 ++++--- pages/therapist/therapist.vue | 151 +++--- .../z-tabs/components/z-tabs/z-tabs.vue | 4 +- 17 files changed, 816 insertions(+), 1657 deletions(-) delete mode 100644 pages/my/curePackage.vue delete mode 100644 pages/my/onceCardOderDrtail.vue delete mode 100644 pages/my/onceCardPackage.vue diff --git a/http/consistency-request.js b/http/consistency-request.js index b29c00b..34a3722 100644 --- a/http/consistency-request.js +++ b/http/consistency-request.js @@ -11,7 +11,6 @@ function myQueryList(prarm, callback) { request.queryList({ pageNo: prarm.pageNo, pageSize: prarm.pageSize, - type: prarm.type }).then(res => { const myData = { data: { diff --git a/http/request.js b/http/request.js index b343b84..1112f84 100644 --- a/http/request.js +++ b/http/request.js @@ -35,12 +35,12 @@ function queryChatListLong(data) { } function _queryList(data, listCount, showNews = false ,random = false, showChat = false) { - if (!data.pageNo || !data.pageSize) { + if (!data.page || !data.limit) { return _callQueryResult([]); } - let pageNo = parseInt(data.pageNo); - let pageSize = parseInt(data.pageSize); - let type = data.type || 0; + let pageNo = parseInt(data.page); + let pageSize = parseInt(data.limit); + // let type = data.type || 0; if (pageNo < 0 || pageSize <= 0) { return _callQueryResult([]); } diff --git a/my/vip/index.vue b/my/vip/index.vue index c5ea1dc..ba7f72b 100644 --- a/my/vip/index.vue +++ b/my/vip/index.vue @@ -159,8 +159,8 @@ this.getMemberList() this.getMoney() // this.getIsVip() - this.vipData=this.$queue.getData('VipDetails') - console.log("vipDatavipDatavipDatavipData",this.vipData) + this.vipData=this.$queue.getData('isVIP') + console.log("isVIP------------------->",this.vipData) if(this.vipData.isVip=='1'){ this.vipShow=true; }else{ diff --git a/pages.json b/pages.json index 7966475..f2e01ac 100644 --- a/pages.json +++ b/pages.json @@ -181,37 +181,10 @@ "navigationStyle": "custom" } }, - { - "path": "pages/my/curePackage", - "style": { - "navigationBarTitleText": "疗程套餐", - "navigationBarBackgroundColor": "#096f4b", - "navigationBarTextStyle": "white", - "navigationStyle": "custom" - } - }, { "path": "pages/my/cureOderDrtail", "style": { - "navigationBarTitleText": "疗程套餐详情", - "navigationBarBackgroundColor": "#096f4b", - "navigationBarTextStyle": "white", - "navigationStyle": "custom" - } - }, - { - "path": "pages/my/onceCardPackage", - "style": { - "navigationBarTitleText": "项目次卡", - "navigationBarBackgroundColor": "#096f4b", - "navigationBarTextStyle": "white", - "navigationStyle": "custom" - } - }, - { - "path": "pages/my/onceCardOderDrtail", - "style": { - "navigationBarTitleText": "项目次卡详情", + "navigationBarTitleText": "套餐详情订单", "navigationBarBackgroundColor": "#096f4b", "navigationBarTextStyle": "white", "navigationStyle": "custom" diff --git a/pages/index/index.vue b/pages/index/index.vue index d2e3f00..99cf12b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -32,11 +32,7 @@ :show-action="true" :animation="true" bg-color="#fff" color="#1A1A1A" @search="onSearch()" > - - - {{item.value}} - - + @@ -48,7 +44,7 @@ 明星技师 Star technician - + 查看更多> @@ -59,51 +55,51 @@ - + - 深谙逃禅 + 盛安套餐 - + - 深谙逃禅 + 盛安技师 - + - 深谙逃禅 + 招聘合作 - + - 深谙逃禅 + 会员中心 - + - 深谙逃禅 + 充值赠送 - + - 深谙逃禅 + 超值拼团 - + - 深谙逃禅 + 超值套餐 - + - 深谙逃禅 + 限时秒杀 - + - 深谙逃禅 + 逛商城 - + - 深谙逃禅 + 约到店 - + @@ -114,12 +110,12 @@ 附近技师 - 更多 + 更多 >> - + @@ -140,7 +136,7 @@ - + {{item.name}} {{item.content}} @@ -344,12 +340,6 @@ starTechnician:[],//明星技师 nearbyTechnician:[],//附近技师 classifyId: '', - value: 0, - range: [ - { value: 0, text: "篮球" }, - { value: 1, text: "足球" }, - { value: 2, text: "游泳" }, - ], //列表数据 goodsList: [ { @@ -441,6 +431,61 @@ // that.myId = uni.getStorageSync('userId') }, methods: { + tuijian(item){//推荐 + if(item.id==4){ + uni.navigateTo({ + url:'/pages/my/serviceItems' + }) + } + + }, + goNav(e){ + if(e!=undefined){ + uni.navigateTo({ + url:e + }) + }else{ + uni.showToast({ + title:'敬请期待!' + }) + } + + }, + goOrder(e) { + console.log('授权', uni.getStorageSync('sendMsg')) + if (uni.getStorageSync('sendMsg')) { + console.log('授权+1') + wx.requestSubscribeMessage({ + tmplIds: this.arr, + success(re) { + console.log(JSON.stringify(re), 'asdasdasdasddas') + var datas = JSON.stringify(re); + if (datas.indexOf("accept") != -1) { + console.log(re) + } + }, + fail: (res) => { + console.log(res) + } + }) + } + if (this.token) { + uni.navigateTo({ + url: '/pages/therapist/orderDetail?artificerId=' + e.artificerId + "&classifyId=" + this + .tabIndex + }); + } else { + uni.navigateTo({ + url: '/pages/public/login' + }); + } + + }, + gengduo(){ + uni.reLaunch({ + url:'/pages/therapist/therapist' + }) + }, getCity(e) { console.log("得到的城市-------------》",e[0].label); this.city = e[0].label; @@ -550,6 +595,7 @@ }, //点击某一个item 推荐明星 chooseItem(item){ + this.goOrder(item); console.log("推荐明星",item) // 点击拿到整个当前点击的item 执行业务逻辑 }, @@ -1214,7 +1260,7 @@ } .index-head{ width: 100%; - height:240px; + height:190px; background: linear-gradient(4deg,rgba(189, 247, 214,0),rgba(143, 233, 212, 0.3)); display: flex; align-items: flex-start; diff --git a/pages/my/cureOderDrtail.vue b/pages/my/cureOderDrtail.vue index 8cf8a98..3709840 100644 --- a/pages/my/cureOderDrtail.vue +++ b/pages/my/cureOderDrtail.vue @@ -28,10 +28,6 @@ ¥430 - - - - @@ -98,12 +94,10 @@ export default{ data(){ return{ - shouchangNum:false, } }, methods:{ - shoucang(){ - } + } } diff --git a/pages/my/curePackage.vue b/pages/my/curePackage.vue deleted file mode 100644 index 975aa7a..0000000 --- a/pages/my/curePackage.vue +++ /dev/null @@ -1,387 +0,0 @@ - - - - - - diff --git a/pages/my/index.vue b/pages/my/index.vue index dc14f57..bcca9ec 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -2,13 +2,19 @@ - - + + + + - 盛安小仙女 - 13833882588 + {{userName}} + {{phone}} - ID:2536436 + ID:{{invitationCode}} + + + 登录 @@ -18,40 +24,62 @@ 充值 明细 - 520 000 00 + {{money}} - + 优惠券 - + 券码兑换 - + 积分兑换 - + + + + + + + + + + 开通会员 + 会员中心 + 会员可享贵族福利 + + + 立即开通 + + 会员特权 + + 我的服务 - + 服务套餐 - + 项目次卡 - + 服务疗程 @@ -72,6 +100,25 @@ export default{ data(){ return { + isShop: 0, + hyCheck: '否', + tgCheck: '否', + isAgency: 0, + avatar: '../../static/logo.png', + isLogin: true, + userName: '匿名', + phone:'18684369159', + browse: 0, //浏览数 + fans: 0, //粉丝数 + follow: 0, //关注数 + visitor: 0, //访客数 + userId: '', + isVip: false, + invitationCode: '', //邀请码 + money: '0', + couponnum: '0', + renzheng: 0, + XCXIsSelect: '否', useList:[ {urlImg:'../../static/my-gong-1.png',text:'我的收藏',link:'/my/gird/shoucang'}, {urlImg:'../../static/my-gong-2.png',text:'成为理疗师',link:'/pages/my/hehuo'}, @@ -85,12 +132,307 @@ ] } }, + onLoad(e) { + this.XCXIsSelect = this.$queue.getData("XCXIsSelect"); + if (e.money && e.couponnum) { + this.money = e.money; + this.couponnum = e.couponnum; + } + }, + onShow() { + this.hyCheck = this.$queue.getData('hyCheck'); + this.tgCheck = this.$queue.getData('tgCheck'); + this.userId = uni.getStorageSync('userId') + if (this.userId) { + this.isLogin = false + this.getUserInfo() + + this.getAmount() + this.getIsVip() + } else { + this.isShop = 0; + this.isAgency = 0; + this.isLogin = true + this.userName = '匿名' + this.browse = 0 + this.fans = 0 + this.follow = 0 + this.visitor = 0 + this.avatar = '../../static/logo.png' + this.isVip = false + } + + }, methods:{ - kaitong(){//开通会员 + goChat() { + let kefu = this.$queue.getData('kefu'); // 用户端联系方式 1 手机号 2企业微信 + let kefuPhone = this.$queue.getData('kefuPhone'); + if (kefu == 1) { + uni.makePhoneCall({ + phoneNumber: kefuPhone //仅为示例 + }); + } else if (kefu == 3) { + uni.navigateTo({ + url: '/my/setting/customer' + }); + } else { + // #ifdef MP-WEIXIN + let that = this + try { + wx.openCustomerServiceChat({ + extInfo: { + url: that.$queue.getData('kefuUrl') + }, + corpId: that.$queue.getData('kefuAppId'), + success(res) {}, + fail(res) { + console.error(res) + } + }) + } catch (error) { + console.error("catchcatch" + error) + uni.showToast({ + title: '请更新至微信最新版本' + }); + } + // #endif + // #ifndef MP-WEIXIN + let url = this.$queue.getData('kefuUrl'); + if (url.indexOf('/pages/') !== -1 || url.indexOf('/my/') !== -1) { + uni.navigateTo({ + url + }); + } else { + //#ifndef H5 + uni.navigateTo({ + url: '/pages/index/webView?url=' + url + }); + //#endif + //#ifdef H5 + window.location.href = url; + //#endif + } + // #endif + } + }, + //退出登录 + TuiLogin() { + let that = this + if (that.userId) { + uni.showModal({ + title: '提示', + content: '确定退出登录吗?', + success: function(res) { + if (res.confirm) { + console.log('用户点击确定'); + uni.removeStorageSync('userName') + uni.removeStorageSync('avatar') + uni.removeStorageSync('userId') + uni.removeStorageSync('token') + uni.removeStorageSync('phone') + uni.removeStorageSync('zhiFuBaoName') + uni.removeStorageSync('zhiFuBao') + uni.removeStorageSync('invitationCode') + uni.removeStorageSync('unionId') + uni.removeStorageSync('openId') + uni.removeStorageSync('isVIP') + uni.showToast({ + title: '退出成功!', + icon: 'none' + }) + that.isLogin = true + that.userName = '匿名' + that.browse = 0 + that.fans = 0 + that.follow = 0 + that.visitor = 0 + that.isVip = false + that.avatar = '../../static/logo.png' + that.userId = uni.getStorageSync('userId') + + } else if (res.cancel) { + console.log('用户点击取消'); + } + } + }) + } else { + uni.showModal({ + title: '提示', + content: '您还未登录,请先登录', + success: function(res) { + if (res.confirm) { + console.log('用户点击确定'); + uni.navigateTo({ + url: '/pages/public/login' + }) + } else if (res.cancel) { + console.log('用户点击取消'); + } + } + }) + } + + + }, + //成为按摩师 跳转商户端 + bindFb() { + if (this.userId) { + uni.navigateTo({ + url: '/pages/my/hehuo' + }); + } else { + uni.showModal({ + title: '提示', + content: '您还未登录,请先登录', + success: function(res) { + if (res.confirm) { + console.log('用户点击确定'); + uni.navigateTo({ + url: '/pages/public/login' + }) + } else if (res.cancel) { + console.log('用户点击取消'); + } + } + }) + } + }, + goNavOrder(index) { + let token = this.$queue.getData('token'); + if (token) { + this.$queue.setData('SelectIndex', index); + uni.switchTab({ + url: '/pages/order/index' + }) + } else { + uni.showModal({ + title: '提示', + content: '您还未登录,请先登录', + success: function(res) { + if (res.confirm) { + console.log('用户点击确定'); + uni.navigateTo({ + url: '/pages/public/login' + }) + } else if (res.cancel) { + console.log('用户点击取消'); + } + } + }) + } + }, + goNav(e, name) { + console.log(e) + if (this.userId) { + uni.navigateTo({ + url: e + }) + } else { + uni.showModal({ + title: '提示', + content: '您还未登录,请先登录', + success: function(res) { + if (res.confirm) { + console.log('用户点击确定'); + uni.navigateTo({ + url: '/pages/public/login' + }) + } else if (res.cancel) { + console.log('用户点击取消'); + } + } + }) + } + }, + goLogin(e) { uni.navigateTo({ - url:'/my/vip/index' + url: e }) }, + getAmount() { + this.$Request.get("/app/userBrowse/selectAmount").then(res => { + if (res.code == 0) { + this.browse = res.data.browse + this.fans = res.data.fans + this.follow = res.data.follow + this.visitor = res.data.visitor + } + }); + }, + getUserInfo() { + this.$Request.get("/app/user/selectUserById").then(res => { + console.log("res.data--->", res.data); + if (res.code == 0) { + this.userName = res.data.userName + this.phone=res.data.phone; + this.invitationCode = res.data.invitationCode + 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.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) + uni.setStorageSync('userName', res.data.userName) + 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) + } else if (res.data.isAuthentication == 1) { + this.renzheng = 1 + uni.setStorageSync("renzheng", this.renzheng) + } else if (res.data.isAuthentication == 2) { + this.renzheng = 2 + uni.setStorageSync("renzheng", this.renzheng) + } else if (res.data.isAuthentication == 3) { + this.renzheng = 3 + uni.setStorageSync("renzheng", this.renzheng) + } else if (res.data.isAuthentication == 4) { + this.renzheng = 4 + uni.setStorageSync("renzheng", this.renzheng) + } else if (res.data.isAuthentication == 5) { + this.renzheng = 5 + uni.setStorageSync("renzheng", this.renzheng) + } else if (res.data.isAuthentication == 6) { + this.renzheng = 6 + uni.setStorageSync("renzheng", this.renzheng) + } + + } + }); + + // #ifdef APP-PLUS + let clientid = plus.push.getClientInfo().clientid; + let sysPhone = 1; + if (plus.os.name.toLowerCase() === 'android') { + sysPhone = 1; + } else { + sysPhone = 2; + } + let userId = this.$queue.getData('userId'); + if (userId) { + this.$Request.postT('/app/user/updateClientId?clientId=' + clientid + '&userId=' + userId + + '&sysPhone=' + sysPhone).then( + res => {}); + } + //#endif + }, + + getIsVip() { + this.$Request.get("/app/UserVip/isUserVip").then(res => { + if (res.code == 0) { + this.isVip = res.data + this.$queue.setData('isVIP',this.isVip) + } + }); + }, chonghi(link){//我的钱包 if(link=='充值'){ uni.navigateTo({ @@ -115,19 +457,20 @@ }) }, meServe(item){ - if(item=="服务套餐"){ - uni.navigateTo({ - url:'/pages/my/servicePackage' - }) - }else if(item=="项目次卡"){ - uni.navigateTo({ - url:'/pages/my/onceCardPackage' - }) - }else if(item=="服务疗程"){ - uni.navigateTo({ - url:'/pages/my/curePackage' - }) - } + uni.navigateTo({ + url:'/pages/my/servicePackage?name='+item + }) + // if(item=="服务套餐"){ + + // }else if(item=="项目次卡"){ + // uni.navigateTo({ + // url:'/pages/my/onceCardPackage?name='+'项目次卡' + // }) + // }else if(item=="服务疗程"){ + // uni.navigateTo({ + // url:'/pages/my/curePackage?name='+'服务疗程' + // }) + // } }, } } diff --git a/pages/my/index1.vue b/pages/my/index1.vue index d2d0900..a48de22 100644 --- a/pages/my/index1.vue +++ b/pages/my/index1.vue @@ -63,10 +63,7 @@ - - - @@ -237,6 +234,7 @@ avatar: '../../static/logo.png', isLogin: true, userName: '匿名', + phone:"18684369159", browse: 0, //浏览数 fans: 0, //粉丝数 follow: 0, //关注数 @@ -522,6 +520,7 @@ console.log("res.data--->", res.data); if (res.code == 0) { this.userName = res.data.userName + this.phone=res.data.phone; this.invitationCode = res.data.invitationCode this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png' this.isAuthentication = res.data.isAuthentication diff --git a/pages/my/onceCardOderDrtail.vue b/pages/my/onceCardOderDrtail.vue deleted file mode 100644 index c03659c..0000000 --- a/pages/my/onceCardOderDrtail.vue +++ /dev/null @@ -1,464 +0,0 @@ - - - \ No newline at end of file diff --git a/pages/my/onceCardPackage.vue b/pages/my/onceCardPackage.vue deleted file mode 100644 index 8e4052d..0000000 --- a/pages/my/onceCardPackage.vue +++ /dev/null @@ -1,387 +0,0 @@ - - - - - - diff --git a/pages/my/serviceOderDrtail.vue b/pages/my/serviceOderDrtail.vue index 9e3ab87..0319762 100644 --- a/pages/my/serviceOderDrtail.vue +++ b/pages/my/serviceOderDrtail.vue @@ -1,17 +1,17 @@