|
@@ -143,23 +143,25 @@
|
|
|
}).then(res => {
|
|
|
console.log(res)
|
|
|
this.form=res.data
|
|
|
-
|
|
|
+ if(this.form.coverImage){
|
|
|
+ this.fileList1=[{url:this.form.coverImage}]
|
|
|
+ }
|
|
|
+ if(this.form.businessLicense){
|
|
|
+ this.fileList2=[{url:this.form.businessLicense}]
|
|
|
+ }
|
|
|
+ if(this.form.personImageFront){
|
|
|
+ this.fileList4=[{url:this.form.personImageFront}]
|
|
|
+ }
|
|
|
+ if(this.form.personImageBack){
|
|
|
+ this.fileList6=[{url:this.form.personImageBack}]
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
submit(){
|
|
|
- uni.showModal({
|
|
|
- title:'123',
|
|
|
- success: () => {
|
|
|
- console.log(123)
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if(this.form.mainBody=='商铺'){
|
|
|
- this.content='确定提交店铺信息'
|
|
|
+ this.content='确定修改店铺信息'
|
|
|
}else{
|
|
|
- this.content='确定提交服务信息'
|
|
|
+ this.content='确定修改服务信息'
|
|
|
}
|
|
|
if(this.form.mainBody=='商铺'&&this.form.shopNames.length<2||this.form.mainBody=='商铺'&&this.form.shopNames.length>15){
|
|
|
uni.showToast({
|
|
@@ -243,7 +245,7 @@
|
|
|
title: '加载中',
|
|
|
mask: true
|
|
|
})
|
|
|
- this.$request.baseRequest('admin.tourism.productManagement', 'add', {
|
|
|
+ this.$request.baseRequest('admin.tourism.productManagement', 'update', {
|
|
|
productManagement: JSON.stringify(this.form)
|
|
|
}, failres => {
|
|
|
uni.showToast({
|
|
@@ -257,7 +259,7 @@
|
|
|
this.isSubmit = false
|
|
|
uni.showToast({
|
|
|
icon: "success",
|
|
|
- title: '提交成功!',
|
|
|
+ title: '编辑成功!',
|
|
|
duration: 2000
|
|
|
});
|
|
|
uni.navigateBack()
|
|
@@ -356,6 +358,9 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.content{
|
|
|
+ padding-bottom: 150rpx;
|
|
|
+}
|
|
|
.wrap{
|
|
|
padding:20rpx;
|
|
|
}
|