From 79993be468244e6cc16ce9c1d7e8736bd359c600 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期五, 05 五月 2023 14:48:51 +0800 Subject: [PATCH] 样式全面修改,所有页面焕然一新 --- pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue | 140 +++++++++++++++++++++++++++++++--------------- 1 files changed, 94 insertions(+), 46 deletions(-) diff --git a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue index 2e623fd..6600f2f 100644 --- a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue +++ b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue @@ -1,49 +1,62 @@ <template> <view> - <combined-title title="鎻愮叅鍗曡鎯�"></combined-title> - <view class="compDetails" v-for="(item, index) in yyDailyList" :key="index"> - <uni-table border stripe emptyText="鏆傛棤鏇村鏁版嵁"> - <uni-tr> - <uni-th align="left">鎻愮叅鍗曠紪鍙�</uni-th> - <uni-td align="left">{{ item.code || '' }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">鎻愮叅鍗曠姸鎬�</uni-th> - <uni-td align="left">{{ coalStatus[item.status] }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">杞︾墝鍙�</uni-th> - <uni-td align="left">{{ item.carNo || '' }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">鍏ュ満鏃堕棿</uni-th> - <uni-td align="left">{{ item.inTime || '' }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">鍑哄満鏃堕棿</uni-th> - <uni-td align="left">{{ item.outTime || '' }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">鐨噸</uni-th> - <uni-td align="left">{{ item.skin || 0 }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">姣涢噸</uni-th> - <uni-td align="left">{{ item.hair || 0 }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">鍑�閲�</uni-th> - <uni-td align="left">{{ item.clean || 0 }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">璁㈠崟缂栧彿</uni-th> - <uni-td align="left">{{ item.orderCode || '' }}</uni-td> - </uni-tr> - <uni-tr> - <uni-th align="left">璁㈠崟鍓╀綑閲�</uni-th> - <uni-td align="left">{{ item.allowance || 0 }}</uni-td> - </uni-tr> - </uni-table> + <view class="main"> + <view class="main-body"> + <view class="body-container"> + <view class="container-block"> + <view class="">杞︾墝鍙�</view> + <view class="">{{ yyDailyList.carNo || '' }}</view> + </view> + </view> + <view class="body-container"> + <view class="container-block"> + <view class="">鎻愮叅鍗曠姸鎬�</view> + <view class="">{{ coalStatus[yyDailyList.status] }}</view> + </view> + </view> + <view class="body-container"> + <view class="container-block"> + <view class="">鍏ュ満鏃堕棿</view> + <view class="">{{ yyDailyList.inTime || '' }}</view> + </view> + </view> + <view class="body-container"> + <view class="container-block"> + <view class="">鐨噸</view> + <view class="">{{ yyDailyList.skin || '' }}</view> + </view> + </view> + <view class="body-container"> + <view class="container-block"> + <view class="">姣涢噸</view> + <view class="">{{ yyDailyList.hair || '' }}</view> + </view> + </view> + <view class="body-container"> + <view class="container-block"> + <view class="">鍑�閲�</view> + <view class="">{{ yyDailyList.clean || '' }}</view> + </view> + </view> + <view class="body-container"> + <view class="container-block"> + <view class="">璁㈠崟鍓╀綑閲�</view> + <view class="">{{ yyDailyList.allowance || '' }}</view> + </view> + </view> + <view class="body-container"> + <view class="container-block"> + <view class="">鎻愮叅鍗曠紪鍙�</view> + <view class="">{{ yyDailyList.code || '' }}</view> + </view> + </view> + <view class="body-container last"> + <view class="container-block"> + <view class="">璁㈠崟缂栧彿</view> + <view class="">{{ yyDailyList.orderCode || '' }}</view> + </view> + </view> + </view> </view> </view> </template> @@ -65,7 +78,7 @@ data() { return { orderPlanId: '', - yyDailyList: [], + yyDailyList: {}, orderPlanDetail: {}, coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅鍦�', '鍑虹叅浠�'], index: '' @@ -79,7 +92,8 @@ this.$reqGet('xiangqingList', { orderPlanId: this.orderPlanId }).then(res => { if (res.code == 0) { this.orderPlanDetail = res.data; - this.yyDailyList = res.data.yyDailyList.filter((v, i) => i == this.index); + this.yyDailyList = res.data.yyDailyList.filter((v, i) => i == this.index)[0]; + console.log(this.yyDailyList); uni.hideLoading(); } else { this.$u.toast('鍔犺浇澶辫触'); @@ -91,6 +105,40 @@ </script> <style scoped lang="scss"> +@mixin flex { + display: flex; + justify-content: space-between; + align-items: center; +} +.main { + width: 100%; + margin-top: vww(10); + @include flex justify-content: center; + .main-body { + width: 690rpx; + height: 1062rpx; + background: #ffffff; + box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12); + border-radius: 20rpx; + @include flex flex-direction: column; + align-items: flex-start; + .body-container { + width: 100%; + height: vww(56); + border-bottom: vww(1) solid #d6d6d6; + @include flex; + justify-content: center; + .container-block { + width: 96%; + height: vww(56); + @include flex; + } + } + .last { + border-bottom: none; + } + } +} .uni-table { .uni-table-tr { padding: 0; -- Gitblit v1.9.1