chore(多语言): 将isEnEnv计算属性挂载到全局Vue组件上,针对商品名称优化英文显示
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
</view>
|
||||
|
||||
<view class="goods-module-wrap info">
|
||||
<text class="sku-name-wrap">{{ goodsSkuDetail.goods_name }}</text>
|
||||
<text class="sku-name-wrap">{{ isEnEnv ? goodsSkuDetail.en_goods_name : goodsSkuDetail.goods_name }}</text>
|
||||
<text class="introduction" v-if="goodsSkuDetail.introduction" :style="{ color: goodsSkuDetail.config ? goodsSkuDetail.config.introduction_color : '' }">
|
||||
{{ goodsSkuDetail.introduction }}
|
||||
</text>
|
||||
@@ -235,7 +235,7 @@
|
||||
<text class="price price-font">{{ goodsSkuDetail.price }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="name">{{ goodsSkuDetail.goods_name }}</text>
|
||||
<text class="name">{{ isEnEnv ? goodsSkuDetail.en_goods_name : goodsSkuDetail.goods_name }}</text>
|
||||
</view>
|
||||
<block v-for="(item, index) in bundling[0].bundling_goods" :key="index">
|
||||
<template v-if="index < 3">
|
||||
@@ -280,7 +280,7 @@
|
||||
<text class="price price-font">{{ goodsSkuDetail.price }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="name">{{ goodsSkuDetail.goods_name }}</text>
|
||||
<text class="name">{{ isEnEnv ? goodsSkuDetail.en_goods_name : goodsSkuDetail.goods_name }}</text>
|
||||
</view>
|
||||
<block v-for="(goods, goods_index) in item.bundling_goods" :key="goods_index">
|
||||
<template v-if="goods_index < 3">
|
||||
|
||||
Reference in New Issue
Block a user