306132416@qq.com пре 3 година
родитељ
комит
fa79efdc49
2 измењених фајлова са 12 додато и 10 уклоњено
  1. 3 6
      pages/index/activity/comment.vue
  2. 9 4
      pages/index/activity/list.vue

+ 3 - 6
pages/index/activity/comment.vue

@@ -1,11 +1,10 @@
 <template>
 	<view class="content-box">
-		<view class="info-box">
+<!-- 		<view class="info-box">
 			<view class="img-container">
 				<label for="img">添加评论</label>
 				 <view class="note-image-box">
 					<view class="note-image-item" v-for="(item,index) in uploadList" :key="index">
-						<!-- //右上角删除图标 -->
 						<view class="close-icon" @click="delPhoto(index)">
 							<uni-icons type="closeempty" size="18" color="#fff"></uni-icons>
 						</view>
@@ -13,21 +12,19 @@
 							<image :src="item" mode="aspectFill"></image>
 						</view>
 					</view>
-					<!-- //因为上传图片设置9张 使用这里做判断 -->
 					<view v-if="uploadList.length < 3" class="note-image-item" @click="getImage('album')">
-						<!-- //添加图片按钮 -->
 						<view class="image-box">
 							<uni-icons type="plusempty" size="50" color="#eee"></uni-icons>
 						</view>
 					</view>
 				 </view>
 			</view>	
-		</view>
+		</view> -->
 		
 		<view class="info-box">
 			<view class="info-title-box">
 				<!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
-				<text>内容描述</text>
+				<text>添加评论</text>
 			</view>
 			<view class="info-value-box">
 				<textarea type="text" class="textarea-box" v-model="contentDesc"></textarea>

+ 9 - 4
pages/index/activity/list.vue

@@ -50,7 +50,7 @@
 		<button class="footer-box-record" @click="goRecord()">上传记录</button>
 	</view>
 	<view v-if="current == 1">
-		 <view class="active-box" v-for="(item,index) in activiList" :key="index" style="flex-direction: column;" :class="index===activiList.length-1?'marginB40':''">
+<!-- 		 <view class="active-box" v-for="(item,index) in activiList" :key="index" style="flex-direction: column;" :class="index===activiList.length-1?'marginB40':''">
 		 	<view class="active-content-box-img margin-top-3">
 		 		<view v-for="(img,indexImg) in item.pic_list" :key="indexImg" class="marginR5">
 		 			<image :src="img.pic_url_resize" mode="aspectFill" @click="showLarge(item.pic_list,indexImg)"></image>
@@ -60,13 +60,13 @@
 		 		  <image src="/static/edit-icon.png" mode="aspectFit" v-if="item.edit_auth" @click="goEditPage(item.id)"></image>
 		 		  <image src="/static/del-icon.png" mode="aspectFit" v-if="item.del_auth" @click="delProcess(item.id)"></image>
 		 	</view>
-		 </view>
+		 </view> -->
 		 
 		 <button class="footer-box-record" @click="goFiles()">上传文件</button>
 		
 	</view>
 	<view v-if="current == 2">
-		评论
+		<button class="footer-box-record" @click="goComment()">上传评论</button>
 	</view>
     <share-modal  @closeShare="closeShare" :isShowShare="isShowShareModal" :class="{ shareParent: isShowShareModal}"></share-modal>
  
@@ -336,7 +336,12 @@ export default {
 			  uni.navigateTo({
 				url:'./files?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
 			  })
-		  }
+		  },
+		  goComment(){
+			  uni.navigateTo({
+				url:'./comment?bId=' + this.branchId + '&aId=' + this.activeId + '&types=add'
+			  })
+		  },
   },
 };
 </script>