|
@@ -7,6 +7,10 @@
|
|
|
<div class="tui-title required">门店名称</div>
|
|
<div class="tui-title required">门店名称</div>
|
|
|
<input v-model="form.shopName" placeholder-class="phcolor" class="tui-input" name="shopName" placeholder="请输入名称" maxlength="50" type="text" />
|
|
<input v-model="form.shopName" placeholder-class="phcolor" class="tui-input" name="shopName" placeholder="请输入名称" maxlength="50" type="text" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <div class="tui-title required" >花店头像</div>
|
|
|
|
|
+ <app-uploader @chooseImage="_resultData" :num="4" :prefixShow="true" :imgList="form.img"/>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <div class="prompt-text">注: 请先关注公众号,绑定后可以在移动端自动登录</div> -->
|
|
<!-- <div class="prompt-text">注: 请先关注公众号,绑定后可以在移动端自动登录</div> -->
|
|
|
<!-- 登录信息 -->
|
|
<!-- 登录信息 -->
|
|
@@ -58,6 +62,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import TuiListCell from '@/components/plugin/list-cell'
|
|
import TuiListCell from '@/components/plugin/list-cell'
|
|
|
import AppAvatarModule from '@/components/module/app-avatar'
|
|
import AppAvatarModule from '@/components/module/app-avatar'
|
|
|
|
|
+ import AppUploader from "@/components/app-uploader";
|
|
|
import SimpleAddress from '@/components/plugin/simple-address'
|
|
import SimpleAddress from '@/components/plugin/simple-address'
|
|
|
import AppAreaSel from '@/components/app-area-sel'
|
|
import AppAreaSel from '@/components/app-area-sel'
|
|
|
const form = require('@/utils/formValidation.js')
|
|
const form = require('@/utils/formValidation.js')
|
|
@@ -69,7 +74,8 @@
|
|
|
TuiListCell,
|
|
TuiListCell,
|
|
|
AppAvatarModule,
|
|
AppAvatarModule,
|
|
|
SimpleAddress,
|
|
SimpleAddress,
|
|
|
- AppAreaSel
|
|
|
|
|
|
|
+ AppAreaSel,
|
|
|
|
|
+ AppUploader
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -81,7 +87,8 @@
|
|
|
floor: '',
|
|
floor: '',
|
|
|
openTime: '8:00 - 22:00',
|
|
openTime: '8:00 - 22:00',
|
|
|
introduction: '',
|
|
introduction: '',
|
|
|
- mobile: ''
|
|
|
|
|
|
|
+ mobile: '',
|
|
|
|
|
+ img: []
|
|
|
},
|
|
},
|
|
|
// 详细地址
|
|
// 详细地址
|
|
|
showRegion: false,
|
|
showRegion: false,
|
|
@@ -91,7 +98,8 @@
|
|
|
},
|
|
},
|
|
|
// 省市联动
|
|
// 省市联动
|
|
|
regionData: [],
|
|
regionData: [],
|
|
|
- cityPickerValueDefault: [0, 0]
|
|
|
|
|
|
|
+ cityPickerValueDefault: [0, 0],
|
|
|
|
|
+ img: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -115,6 +123,7 @@
|
|
|
// api
|
|
// api
|
|
|
_getDet() {
|
|
_getDet() {
|
|
|
let data = uni.getStorageSync('modifyShopB')
|
|
let data = uni.getStorageSync('modifyShopB')
|
|
|
|
|
+ console.log('data===>', data)
|
|
|
if (this.$util.isEmpty(data)) return
|
|
if (this.$util.isEmpty(data)) return
|
|
|
Object.keys(this.form).forEach((i, index) => {
|
|
Object.keys(this.form).forEach((i, index) => {
|
|
|
// if (i != 'password') {
|
|
// if (i != 'password') {
|
|
@@ -131,6 +140,11 @@
|
|
|
}
|
|
}
|
|
|
this.showRegion = true
|
|
this.showRegion = true
|
|
|
},
|
|
},
|
|
|
|
|
+ _resultData(val) {
|
|
|
|
|
+ console.log(val)
|
|
|
|
|
+ this.form.img = val;
|
|
|
|
|
+ // this.form.upImgList = item
|
|
|
|
|
+ },
|
|
|
changeAreaFn(e) {
|
|
changeAreaFn(e) {
|
|
|
console.log('changeAreaFn', e)
|
|
console.log('changeAreaFn', e)
|
|
|
this.form.address = e.address
|
|
this.form.address = e.address
|