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