From 7af16f32de779ba2360344218f807c9909677ee1 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 08 八月 2024 11:20:20 +0800 Subject: [PATCH] feat:关于产品名称换行样式修改 --- pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue index 7b5c483..f9dd274 100644 --- a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue +++ b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue @@ -63,15 +63,15 @@ <view class="card-main" v-for="(value, i) in item.taskCoalList" :key="i" - @click="faYunDetail(value.id)"> + @click="faYunDetail(value.id,value)"> <view class="first-line"> <view class="main-information"> <view class="sign">瑁�</view> <view class="filedname"> <text - v-if="value.orderType == '澶栭攢' || value.orderType == '鍐呴攢' || value.orderType == '杞嚭'">{{ value.deptName || '' }}</text> + v-if="value.orderType == '澶栭攢' || value.orderType == '鍐呴攢' || value.orderType == '澶栭攢閫�' || value.orderType == '杞嚭'">{{ value.deptName || '' }}</text> <text - v-else-if="value.orderType == '澶栬喘' || value.orderType == '鍐呰喘' || value.orderType == '杞叆'">{{ value.customerName || '' }}</text> + v-else-if="value.orderType == '澶栬喘' || value.orderType == '鍐呰喘' || value.orderType == '澶栬喘閫�' || value.orderType == '杞叆'">{{ value.customerName || '' }}</text> </view> </view> <view class="main-divider"></view> @@ -82,15 +82,15 @@ <view class="sign">鍗�</view> <view class="filedname"> <text - v-if="value.orderType == '澶栭攢' || value.orderType == '鍐呴攢' || value.orderType == '杞嚭'">{{ value.customerName || '' }}</text> + v-if="value.orderType == '澶栭攢' || value.orderType == '鍐呴攢' || value.orderType == '澶栭攢閫�' || value.orderType == '杞嚭'">{{ value.customerName || '' }}</text> <text - v-else-if="value.orderType == '澶栬喘' || value.orderType == '鍐呰喘' || value.orderType == '杞叆'">{{ value.deptName || '' }}</text> + v-else-if="value.orderType == '澶栬喘' || value.orderType == '鍐呰喘' || value.orderType == '澶栬喘閫�' || value.orderType == '杞叆'">{{ value.deptName || '' }}</text> </view> </view> </view> <view class="second-line"> <view class="coal-name"> - <view class="">{{ value.productNames || value.productName }}</view> + <view class="productName">{{ value.productNames || value.productName }}</view> <view class="black-bar"></view> <view class="coal-type" v-if="value.orderType">{{ value.orderType }}</view> @@ -339,7 +339,7 @@ // 鐐瑰嚮鍙崇澶磋鎯呭脊绐� faYunDetailobj: {}, modalShow: false, - coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅浠�', '鍑虹叅浠�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠', + coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ヤ粨搴�', '鍑轰粨搴�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠', '杩涘叆鍦洪櫌', '寮傚父瀹℃牳涓�', '杩斿洖鍔犲噺鍚�', '瓒呮椂', '鎵撳嵃涓�', '鎵撳嵃涓�', '濉啓' ] }; @@ -645,10 +645,10 @@ } }, // 璺宠浆鍙戣繍璇︽儏 - faYunDetail(takeCoalId) { + faYunDetail(takeCoalId,value) { console.log(takeCoalId,'tackle') uni.navigateTo({ - url: `/pages/public-page/faYunstatisticsDetails/faYunstatisticsDetails?id=${takeCoalId}`, + url: `/pages/public-page/faYunstatisticsDetails/faYunstatisticsDetails?id=${takeCoalId}&orderType=${value.orderType}`, success(res) { console.log(res); }, @@ -890,7 +890,7 @@ padding: 0 vww(5); @include flex .date-text { - width: 330rpx; + width: 360rpx; height: 40rpx; font-size: 28rpx; font-weight: 400; @@ -1062,11 +1062,18 @@ flex-grow: 1; height: 30rpx; font-size: 30rpx; + width: 50%; font-weight: 300; color: #515151; position: relative; display: flex; align-items: center; + .productName{ + width: 50%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } .black-bar { width: 2rpx; -- Gitblit v1.9.1