Commit 01aa35c2 by 匡雅琴

调整详情页接口

1 parent 378b9032
......@@ -114,7 +114,7 @@ export default {
query: {
merchantid: item.merchantid,
merchantName: item.merchantname,
year: this.$store.state.app.solarYear
year: this.$store.state.app.boutique.year
}
})
window.open(routeData.href, '_blank')
......
......@@ -74,17 +74,16 @@ export default {
created() {
const { merchantid, year } = this.$route.query
console.log(merchantid);
this.merchantid = merchantid
this.year = year
this.getMerchantOverview(merchantid, year)
},
methods: {
init() {
this.getMerchantOverview()
},
// 获取门店的总展业时间&最近订单时间、总产值&本月产值等
async getMerchantOverview() {
const _data = await this.api.boutique.getYears({ MerchantId: this.merchantid, year: this.year })
async getMerchantOverview(merchantid, year) {
console.log(this.merchantid);
const _data = await this.api.boutique.getMerchantOverview({ MerchantId: merchantid, year })
const _dataList = _data.data.dataList[0]
if (_dataList) {
this.boutiqueDetailList.forEach(item => {
......
......@@ -46,7 +46,7 @@ export default {
{
name: 'rate',
type: 'decimal',
width: '1.88vw'
width: '3vw'
},
{
name: 'orderNum',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!