| | |
| | | |
| | | <view class="form-group select-group"> |
| | | <view class="label-row"><text class="label">所在城市</text><text class="required">*</text></view> |
| | | <view class="select-row" @click="showAreaPicker = true"> |
| | | <view class="select-row" :class="{ disabled: isShopRejected }" @click="!isShopRejected && (showAreaPicker = true)"> |
| | | <text class="select-text" :class="{ placeholder: !fullAreaName }">{{ fullAreaName || '请选择省市区' }}</text> |
| | | <u-icon name="arrow-right" size="18" color="#9FA6B2"></u-icon> |
| | | </view> |
| | |
| | | |
| | | <view class="form-group subject-first-group"> |
| | | <view class="label-row"><text class="label">门店类型</text><text class="required">*</text></view> |
| | | <view class="switch-row type-switch-row"> |
| | | <view class="switch-pill" :class="{ active: form.companyType ===0 }" @tap="form.companyType =0">个人</view> |
| | | <view class="switch-pill" :class="{ active: form.companyType ===1}" @tap="form.companyType =1">企业</view> |
| | | <view class="switch-row type-switch-row" :class="{ disabled: isShopRejected }"> |
| | | <view class="switch-pill" :class="{ active: form.companyType ===0 }" @tap="!isShopRejected && (form.companyType =0)">个人</view> |
| | | <view class="switch-pill" :class="{ active: form.companyType ===1}" @tap="!isShopRejected && (form.companyType =1)">企业</view> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | fullAreaName() { |
| | | const arr = [this.form.provinceName, this.form.cityName, this.form.areaName].filter(Boolean) |
| | | return arr.join('/') |
| | | }, |
| | | isShopRejected() { |
| | | return this.userInfo && this.userInfo.shopAuditStatus === 5 |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | uni.navigateBack() |
| | | }, 1500) |
| | | }else { |
| | | uni.showToast({ title: res.msg || '提交失败', icon: 'none' }) |
| | | uni.showToast({ title: res.message || '提交失败', icon: 'none' }) |
| | | } |
| | | } catch (error) { |
| | | uni.hideLoading() |
| | |
| | | .type-switch-row { |
| | | margin-top: 32rpx; |
| | | } |
| | | |
| | | .type-switch-row.disabled, |
| | | .select-row.disabled { |
| | | opacity: 0.5; |
| | | pointer-events: none; |
| | | } |
| | | |
| | | .switch-pill { |
| | | width: 208rpx; |