|
|
@@ -172,17 +172,20 @@
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>所在地区</view>
|
|
|
- <view class="u-flex-1 u-flex u-row-between" @click="$refs.picker.show()">
|
|
|
+ <view class="u-flex-1 u-flex u-row-between">
|
|
|
<view style="font-size: 30rpx;">
|
|
|
- <text v-if="form.locality"> {{ form.locality }}</text>
|
|
|
+ <text class='title' v-if="form.locality"> {{ form.locality }}</text>
|
|
|
<text v-else class="phone-placeholder">请选择所在地区</text>
|
|
|
</view>
|
|
|
- <u-icon name="arrow-right" style="margin-left: 17rpx;color: #999"></u-icon>
|
|
|
+ <!-- <u-icon name="arrow-right" style="margin-left: 17rpx;color: #999"></u-icon> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>门店地址</view>
|
|
|
- <input placeholder="请输入门店地址详细地址" v-model="form.address" name="input" placeholder-class="phone-placeholder"></input>
|
|
|
+ <!-- <input placeholder="请输入门店地址详细地址" v-model="form.address" name="input" placeholder-class="phone-placeholder" ></input> -->
|
|
|
+ <text class='title' v-if='form.address'> {{ form.address }}</text>
|
|
|
+ <text v-else class="phone-placeholder one-line-text u-flex-1">请选择门店地址</text>
|
|
|
+
|
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
|
<view class="title"><span>*</span>店铺面积</view>
|
|
|
@@ -216,7 +219,7 @@
|
|
|
<view class="title"><span>*</span>分类</view>
|
|
|
<view class="u-flex-1 u-flex u-row-between">
|
|
|
<view style="font-size: 30rpx;">
|
|
|
- <text v-if="classItem.title"> {{ classItem.title }}</text>
|
|
|
+ <text v-if="form.categoryName"> {{ form.categoryName }}</text>
|
|
|
<text v-else class="phone-placeholder">请选择分类</text>
|
|
|
</view>
|
|
|
<u-icon name="arrow-right" style="margin-left: 17rpx;color: #999"></u-icon>
|
|
|
@@ -346,7 +349,7 @@
|
|
|
qualificationList:[],
|
|
|
leaderName:"",
|
|
|
storePhone:"",
|
|
|
- classId: '',
|
|
|
+ categoryId: '',
|
|
|
},
|
|
|
formName: {
|
|
|
// name: '姓名',
|
|
|
@@ -366,7 +369,7 @@
|
|
|
storePhone: '负责人手机号',
|
|
|
storeExtent: '店铺面积',
|
|
|
// typeLabel: '主体类型'
|
|
|
- classId: '分类',
|
|
|
+ categoryId: '分类',
|
|
|
|
|
|
},
|
|
|
tab: 1,
|
|
|
@@ -389,10 +392,6 @@
|
|
|
classShow:false,
|
|
|
fileObj:{},
|
|
|
treeData:[],
|
|
|
- classItem:{
|
|
|
- title:"",
|
|
|
- id:"",
|
|
|
- },
|
|
|
dynamicList:[],
|
|
|
paramsObj:{},
|
|
|
optionData:null,
|
|
|
@@ -412,9 +411,11 @@
|
|
|
iconPath: '../../static/boiaoji.png'
|
|
|
})] : []
|
|
|
let storageData = uni.getStorageSync('address');
|
|
|
- // this.form.address = storageData.address
|
|
|
+ this.form.address = storageData.address
|
|
|
this.form.latitude = storageData.lat
|
|
|
this.form.longitude = storageData.lng
|
|
|
+ this.form.locality=`${storageData.province || ''}${storageData.city || ''}${storageData.county || ''}`
|
|
|
+ this.form.country=storageData.countyCode
|
|
|
},
|
|
|
async onLoad(option) {
|
|
|
this.optionData=option;
|
|
|
@@ -457,9 +458,13 @@
|
|
|
},
|
|
|
//选择位置
|
|
|
selectAddress() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/store/selectTdMap?url=' + '/pages/store/editStore'
|
|
|
- })
|
|
|
+ let data=this.form.localMerchantInfoExamine
|
|
|
+ if(data && data.status==2 || !this.merchantId){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/store/selectTdMap?url=' + '/pages/store/editStore'
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
//选择主题类型
|
|
|
confirmLocality(data) {
|
|
|
@@ -787,7 +792,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (this.form.classId) {
|
|
|
+ if (this.form.categoryId) {
|
|
|
const hasError = this.dynamicList.some(e => {
|
|
|
for (var i in this.fileObj) {
|
|
|
if (i == e.key && !this.fileObj[i]) {
|
|
|
@@ -815,18 +820,17 @@
|
|
|
if (!isbusinessLicense) {
|
|
|
this.form.businessLicense = configService.apiUrl + '/' + this.form.businessLicense
|
|
|
}
|
|
|
- // this.form.address = uni.getStorageSync('address').address
|
|
|
- this.form.latitude = uni.getStorageSync('address').lat
|
|
|
- this.form.longitude = uni.getStorageSync('address').lng
|
|
|
+ // let storageData = uni.getStorageSync('address');
|
|
|
+ // this.form.latitude = storageData.lat
|
|
|
+ // this.form.longitude = storageData.lng
|
|
|
|
|
|
-
|
|
|
const imgArr = []
|
|
|
this.dynamicList.forEach((e => {
|
|
|
for (var key in this.fileObj) {
|
|
|
if (key == e.key) {
|
|
|
imgArr.push({
|
|
|
- categoryId: this.classItem.id,
|
|
|
- categoryName: this.classItem.title,
|
|
|
+ categoryId: this.form.categoryId,
|
|
|
+ categoryName: this.form.categoryName,
|
|
|
special: this.fileObj[key],
|
|
|
qualificationName: e.qualificationName
|
|
|
})
|
|
|
@@ -838,8 +842,8 @@
|
|
|
...this.form,
|
|
|
source: 2,
|
|
|
// headPhoto: Array.isArray(this.form.headPhoto) ? this.form.headPhoto.join(',') : this.form.headPhoto,
|
|
|
- longitude: this.markers.length > 0 ? this.markers[0].longitude : '',
|
|
|
- latitude: this.markers.length > 0 ? this.markers[0].latitude : ''
|
|
|
+ // longitude: this.markers.length > 0 ? this.markers[0].longitude : '',
|
|
|
+ // latitude: this.markers.length > 0 ? this.markers[0].latitude : ''
|
|
|
}
|
|
|
//去重
|
|
|
this.checkInit()
|
|
|
@@ -862,7 +866,6 @@
|
|
|
},
|
|
|
//分类查询
|
|
|
suerPop(item) {
|
|
|
- this.classItem = item;
|
|
|
this.classShow = false
|
|
|
this.$http.get('/merchant/register/queryQualificationByCategoryId?categoryId=' + item.id).then(res => {
|
|
|
const data = res.data.result
|
|
|
@@ -879,7 +882,8 @@
|
|
|
this.dynamicList = []
|
|
|
}
|
|
|
})
|
|
|
- this.form.classId = item.id
|
|
|
+ this.form.categoryId = item.id
|
|
|
+ this.form.categoryName = item.title
|
|
|
},
|
|
|
//查询信息
|
|
|
getInfoBus(){
|
|
|
@@ -892,8 +896,8 @@
|
|
|
this.switchType(data.type)
|
|
|
if(data.qualificationList.length){
|
|
|
let obj=data.qualificationList[0]
|
|
|
- this.classItem.title=obj.categoryName
|
|
|
- this.classItem.id=obj.categoryId
|
|
|
+ this.form.categoryName=obj.categoryName
|
|
|
+ this.form.categoryId=obj.categoryId
|
|
|
data.qualificationList.forEach((element,index) => {
|
|
|
element.specialArr=[]
|
|
|
element.key='key'+index
|
|
|
@@ -909,7 +913,7 @@
|
|
|
openClass(){
|
|
|
this.classShow=true;
|
|
|
this.$nextTick(()=>{
|
|
|
- this.$refs.classification.init(this.classItem.id)
|
|
|
+ this.$refs.classification.init(this.form.categoryId)
|
|
|
})
|
|
|
},
|
|
|
loadIng(val){
|