Browse Source

soanr fixed

devlop
邓雄飞 4 years ago
parent
commit
5afaae4822
2 changed files with 28 additions and 22 deletions
  1. 8
      pages/guarantee-agreement/index.vue
  2. 42
      pages/mine/index.vue

8
pages/guarantee-agreement/index.vue

@ -183,7 +183,9 @@ export default {
go2('page-view', { title: '签约担保协议', url: encodeURIComponent(res), params: JSON.stringify(this.params) }, true) go2('page-view', { title: '签约担保协议', url: encodeURIComponent(res), params: JSON.stringify(this.params) }, true)
// #endif // #endif
// #ifdef H5 // #ifdef H5
window ? (window.location.href = res) : ''
if (window) {
window.location.href = res
}
// #endif // #endif
} }
}) })
@ -200,7 +202,9 @@ export default {
go2('page-view', { title: '实名认证', url: encodeURIComponent(res) }) go2('page-view', { title: '实名认证', url: encodeURIComponent(res) })
// #endif // #endif
// #ifdef H5 // #ifdef H5
window ? (window.location.href = res) : ''
if (window) {
window.location.href = res
}
// #endif // #endif
} }
}) })

42
pages/mine/index.vue

@ -166,23 +166,23 @@ export default {
tradeRange: [ tradeRange: [
{ {
text: '本月', text: '本月',
value: currentMonth.join('~'),
value: currentMonth.join('~')
}, },
{ {
text: '上月', text: '上月',
value: lastMonth.join('~'),
value: lastMonth.join('~')
}, },
{ {
text: '总计', text: '总计',
value: '',
},
value: ''
}
], ],
tradeDate: currentMonth.join('~'), tradeDate: currentMonth.join('~'),
tradeData: { tradeData: {
tradingVolume: 0, tradingVolume: 0,
volumeOfBusiness: 0, volumeOfBusiness: 0,
orderQuantity: 0,
},
orderQuantity: 0
}
} }
}, },
@ -195,7 +195,7 @@ export default {
if (!this.hasCompany) { if (!this.hasCompany) {
uni.showToast({ uni.showToast({
title: '您还没有企业信息,请先完善企业信息', title: '您还没有企业信息,请先完善企业信息',
icon: 'none',
icon: 'none'
}) })
return return
} }
@ -210,7 +210,9 @@ export default {
go2('page-view', { title: '实名认证', url: encodeURIComponent(res) }) go2('page-view', { title: '实名认证', url: encodeURIComponent(res) })
// #endif // #endif
// #ifdef H5 // #ifdef H5
window ? (window.location.href = res) : ''
if (window) {
window.location.href = res
}
// #endif // #endif
} }
}) })
@ -222,7 +224,7 @@ export default {
if (!this.hasCompany) { if (!this.hasCompany) {
uni.showToast({ uni.showToast({
title: '您还没有企业,请先加入企业', title: '您还没有企业,请先加入企业',
icon: 'none',
icon: 'none'
}) })
return return
} }
@ -234,7 +236,7 @@ export default {
} else { } else {
uni.showToast({ uni.showToast({
title: '请先完善企业信息', title: '请先完善企业信息',
icon: 'none',
icon: 'none'
}) })
} }
}, },
@ -246,9 +248,9 @@ export default {
uni.showToast({ uni.showToast({
title: '复制成功', title: '复制成功',
icon: 'none', icon: 'none',
duration: 2000,
duration: 2000
}) })
},
}
}) })
}, },
// //
@ -263,14 +265,14 @@ export default {
getOrderStatistics({ getOrderStatistics({
beginDate, beginDate,
endDate, endDate,
currentSupplier,
currentSupplier
}).then((res) => { }).then((res) => {
console.log('res', res) console.log('res', res)
if (res) { if (res) {
this.tradeData = res this.tradeData = res
} }
}) })
},
}
}, },
watch: { watch: {
tradeDate(val) { tradeDate(val) {
@ -283,7 +285,7 @@ export default {
this.getStatistics() this.getStatistics()
} }
}, },
immediate: true,
immediate: true
}, },
tradeDate() { tradeDate() {
this.getStatistics() this.getStatistics()
@ -294,10 +296,10 @@ export default {
this.tradeData = { this.tradeData = {
tradingVolume: 0, tradingVolume: 0,
volumeOfBusiness: 0, volumeOfBusiness: 0,
orderQuantity: 0,
orderQuantity: 0
} }
} }
},
}
}, },
computed: { computed: {
vipExpireTime() { vipExpireTime() {
@ -331,9 +333,9 @@ export default {
avatar: this.$store.state.userInfo.avatar || '', avatar: this.$store.state.userInfo.avatar || '',
name: this.$store.state.userInfo.name || this.$store.state.userInfo.mobile || '', name: this.$store.state.userInfo.name || this.$store.state.userInfo.mobile || '',
supplierName: this.$store.state.supplierInfo.name || '', supplierName: this.$store.state.supplierInfo.name || '',
fddEnterpriseStatus: this.$store.state.supplierInfo.fddEnterpriseStatus || 1,
fddEnterpriseStatus: this.$store.state.supplierInfo.fddEnterpriseStatus || 1
} }
},
}
}, },
onLoad() {}, onLoad() {},
onShow() { onShow() {
@ -344,7 +346,7 @@ export default {
} }
}) })
this.hasLogin && this.getStatistics() this.hasLogin && this.getStatistics()
},
}
} }
</script> </script>

Loading…
Cancel
Save