优化:商户列表 页面标题优化,根据获取的商户类型显示不同的页面标题

This commit is contained in:
wuhui_zzw 2024-04-28 11:44:22 +08:00
parent d04cfffa98
commit 5030fb0b12
1 changed files with 2 additions and 1 deletions

View File

@ -289,8 +289,9 @@
//
let merchantType = options.merchant_type || 0;
this.sotreParam.merchant_type = merchantType
let pageTitle = this.$util.getMerchantTypeText(merchantType);
uni.setNavigationBarTitle({
title: merchantType == 0 ? '附近商家' : (merchantType == 1 ? '附近酒道馆' : '合作企业')
title: merchantType == 2 ? '合作企业' : '附近' + pageTitle
})
this.storeList = [];
if(this.mer_location)this.selfLocation()