|
|
@@ -2,11 +2,7 @@
|
|
|
<view class="itemList-box">
|
|
|
<view class="title">
|
|
|
列表
|
|
|
- <text style="float: right">{{
|
|
|
- getMyShopInfo.shop.shopName == "首店"
|
|
|
- ? getMyShopInfo.shop.merchantName
|
|
|
- : getMyShopInfo.shop.merchantName + " " + getMyShopInfo.shop.shopName
|
|
|
- }}</text>
|
|
|
+ <text style="float: right">{{ shopTitle }}</text>
|
|
|
</view>
|
|
|
<scroll-view
|
|
|
class="itemList-item_box"
|
|
|
@@ -111,6 +107,16 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["getMyShopInfo"]),
|
|
|
+ shopTitle() {
|
|
|
+ const shop = (this.getMyShopInfo && this.getMyShopInfo.shop) || {};
|
|
|
+ const merchantName = shop.merchantName || "";
|
|
|
+ const shopName = shop.shopName || "";
|
|
|
+
|
|
|
+ if (!merchantName && !shopName) return "";
|
|
|
+ return shopName == "首店"
|
|
|
+ ? merchantName
|
|
|
+ : `${merchantName}${merchantName && shopName ? " " : ""}${shopName}`;
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.getGroupList();
|