|
@@ -32,7 +32,18 @@
|
|
|
></image>
|
|
|
<view class="">
|
|
|
<view class="commodity-2">
|
|
|
- <view class="commodity-title">{{ goodsDetail.goods_name }} </view>
|
|
|
+ <view class="commodity-title" v-if="language == 'zh-CN'"
|
|
|
+ >{{ goodsDetail.goods.name_cn }}
|
|
|
+ </view>
|
|
|
+ <view class="commodity-title" v-if="language == 'en-US'"
|
|
|
+ >{{ goodsDetail.goods.name_en }}
|
|
|
+ </view>
|
|
|
+ <view class="commodity-title" v-if="language == 'es-ES'"
|
|
|
+ >{{ goodsDetail.goods.name_es }}
|
|
|
+ </view>
|
|
|
+ <view class="commodity-title" v-if="language == 'it-IT'"
|
|
|
+ >{{ goodsDetail.goods.name_ita }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="commodity-3">
|
|
@@ -95,6 +106,15 @@ export default {
|
|
|
return {};
|
|
|
},
|
|
|
},
|
|
|
+ language: {
|
|
|
+ typeof: String,
|
|
|
+ default: "",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ i18n() {
|
|
|
+ return this.$t("index");
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|