twt 3 anni fa
parent
commit
214f8e9a7d

+ 21 - 0
operatingCompany/pages.json

@@ -206,6 +206,27 @@
 				"navigationBarTitleText": "签到",
 				"navigationBarBackgroundColor": "#FFFFFF"
 			}
+		},
+		{
+			"path": "pages/intended/addIshop",
+			"style": {
+				"navigationBarTitleText": "新增门店",
+				"navigationBarBackgroundColor": "#FFFFFF"
+			}
+		},
+		{
+			"path": "pages/intended/shopManage",
+			"style": {
+				"navigationBarTitleText": "管理门店",
+				"navigationBarBackgroundColor": "#FFFFFF"
+			}
+		},
+		{
+			"path": "pages/intended/shopManageDetail",
+			"style": {
+				"navigationBarTitleText": "门店详情",
+				"navigationBarBackgroundColor": "#FFFFFF"
+			}
 		}
 
 

+ 14 - 0
operatingCompany/pages/index/index.vue

@@ -47,6 +47,20 @@
 				</view>
 			</view>
 		</view>
+		<!--意向门店  -->
+		<view class="modular" >
+			<view class="modularTitle">意向门店</view>
+			<view class="modularCont">
+				<view class="modularLine" @click="goRouter('../intended/addIshop')" >
+					<image src="../../static/img/icon_xinzneg@2x.png" mode="" class="modularImg"></image>
+					<view class="modularName">新增门店</view>
+				</view>
+				<view class="modularLine" @click="goRouter('../intended/shopManage')" >
+					<image src="../../static/img/icon_guanli@2x.png" mode="" class="modularImg"></image>
+					<view class="modularName">管理门店</view>
+				</view>
+			</view>
+		</view>
 		<!--其他设置  -->
 		<view class="modular">
 			<view class="modularTitle">其他设置</view>

+ 362 - 0
operatingCompany/pages/intended/addIshop.vue

@@ -0,0 +1,362 @@
+<template>
+	<view class="content">
+	<view class="box">
+		<view class="line">
+			<view class="lineLeft">招商经理</view>
+			<view class="lineRight">
+				<input type="text" v-model="userInfo.name" placeholder="" disabled class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">门店名称</view>
+			<view class="lineRight">
+				<input type="text" v-model="value.shopName" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">门店地址</view>
+			<view class="lineRight ">
+				<picker @change="bindChange" mode="region" >
+					<view class="lineAddress ">{{shopaddress == null ? '请选择' :shopaddress}}
+						<image class="downArrow" src="../../static/img/jiantou.png"></image>
+					</view>
+				</picker>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">详细地址</view>
+			<view class="lineRight">
+				<input type="text" v-model="value.address" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">联系人</view>
+			<view class="lineRight">
+				<input type="text" v-model="value.contactor" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">联系方式</view>
+			<view class="lineRight">
+				<input type="number" v-model="value.contactorPhone" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">工位数量</view>
+			<view class="lineRight">
+				<input type="number" v-model="value.stationNum" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		
+		<view class="line2">
+			<view class="lineLeft">门头照片</view>
+			<view class="lineRight2">
+			  <view class="imgLine2" >
+				  <view class="imgLine" v-for="(img,imgindex) in imgArr" :class="{img4:(imgindex+1)%4==0}">
+				  	<image @click="previewImage(img,item.imgArr)"  :src="img" mode="" class="itemImg"></image>
+				    <image src="../../static/img/icon_delpic@2x.png" mode=""  class="delImg" @click="delimg(item,imgindex)"></image>
+				     
+				  </view>
+			  	<image @click="uploadImg" src="../../static/img/icon_addpic@2x.png" mode="" class="itemImg" style="margin-right: 0;"></image>
+			  </view>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">备注</view>
+			<view class="lineRight">
+				<input type="text" v-model="value.description" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view style="height: 126rpx;"></view>
+		<view class="bottom">
+			<view class="bottomBtn" @click="addIntendedShop">提交</view>
+		</view>
+			
+	</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				userInfo:'',
+				value:{
+					id:'',
+					shopName:'',
+					province:'',
+					city:'',
+					area:'',
+					cityName:'',
+					areaName:'',
+					address:'',
+					contactor:'',
+					contactorPhone:'',
+					managerID:'',
+					managerName:'',
+					stationNum:'',
+					description:'',
+					imgs:'',
+				},
+				imgArr:[],
+				shopaddress:null,
+			}
+		},
+		
+		onLoad() {
+			this.$common.isUserId()
+			this.userInfo = uni.getStorageSync("userInfo");
+			this.value.managerID=this.userInfo.id;
+			this.value.managerName=this.userInfo.name;
+		},
+		methods: {
+			addIntendedShop(){
+				
+				if(!this.value.shopName){
+					uni.showToast({ title: '请填写门店名称',icon:'none',duration: 2000,});
+					return false;
+				}else if(!this.value.province){
+					uni.showToast({title: '请选择门店地址',icon:'none',duration: 2000,});
+					return false;
+				}else if(!this.value.address){
+					uni.showToast({title: '请填写详细地址',icon:'none',duration: 2000,});
+					return false;
+				}else if(!this.value.contactor){
+					uni.showToast({title: '请填写联系人',icon:'none',duration: 2000,});
+					return false;
+				}else if(!this.value.contactorPhone){
+					uni.showToast({title: '请填写联系方式',icon:'none',duration: 2000,});
+					return false;
+				}else if(!this.value.stationNum){
+					uni.showToast({title: '请填写工位数量',icon:'none',duration: 2000,});
+					return false;
+				}else if(this.imgArr.length==0){
+					uni.showToast({title: '请上传门头照片',icon:'none',duration: 2000,});
+					return false;
+				}
+				if(/[^\d]/g.test(this.value.stationNum)) {
+					uni.showToast({title: '工位数量只能为整数',icon:'none',duration: 2000,});	
+					return false
+				}
+				if(!(/^1[34578]\d{9}$/.test(this.value.contactorPhone))){
+					uni.showToast({title: '联系方式有误,请重填',icon:'none',duration: 2000,});
+				    return false; 
+				} 
+				this.value.imgs=this.imgArr.join(',')
+				this.$http('accompany/superIntendedShop/addIntendedShop', 
+					this.value
+				, 'POST').then(res => {
+					if(res.code==0){
+						uni.showToast({
+						    title: '提交成功',
+							 icon:'success',
+						    duration: 2000,
+						});
+						setTimeout(function(){
+							uni.navigateBack({
+								delta:1
+							}) 
+						},1000)
+					}else{
+						uni.showToast({ title: '操作失误',icon:'none',duration: 2000,});
+					}
+					
+					
+				})
+			},
+			
+			bindChange: function(e) {
+				console.log(e)
+				this.shopaddress=e.detail.value[0]+e.detail.value[1]+e.detail.value[2];
+				this.value.province=e.detail.code[0];
+				this.value.city=e.detail.code[1];
+				this.value.area=e.detail.code[2];
+				this.value.provinceName=e.detail.value[0];
+				this.value.cityName=e.detail.value[1];
+				this.value.areaName=e.detail.value[2];
+			},
+			uploadImg(){
+				var that=this;
+				var length=this.imgArr.length;
+				if(length>8){
+					uni.showToast({
+					    title: '最多上传9张',
+						 icon:'none',
+					    duration: 2000,
+					});
+					return false;
+				}
+				
+				var num=9;
+				uni.chooseImage({
+					sourceType: ['album','camera'],
+					count:num-length,
+				    success: (chooseImageRes) => {
+				        const tempFilePaths = chooseImageRes.tempFilePaths;
+						/* tempFilePaths.forEach(v=>{
+							uni.uploadFile({
+							    url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
+							    filePath: v,
+							    name: 'file',
+							    formData: {
+							        'user': 'test'
+							    },
+							    success: (uploadFileRes) => {
+							        console.log(JSON.parse(uploadFileRes.data).data[0] );
+									
+									var i= JSON.parse(uploadFileRes.data).data[0]
+									  
+								    this.imgArr.push(i)
+								 
+							    }
+							}); 
+						}) */
+						tempFilePaths.forEach(v => {
+							
+							uni.uploadFile({
+								url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile',
+								filePath: v,
+								name: 'file',
+								formData: {
+									'user': 'test'
+								},
+								
+								success: (uploadFileRes) => {
+						
+									console.log(JSON.parse(uploadFileRes.data).data);
+									that.imgArr = that.imgArr.concat(JSON.parse(
+										uploadFileRes.data).data);
+								}
+							});
+						})
+				     
+						/* that.$http('accompany/SuperCheckSheet/uploadFile', tempFilePaths[0], 'POST').then(res => {
+							
+						}) */
+				    }
+				});
+			},
+			previewImage(img,arr){
+				//var arr=[];
+				//arr.push(img)
+				// 预览图片
+				uni.previewImage({
+					urls: arr,
+					current:img,
+					longPressActions: {
+						itemList: ['发送给朋友', '保存图片', '收藏'],
+						success: function(data) {
+							console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
+						},
+						fail: function(err) {
+							console.log(err.errMsg);
+						}
+					}
+				});
+			},
+			delimg(item,imgindex){
+				this.imgArr.splice(imgindex,1);
+				
+			},
+		}
+	}
+</script>
+
+<style scoped>
+	.content{
+		min-height: 100vh;
+		background-color: #F4F5F7;
+	}
+	.box{
+		padding-top: 20rpx;
+	}
+	.line{
+		display: flex;
+		background: #FFFFFF;
+		padding: 30rpx 24rpx;
+		font-size: 28rpx;
+		line-height: 48rpx;
+		color: #3C3C3C;
+		border-bottom: 1px solid #EEEEEE;
+	}
+	.lineLeft{
+		width: 200rpx;
+	}
+	.lineInput{
+		width: 500rpx;
+		height: 48rpx;
+        line-height: 48rpx;
+	}
+	.downArrow{
+		width: 14rpx;
+		height: 26rpx;
+		margin-top: 8rpx;
+	}
+	.lineAddress{
+		width: 500rpx;
+		display: flex;
+		justify-content: space-between;
+	}
+	.line2{
+		
+		background: #FFFFFF;
+		padding: 30rpx 24rpx;
+		font-size: 28rpx;
+		line-height: 48rpx;
+		color: #3C3C3C;
+		border-bottom: 1px solid #EEEEEE;
+	}
+	.itemImg{
+		width:150rpx;
+		height: 150rpx;
+		
+	}
+	
+	.delImg{
+		width: 32rpx;
+		height: 32rpx;
+		position: absolute;
+		right:-20rpx;
+		top: -20rpx;
+		z-index: 11;
+	}
+	.imgLine{
+		position: relative;
+		width: 150rpx;
+		height: 150rpx;
+		background: #F4F5F7;
+		border-radius: 10rpx;
+		display: flex;
+		margin-right: 20rpx;
+	}
+	.imgLine2{
+		padding-top: 20rpx;
+		display: flex;
+		flex-wrap: wrap;
+	}
+	.img4{
+		margin-right: 0;
+	}
+	.bottom{
+		width: 750rpx;
+		height: 120rpx;
+		background: #FFFFFF;
+		box-shadow: 0px -4px 8px 0px rgba(153,153,153,0.08);
+		position: fixed;
+		left: 0;
+		bottom: 0;
+	}
+	.bottomBtn{
+		width: 702rpx;
+		height: 74rpx;
+		background: linear-gradient(124deg, #FF8700 0%, #FF4F00 100%);
+		border-radius: 37rpx;
+		line-height: 74rpx;
+		text-align: center;
+		color: #FFFFFF;
+		font-size: 30rpx;
+		margin-top: 24rpx;
+		margin-left: 24rpx;
+		
+	}
+</style>

+ 398 - 0
operatingCompany/pages/intended/shopManage.vue

@@ -0,0 +1,398 @@
+<template>
+	<view class="content">
+		<view class="topView">
+		
+			<searchBox placeholder="请输入门店名称/联系人" @search='search($event)'></searchBox>
+
+
+			<!-- 条件筛选 -->
+			<view class="siftBg">
+
+				<!-- 省市区 选择 -->
+				<picker @change="bindChange" mode="region" custom-item="全部" >
+					<view class="uni-input">{{data.address == null ? '地区' : data.address}}
+						<image class="downArrow" src="../../static/img/icon_downArrow.png"></image>
+					</view>
+				</picker>
+
+				<picker :value="thirdIndex" mode="selector" range-key='name' :range="thirdArr"
+					@change="bindPickerChange3">
+					<view class="uni-input">{{thirdArr[thirdIndex].name}}
+						<image class="downArrow" src="../../static/img/icon_downArrow.png"></image>
+					</view>
+				</picker>
+			</view>
+		</view>
+		<!-- 列表 -->
+		<view class="shopList">
+			<view v-for="(item,index) in shopData" :key="index">
+
+				<!-- shopBox -->
+				<view class="shopBox" @click="goAppraise(item)">
+					<view class="flbox">
+						<view class=" shopTop">
+							<view class="shopName">{{item.ShopName}}</view>
+						</view>
+						<view class="bottomView">
+							<view class="manager">{{item.Contactor}} </view>
+						</view>
+					</view>
+					<view class="shopBoxright">
+						<view class="type type1" v-if="item.ShopState == 1">进行中</view>
+						<view class="type type2" v-if="item.ShopState == 2">已加盟</view>
+						<view class="type type3" v-if="item.ShopState == 3">已放弃</view>
+					</view>
+					
+					
+
+
+				</view>
+			</view>
+		</view>
+
+		<!-- 上拉 加载更多 -->
+		<view class="noMore" v-if="noMoreShow">没有更多数据</view>
+		<!-- 无数据空白页 -->
+		<view class="nodataBox" v-if="shopData.length == 0">
+			<image src="../../static/img/pic_empty_def.png" mode="widthFix" class="nodataImg"></image>
+			<view class="noTxt">暂无数据</view>
+		</view>
+
+		
+	</view>
+</template>
+
+<script>
+	import timeChose from '@/components/timeChose/timeChose.vue'
+	import searchBox from '@/components/searchBox/searchBox.vue'
+	export default {
+		components: {
+			timeChose,
+			searchBox
+		},
+		data() {
+			return {
+				tabIndex: 0,
+				status: 1,
+				searchValue: '',
+				data: {
+					provinceCode: '',
+					province: '',
+					cityCode: '',
+					city: '',
+					areaCode: '',
+					area: '',
+					address: null,
+				},
+				thirdIndex: 0,
+				thirdArr: [
+					{name: '进行中',ID: '1'},
+					{name: '已加盟',ID: '2'},
+					{name: '已放弃',ID: '3'},
+				],
+				managerId: '',
+				shopData: [],
+				page: 1,
+				noMoreShow: false,
+				timeShow: false,
+				starTime: '',
+				endTime: '',
+				dateTime: null,
+				isDirector: '',
+			}
+		},
+		onShow() {
+			this.$common.isUserId()
+			this.page = 1
+			this.getShopData()
+		},
+		methods: {
+		
+			goAppraise(item) {
+				uni.navigateTo({
+					url: 'shopManageDetail?id=' + item.ID
+				})
+			},
+			
+			
+			search(val) {
+				// console.log(val);
+				this.searchValue = val
+				this.page = 1
+				this.getShopData()
+			},
+
+			bindChange: function(e) {
+				console.log(e)
+				this.data.address = '地区';
+				this.data.provinceCode = '';
+				this.data.cityCode = '';
+				this.data.areaCode = ''
+				if (e.detail.code[0]) {
+					this.data.provinceCode = e.detail.code[0];
+					this.data.province = e.detail.value[0];
+					if (e.detail.code[1]) {
+						this.data.cityCode = e.detail.code[1];
+						this.data.city = e.detail.value[1]
+						if (e.detail.code[2]) {
+							this.data.areaCode = e.detail.code[2];
+							this.data.area = e.detail.value[2]
+						}
+					}
+					this.data.address = this.data.province + this.data.city + this.data.area
+				}
+
+
+
+
+
+				this.page = 1
+				this.getShopData()
+			},
+			bindPickerChange3(e) {
+				this.thirdIndex = e.target.value
+				this.status = this.thirdArr[this.thirdIndex].ID
+				if (e.target.value == 0) {
+					this.thirdIndex = 1
+				}
+				this.page = 1
+				this.getShopData()
+			},
+
+			
+			getShopData() {
+				uni.showLoading({
+					title: '加载中'
+				})
+				let url = 'accompany/superIntendedShop/listSuperIntendedShopPage',
+					params = {
+						page: this.page,
+						limit: 20,
+						province: this.data.provinceCode,
+						city: this.data.cityCode,
+						area: this.data.areaCode,
+						shopState: this.status,
+
+					}
+				this.$http(url, params, 'GET').then(res => {
+					var list = res.data.Items
+
+					// 处理 undefined和null转为空白字符串
+					list.forEach((item, index) => {
+						for (const key in item) {
+							item[key] = this.$praseStrEmpty(item[key])
+						}
+					})
+
+
+					if (this.page == 1) {
+						this.shopData = list
+					} else {
+						this.shopData = this.shopData.concat(list)
+					}
+
+
+					if (list.length < 10) {
+						this.noMoreShow = false
+					} else {
+						this.noMoreShow = true
+					}
+				})
+			},
+
+
+		},
+
+		// 下拉刷新 上拉加载更多
+		onPullDownRefresh() {
+			this.page = 1
+			this.getShopData()
+			setTimeout(function() {
+				uni.stopPullDownRefresh();
+			}, 1000);
+		},
+		onReachBottom() {
+			this.page++;
+			this.getShopData()
+		},
+
+	}
+</script>
+
+<style>
+	.content {
+		background-color: #F4F5F7;
+		min-height: 100vh;
+	}
+
+	.topView {
+		width: 100%;
+		height: 210rpx;
+		background-color: #FFFFFF;
+		left: 0rpx;
+		top: 0rpx;
+		position: fixed;
+		z-index: 99;
+	}
+
+	/* #ifdef H5 */
+	.topView {
+		top: 44px;
+	}
+
+	/* #endif */
+
+	.searchBox {
+		height: 72rpx;
+		margin: 24rpx;
+		background-color: #F4F5F7;
+		border-radius: 36rpx;
+		display: flex;
+	}
+
+	.searchImg {
+		margin-top: 20rpx;
+		margin-left: 20rpx;
+		width: 32rpx;
+		height: 32rpx;
+	}
+
+	.searchInput {
+		height: 72rpx;
+		font-size: 28rpx;
+		padding-left: 16rpx;
+		width: 85%;
+	}
+
+	.siftBg {
+		display: flex;
+		justify-content: space-around;
+		height: 80rpx;
+		align-items: center;
+	}
+
+	.timeChose {
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+	}
+
+	.downArrow {
+		width: 16rpx;
+		height: 12rpx;
+		padding: 6rpx 8rpx;
+	}
+
+	.tabBox {
+		width: 100%;
+	}
+
+	.tabCotn {
+		display: flex;
+	}
+
+	.tabLine {
+		width: 150rpx;
+		text-align: center;
+		color: #3C3C3C;
+		font-size: 30rpx;
+		line-height: 88rpx;
+	}
+
+	.tabactive {
+		color: #FF4F00;
+		border-bottom: 4rpx solid #FF4F00;
+	}
+
+	.shopList {
+		background-color: #F4F5F7;
+		padding: 0rpx 24rpx;
+		padding-top: 210rpx;
+	}
+
+	.shopBox {
+		background-color: #FFFFFF;
+		border-radius: 10rpx;
+		margin: 20rpx 0rpx;
+       display: flex;
+       justify-content: space-between;
+	}
+
+	.shopTop {
+		display: flex;
+		padding: 30rpx 20rpx 10rpx 20rpx;
+		justify-content: space-between;
+
+	}
+
+	.shopName {
+		font-size: 28rpx;
+		color: #3C3C3C;
+		font-weight: bold;
+		width: 500rpx;
+	}
+
+	.type {
+		font-size: 24rpx;
+		width: 88rpx;
+		height: 36rpx;
+		border-radius: 4rpx;
+		text-align: center;
+		line-height: 36rpx;
+		margin-right: 20rpx;
+	}
+    .type1{
+		border: 1px solid #FF4F00;
+		color: #FF4F00;
+	}
+	.type2{
+		border: 1px solid #00A040;
+		color: #00A040;
+	}
+	.type3{
+		border: 1px solid #999999;
+		color: #999999;
+	}
+	.bottomView {
+		padding: 28rpx 20rpx;
+		display: flex;
+		justify-content: space-between;
+	}
+
+	.manager {
+		font-size: 24rpx;
+		color: #666666;
+	}
+
+	.score {
+		font-size: 28rpx;
+		color: #B98B5D;
+	}
+
+	/* 空白页css */
+	.nodataBox {
+		text-align: center;
+	}
+
+	.nodataImg {
+		width: 400rpx;
+		padding-top: 290rpx;
+	}
+
+	.noTxt {
+		font-size: 30rpx;
+		color: #999999;
+		padding-top: 50rpx;
+	}
+
+	.noMore {
+		text-align: center;
+		line-height: 50rpx;
+		color: #999999;
+		font-size: 28rpx;
+	}
+	.shopBoxright{
+		display: flex;
+		align-items: center;
+	}
+</style>

+ 299 - 0
operatingCompany/pages/intended/shopManageDetail.vue

@@ -0,0 +1,299 @@
+<template>
+	<view class="content">
+	<view class="box">
+		<view class="line">
+			<view class="lineLeft">招商经理</view>
+			<view class="lineRight">
+				<input type="text" v-model="userInfo.name" placeholder="" disabled class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">门店名称</view>
+			<view class="lineRight">
+				<input type="text" v-model="value.shopName" disabled placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">门店地址</view>
+			<view class="lineRight ">
+				<view class="lineRight">
+					<input type="text" v-model="value.provinceName+value.cityName+value.areaName" disabled placeholder="请输入" class="lineInput"/>
+				</view>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">详细地址</view>
+			<view class="lineRight">
+				<input type="text" v-model="value.address" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">联系人</view>
+			<view class="lineRight">
+				<input type="text" v-model="value.contactor" disabled placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">联系方式</view>
+			<view class="lineRight">
+				<input type="number" disabled v-model="value.contactorPhone" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">工位数量</view>
+			<view class="lineRight">
+				<input type="number" disabled v-model="value.stationNum" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		
+		<view class="line2">
+			<view class="lineLeft">门头照片</view>
+			<view class="lineRight2">
+			  <view class="imgLine2" >
+				  <view class="imgLine" v-for="(img,imgindex) in imgArr" :class="{img4:(imgindex+1)%4==0}">
+				  	<image @click="previewImage(img.imgUrl,imgArr)"  :src="img.imgUrl" mode="" class="itemImg"></image>
+				  </view>
+			  	
+			  </view>
+			</view>
+		</view>
+		<view class="line">
+			<view class="lineLeft">备注</view>
+			<view class="lineRight">
+				<input type="text" disabled v-model="value.description" placeholder="请输入" class="lineInput"/>
+			</view>
+		</view>
+		<view style="height: 126rpx;"></view>
+		<view class="bottom">
+			<view class="bottomBtn1">修改信息</view>
+			<view class="bottomBtn2">
+			<picker :value="thirdIndex" mode="selector" range-key='name' :range="thirdArr"
+				@change="bindPickerChange3">
+				<view class="uni-input">更新状态</view>
+			</picker>
+			</view>
+		</view>
+			
+	</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				userInfo:'',
+				value:{
+					id:'',
+					shopName:'',
+					province:'',
+					city:'',
+					area:'',
+					cityName:'',
+					areaName:'',
+					address:'',
+					contactor:'',
+					contactorPhone:'',
+					managerID:'',
+					managerName:'',
+					stationNum:'',
+					description:'',
+					imgs:'',
+				},
+				imgArr:[],
+				shopaddress:null,
+				id:'',
+				thirdIndex: 0,
+				thirdArr: [
+					{name: '已加盟',ID: '2'},
+					{name: '已放弃',ID: '3'},
+				],
+				shopState:'',
+			}
+		},
+		
+		onLoad(opt) {
+			
+			this.userInfo = uni.getStorageSync("userInfo");
+			this.value.managerID=this.userInfo.id;
+			this.value.managerName=this.userInfo.name;
+			this.id=opt.id
+			this.getData()
+		},
+		methods: {
+			getData(){
+				this.$http('accompany/superIntendedShop/querySuperIntendedShopDetail',{
+					id:this.id
+				}, 'GET').then(res => {
+					this.value=res.data
+					this.imgArr=res.data.imgsList
+					
+				})
+			},
+			bindPickerChange3(e) {
+				console.log(e)
+				if(e.detail.value==0){
+					this.shopState=2
+				}else if(e.detail.value==1){
+					this.shopState=2
+				}
+				this.$http('accompany/superIntendedShop/updateShopState',
+					{
+						id:this.id,shopState:this.shopState
+					}, 'POST').then(res => {
+					if(res.code==0){
+						uni.showToast({
+						    title: '提交成功',
+							 icon:'success',
+						    duration: 2000,
+						});
+						
+					}else{
+						uni.showToast({ title: '操作失误',icon:'none',duration: 2000,});
+					}
+					
+					
+				})
+				
+			},
+			previewImage(img,imgarr){
+				var arr=[];
+				imgarr.forEach(item=>{
+					arr.push(item.imgUrl)
+				})
+				//arr.push(img)
+				// 预览图片
+				uni.previewImage({
+					urls: arr,
+					current:img,
+					longPressActions: {
+						itemList: ['发送给朋友', '保存图片', '收藏'],
+						success: function(data) {
+							console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
+						},
+						fail: function(err) {
+							console.log(err.errMsg);
+						}
+					}
+				});
+			},
+			delimg(item,imgindex){
+				this.imgArr.splice(imgindex,1);
+				
+			},
+		}
+	}
+</script>
+
+<style scoped>
+	.content{
+		min-height: 100vh;
+		background-color: #F4F5F7;
+	}
+	.box{
+		padding-top: 20rpx;
+	}
+	.line{
+		display: flex;
+		background: #FFFFFF;
+		padding: 30rpx 24rpx;
+		font-size: 28rpx;
+		line-height: 48rpx;
+		color: #3C3C3C;
+		border-bottom: 1px solid #EEEEEE;
+	}
+	.lineLeft{
+		width: 200rpx;
+	}
+	.lineInput{
+		width: 500rpx;
+		height: 48rpx;
+        line-height: 48rpx;
+	}
+	.downArrow{
+		width: 14rpx;
+		height: 26rpx;
+		margin-top: 8rpx;
+	}
+	.lineAddress{
+		width: 500rpx;
+		display: flex;
+		justify-content: space-between;
+	}
+	.line2{
+		
+		background: #FFFFFF;
+		padding: 30rpx 24rpx;
+		font-size: 28rpx;
+		line-height: 48rpx;
+		color: #3C3C3C;
+		border-bottom: 1px solid #EEEEEE;
+	}
+	.itemImg{
+		width:150rpx;
+		height: 150rpx;
+		
+	}
+	
+	.delImg{
+		width: 32rpx;
+		height: 32rpx;
+		position: absolute;
+		right:-20rpx;
+		top: -20rpx;
+		z-index: 11;
+	}
+	.imgLine{
+		position: relative;
+		width: 150rpx;
+		height: 150rpx;
+		background: #F4F5F7;
+		border-radius: 10rpx;
+		display: flex;
+		margin-right: 20rpx;
+	}
+	.imgLine2{
+		padding-top: 20rpx;
+		display: flex;
+		flex-wrap: wrap;
+	}
+	.img4{
+		margin-right: 0;
+	}
+	.bottom{
+		width: 750rpx;
+		height: 120rpx;
+		background: #FFFFFF;
+		box-shadow: 0px -4px 8px 0px rgba(153,153,153,0.08);
+		position: fixed;
+		left: 0;
+		bottom: 0;
+		display: flex;
+		justify-content: space-around;
+		
+	}
+	
+	.bottomBtn1{
+		width: 336rpx;
+		height: 74rpx;
+		background: #F4F5F7 linear-gradient(129deg, #FFDC5C 0%, #FFB62F 100%);
+		border-radius: 37rpx;
+		text-align: center;
+		line-height: 74rpx;
+		color: #FFFFFF;
+		font-size: 30rpx;
+		margin-top: 22rpx;
+		
+	}
+	.bottomBtn2{
+		margin-top: 22rpx;
+		width: 336rpx;
+		height: 74rpx;
+		background: linear-gradient(124deg, #FF8700 0%, #FF4F00 100%);
+		border-radius: 37rpx;
+		text-align: center;
+		line-height: 74rpx;
+		color: #FFFFFF;
+		font-size: 30rpx;
+	}
+</style>

BIN
operatingCompany/static/img/icon_guanli@2x.png


BIN
operatingCompany/static/img/icon_xinzneg@2x.png