From a0f333ef7944e2964e6807e86fd6ebe50f66402f Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期五, 29 七月 2022 11:18:58 +0800 Subject: [PATCH] editWX --- pages/new-application-form-data/new-application-form-data.vue | 35 +++++++++++------------------------ 1 files changed, 11 insertions(+), 24 deletions(-) diff --git a/pages/new-application-form-data/new-application-form-data.vue b/pages/new-application-form-data/new-application-form-data.vue index dc1bf80..b53c266 100644 --- a/pages/new-application-form-data/new-application-form-data.vue +++ b/pages/new-application-form-data/new-application-form-data.vue @@ -70,9 +70,8 @@ <view class="searchResultList"> <u-cell-group :right-icon="false"> <u-cell v-for="(item, index) in customerData" :title="item.customerFullName" :arrow="false"> - <text slot="value" class="u-slot-value"> + <view slot="value" class="u-slot-value"> <button - class="mini-btn" type="default" size="mini" style="background: #007aff; @@ -87,7 +86,7 @@ > 閫夋嫨 </button> - </text> + </view> </u-cell> </u-cell-group> </view> @@ -392,7 +391,7 @@ <view :style="tdStyle">{{ item.compName }}</view> </uni-td> <uni-td align="left"> - <view :style="tdStyle">{{ item.remark }}</view> + <view :style="tdStyle">{{ item.remark == null ? '' : item.remark }}</view> </uni-td> </uni-tr> </uni-table> @@ -444,7 +443,7 @@ <view class="searchResultList"> <u-cell-group :right-icon="false"> <u-cell v-for="(item, index) in customerData" :title="item.customerFullName" :arrow="false"> - <text slot="value" class="u-slot-value"> + <view slot="value" class="u-slot-value"> <button class="mini-btn" type="default" @@ -461,7 +460,7 @@ > 閫夋嫨 </button> - </text> + </view> </u-cell> </u-cell-group> </view> @@ -1228,24 +1227,12 @@ // 浠锋牸鍙傛暟璧嬪�� this.getNewPriceData.type = e.type; - // 閫夊畾鍚堝悓璇︽儏 - uni - .request({ - url: `/yunxiao/contractitem/getByContractId/${e.id}`, - method: 'GET', - header: { - 'TENANT-ID': 5, - Authorization: 'Bearer ' + uni.getStorageSync('access_token'), - VERSION: 'zzl' - } - }) - .then(res => { - this.contractDetails = res[1].data.data; - console.log('鍚堝悓璇︽儏', res, this.contractDetails); - }) - .catch(err => { - console.log(err); - }); + // 閫夊畾鍚堝悓璇︽儏 + this.$reqGet('getByContractId',{},e.id).then(res=>{ + this.contractDetails = res.data + }).catch(err=>{ + console.log(err); + }) }, // 娣诲姞鍚堝悓鎸夐挳 addContractClick() { -- Gitblit v1.9.1