xhj 2 éve
szülő
commit
3c6fe1c9eb
3 módosított fájl, 27 hozzáadás és 6 törlés
  1. 18 2
      match/sign/sign.vue
  2. 5 0
      match/signPerson/signPerson.vue
  3. 4 4
      office/news/news.vue

+ 18 - 2
match/sign/sign.vue

@@ -20,12 +20,12 @@
 		</view>
 		<view class="info">
 			<view class="tit ddflex">报名信息<text>{{personList.length}}人</text></view>
-			<view class="add" @click="addSign()">+ 添加报名人</view>
+			<view class="add" @click="addSign()" v-if="!this.about.MATCH_ENLIST_PERSON_LIMIT || (this.about.MATCH_ENLIST_PERSON_LIMIT&&personList.length<this.about.MATCH_ENLIST_PERSON_LIMIT)">+ 添加报名人</view>
 			<view class="list">
 				<view class="li ddflex" v-for="(item,index) in personList" :key="index" @click="jumpUrl('/match/signPerson/signPerson?index='+(index+1)+'&id='+detail.id)">
 					<image src="../../static/pages/images/userimg.png" mode="aspectFill" class="user"></image>
 					<view class="fflex">{{item.name}}<text>{{item.phone}}</text></view>
-					<image src="../static/images/jian.png" class="jian" @click="delPerson(index)"></image>
+					<image src="../static/images/jian.png" class="jian" @click.stop="delPerson(index)"></image>
 				</view>
 			</view>
 		</view>
@@ -55,6 +55,7 @@ export default {
 	},
 	data() {
 		return {
+			about:{},
 			isShow: false,
 			options: {},
 			detail: {},
@@ -79,8 +80,23 @@ export default {
 			this.personList = req.getStorage('personList')
 		}
 		this.getData(true);
+		this.getConfig()
 	},
 	methods: {
+		getConfig() {
+			var _this = this;
+			return new Promise((res, rej) => {
+				req.g(
+					'/api/other/config',
+					data => {
+						req.setStorage('configRes', JSON.stringify(data));
+						this.about = data;
+						res(data);
+					},
+					true
+				);
+			});
+		},
 		getData(isShow){
 			req.getRequest('/api/match/detail',{id: this.options.id},res => {
 				this.detail = res;

+ 5 - 0
match/signPerson/signPerson.vue

@@ -146,6 +146,11 @@ import util from "../../utils/util.js";
 					 })
 				}
 			}
+			
+			if(!req.getStorage('personList')||req.getStorage('personList').length==0){
+				 this.name = req.getStorage('userInfo').realName?req.getStorage('userInfo').realName:''
+				 this.phone = req.getStorage('userInfo').mobile?req.getStorage('userInfo').mobile:''
+			}
 		},
 		onShow() {
 			

+ 4 - 4
office/news/news.vue

@@ -1,7 +1,7 @@
 <template>
 	<view>
 		<view class="con">
-			<editor id="editor" @input="descInput" class="ql-container" :placeholder="placeholderText"></editor>
+			<textarea id="editor" @input="descInput" class="ql-container" :placeholder="placeholderText"></textarea>
 			<!-- <view class="upload ddflex" @tap="uploadVodChangeHandle"><image src="../static/images/upload.png"></image>上传视频</view> -->
 			<view class="imgbox ddflex">
 				<view class="imgs" v-for="(item, index) in zhiPicUrls" :key="index">
@@ -58,7 +58,7 @@
 		</view>
 		<view class="loca" v-if="showArea">
 			<scroll-view scroll-x="true" class="locas">
-				<view class="lis" @click="closeArea()" >不开启定位</view>
+				<!-- <view class="lis" @click="closeArea()" >不开启定位</view> -->
 				<view :class="'lis'+(poiIndex == index ? ' active':'')" @click="checkLocation(item,index)" v-for="(item,index) in poiList" :key="index">{{item.title}}</view>
 			</scroll-view>
 		</view>
@@ -148,10 +148,10 @@ export default {
 	},
 	methods: {
 		descInput(event) {
-			this.desc = event.detail.html;
+			this.desc = event.detail.value;
 			console.log('desc数据>>>>>>', this.desc);
 			if (this.desc) {
-				this.descLength = event.detail.text.length - 1;
+				this.descLength = event.detail.value.length - 1;
 			} else {
 				this.descLength = 0;
 			}