twt 3 anni fa
parent
commit
e0af867678

+ 18 - 1
operatingCompany/pages/intended/addIshop.vue

@@ -100,16 +100,33 @@
 				},
 				imgArr:[],
 				shopaddress:null,
+				id:'',
 			}
 		},
 		
-		onLoad() {
+		onLoad(opt) {
 			this.$common.isUserId()
 			this.userInfo = uni.getStorageSync("userInfo");
 			this.value.managerID=this.userInfo.id;
 			this.value.managerName=this.userInfo.name;
+			if(opt.id){
+				this.id=opt.id
+				this.getData()
+			}
 		},
 		methods: {
+			getData(){
+				this.$http('accompany/superIntendedShop/querySuperIntendedShopDetail',{
+					id:this.id
+				}, 'GET').then(res => {
+					this.value=res.data
+					res.data.imgsList.forEach(item=>{
+						this.imgArr.push(item.imgUrl)
+					})
+					
+					
+				})
+			},
 			addIntendedShop(){
 				
 				if(!this.value.shopName){

+ 12 - 2
operatingCompany/pages/intended/shopManageDetail.vue

@@ -4,7 +4,7 @@
 		<view class="line">
 			<view class="lineLeft">招商经理</view>
 			<view class="lineRight">
-				<input type="text" v-model="userInfo.name" placeholder="" disabled class="lineInput"/>
+				<input type="text" v-model="value.managerName" placeholder="" disabled class="lineInput"/>
 			</view>
 		</view>
 		<view class="line">
@@ -65,7 +65,7 @@
 		</view>
 		<view style="height: 126rpx;"></view>
 		<view class="bottom">
-			<view class="bottomBtn1">修改信息</view>
+			<view class="bottomBtn1" @click="edit">修改信息</view>
 			<view class="bottomBtn2">
 			<picker :value="thirdIndex" mode="selector" range-key='name' :range="thirdArr"
 				@change="bindPickerChange3">
@@ -120,6 +120,11 @@
 			this.id=opt.id
 			this.getData()
 		},
+		onShow() {
+			if(this.id){
+				this.getData()
+			}
+		},
 		methods: {
 			getData(){
 				this.$http('accompany/superIntendedShop/querySuperIntendedShopDetail',{
@@ -156,6 +161,11 @@
 				})
 				
 			},
+			edit(){
+				uni.navigateTo({
+					url:'addIshop?id='+this.id
+				})
+			},
 			previewImage(img,imgarr){
 				var arr=[];
 				imgarr.forEach(item=>{