Procházet zdrojové kódy

活动权限选择

xhj před 2 roky
rodič
revize
f078e83f99

+ 1 - 0
library/longPoster/index.vue

@@ -44,6 +44,7 @@
 		props: {},
 		data() {
 			return {
+				searchVal:'',
 				isShowbtn:false
 			}
 		},

+ 2 - 0
library/longPosterContent/longPosterContent.vue

@@ -1,4 +1,5 @@
 <template>
+	<!-- 账单 -->
 	<view v-if="type==1">
 		<view class="form-input">
 			<view class="input-label">文本一</view>
@@ -33,6 +34,7 @@
 			<view class="btn" @click="">保存</view>
 		</view>
 	</view>
+	<!-- 日报信息 -->
 	<view v-else-if="type==2">
 		<view class="form-input">
 			<view class="input-label">报表类型</view>

+ 12 - 1
match/activityEdit/activityEdit.css

@@ -163,4 +163,15 @@ page{
 	height: 76rpx;
 	color: #CCCCCC;
 	font-size: 32rpx;
-}
+}
+
+
+.mask{position: fixed;top: 50px;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,.5);z-index: 48;}
+.popup{background: #fff;position: fixed;top: 0px;left: 0;right: 0;z-index: 49;overflow: hidden;}
+.popupc{height: 600rpx;align-items: flex-start;}
+.pleft{width: 40%;background: #f8f8f8;position: absolute;left: 0;top: 0;bottom: 0;overflow: hidden;overflow-y: scroll;-webkit-overflow-scrolling: touch;}
+.pleft .li{font-size: 26rpx;color: #333;padding: 20rpx 30rpx;}
+.pleft .li:last-child{border-bottom: none;}
+.pleft .li.active{background: #fff;color: var(--main);border-left: 5rpx solid var(--main);padding-left: 25rpx;}
+.pright{width: 60%;position: absolute;right: 0;top: 0;bottom: 0;overflow: hidden;overflow-y: scroll;-webkit-overflow-scrolling: touch;}
+.pright .li{font-size: 26rpx;color: #333;padding: 20rpx 30rpx;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}

+ 337 - 160
match/activityEdit/activityEdit.vue

@@ -14,7 +14,8 @@
 				<view class="ddflex" style="margin-top: 30rpx;">
 					<view class="upload-photo-image" v-for="item ,index in fileList" @click="uploadImage(2,index+1)">
 						<image :src="item" mode="aspectFill"></image>
-						<image class="upload-photo-close" src="/static/pages/images/close3.png" @click.stop="deleteImage(2,index+1)"></image>
+						<image class="upload-photo-close" src="/static/pages/images/close3.png"
+							@click.stop="deleteImage(2,index+1)"></image>
 					</view>
 					<view class="upload-photo ddflex" @click="uploadImage(2)" v-if="fileList.length<9">
 						<image src="../static/images/photo.png"></image>
@@ -26,24 +27,24 @@
 			<view class="form">
 				<view class="form-item-title">活动标题</view>
 				<view class="form-input-box">
-					<input v-model="title" placeholder-class="form-input-placeholder" placeholder="请输入活动标题"/>
+					<input v-model="title" placeholder-class="form-input-placeholder" placeholder="请输入活动标题" />
 				</view>
 				<view class="form-item-title">活动说明</view>
 				<view class="form-input-box">
-					<input v-model="brief" placeholder-class="form-input-placeholder" placeholder="请填写活动简介说明"/>
+					<input v-model="brief" placeholder-class="form-input-placeholder" placeholder="请填写活动简介说明" />
 				</view>
 				<view class="form-item-title">
 					活动详情
 					<view class="more ddflex" @click="jumpUrl('/match/editorContent/editorContent')">
 						<text v-if="!text">编辑</text>
 						<text v-else style="color: var(--main);">已完善</text>
-						<image  src="../../static/pages/images/more.png"></image>
+						<image src="../../static/pages/images/more.png"></image>
 					</view>
 				</view>
 				<view class="next-btn" @click="next">下一步</view>
 			</view>
 		</view>
-		
+
 		<!-- 第二步 -->
 		<view v-if="stepTwo">
 			<view class="form">
@@ -51,11 +52,12 @@
 				<view class="form-item-title">最大报名人数</view>
 				<view class="form-number-select ddflex">
 					<view>-</view>
-					<input v-model="personLimit" type="number" placeholder="最大报名人数" placeholder-class="form-input-placeholder"/>
+					<input v-model="personLimit" type="number" placeholder="最大报名人数"
+						placeholder-class="form-input-placeholder" />
 					<view>+</view>
 				</view>
 				<view class="form-item-title">报名时间</view>
-				<view  class="ddflex" style="margin-top: 20rpx;">
+				<view class="ddflex" style="margin-top: 20rpx;">
 					<picker v-model="enlistStartTime" mode="date" class="flex" @change="enlistStartTimeChange">
 						<view class="form-date-select" :style="enlistStartTime?'color:#333':''">
 							{{enlistStartTime?enlistStartTime:'开始日期'}}
@@ -69,7 +71,7 @@
 					</picker>
 				</view>
 				<view class="form-item-title">活动时间</view>
-				<view  class="ddflex" style="margin-top: 20rpx;">
+				<view class="ddflex" style="margin-top: 20rpx;">
 					<picker v-model="startTime" mode="date" class="flex" @change="startTimeChange">
 						<view class="form-date-select" :style="startTime?'color:#333':''">
 							{{startTime?startTime:"开始日期"}}
@@ -88,14 +90,15 @@
 				<view class="form-title">活动地址</view>
 				<view class="form-item-title">地址名称</view>
 				<view class="form-input-box">
-					<input v-model="house" placeholder-class="form-input-placeholder" placeholder="请输入活动地址简称"/>
+					<input v-model="house" placeholder-class="form-input-placeholder" placeholder="请输入活动地址简称" />
 				</view>
 				<view class="form-item-title">选择城市</view>
 				<view class="form-input-box">
 					<!-- <picker class="form-input-placeholder" mode="region" @change="bindRegionChange" :value="region" > -->
-						<view class="picker" :style="region.length>0?'color: #333;':'color:#cccccc'" @click="chooseLocation()">
-							{{region.length > 0 ? region[0]+region[1]+region[2] : '请选择所在城市'}}
-						</view>
+					<view class="picker" :style="region.length>0?'color: #333;':'color:#cccccc'"
+						@click="chooseLocation()">
+						{{region.length > 0 ? region[0]+region[1]+region[2] : '请选择所在城市'}}
+					</view>
 					<!-- </picker> -->
 					<!-- <image src="/card/static/images/area.png" class="loca" @click="chooseLocation()"></image> -->
 				</view>
@@ -103,8 +106,48 @@
 					详细地址
 				</view>
 				<view class="form-input-box">
-					<input v-model="address" placeholder-class="form-input-placeholder" placeholder="请输入详细地址"/>
+					<input v-model="address" placeholder-class="form-input-placeholder" placeholder="请输入详细地址" />
+				</view>
+				<view class="form-item-title ddflex" style="justify-content: space-between;">
+					是否全省通用
+					<switch v-model="isAllSee" :checked="isAllSee" style="transform:scale(0.7)" color="var(--main)"
+						@change="powerChange"></switch>
 				</view>
+				<block v-if="!isAllSee">
+					<view class="form-input-box" style="border-bottom: none;" @click="showPop()">
+						已选择{{checkNum}}个区域
+						<view class="more ddflex">
+							<!-- <text v-if="!text">编辑</text>
+							<text v-else style="color: var(--main);">已完善</text> -->
+							<image src="../../static/pages/images/more.png"></image>
+						</view>
+					</view>
+					<view class="form-item-title" style="color: red;font-size: 24rpx;margin-top: 0rpx;" v-if="checkNum==0">
+						*请选择活动生效区域
+					</view>
+					
+					<view class="mask" v-if="isShowPop" @click="hidePop"></view>
+					<view class="popup" v-if="isShowPop">
+						<view class="popupc ddflex">
+							<view class="pleft">
+								<view :class="'li ddflex' + (checkIndex == index ? ' active':'')" style="justify-content: space-between;"
+									v-for="(item,index) in industryList" :key="index" @click="checkIndustry(index)">
+									<view class="fflex tover">{{item.label}}</view>
+									<image v-if="item.isActive" style="width: 25rpx;height: 25rpx;margin-left: 10rpx;" src="/match/static/images/checkBox_h.png" @click.stop="checkBoxIndustry(index)"></image>
+									<image v-else style="width: 25rpx;height: 25rpx;margin-left: 10rpx;" src="/match/static/images/checkBox.png" @click.stop="checkBoxIndustry(index)"></image>
+								</view>
+							</view>
+							<view class="pright">
+								<view :class="'li ddflex' + (arrayIndex == index ? ' active':'')" style="justify-content: space-between;"
+									v-for="(item,index) in rightArray" :key="index" @click="checkArray(index)">
+									<view class="fflex tover">{{item.label}}</view>
+									<image v-if="item.isActive" style="width: 25rpx;height: 25rpx;margin-left: 10rpx;" src="/match/static/images/checkBox_h.png" @click.stop="checkBoxArray(index)"></image>
+									<image v-else style="width: 25rpx;height: 25rpx;margin-left: 10rpx;" src="/match/static/images/checkBox.png" @click.stop="checkBoxArray(index)"></image>
+								</view>
+							</view>
+						</view>
+					</view>
+				</block>
 				<view class="next-btn" @click="submit()">提交</view>
 			</view>
 		</view>
@@ -121,48 +164,119 @@
 		props: {},
 		data() {
 			return {
-				stepOne:true,
-				stepTwo:false,
-				
-				pic:'',//封面图
-				fileList:[],//banner
-				title:'',
-				brief:'',
-				text:'',
-				personLimit:-1,
-				enlistStartTime:'',
-				enlistEndTime:'',
-				startTime:'',
-				endTime:'',
-				house:'',
-				region:[],
-				address:'',
-				regionCode:[],
-				id:'',
-				longitude:null,
-				latitude:null
+				stepOne: true,
+				stepTwo: false,
+
+				pic: '', //封面图
+				fileList: [], //banner
+				title: '',
+				brief: '',
+				text: '',
+				personLimit: -1,
+				enlistStartTime: '',
+				enlistEndTime: '',
+				startTime: '',
+				endTime: '',
+				house: '',
+				region: [],
+				address: '',
+				regionCode: [],
+				id: '',
+				longitude: null,
+				latitude: null,
+
+				isAllSee: true,
+				isShowPop: false,
+				checkIndex: 0,
+				industryList: [],
+				arrayIndex: -1,
+				rightArray: [],
 				
+				companyTreeList:[],
+				checkNum:0
+
 			}
 		},
-		onLoad(options) {
+		async onLoad(options) {
 			this.id = options.id
-			if(this.id){
+			await this.getCompanyTreeList()
+			if (this.id) {
 				this.getActivityInfo()
 			}
 		},
 		onShow() {
-			
+
 		},
 		methods: {
-			jumpUrl(url){
+			jumpUrl(url) {
 				uni.navigateTo({
-					url:url
+					url: url
 				})
 			},
-			getActivityInfo(){
-				req.getRequest('/api/match/detail',{id:this.id},res=>{
+			// 获取公司代码
+			getCompanyTreeList(){
+				return new Promise((r,j)=>{
+					req.getRequest('/api/company/treeList',{},res=>{
+						this.companyTreeList = res
+						this.industryList = this.companyTreeList[0].children
+						this.rightArray = this.industryList[0].children
+						r()
+					})
+				})
+			},
+			checkIndustry(index){
+				if(this.checkIndex == index) return false;
+				this.checkIndex = index;
+				this.rightArray = this.industryList[this.checkIndex].children;
+			},
+			checkBoxIndustry(index){
+				if(this.industryList[index].isActive){
+					this.industryList[index].isActive = false
+					this.industryList[index].children.map(item=>{item.isActive = false})
+				}else{
+					this.industryList[index].isActive = true
+					this.industryList[index].children.map(item=>{item.isActive = true})
+				}
+				this.industryList = JSON.parse(JSON.stringify(this.industryList))
+				this.checkIndex = index;
+				this.rightArray = this.industryList[this.checkIndex].children;
+			},
+			checkBoxArray(index){
+				if(this.industryList[this.checkIndex].children[index].isActive){
+					this.industryList[this.checkIndex].children[index].isActive = false
+				}else{
+					this.industryList[this.checkIndex].children[index].isActive = true
+				}
+				console.log(this.industryList[this.checkIndex].children.some(item=>item.isActive == false))
+				if(this.industryList[this.checkIndex].children.some(item=>item.isActive == true)){
+					this.industryList[this.checkIndex].isActive = true
+				}else{
+					this.industryList[this.checkIndex].isActive = false
+				}
+				this.industryList = JSON.parse(JSON.stringify(this.industryList))
+				this.rightArray = this.industryList[this.checkIndex].children;
+			},
+			getCheckNum(){
+				console.log(this.checkNum)
+				this.checkNum = 0
+				if(!this.isAllSee){
+					this.industryList.map(item=>{
+						item.children.map(it=>{
+							if(it.isActive){
+								this.checkNum++
+							}
+						})
+					})
+				}
+			},
+			getActivityInfo() {
+				req.getRequest('/api/match/detail', {
+					id: this.id
+				}, res => {
 					this.pic = res.pic
-					this.fileList = res.imageList.map(item=>{return item.url})
+					this.fileList = res.imageList.map(item => {
+						return item.url
+					})
 					this.title = res.title
 					this.brief = res.brief
 					this.text = res.text
@@ -172,62 +286,88 @@
 					this.startTime = this.formatTime(res.startTime)
 					this.endTime = this.formatTime(res.endTime)
 					this.house = res.house
-					this.regionCode = [res.province,res.city,res.country]
+					this.regionCode = [res.province, res.city, res.country]
 					this.region = res.areaAdd.split(',')
 					this.address = res.address
-					this.longitude = res.lng?res.lng:null
-					this.latitude = res.lat?res.lat:null
+					this.longitude = res.lng ? res.lng : null
+					this.latitude = res.lat ? res.lat : null
+					if(res.areaCodeList.length>0){
+						this.isAllSee = false
+						let areaCodeList = res.areaCodeList.map(item=>item.areaCode)
+						this.industryList.map(item=>{
+							item.children.map(it=>{
+								if(areaCodeList.indexOf(it.value)>-1){
+									it.isActive = true
+								}else{
+									it.isActive = false
+								}
+							})
+							if(item.children.some(it=>it.isActive == true)){
+								item.isActive = true
+							}else{
+								item.isActive = false
+							}
+						})
+						this.getCheckNum()
+					}else{
+						this.isAllSee = true
+					}
 				})
 			},
-			next(){
-				if(!this.pic){
+			next() {
+				if (!this.pic) {
 					return req.msg('请上传封面图')
 				}
-				if(this.fileList.length==0){
+				if (this.fileList.length == 0) {
 					return req.msg('请上传活动轮播图')
 				}
-				if(!this.title){
+				if (!this.title) {
 					return req.msg('请填写活动名称')
 				}
-				if(!this.brief){
+				if (!this.brief) {
 					return req.msg('请填写活动简介')
 				}
-				if(!this.text){
+				if (!this.text) {
 					return req.msg('请填写活动详情')
 				}
 				this.stepOne = false
 				this.stepTwo = true
 			},
-			uploadImage(type,index){
+			uploadImage(type, index) {
 				let that = this;
 				let count = 1
-				if(type==1){
+				if (type == 1) {
 					count = 1
-				}else if(type==2){
-					if(index){
+				} else if (type == 2) {
+					if (index) {
 						count = 1
-					}else{
-						count = 9-that.fileList.length
+					} else {
+						count = 9 - that.fileList.length
 					}
 				}
 				uni.chooseImage({
 					count: count,
 					sizeType: ['original', 'compressed'],
 					sourceType: ['album', 'camera'],
-					success: function({ tempFilePaths }) {
+					success: function({
+						tempFilePaths
+					}) {
 						var promise = Promise.all(
 							tempFilePaths.map(tempFilePath => {
 								return new Promise(function(resolve, reject) {
-									req.uploadFile('/api/nocheck/upload', tempFilePath, res => {
+									req.uploadFile('/api/nocheck/upload', tempFilePath,
+									res => {
 										// type 1 封面图
-										if(type==1){
+										if (type == 1) {
 											that.pic = res.src
-										}else if(type==2){
-											if(index){
+										} else if (type == 2) {
+											if (index) {
 												that.fileList[index] = res.src
-												that.fileList = JSON.parse(JSON.stringify(that.fileList))
-											}else{
-												that.fileList = that.fileList.concat(res.src)
+												that.fileList = JSON.parse(JSON
+													.stringify(that.fileList))
+											} else {
+												that.fileList = that.fileList.concat(
+													res.src)
 											}
 										}
 									});
@@ -244,35 +384,35 @@
 					}
 				});
 			},
-			deleteImage(type,index){
-				if(type==2)
-					this.fileList.splice(index,1)
+			deleteImage(type, index) {
+				if (type == 2)
+					this.fileList.splice(index, 1)
 			},
-			enlistStartTimeChange(e){
-				if(this.enlistEndTime){
-					if(this.enlistEndTime<e.detail.value)
-					return req.msg('报名开始时间不能大于结束时间')
+			enlistStartTimeChange(e) {
+				if (this.enlistEndTime) {
+					if (this.enlistEndTime < e.detail.value)
+						return req.msg('报名开始时间不能大于结束时间')
 				}
 				this.enlistStartTime = e.detail.value
 			},
-			enlistEndTimeChange(e){
-				if(this.enlistStartTime){
-					if(this.enlistStartTime>e.detail.value)
-					return req.msg('报名结束时间不能小于开始时间')
+			enlistEndTimeChange(e) {
+				if (this.enlistStartTime) {
+					if (this.enlistStartTime > e.detail.value)
+						return req.msg('报名结束时间不能小于开始时间')
 				}
 				this.enlistEndTime = e.detail.value
 			},
-			startTimeChange(e){
-				if(this.endTime){
-					if(this.endTime<e.detail.value)
-					return req.msg('活动开始时间不能大于结束时间')
+			startTimeChange(e) {
+				if (this.endTime) {
+					if (this.endTime < e.detail.value)
+						return req.msg('活动开始时间不能大于结束时间')
 				}
 				this.startTime = e.detail.value
 			},
-			endTimeChange(e){
-				if(this.startTime){
-					if(this.startTime>e.detail.value)
-					return req.msg('活动结束时间不能小于开始时间')
+			endTimeChange(e) {
+				if (this.startTime) {
+					if (this.startTime > e.detail.value)
+						return req.msg('活动结束时间不能小于开始时间')
 				}
 				this.endTime = e.detail.value
 			},
@@ -290,33 +430,35 @@
 			},
 			reverseGeocoder(location) {
 				// #ifdef H5
-					location = location.latitude + ',' + location.longitude
-					let url = 'https://apis.map.qq.com/ws/geocoder/v1/?address=';
-					this.$jsonp(url, {
-						key: req.public.mapLBSKEY,
-						location: location,
-						output: 'jsonp'
-					}).then(data => {
-						console.log('解析后的地址地址数据:', data);
-						data = data.result
-						this.region = [data.ad_info.province,data.ad_info.city,data.ad_info.district]
-						this.regionCode = [data.ad_info.adcode.substring(0,2)+'0000',data.ad_info.adcode.substring(0,4)+'00',data.ad_info.adcode]
-						this.longitude = data.ad_info.location.lng
-						this.latitude = data.ad_info.location.lat
-					}).catch(err => {
-						console.log(err);
-					});
+				location = location.latitude + ',' + location.longitude
+				let url = 'https://apis.map.qq.com/ws/geocoder/v1/?address=';
+				this.$jsonp(url, {
+					key: req.public.mapLBSKEY,
+					location: location,
+					output: 'jsonp'
+				}).then(data => {
+					console.log('解析后的地址地址数据:', data);
+					data = data.result
+					this.region = [data.ad_info.province, data.ad_info.city, data.ad_info.district]
+					this.regionCode = [data.ad_info.adcode.substring(0, 2) + '0000', data.ad_info.adcode.substring(
+						0, 4) + '00', data.ad_info.adcode]
+					this.longitude = data.ad_info.location.lng
+					this.latitude = data.ad_info.location.lat
+				}).catch(err => {
+					console.log(err);
+				});
 				// #endif
 				// #ifndef H5
-					QQMapWX.initMap();
-					QQMapWX.reverseGeocoder(location, data => {
-						console.log('解析后的地址地址数据:', data);
-						
-						this.region = [data.ad_info.province,data.ad_info.city,data.ad_info.district]
-						this.regionCode = [data.ad_info.adcode.substring(0,2)+'0000',data.ad_info.adcode.substring(0,4)+'00',data.ad_info.adcode]
-						this.longitude = data.ad_info.location.lng
-						this.latitude = data.ad_info.location.lat
-					});
+				QQMapWX.initMap();
+				QQMapWX.reverseGeocoder(location, data => {
+					console.log('解析后的地址地址数据:', data);
+
+					this.region = [data.ad_info.province, data.ad_info.city, data.ad_info.district]
+					this.regionCode = [data.ad_info.adcode.substring(0, 2) + '0000', data.ad_info.adcode.substring(
+						0, 4) + '00', data.ad_info.adcode]
+					this.longitude = data.ad_info.location.lng
+					this.latitude = data.ad_info.location.lat
+				});
 				//#endif
 			},
 			bindRegionChange(event) {
@@ -324,84 +466,119 @@
 				this.region = event.detail.value
 				this.regionCode = event.detail.code
 			},
-			submit(){
-				if(!this.pic){
+			powerChange(e) {
+				this.isAllSee = e.detail.value
+			},
+			showPop(){
+				this.isShowPop = true;
+			},
+			hidePop(){
+				this.isShowPop = false;
+				this.getCheckNum()
+			},
+			submit() {
+				if (!this.pic) {
 					return req.msg('请上传封面图')
 				}
-				if(this.fileList.length==0){
+				if (this.fileList.length == 0) {
 					return req.msg('请上传活动轮播图')
 				}
-				if(!this.title){
+				if (!this.title) {
 					return req.msg('请填写活动名称')
 				}
-				if(!this.brief){
+				if (!this.brief) {
 					return req.msg('请填写活动简介')
 				}
-				if(!this.text){
+				if (!this.text) {
 					return req.msg('请填写活动详情')
 				}
-				if(!this.enlistStartTime){
+				if (!this.enlistStartTime) {
 					return req.msg('请选择报名开始时间')
 				}
-				if(!this.enlistEndTime){
+				if (!this.enlistEndTime) {
 					return req.msg('请选择报名结束时间')
 				}
-				if(!this.startTime){
+				if (!this.startTime) {
 					return req.msg('请选择活动开始时间')
 				}
-				if(!this.endTime){
+				if (!this.endTime) {
 					return req.msg('请选择活动结束时间')
 				}
-				if(!this.house){
+				if (!this.house) {
 					return req.msg('请填写活动地址')
 				}
-				if(this.regionCode.length==0){
+				if (this.regionCode.length == 0) {
 					return req.msg('请选择活动所在城市')
 				}
-				if(!this.address){
+				if (!this.address) {
 					return req.msg('请填写详细地址')
 				}
 				
+				let areaCodeList = []
+				if(!this.isAllSee){
+					this.industryList.map(item=>{
+						item.children.map(it=>{
+							if(it.isActive){
+								areaCodeList.push({
+									areaCode:it.value
+								})
+							}
+						})
+					})
+					if(areaCodeList.length==0){
+						return req.msg('请选择活动生效区域')
+					}
+				}else{
+					areaCodeList.push({
+						areaCode:this.companyTreeList[0].value
+					})
+				}
+
 				let dataP = {
-					pic:this.pic,
-					fileList:JSON.stringify(this.fileList.map(item=>{return {url:item}})),
-					title:this.title,
-					brief:this.brief,
-					text:this.text,
-					personLimit:this.personLimit,
-					enlistStartTime:this.enlistStartTime,
-					enlistEndTime:this.enlistEndTime,
-					startTime:this.startTime,
-					endTime:this.endTime,
-					house:this.house,
-					province:this.regionCode[0],
-					city:this.regionCode[1],
-					country:this.regionCode[2],
-					areaAdd:this.region.join(','),
-					address:this.address,
-					lng:this.longitude,
-					lat:this.latitude
+					pic: this.pic,
+					fileList: JSON.stringify(this.fileList.map(item => {
+						return {
+							url: item
+						}
+					})),
+					title: this.title,
+					brief: this.brief,
+					text: this.text,
+					personLimit: this.personLimit,
+					enlistStartTime: this.enlistStartTime,
+					enlistEndTime: this.enlistEndTime,
+					startTime: this.startTime,
+					endTime: this.endTime,
+					house: this.house,
+					province: this.regionCode[0],
+					city: this.regionCode[1],
+					country: this.regionCode[2],
+					areaAdd: this.region.join(','),
+					address: this.address,
+					lng: this.longitude,
+					lat: this.latitude,
+					areaCodeList:areaCodeList
 				}
 				let prices = [{
-					    title: "VIP",
-					    marketMoney: 0,
-					    money: 0,
-					    vipMoney: 0,
-					    vipModels: [],
-					    personCount: 1,
-					    isDefault: 0
-					}]
+					title: "VIP",
+					marketMoney: 0,
+					money: 0,
+					vipMoney: 0,
+					vipModels: [],
+					personCount: 1,
+					isDefault: 0
+				}]
 				dataP.prices = prices
 				let url = '/api/match/save'
-				if(this.id) {
+				if (this.id) {
 					dataP.id = this.id
 					url = '/api/match/update'
 					uni.showModal({
-						title:'提示',
-						content:'修改活动将重新审核,确定修改?',
+						title: '提示',
+						content: '修改活动将重新审核,确定修改?',
 						success: (res) => {
-							if(res.confirm){
-								req.postRequest(url,dataP,res=>{
+							if (res.confirm) {
+								req.postRequest(url, dataP, res => {
 									req.msg('创建成功')
 									let pages = getCurrentPages();
 									var prevPage = pages[pages.length - 2];
@@ -410,15 +587,15 @@
 										prevPage.$vm.form.page = 1
 										prevPage.$vm.getPageList()
 									}
-									setTimeout(()=>{
+									setTimeout(() => {
 										uni.navigateBack()
-									},1000)
+									}, 1000)
 								})
 							}
 						}
 					})
-				}else{
-					req.postRequest(url,dataP,res=>{
+				} else {
+					req.postRequest(url, dataP, res => {
 						req.msg('创建成功')
 						let pages = getCurrentPages();
 						var prevPage = pages[pages.length - 2];
@@ -427,19 +604,19 @@
 							prevPage.$vm.form.page = 1
 							prevPage.$vm.getPageList()
 						}
-						setTimeout(()=>{
+						setTimeout(() => {
 							uni.navigateBack()
-						},1000)
+						}, 1000)
 					})
 				}
 			},
-			formatTime(date){
+			formatTime(date) {
 				date = new Date(date.replace(/-/g, '/'))
 				return util.formatTime(date).t3
 			},
 		},
 		mounted() {
-			
+
 		}
 	}
 </script>

binární
match/static/images/checkBox.png


binární
match/static/images/checkBox_h.png