From 72f2abafea3ce8c91d9b689821a4508bdc0f7d9f Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期五, 12 七月 2024 16:59:41 +0800 Subject: [PATCH] feat:修改细节 --- pages/login/login.vue | 47 +++++++++-------------------------------------- 1 files changed, 9 insertions(+), 38 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 162aa5f..14b9e25 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -18,7 +18,7 @@ text="涓�閿粦瀹氭祴璇�"></u-button> </view> --> <view class="register" - @click="registerClick"><text>娉ㄥ唽</text></view> + @click="PrivacyAgreementHandle" :loading="zhuceLoading"><text>娉ㄥ唽</text></view> <view class="login-bottom-box"> <view class="copyright">鏃犱汉鍊煎畧寰俊灏忕▼搴�</view> <view class="copyright">灏忕▼搴忎粎渚涘凡鎷ユ湁绯荤粺璐﹀彿鐗瑰畾鍐呴儴浜哄憳浣跨敤</view> @@ -57,21 +57,6 @@ @confirm="bindWxConfirm" @cancel="bindWxCancel"></u-modal> </view> - <!-- 娉ㄥ唽鍚屾剰鑾峰彇闅愮淇℃伅 --> - <view class="privacy"> - <u-modal :show="privacyShow" - :title="privacyTitle" - showCancelButton - @confirm="privacyConfirm" - @cancel="privacyCancel" - confirmText="鍚屾剰" - cancelText="涓嶅悓鎰�"> - <view class="slot-content" - @click="PrivacyAgreementHandle"> - <rich-text :nodes="PrivacyAgreement"></rich-text> - </view> - </u-modal> - </view> </view> </template> @@ -79,7 +64,7 @@ import { apiLoginWx, apiLoginPassword } from '@/api/publicInterface.js'; import { mapMutations } from 'vuex'; import userPassword from './userPassword.vue'; - import { setToken, setRefreshToken, setUsernameKey, setCustomerId, redirectHome } from '@/utils/status.js'; + import { setToken, setRefreshToken, setUsernameKey, setCustomerId, redirectHome} from '@/utils/status.js'; export default { data() { return { @@ -91,9 +76,7 @@ bindWxContent: '濡傛灉宸叉嫢鏈夌郴缁熻处鍙凤紝鍙互鐩存帴璺宠浆缁戝畾寰俊椤甸潰', appid: "", secret: "", - privacyShow: false, - privacyTitle: "娉ㄦ剰", - PrivacyAgreement: `<p>娉ㄥ唽鍗充唬琛ㄦ偍鍚屾剰鎴戜滑鐢ㄦ埛闅愮鍗忚</p><p class='PrivacyAgreement'>鐐瑰嚮鏌ョ湅鐢ㄦ埛闅愮鍗忚</p>` + zhuceLoading: false, //娉ㄥ唽 }; }, components: { @@ -157,6 +140,7 @@ this.setUserTabbar(res.data.type); uni.setStorageSync('roleType', res.data.type); setCustomerId(res.data.customerid); + setU uni.hideLoading(); //璺宠浆椤甸潰 this.$nextTick(() => { @@ -187,28 +171,15 @@ openPopup() { console.log('鎵撳紑浜�'); }, - privacyConfirm() { - uni.navigateTo({ - url: '/pages/register/register' - }); - }, - privacyCancel() { - this.privacyShow = false - }, - registerClick() { - this.privacyShow = true - }, PrivacyAgreementHandle() { + this.zhuceLoading = true uni.navigateTo({ url: '/pages/login/PrivacyAgreementText/PrivacyAgreementText' }) + setTimeout(() => { + this.zhuceLoading = false + },1000) }, - // 姝ゆ柟娉曞彧杩涜缁戝畾娴嬭瘯锛屽凡缁忛�氳繃鎵爜瑙e喅 - jumpBindBack() { - uni.navigateTo({ - url: '/pages/bindBackground/bindBackground' - }) - } } }; </script> @@ -350,4 +321,4 @@ } } } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.1