From be379b2ba9bcb1a0754f9296a13f39a46a49fa1a Mon Sep 17 00:00:00 2001 From: dengjie <209192278@qq.com> Date: Fri, 3 Feb 2023 16:05:41 +0800 Subject: [PATCH] =?UTF-8?q?dengjie=20commit=20=EF=BC=9A=20=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E5=92=8C=E5=8E=82=E5=AE=B6=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E4=B8=8B=E6=96=B9=E7=9A=84=E8=81=94=E7=B3=BB=E5=AE=A2?= =?UTF-8?q?=E6=9C=8D=E6=A0=B7=E5=BC=8F=E5=8F=8A=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 2 +- .../certifiedCjDetail/certifiedCjDetail.vue | 33 +++++++++++++++++-- .../detail/productsDetail/productsDetail.vue | 31 ++++++++++++++++- 3 files changed, 62 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index acc031c..b23d8bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,7 +4,7 @@ "dependencies": { "uview-ui": { "version": "2.0.35", - "resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.35.tgz", + "resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.35.tgz", "integrity": "sha512-OfMttN3XkHvQosXfd8bjz8ASTvypPoGzBWmQZBJ871bYMCA7t2bDFPlzjbxUj/5ykAjKnZ8zMUapSwSisVt99g==" } } diff --git a/packageReport/certifiedCjDetail/certifiedCjDetail.vue b/packageReport/certifiedCjDetail/certifiedCjDetail.vue index b633aff..2466bb7 100644 --- a/packageReport/certifiedCjDetail/certifiedCjDetail.vue +++ b/packageReport/certifiedCjDetail/certifiedCjDetail.vue @@ -21,10 +21,17 @@ - + 联系客服 + + + {{phone}} + 是否拨打客服电话 + + @@ -44,7 +51,9 @@ id: '', detailList: [], imgUrl: '', - isLoad: true + isLoad: true, + showCall: false, + phone: '138 1222 222', } }, onLoad(option) { @@ -84,6 +93,26 @@ uni.reLaunch({ url: '/pages/index/index' }) + }, + // 联系客服模态框 + showModal() { + this.showCall = true + }, + confirmCall() { + this.showCall = false + let phone = '‭1381222222‬' + uni.makePhoneCall({ + phoneNumber: phone, + success: function() { + console.log('拨打电话成功'); + }, + fail() { + console.log('打电话失败了'); + } + }) + }, + cancelCall() { + this.showCall = false } } } diff --git a/pages/detail/productsDetail/productsDetail.vue b/pages/detail/productsDetail/productsDetail.vue index 252cad2..976af68 100644 --- a/pages/detail/productsDetail/productsDetail.vue +++ b/pages/detail/productsDetail/productsDetail.vue @@ -58,10 +58,17 @@ {{detailList.pub_time}} - + 联系客服 + + + {{phone}} + 是否拨打客服电话 + + @@ -92,6 +99,8 @@ detailList: [], isLoad: true, showM: false, + showCall: false, + phone: '138 1222 222', content: '您暂无权限访问,请升级VIP访问' } }, @@ -188,6 +197,26 @@ uni.navigateTo({ url: '../../../packageMy/memberCenter/memberCenter?ask=' + 1 }) + }, + // 联系客服模态框 + showModal() { + this.showCall = true + }, + confirmCall() { + this.showCall = false + let phone = '‭1381222222‬' + uni.makePhoneCall({ + phoneNumber: phone, + success: function() { + console.log('拨打电话成功'); + }, + fail() { + console.log('打电话失败了'); + } + }) + }, + cancelCall() { + this.showCall = false } } }