Browse Source

perf: 优化table查看全部,反馈

lizhaocai 3 months ago
parent
commit
d84bc29c67

+ 4 - 4
circlePages/addShare.vue

@@ -313,7 +313,7 @@
 						</view>
 						 
 						 
-						<view style="margin-top:20px" v-if="selectValue2=='产品'">
+						<view style="margin-top:6px" v-if="selectValue2=='产品'">
 							<text style="color: #999;font-size: 12px;">如若产品属于医疗器械,请上传相关资质证明。</text>
 						</view>
 						<!-- <tn-image-upload-drag ref="imageUpload" :action="action" :width="236" :height="236" :formData="formData"
@@ -324,7 +324,7 @@
 					</view>
 				</view>
 
-				<view label="11" name="check" style="padding:16px"  v-if="stepIndex==3">
+				<view label="11" name="check" style="padding:16px;marging-top:20px"  v-if="stepIndex==3">
 					<uni-data-checkbox :multiple="true" v-model="formInfo.agree" selectedColor="#01BEFF"
 						:localdata="[{text: '同意平台核查所填信息的真实性',value: '是'}]" />
 				</view>
@@ -462,7 +462,7 @@
 					jobTitle: '',
 					userRealName:JSON.parse(uni.getStorageSync('userInfo')).userRealName,
 					// contactPerson:JSON.parse(uni.getStorageSync('userInfo')).contactNickName?JSON.parse(uni.getStorageSync('userInfo')).contactNickName:'用户'+JSON.parse(uni.getStorageInfoSync('userInfo')).userName.splice(-4),
-					agree: ['是'],
+					agree: [],
 					contactNickName: JSON.parse(uni.getStorageSync('userInfo')).contactNickName||'用户'+JSON.parse(uni.getStorageSync('userInfo')).userName.slice(-4),
 					contactMethod: JSON.parse(uni.getStorageSync('userInfo')).contactMethod || JSON.parse(uni
 						.getStorageSync('userInfo')).userName
@@ -734,7 +734,7 @@
 							success: () => {
 								setTimeout(() => {
 									uni.redirectTo({
-										url: "/pages/mine/share?tab="+(1)
+										url: "/pages/mine/share?tab="+(status==1?2:1)
 									});
 								}, 2500)
 							}

+ 6 - 7
circlePages/circle.vue

@@ -45,7 +45,7 @@
 				<textarea maxlength="500" v-model="content" placeholder="请描述您的需求..." placeholder-style="color:#AAAAAA"></textarea>
 			</view>
 
-			<view class="tn-flex tn-flex-row-between tn-flex-col-center   tn-margin">
+			<view class="tn-flex tn-flex-row-between tn-flex-col-center  tn-margin" style="margin-top:40px;margin-bottom: 0;">
 				<view class="tn-flex justify-content-item">
 					<view class=" tn-text-center"
 						style="border-radius: 100rpx;margin-right: 8rpx;width: 45rpx;height: 45rpx;line-height: 45rpx;">
@@ -67,8 +67,6 @@
 			<view class="tn-margin-left tn-padding-top-xs">
 				<uni-file-picker
 					v-model="imgList" :limit="6" @delete="deleteFile"  :auto-upload="false" @select="select" @success="success">
-					 
-				   
 				</uni-file-picker>
 				<view style="margin-top: 8px;">
 					<text style="color: #999;font-size: 12px;">一次只能上传六张图片</text>
@@ -236,7 +234,7 @@
 				formInfo:{
 					jobTitle:'',
 					// contactPerson:JSON.parse(uni.getStorageSync('userInfo')).contactNickName?JSON.parse(uni.getStorageSync('userInfo')).contactNickName:'用户'+JSON.parse(uni.getStorageInfoSync('userInfo')).userName.splice(-4),
-					agree:['是'],
+					agree:[],
 					contactPerson:JSON.parse(uni.getStorageSync('userInfo')).contactNickName,
 					contactMethod:JSON.parse(uni.getStorageSync('userInfo')).contactMethod||JSON.parse(uni.getStorageSync('userInfo')).userName
 				},
@@ -373,9 +371,9 @@
 				this.stepIndex = 2;
 			},
 			
-			 changeSelect(e) {
+			changeSelect(e) {
 			        this.selectValue = e;
-			      },
+			},
 			saveForm(status){
 				if(!this.canSave){
 					return false;
@@ -447,6 +445,7 @@
 					validDate:this.selectValue,
 					status: status==1?status:undefined,
 					id: that.isEdit?that.editItem.id:undefined,
+					bisNo: that.isEdit?that.editItem.bisNo:undefined,
 					version: that.isEdit?that.editItem.version:undefined
 				};
 				
@@ -485,7 +484,7 @@
 							success:()=>{
 								setTimeout(()=>{
 									uni.redirectTo({
-									 url: "/pages/mine/need?tab="+(1)
+									 url: "/pages/mine/need?tab="+(status==1?2:1)
 									});
 								},1500)
 								

+ 11 - 1
pages/comm/comm.vue

@@ -120,7 +120,16 @@
 
 							<basic-table header-row-class-name="basic-table-header" :columns="columns" :border="true"
 								:stripe="true" :data="item.shareExt">
-
+								<template #item="{column,scope,index}">
+								 
+								 
+									 <view v-if="column.fieldName==='prodDesc'">
+										 
+										<tn-read-more :showHeight="120" openText="查看全部">
+										  <rich-text :nodes="scope.prodDesc"></rich-text>
+										</tn-read-more>
+									 </view>
+							    </template>
 							</basic-table>
 						</view>
 
@@ -280,6 +289,7 @@
 				}, {
 					fieldName: 'prodDesc',
 					fieldDesc: '产品介绍',
+					fieldType:'slot'
 
 				}],
 				showSheet: false,

+ 0 - 3
pages/index/detail/detail.vue

@@ -10,9 +10,6 @@
 				<view style="flex:1;">
 					<text>速立保</text>
 				</view>
-				
-				
-			 
 
 			</view>
 		</tn-nav-bar>

+ 4 - 0
pages/mine/addFeed.vue

@@ -92,6 +92,10 @@
 						value: 3,
 						text: "投诉"
 					},
+					{
+						value: 5,
+						text: "平台用户举报"
+					},
 					{
 						value: 4,
 						text: "其他"

+ 1 - 1
pages/mine/feedback.vue

@@ -31,7 +31,7 @@
 											</view> -->
 									<view class="tn-padding-right tn-text-ellipsis">
 										<view class="tn-padding-right tn-text-bold tn-text-lg">
-											{{ item.type==1?'【汇报系统故障】':item.type==2?'【平台机制咨询】':item.type==3?'【投诉】':item.type==4?'【其他】':'【错误】' }}
+											{{ item.type==1?'【汇报系统故障】':item.type==2?'【平台机制咨询】':item.type==3?'【投诉】':item.type==5?'【平台用户举报】':'【其他】' }}
 										</view>
 									</view>
 								</view>

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/circlePages/addShare.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/circlePages/circle.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/comm/comm.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/addFeed.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/feedback.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/circlePages/addShare.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/circlePages/addShare.wxml


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/circlePages/circle.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/circlePages/circle.wxml


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/common/runtime.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/comm/comm.js


+ 2 - 0
unpackage/dist/dev/mp-weixin/pages/comm/comm.json

@@ -1,5 +1,6 @@
 {
   "usingComponents": {
+    "comm-basic-table-item": "/pages/comm/comm-basic-table-item",
     "tn-nav-bar": "/tuniao-ui/components/tn-nav-bar/tn-nav-bar",
     "tn-loading": "/tuniao-ui/components/tn-loading/tn-loading",
     "uv-sticky": "/uni_modules/uv-sticky/components/uv-sticky/uv-sticky",
@@ -7,6 +8,7 @@
     "tn-tabs-swiper": "/tuniao-ui/components/tn-tabs-swiper/tn-tabs-swiper",
     "tn-tag": "/tuniao-ui/components/tn-tag/tn-tag",
     "basic-table": "/components/basic-table/basic-table",
+    "tn-read-more": "/tuniao-ui/components/tn-read-more/tn-read-more",
     "tn-grid": "/tuniao-ui/components/tn-grid/tn-grid",
     "tn-grid-item": "/tuniao-ui/components/tn-grid-item/tn-grid-item",
     "tn-empty": "/tuniao-ui/components/tn-empty/tn-empty",

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/comm/comm.wxml


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/addFeed.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/feedback.wxml