From 7bf589cc2fcf52c2898301e925cf50b018f99741 Mon Sep 17 00:00:00 2001 From: dengxiongfei Date: Mon, 7 Mar 2022 15:41:54 +0800 Subject: [PATCH] fixes sonar provide issus --- pages/follow-up-records/index.vue | 1 - pages/order-detail/index.vue | 47 +++++++++++++------------------ pages/store-settings/index.vue | 1 - 3 files changed, 20 insertions(+), 29 deletions(-) diff --git a/pages/follow-up-records/index.vue b/pages/follow-up-records/index.vue index ba6ed2e..c97151b 100644 --- a/pages/follow-up-records/index.vue +++ b/pages/follow-up-records/index.vue @@ -104,7 +104,6 @@ export default { return new Promise((resolve, reject) => { getVisitRecordList({ ...this.params, ...this.pagination }) .then((res) => { - // console.log('跟踪记录', res) if (res) { if (res.current == 1) { this.list = res.records diff --git a/pages/order-detail/index.vue b/pages/order-detail/index.vue index 327f6bb..32fd0db 100644 --- a/pages/order-detail/index.vue +++ b/pages/order-detail/index.vue @@ -470,8 +470,8 @@ export default { if (res.confirm) { supplierDelivery({ supplierOrderId: this.orderInfo.orderId - }).then((res) => { - if (res) { + }).then((success) => { + if (success) { uni.showToast({ title: '确认送货成功', icon: 'success', @@ -521,8 +521,8 @@ export default { if (res.confirm) { supplierConfirmRepay({ supplierOrderId: this.orderInfo.orderId - }).then((res) => { - if (res) { + }).then((susses) => { + if (susses) { uni.showToast({ title: '确认还款成功', icon: 'success', @@ -638,29 +638,6 @@ export default { } } } -.button { - height: 88rpx; - display: flex; - align-items: center; - justify-content: center; - font-size: 30rpx; - border-radius: 10rpx; -} -.button_cancel { - width: 270rpx; - border: 1px solid #979797; -} -.button_confirm { - width: 400rpx; - background-color: #007aff; - color: #fff; -} -.button_contact { - width: 220rpx; - border: 1px solid #007aff; - color: #007aff; - margin: 0 14rpx; -} .default-upload { width: 120rpx; height: 120rpx; @@ -726,6 +703,7 @@ export default { } } .button { + height: 88rpx; flex-grow: 0; flex-shrink: 0; display: flex; @@ -748,4 +726,19 @@ export default { height: 88rpx; background: #007aff; } +.button_cancel { + width: 270rpx; + border: 1px solid #979797; +} +.button_confirm { + width: 400rpx; + background-color: #007aff; + color: #fff; +} +.button_contact { + width: 220rpx; + border: 1px solid #007aff; + color: #007aff; + margin: 0 14rpx; +} diff --git a/pages/store-settings/index.vue b/pages/store-settings/index.vue index 51c4496..efb18c2 100644 --- a/pages/store-settings/index.vue +++ b/pages/store-settings/index.vue @@ -194,7 +194,6 @@ export default { background-color: #ffffff; } .store-setting-name { - // font-size: 28rpx; color: #000000; letter-spacing: 0; font-weight: 500;