Fix:5812 【商城小程序】【商户入驻-店铺入驻】商户入驻详情页店铺图片封面及店铺logo上传位置缺少删除键
This commit is contained in:
@@ -219,7 +219,6 @@ import CitySelect from "@/components/CitySelect";
|
||||
import tmUpload from '@/components/tm-upload/tm-upload.vue';
|
||||
import {getCity} from "@/api/user";
|
||||
import {chooseImage, isWeixin} from "@/utils";
|
||||
import {getHomeData} from "@/api/public";
|
||||
import {VUE_APP_API_URL} from "@/config"
|
||||
import {getHotelTypeList, postHotelApply, postHotelReApply} from "@/api/inn.js";
|
||||
|
||||
@@ -438,81 +437,8 @@ export default {
|
||||
|
||||
that.innApplyInfo.position = that.$forceToDecimal(res.longitude, 6) + ',' + that.$forceToDecimal(res.latitude, 6);
|
||||
}
|
||||
});
|
||||
},
|
||||
getIndex(value, arr) {
|
||||
var idx = -1;
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i].n == value) {
|
||||
idx = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return idx;
|
||||
},
|
||||
getCityList: function () {
|
||||
let that = this;
|
||||
getCity()
|
||||
.then(res => {
|
||||
that.district = res.data;
|
||||
// that.ready = true;
|
||||
|
||||
// if(this.id){
|
||||
// //设置city_id
|
||||
// var pIdx = that.getIndex(that.address.province,that.district);
|
||||
// if(pIdx>-1){
|
||||
// var citys = that.district[pIdx].c;
|
||||
// var cIdx = that.getIndex(that.address.city,citys);
|
||||
// if(cIdx>-1){
|
||||
// var city = citys[cIdx];
|
||||
// that.address.city_id = city.v;
|
||||
// console.log('city_id:'+city.v);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
that.$dialog.error(err.msg);
|
||||
});
|
||||
},
|
||||
chooseQrcodeImg: function () {
|
||||
chooseImage(img => {
|
||||
console.log(img)
|
||||
that.$set(that.innApplyInfo, 'qrcode', img);
|
||||
|
||||
});
|
||||
},
|
||||
chooseLogoImg: function () {
|
||||
chooseImage(img => {
|
||||
console.log(img)
|
||||
|
||||
that.innApplyInfo.logo = img;
|
||||
|
||||
});
|
||||
},
|
||||
chooseCoverImg: function () {
|
||||
chooseImage(img => {
|
||||
console.log(img)
|
||||
|
||||
that.innApplyInfo.cover = img;
|
||||
|
||||
});
|
||||
},
|
||||
//文件上传结果
|
||||
uploadedImgChange: function (uploadedFilesList) {
|
||||
this.uploadedFilesArray = uploadedFilesList;
|
||||
},
|
||||
submit: function () {
|
||||
|
||||
if (this.innApplyInfo.name.length == 0) {
|
||||
this.$dialog.error("请输入店铺名称");
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.innApplyInfo.type.length == 0) {
|
||||
this.$dialog.error("请选择店铺类型");
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.addressText.length == 0) {
|
||||
|
||||
Reference in New Issue
Block a user