1
0

3 コミット 35815de676 ... 5639f43ae3

作者 SHA1 メッセージ 日付
  高敬炎 5639f43ae3 前端 1 年間 前
  高敬炎 887662a16a Merge branch 'master' of http://git.zthymaoyi.com/zyw/tourism 1 年間 前
  高敬炎 558ffa4ac6 前端 1 年間 前
3 ファイル変更25 行追加17 行削除
  1. 20 15
      uni_applet/pageA/find/edit.vue
  2. 4 1
      uni_applet/pageA/my/mypublish.vue
  3. 1 1
      uni_applet/pages.json

+ 20 - 15
uni_applet/pageA/find/edit.vue

@@ -19,7 +19,7 @@
 						:maxCount="1"></u-upload>
 				</u-form-item>
 				
-				<u-form-item labelWidth='80' labelPosition='left' @click='placeSelect(),hideKeyboard()' label="店铺位置">
+				<u-form-item labelWidth='80' labelPosition='left' @click='placeSelect(),hideKeyboard()' :label="form.mainBody=='商铺'?'店铺位置':'定位'">
 					<view style='text-align:right;' v-if="form.province">{{ form.province }}{{ form.city }}{{ form.area }}</view>
 					<view style='text-align:right;' v-else>
 						<text style='text-align:right;'>选择位置 </text>
@@ -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;
  }

+ 4 - 1
uni_applet/pageA/my/mypublish.vue

@@ -34,7 +34,9 @@
 								</view>
 								<view class='name'>{{item.shopNames}}</view>
 							</view>
-							<view><view class='iconfont applet-androidgengduo'></view></view>
+							<view>
+								<!-- <view class='iconfont applet-androidgengduo'></view> -->
+								</view>
 						</view>
 						<view class='description'>
 							<mote-lines-divide :dt="item.serviceDescription" :line="3" expandText="展开"
@@ -180,6 +182,7 @@
 						limit: page.size,
 						searchKeyWord: this.searchVal,
 						myFlag:1,
+						compId:uni.getStorageSync("userInfo").id
 						// classify: this.typeName
 					}, failres => {
 						uni.showToast({

+ 1 - 1
uni_applet/pages.json

@@ -371,7 +371,7 @@
             ]
 	}],
 	"preloadRule": {
-		"pages/accommodation/accommodation": {
+		"pages/food/food": {
 			"network": "all",
 			"packages": ["pageA"]
 		}