Kaynağa Gözat

国际化适配

xiaohaizhao 5 ay önce
ebeveyn
işleme
39b8e88f9a

+ 1 - 1
packageA/borrow/modules/product/list/index.wxml

@@ -10,7 +10,7 @@
 			<view class="dec">
 				<view class="title">
 					<text class="line-1">{{item.itemname}}</text>
-					<text class="tag" wx:if="{{item.stockstatus}}">{{item.stockstatus}}</text>
+					<text class="tag" wx:if="{{item.stockstatus}}">{{language[item.stockstatus]||item.stockstatus}}</text>
 				</view>
 				<view class="subfield">
 					{{language['编号']||'编号'}}:{{item.itemno}}

+ 1 - 1
packageA/invoice/modules/detailLine/list/index.wxml

@@ -10,7 +10,7 @@
             <view class="dec">
                 <view class="title">
                     <text class="line-1">{{item.itemname}}</text>
-                    <text class="tag" wx:if="{{item.stockstatus}}">{{item.stockstatus}}</text>
+                    <text class="tag" wx:if="{{item.stockstatus}}">{{language[item.stockstatus]||item.stockstatus}}</text>
                 </view>
                 <view class="subfield">
                     {{language[item.type]||item.type}}:{{item.sonum}}

+ 1 - 1
packageA/orderForm/modules/product/list/index.wxml

@@ -10,7 +10,7 @@
             <view class="dec">
                 <view class="title">
                     <text class="line-1">{{item.itemname}}</text>
-                    <text class="tag" wx:if="{{item.stockstatus}}">{{item.stockstatus}}</text>
+                    <text class="tag" wx:if="{{item.stockstatus}}">{{language[item.stockstatus]||item.stockstatus}}</text>
                 </view>
                 <view class="subfield">
                     {{language['编号']||'编号'}}:{{item.itemno}}

+ 1 - 1
packageA/shipment/index.js

@@ -30,7 +30,7 @@ Page({
 			content
 		}).then(res => {
 			console.log("订单列表", res)
-			if(res.msg!='成功')return wx.showToast({
+			if(res.code!='1')return wx.showToast({
 				title: res.msg,
 				icon:"none"
 			})

+ 1 - 1
packageA/toolBill/modules/toolDetail/list/index.wxml

@@ -10,7 +10,7 @@
 			<view class="dec">
 				<view class="title">
 					<text class="line-1">{{item.itemname}}</text>
-					<text class="tag" wx:if="{{item.stockstatus}}">{{item.stockstatus}}</text>
+					<text class="tag" wx:if="{{item.stockstatus}}">{{language[item.stockstatus]||item.stockstatus}}</text>
 				</view>
 				<view class="subfield">
 					{{language['编号']||'编号'}}:{{item.itemno}}

+ 3 - 3
pages/tabbar/message/details.js

@@ -69,7 +69,7 @@ Page({
 			}
 		}).then(res => {
 			console.log("订单", res)
-			if (res.msg != '成功') return wx.showToast({
+			if (res.code != '1') return wx.showToast({
 				title: res.data,
 				icon: "none"
 			});
@@ -102,7 +102,7 @@ Page({
 			},
 		}).then(res => {
 			console.log("线索详情", res)
-			if (res.msg != '成功') return wx.showToast({
+			if (res.code != '1') return wx.showToast({
 				title: res.data,
 				icon: "none"
 			});
@@ -120,7 +120,7 @@ Page({
 			},
 		}).then(res => {
 			console.log("客户详情", res)
-			if (res.msg != '成功') return wx.showToast({
+			if (res.code != '1') return wx.showToast({
 				title: res.data,
 				icon: "none"
 			});