解决bug
This commit is contained in:
parent
3f0d19c4bd
commit
9b2969cbf5
|
@ -18,8 +18,8 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="index-top-right">
|
||||
<image src="../../static/index-nav-4.png" mode="widthFix"></image>
|
||||
<image src="../../static/index-nav-5.png" mode="widthFix"></image>
|
||||
<image src="../../static/index-nav-4.png" @click="goChat()" mode="widthFix"></image>
|
||||
<!-- <image src="../../static/index-nav-5.png" mode="widthFix"></image> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="padding-top-sm flex align-center index-mian">
|
||||
|
@ -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);
|
||||
|
|
|
@ -45,9 +45,9 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<empty v-if="dataList.length==0"></empty>
|
||||
</template>
|
||||
</t-refresh>
|
||||
<empty v-if="dataList.length==0"></empty>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue