From bb81088ba796772ec65c00278f375a3916cdadc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 24 Sep 2025 15:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=B8=8B=E7=9A=84=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/common/common.js | 10 ++++ .../components/form-input/phone.vue | 44 +++++++++-------- pages/plugins/video/detail/detail.vue | 24 ++++++---- pages/plugins/video/index/index.vue | 47 ++++--------------- pages/plugins/video/search/search-record.vue | 24 ++++++---- pages/plugins/video/search/search.vue | 22 +++++---- 6 files changed, 89 insertions(+), 82 deletions(-) diff --git a/common/js/common/common.js b/common/js/common/common.js index 4cc9bc48..a3c6e982 100644 --- a/common/js/common/common.js +++ b/common/js/common/common.js @@ -1007,4 +1007,14 @@ export const time_stamp = (time, date_style = 'horizontal', date_type) => { } else { return `${year}${style.year}${month}${style.month}${day}${style.day}${hours}${style.hour}${minutes}${style.minute}${seconds}${date_style == 'chinese' ? style.second : ''}`; } +} + + +export const video_get_top_left_padding = () => { + var pages = getCurrentPages(); + if (pages.length > 1) { + return 'padding-left: 30rpx;box-sizing: border-box;'; + } else { + return 'padding-left: 140rpx;box-sizing: border-box;'; + } } \ No newline at end of file diff --git a/pages/form-input/components/form-input/phone.vue b/pages/form-input/components/form-input/phone.vue index c29a568d..e038a96d 100644 --- a/pages/form-input/components/form-input/phone.vue +++ b/pages/form-input/components/form-input/phone.vue @@ -22,10 +22,10 @@ - + - + @@ -86,12 +86,12 @@ }; }, watch: { - propValue: { - handler(newVal) { - this.init(); - }, - deep: true - }, + // propValue: { + // handler(newVal) { + // this.init(); + // }, + // deep: true + // }, propKey(val) { // 初始化 this.init(); @@ -199,7 +199,7 @@ forminput_item_id: this.propDataId, accounts: this.form_value, type: 'sms', - verify:this.com_data.is_img_sms_verification == '1' ? this.form_input_image_verify_value : '' + verify: this.com_data.is_img_sms_verification == '1' ? this.form_input_image_verify_value : '' } let self = this; uni.request({ @@ -211,11 +211,11 @@ uni.hideLoading(); if (res.data.code == 0) { // 是否开启图片验证码 - if (this.com_data.is_img_sms_verification == '1') { - this.setData({ + if (self.com_data.is_img_sms_verification == '1') { + self.setData({ popup_image_verify_status: false, }); - this.z_index_change(''); + self.z_index_change(''); } // 倒计时处理 var temp_time = this.verify_time_total; @@ -234,24 +234,30 @@ } }, 1000); } else { - this.setData({ - verify_submit_text: this.$t('login.login.s665h5'), + self.setData({ + verify_submit_text: self.$t('login.login.s665h5'), verify_disabled: false, form_input_image_verify_value: '', }); - this.image_verify_event('sms'); + // 是否开启图片验证码 + if (self.com_data.is_img_sms_verification == '1') { + self.image_verify_event('sms'); + } app.globalData.showToast(res.data.msg); } }, fail: () => { uni.hideLoading(); - this.setData({ - verify_submit_text: this.$t('login.login.s665h5'), + self.setData({ + verify_submit_text: self.$t('login.login.s665h5'), verify_disabled: false, form_input_image_verify_value: '', }); - this.image_verify_event('sms'); - app.globalData.showToast(this.$t('common.internet_error_tips')); + // 是否开启图片验证码 + if (self.com_data.is_img_sms_verification == '1') { + self.image_verify_event('sms'); + } + app.globalData.showToast(self.$t('common.internet_error_tips')); }, }); }, diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index 19bf66bd..9db46659 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -3,10 +3,14 @@ + + - + + {{ header_padding_left }} + @@ -123,7 +127,7 @@