From 6d5ad9150466d87611a7d71e39e5fbdd6f0801b6 Mon Sep 17 00:00:00 2001 From: Tuzki <1720599558@qq.com> Date: Mon, 9 Oct 2023 18:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/personcenter/personcenter.vue | 148 ++++++++++++++++-- .../scenic/scenicdetial/scenicdetial.vue | 4 +- 2 files changed, 136 insertions(+), 16 deletions(-) diff --git a/pages/personcenter/personcenter.vue b/pages/personcenter/personcenter.vue index c5a892c..2ad9267 100644 --- a/pages/personcenter/personcenter.vue +++ b/pages/personcenter/personcenter.vue @@ -35,8 +35,6 @@ 我的应用 - - @@ -44,13 +42,13 @@ 我的投诉 - + @@ -59,7 +57,30 @@ - + + + + 咨询电话:0319—3926666 + + + + 投诉电话:0319—3928888 + + + + 救援电话:0319—3928888 + + + + @@ -74,6 +95,8 @@ export default { data() { that = this; return { + name: this.$param.cityName, + src: '../../static/images/' + this.$param.cityPy + '.png', avatarUrl: '', url: '', username: '', @@ -96,7 +119,7 @@ export default { lineSelectStr: '', imgBase64: '', adminId: '', - isAdminLogin: false, + isAdminLogin: false }; }, onShow() { @@ -117,8 +140,28 @@ export default { uni.removeStorageSync('unionid'); uni.removeStorageSync('headimgurl'); } + if (options.isRedirect == '1') { + uni.switchTab({ + url: '/pages/personcenter/personcenter' + }); + } }, methods: { + getPhone: function(type) { + if (type == 'zixun') { + uni.makePhoneCall({ + phoneNumber: '03193926666' //仅为示例,并非真实的电话号码 + }) + } else if (type == 'tousu') { + uni.makePhoneCall({ + phoneNumber: '03193928888' //仅为示例,并非真实的电话号码 + }) + } else if (type == 'jiuyuan') { + uni.makePhoneCall({ + phoneNumber: '03193928888' //仅为示例,并非真实的电话号码 + }) + } + }, changean(type) { let this_ = this; if (!uni.getStorageSync('unionid') || uni.getStorageSync('unionid') == '' || uni.getStorageSync('unionid') == null) { @@ -204,7 +247,7 @@ export default { data: datas, method: 'post', success: function (res) { - console.log(res) + console.log(res); const obj = JSON.parse(res.data.msg); this_.isLogin = true; const da = { @@ -312,14 +355,20 @@ export default { } else if (obj == 'tousu') { if (!uni.getStorageSync('unionid') || uni.getStorageSync('unionid') == '' || uni.getStorageSync('unionid') == null) { uni.showToast({ - title: '请先授权', + title: '请稍后...', icon: 'none' }); - return; + this.oauthUser(); + setTimeout(() => { + uni.navigateTo({ + url: '/sunPackIndex/suggest/sug_list' + }); + }, 4000); + } else { + uni.navigateTo({ + url: '/sunPackIndex/suggest/sug_list' + }); } - uni.navigateTo({ - url: '/sunPackIndex/suggest/sug_list' - }); } else if (obj == 'myReserve') { console.log(uni.getStorageSync('unionid')); if (!uni.getStorageSync('unionid') || uni.getStorageSync('unionid') == '' || uni.getStorageSync('unionid') == null) { @@ -471,6 +520,77 @@ export default {