浏览代码

售后详情多语言

mabaoyi 6 月之前
父节点
当前提交
3d16cb9e92

+ 21 - 1
pageC/refundDetail/component/refundInformation.vue

@@ -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 {

+ 2 - 0
pageC/refundDetail/refundDetail.vue

@@ -22,6 +22,7 @@
     <RefundInformation
       :goodsDetail="refundDetail.goods[0]"
       :refundDetail="refundDetail"
+      :language="language"
     />
     <MoneyDestination
       :show="show"
@@ -56,6 +57,7 @@ export default {
       status: 1,
       orderRefundId: "",
       refundDetail: {},
+      language: this._language,
     };
   },
   onLoad(options) {

文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pageC/refundDetail/component/refundInformation.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pageC/refundDetail/refundDetail.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/mp-weixin/pageC/refundDetail/component/refundInformation.js


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/mp-weixin/pageC/refundDetail/component/refundInformation.wxml


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/mp-weixin/pageC/refundDetail/refundDetail.js


+ 1 - 1
unpackage/dist/dev/mp-weixin/pageC/refundDetail/refundDetail.wxml

@@ -1 +1 @@
-<view class="page data-v-5cebfe76"><block wx:if="{{refundDetail.goods[0].refund.status==1}}"><refund-successful vue-id="40945150-1" refundDetail="{{refundDetail}}" data-event-opts="{{[['^checkMoney',[['checkMoney']]]]}}" bind:checkMoney="__e" class="data-v-5cebfe76" bind:__l="__l"></refund-successful></block><block wx:if="{{refundDetail.goods[0].refund.status==0}}"><refund-in-progress vue-id="40945150-2" refundDetail="{{refundDetail}}" class="data-v-5cebfe76" bind:__l="__l"></refund-in-progress></block><block wx:if="{{refundDetail.goods[0].refund.status==2||refundDetail.goods[0].refund.status==3}}"><refusal-to-refund vue-id="40945150-3" refundDetail="{{refundDetail}}" class="data-v-5cebfe76" bind:__l="__l"></refusal-to-refund></block><refund-information vue-id="40945150-4" goodsDetail="{{refundDetail.goods[0]}}" refundDetail="{{refundDetail}}" class="data-v-5cebfe76" bind:__l="__l"></refund-information><money-destination vue-id="40945150-5" show="{{show}}" refundDetail="{{refundDetail}}" data-event-opts="{{[['^close',[['close']]]]}}" bind:close="__e" class="data-v-5cebfe76" bind:__l="__l"></money-destination><block wx:if="{{refundDetail.goods[0].refund.status!=1}}"><view class="footer data-v-5cebfe76"><button data-event-opts="{{[['tap',[['platformIntervene',['$event']]]]]}}" class="btn data-v-5cebfe76" bindtap="__e">{{''+i18n.platformIntervention+''}}</button></view></block></view>
+<view class="page data-v-5cebfe76"><block wx:if="{{refundDetail.goods[0].refund.status==1}}"><refund-successful vue-id="40945150-1" refundDetail="{{refundDetail}}" data-event-opts="{{[['^checkMoney',[['checkMoney']]]]}}" bind:checkMoney="__e" class="data-v-5cebfe76" bind:__l="__l"></refund-successful></block><block wx:if="{{refundDetail.goods[0].refund.status==0}}"><refund-in-progress vue-id="40945150-2" refundDetail="{{refundDetail}}" class="data-v-5cebfe76" bind:__l="__l"></refund-in-progress></block><block wx:if="{{refundDetail.goods[0].refund.status==2||refundDetail.goods[0].refund.status==3}}"><refusal-to-refund vue-id="40945150-3" refundDetail="{{refundDetail}}" class="data-v-5cebfe76" bind:__l="__l"></refusal-to-refund></block><refund-information vue-id="40945150-4" goodsDetail="{{refundDetail.goods[0]}}" refundDetail="{{refundDetail}}" language="{{language}}" class="data-v-5cebfe76" bind:__l="__l"></refund-information><money-destination vue-id="40945150-5" show="{{show}}" refundDetail="{{refundDetail}}" data-event-opts="{{[['^close',[['close']]]]}}" bind:close="__e" class="data-v-5cebfe76" bind:__l="__l"></money-destination><block wx:if="{{refundDetail.goods[0].refund.status!=1}}"><view class="footer data-v-5cebfe76"><button data-event-opts="{{[['tap',[['platformIntervene',['$event']]]]]}}" class="btn data-v-5cebfe76" bindtap="__e">{{''+i18n.platformIntervention+''}}</button></view></block></view>

+ 30 - 46
unpackage/dist/dev/mp-weixin/project.config.json

@@ -1,46 +1,30 @@
-{
-  "description": "项目配置文件。",
-  "packOptions": {
-    "ignore": [],
-    "include": []
-  },
-  "setting": {
-    "urlCheck": false,
-    "es6": false,
-    "postcss": false,
-    "minified": false,
-    "newFeature": true,
-    "bigPackageSizeSupport": true,
-    "babelSetting": {
-      "ignore": [],
-      "disablePlugins": [],
-      "outputPath": ""
-    }
-  },
-  "compileType": "miniprogram",
-  "libVersion": "3.4.3",
-  "appid": "wx84ab1b5d609b805d",
-  "projectname": "kjds",
-  "condition": {
-    "search": {
-      "current": -1,
-      "list": []
-    },
-    "conversation": {
-      "current": -1,
-      "list": []
-    },
-    "game": {
-      "current": -1,
-      "list": []
-    },
-    "miniprogram": {
-      "current": -1,
-      "list": []
-    }
-  },
-  "editorSetting": {
-    "tabIndent": "insertSpaces",
-    "tabSize": 2
-  }
-}
+{
+  "description": "项目配置文件。",
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
+  "setting": {
+    "urlCheck": false,
+    "es6": false,
+    "postcss": false,
+    "minified": false,
+    "newFeature": true,
+    "bigPackageSizeSupport": true,
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
+    }
+  },
+  "compileType": "miniprogram",
+  "libVersion": "3.4.3",
+  "appid": "wx84ab1b5d609b805d",
+  "projectname": "kjds",
+  "condition": {
+    "search": {
+      "current": -1,
+      "list": []
+    },
+    "conversation": {
+      "current": -1,

部分文件因为文件数量过多而无法显示