From ca5a226f3ce96ba5ba5a192c8c582021b1859dd7 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Thu, 10 Jul 2025 13:17:33 +0800 Subject: [PATCH] 1 --- locale/en.json | 4 ++- locale/zh-Hans.json | 4 ++- pages_order/payOrder.vue | 14 ++++---- pages_zlx/zlx-form.vue | 45 +++++++++++++++++------ store/store.js | 92 ++++++++++++++++++++++++++---------------------- 5 files changed, 99 insertions(+), 60 deletions(-) diff --git a/locale/en.json b/locale/en.json index c7f3d5e..71522de 100644 --- a/locale/en.json +++ b/locale/en.json @@ -324,7 +324,9 @@ "please_enter_contact": "Please enter contact information", "please_enter_correct_contact": "Please enter correct contact information", "please_enter_id_card": "Please enter ID card number", - "please_enter_correct_id_card": "Please enter correct ID card number" + "please_enter_correct_id_card": "Please enter correct ID card number", + "please_upload_wechat_qr_code": "Please upload WeChat QR code", + "reviewing": "Under Review" } }, "common": { diff --git a/locale/zh-Hans.json b/locale/zh-Hans.json index 46dc252..f4f92a0 100644 --- a/locale/zh-Hans.json +++ b/locale/zh-Hans.json @@ -324,7 +324,9 @@ "please_enter_contact": "请输入联系方式", "please_enter_correct_contact": "请输入正确的联系方式", "please_enter_id_card": "请输入身份证号", - "please_enter_correct_id_card": "请输入正确的身份证号" + "please_enter_correct_id_card": "请输入正确的身份证号", + "please_upload_wechat_qr_code": "请上传微信二维码", + "reviewing": "审核中" } }, "common": { diff --git a/pages_order/payOrder.vue b/pages_order/payOrder.vue index 3a50a5a..109f028 100644 --- a/pages_order/payOrder.vue +++ b/pages_order/payOrder.vue @@ -82,6 +82,7 @@ export default { return { orderId: '', dataInfo: {}, + detail : {}, customStyle: { color: '#FF5858' }, @@ -128,21 +129,22 @@ export default { }, methods: { getTitle() { - if (!this.dataInfo) return '' + if (!this.detail) return '' return this.dataInfo.type == 0 - ? this.$ot(this.dataInfo.activity, 'active', 'title') - : this.$ot(this.dataInfo.travel, 'travel', 'title') + ? this.$ot(this.detail.activity, 'active', 'title') + : this.$ot(this.detail.travel, 'travel', 'title') }, getAddress() { - if (!this.dataInfo) return '' + if (!this.detail) return '' return this.dataInfo.type == 0 - ? this.$ot(this.dataInfo.activity, 'active', 'address') - : this.$ot(this.dataInfo.travel, 'travel', 'address') + ? this.$ot(this.detail.activity, 'active', 'address') + : this.$ot(this.detail.travel, 'travel', 'address') }, getorderInfo() { this.$api('orderInfo', { orderId: this.orderId }, res => { if (res.code == 200) { this.dataInfo = res.result.orderDetails + this.detail = res.result } }) }, diff --git a/pages_zlx/zlx-form.vue b/pages_zlx/zlx-form.vue index 6eb3e24..b588c29 100644 --- a/pages_zlx/zlx-form.vue +++ b/pages_zlx/zlx-form.vue @@ -29,19 +29,19 @@ {{$t('pages_zlx.zlx_form.real_name')}} - + {{$t('pages_zlx.zlx_form.contact_info')}} - + {{$t('pages_zlx.zlx_form.id_card')}} - + @@ -59,7 +59,8 @@ {{$t('pages_zlx.zlx_form.upload_resume')}} + @click="info.state != 0 ? uploadFile() : null" + :class="{'disabled': info.state == 0}">{{$t('pages_zlx.zlx_form.upload_resume')}} @@ -68,7 +69,9 @@ - {{$t('pages_zlx.zlx_form.upload_image')}} + {{$t('pages_zlx.zlx_form.upload_image')}} @@ -83,6 +86,7 @@ :maxCount="9" width="180rpx" height="180rpx" + :disabled="info.state == 0" @afterRead="afterRead" @delete="deleteImage"> @@ -97,7 +101,9 @@ {{$t('pages_zlx.zlx_form.agreement_link')}} - + @@ -105,13 +111,20 @@ - - + + + - - + + + + + + + + @@ -123,6 +136,9 @@ btnCustomStyle:{ color:'#FF5858' }, + reviewingBtnStyle:{ + color:'#999999' + }, info:{ name:'', phone:'', @@ -245,6 +261,7 @@ if(!this.$utils.verificationPhone(this.info.phone)) return this.$Toast(this.$t('pages_zlx.zlx_form.please_enter_correct_contact')) // 请输入正确的联系方式 if(!this.info.cardNo) return this.$Toast(this.$t('pages_zlx.zlx_form.please_enter_id_card')) // 请输入身份证号 if(this.info.cardNo.length != 18) return this.$Toast(this.$t('pages_zlx.zlx_form.please_enter_correct_id_card')) // 请输入正确的身份证号 + if(!this.info.img) return this.$Toast(this.$t('pages_zlx.zlx_form.please_upload_wechat_qr_code')) // 请上传微信二维码 let params = { name:this.info.name, phone:this.info.phone, @@ -390,6 +407,10 @@ font-weight: 400; font-size: 28rpx; color: #FF5858; + &.disabled { + color: #999999; + cursor: not-allowed; + } } } .docx-title{ @@ -435,6 +456,10 @@ width: 31rpx; height: 31rpx; } + &.disabled { + opacity: 0.5; + cursor: not-allowed; + } } } } diff --git a/store/store.js b/store/store.js index e5dd708..40ce343 100644 --- a/store/store.js +++ b/store/store.js @@ -9,29 +9,29 @@ import i18n from '@/locale/index.js' //Vuex.Store 构造器选项 const store = new Vuex.Store({ state: { - token:uni.getStorageSync('token') || '', + token: uni.getStorageSync('token') || '', configList: {}, //配置列表 - userInfo : uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo')) : {}, //用户信息 + userInfo: uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo')) : {}, //用户信息 // riceInfo : {},//用户相关信息 - areaList : [],//地区列表信息 - selectArea : {},//当前选择的地区 + areaList: [], //地区列表信息 + selectArea: {}, //当前选择的地区 }, getters: { - userInfo:state => state.userInfo, - isLogin:state => state.token ? true : false + userInfo: state => state.userInfo, + isLogin: state => state.token ? true : false }, mutations: { // 初始化配置 - initConfig(state){ + initConfig(state) { api('getConfig', res => { - if(res.code == 200){ + if (res.code == 200) { res.result.forEach(n => { state.configList[n.keyName] = n.keyContent }) } console.log("initConfig===============", res); }) - + // let config = ['getPrivacyPolicy', 'getUserAgreement'] // config.forEach(k => { // api(k, res => { @@ -41,59 +41,60 @@ const store = new Vuex.Store({ // }) // }) }, - login(state,commit){ + login(state, commit) { uni.showLoading({ title: i18n.t('common.logging_in') // 登录中... }) uni.login({ success(res) { - if(res.errMsg != "login:ok"){ + if (res.errMsg != "login:ok") { return } - + let data = { - code : res.code + code: res.code } - - if(uni.getStorageSync('shareId')){ + + if (uni.getStorageSync('shareId')) { data.shareId = uni.getStorageSync('shareId') } - + api('wxLogin', data, res => { - + uni.hideLoading() - - if(res.code != 200){ + + if (res.code != 200) { return } state.userInfo = res.result.userInfo state.token = res.result.token uni.setStorageSync('token', res.result.token) - if(!state.userInfo.nickName || !state.userInfo.headImage){ + if (!state.userInfo.nickName || !state.userInfo.headImage) { uni.navigateTo({ url: '/pages_login/wxUserInfo' }) - }else{ + } else { uni.switchTab({ - url:'/pages/index/index' + url: '/pages/index/index' }) } }) } }) }, - getUserInfo(state){ + getUserInfo(state) { api('getInfo', res => { - if(res.code == 200){ - uni.setStorageSync('userInfo',JSON.stringify(res.result)) + if (res.code == 200) { + uni.setStorageSync('userInfo', JSON.stringify(res.result)) state.userInfo = res.result - - if(!state.userInfo.nickName || - !state.userInfo.headImage || - !state.userInfo.phone || - !state.userInfo.sex){ + + if (!state.userInfo.nickName || + !state.userInfo.headImage || + !state.userInfo.phone || + !state.userInfo.sex) { uni.showToast({ - title: i18n.t('pages_order.huodong_detail.complete_info_required') // 请您先完善必要信息 + title: i18n.t( + 'pages_order.huodong_detail.complete_info_required') // 请您先完善必要信息 }) uni.navigateTo({ url: '/pages_login/wxUserInfo' @@ -112,7 +113,7 @@ const store = new Vuex.Store({ // }) // }, // 退出登录 - logout(state){ + logout(state) { uni.showModal({ title: i18n.t('common.confirm_logout'), // 确认退出登录吗 success(r) { @@ -128,25 +129,32 @@ const store = new Vuex.Store({ }) }, // 查询地区 - getArea(state, fn){ + getArea(state, fn) { api('getArea', res => { - if(res.code == 200){ - - res.result.unshift({ - city : i18n.t('common.all'), // 全部 - id : '', - }) - + if (res.code == 200) { + + res.result.unshift({ + city: i18n.t('common.all'), // 全部 + id: '', + }) + state.areaList = res.result fn && fn(res.result) } }) }, - setArea(state, index){ + setArea(state, index) { state.selectArea = state.areaList[index] }, + hanlderManager(state, fn){ + api('joinRecruitInfo') + .then(res => { + fn && fn(res) + }) + }, + }, + actions: { }, - actions: {}, }) export default store \ No newline at end of file