|
|
@@ -1,8 +1,6 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
- <cu-custom :bgColor="title == '申请入驻' ? 'bg-gradual-blue1' : 'bg-fff'" :isBack="true">
|
|
|
- <block slot="content">{{ title }}</block>
|
|
|
- </cu-custom>
|
|
|
+ <view class='home-content'>
|
|
|
+ <u-navbar :title="title" :autoBack="true" :placeholder="true" bgColor="linear-gradient( 0deg, #D6E9FF 0%, #FFFFFF 100%);"></u-navbar>
|
|
|
<view class="progress" v-if="!merchantId">
|
|
|
<view class="progress-style progress-bag">
|
|
|
<view v-if="tab == 1" class="progress-icon"></view>
|
|
|
@@ -37,7 +35,7 @@
|
|
|
</view>
|
|
|
</view> -->
|
|
|
|
|
|
- <view class="borderRadiu margin-top1" style="height: 67vh;overflow-y: auto;">
|
|
|
+ <view class="borderRadiu margin-top1">
|
|
|
<view class="flex cu-form-group ">
|
|
|
<view class="content ">
|
|
|
<text class="text-bold text-500 head-title">提交经营主体资料</text>
|
|
|
@@ -48,9 +46,8 @@
|
|
|
<view class="title" style="text-align: center;">营业执照</view>
|
|
|
<view style="border-bottom: 1px solid #EEEEEE;">
|
|
|
<view class="business-img flex align-center">
|
|
|
- <image :src="businessLicenseImg ? businessLicenseImg : '/static/login/yingyezhizhao.png'" mode=""
|
|
|
- @click="businessChange('businessLicense')">
|
|
|
- </image>
|
|
|
+ <image :src="businessLicenseImg ? businessLicenseImg : '/static/login/yingyezhizhao.png'" mode="" v-if='form.localMerchantInfoExamine.status==0'></image>
|
|
|
+ <image :src="businessLicenseImg ? businessLicenseImg : '/static/login/yingyezhizhao.png'" mode="" v-else @click="businessChange('businessLicense')"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="business-prompt">
|
|
|
@@ -59,43 +56,49 @@
|
|
|
</view>
|
|
|
<view class=" cu-form-group">
|
|
|
<view class="title"> 主体类型</view>
|
|
|
- <view style="display: flex;width: 74%;justify-content: space-between;" @click="showSelectLocality = true">
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ typeLabel }}</text>
|
|
|
+
|
|
|
+ <view style="display: flex;width: 74%;justify-content: space-between;" @click="showSelectLocality = true" v-else>
|
|
|
<view style="font-size: 30rpx;">
|
|
|
<text v-if="typeLabel"> {{ typeLabel }}</text>
|
|
|
<text v-else class='phone-placeholder'>请选择主体类型</text>
|
|
|
</view>
|
|
|
<u-icon name="arrow-right" style="margin-left: 17rpx;color: #C7C6CA"></u-icon>
|
|
|
</view>
|
|
|
+
|
|
|
<!-- <u-select v-model="showSelectLocality" :list="selectLocality" @confirm="confirmLocality"></u-select> -->
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">公司名称</view>
|
|
|
- <input placeholder="请输入公司名称" v-model="form.corporateName" name="input" placeholder-class="phone-placeholder"></input>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.corporateName }}</text>
|
|
|
+ <input placeholder="请输入公司名称" v-model="form.corporateName" name="input" placeholder-class="phone-placeholder" v-else/>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">统一代码</view>
|
|
|
- <input placeholder="请输入统一社会信用代码" v-model="form.creditCode" name="input" placeholder-class="phone-placeholder"></input>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.creditCode }}</text>
|
|
|
+ <input placeholder="请输入统一社会信用代码" v-model="form.creditCode" name="input" placeholder-class="phone-placeholder" v-else/>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">证件期限 </view>
|
|
|
<!-- <uni-data-checkbox v-model="form.lifespan" :localdata="lifespanOption"></uni-data-checkbox> -->
|
|
|
<radio-group @change="typeChang($event, 'lifespanType')" v-model="form.lifespanType">
|
|
|
<label class="margin-left-sm">
|
|
|
- <radio :class="form.lifespanType == '1' ? 'checked blue' : ''"
|
|
|
- :checked="form.lifespanType == '1' ? true : false" value="1"></radio>
|
|
|
+ <radio :class="form.lifespanType == '1' ? 'checked blue' : 'transparent'"
|
|
|
+ :checked="form.lifespanType == '1' ? true : false" value="1" ></radio>
|
|
|
<!-- <checkbox class=' blue' :class="form.type?'checked':''" :checked="form.type?true:false" value="1"></checkbox> -->
|
|
|
<text class="margin-left-sm">长期有效</text>
|
|
|
</label>
|
|
|
<label class="margin-left-sm">
|
|
|
- <radio :class="form.lifespanType == '2' ? 'checked blue' : ''"
|
|
|
- :checked="form.lifespanType == '2' ? true : false" value="2"></radio>
|
|
|
+ <radio :class="form.lifespanType == '2' ? 'checked blue' : 'transparent'"
|
|
|
+ :checked="form.lifespanType == '2' ? true : false" value="2" ></radio>
|
|
|
<text class="margin-left-sm">固定期限</text>
|
|
|
</label>
|
|
|
</radio-group>
|
|
|
</view>
|
|
|
<view class="cu-form-group" v-if="form.lifespanType == 2">
|
|
|
<view class="title">有效期起</view>
|
|
|
- <view style="display: flex;width: 74%;justify-content: space-between;" @click="selectDate">
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.lifespanBegin }}--{{form.lifespanEnd}}</text>
|
|
|
+ <view style="display: flex;width: 74%;justify-content: space-between;" @click="selectDate" v-else>
|
|
|
<view style="font-size: 30rpx;">
|
|
|
<text v-if="form.lifespanBegin"> {{ form.lifespanBegin }}--{{form.lifespanEnd}}</text>
|
|
|
<text v-else style="color: grey">请选择</text>
|
|
|
@@ -106,8 +109,9 @@
|
|
|
</view>
|
|
|
<view class="cu-form-group" style="display: block;">
|
|
|
<view class="title">经营范围</view>
|
|
|
+
|
|
|
<view class="scope" style="width: 100%;height: auto;">
|
|
|
- <u-input v-model="form.businessScope" type="textarea" placeholder-class="phone-placeholder"
|
|
|
+ <u-input v-model="form.businessScope" type="textarea" placeholder-class="phone-placeholder" :disabled='form.localMerchantInfoExamine.status==0'
|
|
|
style="width: 100%;min-height: 165rpx;max-height: 300rpx; background-color:#F7F8FC;padding: 0 16rpx;margin: 0;overflow-y: auto;" />
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -126,23 +130,29 @@
|
|
|
</view>
|
|
|
<view class="cu-form-group ">
|
|
|
<view class="title">法人姓名</view>
|
|
|
- <input placeholder="请输入法人姓名" v-model="form.legalPerson" name="input" placeholder-class="phone-placeholder"></input>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.legalPerson }}</text>
|
|
|
+ <input placeholder="请输入法人姓名" v-model="form.legalPerson" name="input" placeholder-class="phone-placeholder" v-else/>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title">法人证件号</view>
|
|
|
- <input placeholder="请输入法人证件号" v-model="form.legalPersonCode" name="input" placeholder-class="phone-placeholder"></input>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.legalPersonCode }}</text>
|
|
|
+ <input placeholder="请输入法人证件号" v-model="form.legalPersonCode" name="input" placeholder-class="phone-placeholder" v-else/>
|
|
|
</view>
|
|
|
<view class="customize">
|
|
|
<view class="title">法人证件照片</view>
|
|
|
<view style="padding: 16upx 0;border-bottom: 1px solid #EEEEEE;">
|
|
|
<view class="flex upload justify-between">
|
|
|
<view class="imgOcr-border">
|
|
|
+ <image :src="identityOneImg ? identityOneImg : '/static/login/code1.png'" mode=""
|
|
|
+ v-if='form.localMerchantInfoExamine.status==0'></image>
|
|
|
<image :src="identityOneImg ? identityOneImg : '/static/login/code1.png'" mode=""
|
|
|
- @click="businessChange('identityOne')"></image>
|
|
|
+ @click="businessChange('identityOne')" v-else></image>
|
|
|
</view>
|
|
|
<view class="imgOcr-border">
|
|
|
<image :src="identityTwoImg ? identityTwoImg : '/static/login/code2.png'" mode=""
|
|
|
- @click="businessChange('identityTwo')"></image>
|
|
|
+ v-if='form.localMerchantInfoExamine.status==0'></image>
|
|
|
+ <image :src="identityTwoImg ? identityTwoImg : '/static/login/code2.png'" mode=""
|
|
|
+ @click="businessChange('identityTwo')" v-else></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -168,7 +178,8 @@
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>门店名称</view>
|
|
|
- <input placeholder="请输入门店名称" v-model="form.storeName" name="input" placeholder-class="phone-placeholder"></input>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.storeName }}</text>
|
|
|
+ <input placeholder="请输入门店名称" v-model="form.storeName" name="input" placeholder-class="phone-placeholder" v-else/>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>所在地区</view>
|
|
|
@@ -189,10 +200,15 @@
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>店铺面积</view>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.storeExtent }}</text>
|
|
|
<input placeholder="请输入店铺面积" style="width: 200rpx !important;" v-model="form.storeExtent"
|
|
|
- name="input" placeholder-class="phone-placeholder"></input>㎡
|
|
|
+ name="input" placeholder-class="phone-placeholder" v-else />㎡
|
|
|
</view>
|
|
|
- <view class="cu-form-group address-box" @click="selectAddress">
|
|
|
+ <view class="cu-form-group address-box" v-if='form.localMerchantInfoExamine.status==0'>
|
|
|
+ <view class="title"><span>*</span>地理位置</view>
|
|
|
+ <tdmap :allowSelection="false" :showCoordinates="false" :key="mapKey" style="height: 300rpx;pointer-events: none"></tdmap>
|
|
|
+ </view>
|
|
|
+ <view class="cu-form-group address-box" @click="selectAddress" v-else>
|
|
|
<view class="title"><span>*</span>地理位置</view>
|
|
|
<tdmap :allowSelection="false" :showCoordinates="false" :key="mapKey" style="height: 300rpx;pointer-events: none"></tdmap>
|
|
|
</view>
|
|
|
@@ -206,17 +222,20 @@
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>姓名</view>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.leaderName }}</text>
|
|
|
<input placeholder="门店负责人姓名" v-model="form.leaderName" name="input"
|
|
|
- placeholder-class="phone-placeholder"/>
|
|
|
+ placeholder-class="phone-placeholder" v-else/>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>手机号</view>
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.storePhone }}</text>
|
|
|
<input placeholder="门店负责人手机号" v-model="form.storePhone" name="input"
|
|
|
- placeholder-class="phone-placeholder"/>
|
|
|
+ placeholder-class="phone-placeholder" v-else/>
|
|
|
</view>
|
|
|
- <view class="cu-form-group" @click="openClass">
|
|
|
+ <view class="cu-form-group" >
|
|
|
<view class="title"><span>*</span>分类</view>
|
|
|
- <view class="u-flex-1 u-flex u-row-between">
|
|
|
+ <text class='edit-class' v-if='form.localMerchantInfoExamine.status==0'> {{ form.categoryName }}</text>
|
|
|
+ <view class="u-flex-1 u-flex u-row-between" v-else @click="openClass">
|
|
|
<view style="font-size: 30rpx;">
|
|
|
<text v-if="form.categoryName"> {{ form.categoryName }}</text>
|
|
|
<text v-else class="phone-placeholder">请选择分类</text>
|
|
|
@@ -224,6 +243,7 @@
|
|
|
<u-icon name="arrow-right" style="margin-left: 17rpx;color: #999"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -235,7 +255,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="business-img flex align-center">
|
|
|
- <Upload width="360" height="218" :maxCount="1" :fileList.sync="item.specialArr" delIcon='trash' :showProgress='false'
|
|
|
+ <image class='img' :src="item.special ? item.special : '/static/login/shiping.png'" mode="" v-if='form.localMerchantInfoExamine.status==0'></image>
|
|
|
+ <Upload width="360" height="218" :maxCount="1" :fileList.sync="item.specialArr" delIcon='trash' :showProgress='false' v-else
|
|
|
:isImage='true' @complete="onUpload($event, item)" @loadIng='loadIng'>
|
|
|
<image class='img' :src="item.special ? item.special : '/static/login/shiping.png'" mode=""></image>
|
|
|
</Upload>
|
|
|
@@ -957,10 +978,8 @@
|
|
|
realname: userInfo.realname
|
|
|
})
|
|
|
this.$store.commit('SET_AVATAR', userInfo.avatar)
|
|
|
- uni.showToast({
|
|
|
- icon: 'none',
|
|
|
- title: res.data.message
|
|
|
- })
|
|
|
+
|
|
|
+ this.$tip.success(res.data.result || '成功')
|
|
|
this.merchantId= result.localMerchantInfo.id
|
|
|
await this.getInfoBus()
|
|
|
} else {
|
|
|
@@ -982,11 +1001,21 @@
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
- page {
|
|
|
- background: #F8F8FA;
|
|
|
- padding-bottom:120rpx;
|
|
|
- }
|
|
|
+.home-content{
|
|
|
+ background: #F8F8FA;
|
|
|
+ height:100vh;
|
|
|
+ overflow:auto;
|
|
|
+ min-height: 100vh;
|
|
|
+ padding-bottom: 130rpx;
|
|
|
+}
|
|
|
+::v-deep .u-navbar{
|
|
|
+ background: linear-gradient(180deg, #D6E9FF 0%, #ffffff 100%);
|
|
|
+}
|
|
|
|
|
|
+.edit-class{
|
|
|
+ font-size:28rpx;
|
|
|
+ color:#333333
|
|
|
+}
|
|
|
.cu-form-group .title {
|
|
|
width: 132rpx;
|
|
|
padding: 0;
|
|
|
@@ -997,7 +1026,10 @@
|
|
|
}
|
|
|
|
|
|
.cu-bg {
|
|
|
- background: linear-gradient(180deg, #D6E9FF 0%, #FFFFFF 100%);
|
|
|
+ background: linear-gradient( -90deg, #fff 0%, #D6E9FF 100%);
|
|
|
+ }
|
|
|
+ .progress{
|
|
|
+ border-top:1rpx solid #EEEEEE;
|
|
|
}
|
|
|
|
|
|
.tab-top {
|