diff --git a/pages/index/index.vue b/pages/index/index.vue index 010e5e5..1d28452 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -18,8 +18,8 @@ - - + + @@ -483,6 +483,57 @@ // } }, methods: { + 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 = that.$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 + } + }, calculateDistance(lat1, lon1, lat2, lon2) { // 将经纬度转换为弧度 const radLat1 = lat1 * (Math.PI / 180); diff --git a/pages/my/indextaociliaoList.vue b/pages/my/indextaociliaoList.vue index 3ead65a..7d097c7 100644 --- a/pages/my/indextaociliaoList.vue +++ b/pages/my/indextaociliaoList.vue @@ -45,9 +45,9 @@ + - @@ -113,7 +113,8 @@ that.$Request.get("/app/massage/package/findPage", { type:that.typeData, page:that.page, - limit:that.limit + limit:that.limit, + title:that.searchValue }).then(res => { if (res.code == 0) { if (res.data) { @@ -160,12 +161,14 @@ /deep/.refresh-body{ height: 100% !important; border-top: 2px solid #f7f7f7; + margin: 50px 0px; } .content-view{ width: 100%; height: 100vh; overflow: auto; background-color: #f7f7f7; + position: relative; } .item-view-bottom-btn{ text-align: center; @@ -409,6 +412,8 @@ align-items: center; justify-content: space-between; background-color: #fff; + position: fixed; + z-index: 999; }