diff --git a/pages/guarantee-agreement/index.vue b/pages/guarantee-agreement/index.vue index 172c84e..3a8c216 100644 --- a/pages/guarantee-agreement/index.vue +++ b/pages/guarantee-agreement/index.vue @@ -183,7 +183,9 @@ export default { go2('page-view', { title: '签约担保协议', url: encodeURIComponent(res), params: JSON.stringify(this.params) }, true) // #endif // #ifdef H5 - window ? (window.location.href = res) : '' + if (window) { + window.location.href = res + } // #endif } }) @@ -200,7 +202,9 @@ export default { go2('page-view', { title: '实名认证', url: encodeURIComponent(res) }) // #endif // #ifdef H5 - window ? (window.location.href = res) : '' + if (window) { + window.location.href = res + } // #endif } }) diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 90eafce..fb0fcfb 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -166,23 +166,23 @@ export default { tradeRange: [ { text: '本月', - value: currentMonth.join('~'), + value: currentMonth.join('~') }, { text: '上月', - value: lastMonth.join('~'), + value: lastMonth.join('~') }, { text: '总计', - value: '', - }, + value: '' + } ], tradeDate: currentMonth.join('~'), tradeData: { tradingVolume: 0, volumeOfBusiness: 0, - orderQuantity: 0, - }, + orderQuantity: 0 + } } }, @@ -195,7 +195,7 @@ export default { if (!this.hasCompany) { uni.showToast({ title: '您还没有企业信息,请先完善企业信息', - icon: 'none', + icon: 'none' }) return } @@ -210,7 +210,9 @@ export default { go2('page-view', { title: '实名认证', url: encodeURIComponent(res) }) // #endif // #ifdef H5 - window ? (window.location.href = res) : '' + if (window) { + window.location.href = res + } // #endif } }) @@ -222,7 +224,7 @@ export default { if (!this.hasCompany) { uni.showToast({ title: '您还没有企业,请先加入企业', - icon: 'none', + icon: 'none' }) return } @@ -234,7 +236,7 @@ export default { } else { uni.showToast({ title: '请先完善企业信息', - icon: 'none', + icon: 'none' }) } }, @@ -246,9 +248,9 @@ export default { uni.showToast({ title: '复制成功', icon: 'none', - duration: 2000, + duration: 2000 }) - }, + } }) }, // 获取纸盘商订单统计 @@ -263,14 +265,14 @@ export default { getOrderStatistics({ beginDate, endDate, - currentSupplier, + currentSupplier }).then((res) => { console.log('res', res) if (res) { this.tradeData = res } }) - }, + } }, watch: { tradeDate(val) { @@ -283,7 +285,7 @@ export default { this.getStatistics() } }, - immediate: true, + immediate: true }, tradeDate() { this.getStatistics() @@ -294,10 +296,10 @@ export default { this.tradeData = { tradingVolume: 0, volumeOfBusiness: 0, - orderQuantity: 0, + orderQuantity: 0 } } - }, + } }, computed: { vipExpireTime() { @@ -331,9 +333,9 @@ export default { avatar: this.$store.state.userInfo.avatar || '', name: this.$store.state.userInfo.name || this.$store.state.userInfo.mobile || '', supplierName: this.$store.state.supplierInfo.name || '', - fddEnterpriseStatus: this.$store.state.supplierInfo.fddEnterpriseStatus || 1, + fddEnterpriseStatus: this.$store.state.supplierInfo.fddEnterpriseStatus || 1 } - }, + } }, onLoad() {}, onShow() { @@ -344,7 +346,7 @@ export default { } }) this.hasLogin && this.getStatistics() - }, + } }