Преглед на файлове

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

lizhaocai преди 3 месеца
родител
ревизия
f8da525e2f
променени са 37 файла, в които са добавени 126 реда и са изтрити 65 реда
  1. 2 6
      circlePages/circle.vue
  2. 4 2
      pages/comm/comm.vue
  3. 3 17
      pages/home/home.vue
  4. 61 2
      pages/index/index.vue
  5. 8 0
      pages/mine/need.vue
  6. 8 0
      pages/mine/share.vue
  7. 4 2
      tuniao-ui/components/tn-read-more/tn-read-more.vue
  8. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/circlePages/circle.js.map
  9. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
  10. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/comm/comm.js.map
  11. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/home.js.map
  12. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  13. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/need.js.map
  14. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/share.js.map
  15. 1 1
      unpackage/dist/dev/mp-weixin/circlePages/circle.js
  16. 1 1
      unpackage/dist/dev/mp-weixin/common/runtime.js
  17. 1 1
      unpackage/dist/dev/mp-weixin/common/vendor.js
  18. 1 1
      unpackage/dist/dev/mp-weixin/pages/comm/comm.js
  19. 1 1
      unpackage/dist/dev/mp-weixin/pages/home/home.js
  20. 0 2
      unpackage/dist/dev/mp-weixin/pages/home/home.json
  21. 1 1
      unpackage/dist/dev/mp-weixin/pages/home/home.wxml
  22. 1 1
      unpackage/dist/dev/mp-weixin/pages/index/index.js
  23. 2 0
      unpackage/dist/dev/mp-weixin/pages/index/index.json
  24. 1 1
      unpackage/dist/dev/mp-weixin/pages/index/index.wxml
  25. 1 1
      unpackage/dist/dev/mp-weixin/pages/mine/mine.js
  26. 1 1
      unpackage/dist/dev/mp-weixin/pages/mine/need.wxml
  27. 1 1
      unpackage/dist/dev/mp-weixin/pages/mine/share.wxml
  28. 2 2
      unpackage/dist/dev/mp-weixin/tuniao-ui/components/tn-list-cell/tn-list-cell.js
  29. 2 2
      unpackage/dist/dev/mp-weixin/uni_modules/uni-badge/components/uni-badge/uni-badge.js
  30. 1 1
      unpackage/dist/dev/mp-weixin/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.js
  31. 1 1
      unpackage/dist/dev/mp-weixin/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.js
  32. 2 2
      unpackage/dist/dev/mp-weixin/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.js
  33. 2 2
      unpackage/dist/dev/mp-weixin/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.js
  34. 1 1
      unpackage/dist/dev/mp-weixin/uni_modules/uni-list/components/uni-list-item/uni-list-item.js
  35. 2 2
      unpackage/dist/dev/mp-weixin/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js
  36. 1 1
      unpackage/dist/dev/mp-weixin/uni_modules/uni-popup/components/uni-popup/uni-popup.js
  37. 2 2
      unpackage/dist/dev/mp-weixin/uni_modules/uni-transition/components/uni-transition/uni-transition.js

+ 2 - 6
circlePages/circle.vue

@@ -214,8 +214,8 @@
 				selectValue: '',
 				//非常紧急/两周/一月/长期
 				selectList: [{
-						value: '非常紧急',
-						text: '非常紧急'
+						value: '一周',
+						text: '一周'
 					},
 					{
 						value: '两周',
@@ -224,10 +224,6 @@
 					{
 						value: '一月',
 						text: '一月'
-					},
-					{
-						value: '长期',
-						text: '长期'
 					}
 				],
 				content:'',

+ 4 - 2
pages/comm/comm.vue

@@ -125,8 +125,9 @@
 								 
 									 <view v-if="column.fieldName==='prodDesc'">
 										 
-										<tn-read-more :showHeight="120" openText="查看全部">
-										  <rich-text :nodes="scope.prodDesc"></rich-text>
+										<tn-read-more openText="查看全部" :closeBtn="true" closeText="收起" :showHeight="125">
+											<text>{{scope.prodDesc}}</text>
+										  
 										</tn-read-more>
 									 </view>
 							    </template>
@@ -490,6 +491,7 @@
 			fetchData(curIndex = 1) {
 				let that = this;
 				that.showEmpty = false;
+				this.curIndex = curIndex;
 				if (uni.getStorageSync('searchProdValue')) {
 					that.searchProdValue = uni.getStorageSync('searchProdValue');
 				}

+ 3 - 17
pages/home/home.vue

@@ -1,22 +1,7 @@
 <template>
 	<view class="index tn-safe-area-inset-bottom">
 
-		<tn-nav-bar customBack>
-			<view slot="back" class='tn-custom-nav-bar__back' @click="reFetchData()">
-				<text v-if="!loading" class="tn-icon-circle-arrow" style="font-size: 50rpx;"></text>
-				<view style="margin-top:6px" v-if="loading"><tn-loading :size="46"></tn-loading></view>
-			</view>
-
-			<view slot="default" style="display: flex;">
-				<view style="flex:1;margin-left:25px;">
-					<text>我要什么</text>
-				</view>
-				<view>
-					<text class="tn-icon-add-fill" style="font-size: 30px;margin-right: 4px;"
-						@click="addButton()"></text>
-				</view>
-			</view>
-		</tn-nav-bar>
+		
 
 		<view class="" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
 			<uv-sticky :offsetTop="vuex_custom_bar_height + 'px'" bgColor="#ffffff">
@@ -101,7 +86,7 @@
 							</tn-grid>
 						</view>
 					</block>
-					<view v-for="file in item.fileDetailList" :key="file.id" v-if="!isImage(file.fileName)">
+					<view v-for="file in item.fileDetailList" style="margin-bottom: 4px;" :key="file.id" v-if="!isImage(file.fileName)">
 						<view>
 							<text class="tn-icon-link"></text>
 							<view style="display: inline-block;margin-left:8px" @click="clickLink(file.ftpUrl,file.fileName)">
@@ -270,6 +255,7 @@
 			fetchData(curIndex = 1) {
 				let that = this;
 				that.showEmpty = false;
+				this.curIndex = curIndex;
 				request.post('/slbResourceDemand/query', {
 					index: curIndex,
 					limit: 10,

+ 61 - 2
pages/index/index.vue

@@ -1,12 +1,28 @@
 <template>
 	<view class="start-index">
 		<view v-if="tabberPageLoadFlag[0]" :style="{display: currentIndex === 0 ? '' : 'none'}">
-			<scroll-view class="custom-tabbar-page" scroll-y enable-back-to-top @scrolltolower="tabbarPageScrollLower">
+			<tn-nav-bar customBack>
+				<view slot="back" class='tn-custom-nav-bar__back' @click="reFetchData()">
+					<text v-if="!loading" class="tn-icon-circle-arrow" style="font-size: 50rpx;"></text>
+					<view style="margin-top:6px" v-if="loading"><tn-loading :size="46"></tn-loading></view>
+				</view>
+			
+				<view slot="default" style="display: flex;">
+					<view style="flex:1;margin-left:25px;">
+						<text>我要什么</text>
+					</view>
+					<view>
+						<text class="tn-icon-add-fill" style="font-size: 30px;margin-right: 4px;"
+							@click="addButton()"></text>
+					</view>
+				</view>
+			</tn-nav-bar>
+			<scroll-view class="custom-tabbar-page" scroll-y :refresher-enabled="isTop" @scroll="handleScroll" :refresher-triggered="triggered" @refresherpulling="onPulling" @refresherrestore="onRestore" @refresherrefresh="onRefresh" enable-back-to-top @scrolltolower="tabbarPageScrollLower">
 				<Home ref="home"></Home>
 			</scroll-view>
 		</view>
 		<view v-if="tabberPageLoadFlag[1]" :style="{display: currentIndex === 1 ? '' : 'none'}">
-			<scroll-view class="custom-tabbar-page" scroll-y enable-back-to-top @scrolltolower="tabbarPageScrollLower">
+			<scroll-view class="custom-tabbar-page" scroll-y :refresher-enabled="isTop" :refresher-triggered="triggered" @refresherrestore="onRestore" @refresherrefresh="onRefresh" enable-back-to-top @scrolltolower="tabbarPageScrollLower">
 				<Comm ref="comm"></Comm>
 			</scroll-view>
 		</view>
@@ -47,6 +63,9 @@
 		},
 		data() {
 			return {
+				isTop: true,
+				triggered: false,
+				_freshing: false,
 				// 底部tabbar菜单数据
 				tabbarList: [{
 						title: '我要什么',
@@ -92,6 +111,7 @@
 			this.tabberPageLoadFlag = this.tabbarList.map((item, tabbar_index) => {
 				return index === tabbar_index
 			})
+			this._freshing = false;
 			this.switchTabbar(index);
 			let that = this;
 			 
@@ -123,6 +143,20 @@
 					this.$refs?.commRef?.stopAllVideo()
 				}
 			},
+			handleScroll(e){
+				console.error('eee');
+				console.error(e);
+				console.error(e.detail.scrollTop);
+				if(e.detail.scrollTop<1){
+					console.error('11111111111111111');
+					
+					this.isTop = true;
+				}else{
+					this.isTop = false;
+				}
+				console.error(this.isTop,'11111111111111111');
+				
+			},
 			//获取openId,unionid
 			getOpenId(code) {
 				const that = this;
@@ -248,6 +282,31 @@
 					this.$refs.discovery.getRandomData && this.$refs.discovery.getRandomData()
 				}
 			},
+			 onPulling(e) {
+			                console.log("onpulling", e);
+			            }, 
+			onRefresh(){
+				if (this._freshing) return;
+				this._freshing = true;
+				if (this.currentIndex === 0) {
+					console.error('this');
+					this.$refs.home.reFetchData();
+				}
+				if (this.currentIndex === 1) {
+					console.error('this');
+					this.$refs.comm.reFetchData();
+				}
+				setTimeout(() => {
+					console.error(11112222);
+					this.triggered = false;
+					this._freshing = false;
+					this.isTop = false;
+				}, 2000)
+			},
+			onRestore() {
+				this.triggered = false; // 需要重置
+				console.error("onRestore");
+			},
 
 			// 切换导航页面
 			_switchTabbarPage(index) {

+ 8 - 0
pages/mine/need.vue

@@ -151,6 +151,14 @@
 
 						</view>
 					</view>
+					
+					<view  v-if="item.status==9&&item.feedback">
+						<view>
+							<view>
+								反馈意见:{{item.feedback||'--'}}
+							</view>
+						</view>
+					</view>
 
 
 					<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">

+ 8 - 0
pages/mine/share.vue

@@ -130,6 +130,14 @@
 
 						</view>
 					</view>
+					
+					<view  v-if="item.status==9&&item.feedback">
+						<view>
+							<view>
+								反馈意见:{{item.feedback||'--'}}
+							</view>
+						</view>
+					</view>
 
 					<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
 						<view class="justify-content-item tn-color-gray tn-text-center">

+ 4 - 2
tuniao-ui/components/tn-read-more/tn-read-more.vue

@@ -91,7 +91,7 @@
           if (!this.initHeight) {
             style.height = 'auto'
           } else {
-            style.height = `${this.contentHeight}px`
+            style.height = `auto`
           }
         }
         
@@ -187,8 +187,9 @@
       color: $tn-font-color;
       line-height: 1.8;
       text-align: left;
-      overflow: hidden;
+      overflow: auto;
       transition: all 0.3s linear;
+	 
     }
     
     &__show-more {
@@ -216,6 +217,7 @@
       
       &--icon {
         margin-left: 14rpx;
+		 
       }
     }
   }

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/circlePages/circle.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/comm/comm.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/home.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/need.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/share.js.map


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/circlePages/circle.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/common/runtime.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/common/vendor.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/comm/comm.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/home.js


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

@@ -1,8 +1,6 @@
 {
   "component": true,
   "usingComponents": {
-    "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",
     "uni-search-bar": "/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar",
     "tn-grid": "/tuniao-ui/components/tn-grid/tn-grid",

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/home.wxml


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.js


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

@@ -1,6 +1,8 @@
 {
   "disableScroll": true,
   "usingComponents": {
+    "tn-nav-bar": "/tuniao-ui/components/tn-nav-bar/tn-nav-bar",
+    "tn-loading": "/tuniao-ui/components/tn-loading/tn-loading",
     "tn-tabbar": "/tuniao-ui/components/tn-tabbar/tn-tabbar",
     "home": "/pages/home/home",
     "comm": "/pages/comm/comm",

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/mine.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/need.wxml


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/share.wxml


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
unpackage/dist/dev/mp-weixin/tuniao-ui/components/tn-list-cell/tn-list-cell.js


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
unpackage/dist/dev/mp-weixin/uni_modules/uni-badge/components/uni-badge/uni-badge.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.js


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
unpackage/dist/dev/mp-weixin/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.js


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
unpackage/dist/dev/mp-weixin/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/uni_modules/uni-list/components/uni-list-item/uni-list-item.js


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
unpackage/dist/dev/mp-weixin/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/mp-weixin/uni_modules/uni-popup/components/uni-popup/uni-popup.js


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
unpackage/dist/dev/mp-weixin/uni_modules/uni-transition/components/uni-transition/uni-transition.js