Commit 68953595 authored by Smile's avatar Smile

英文下单成功页面,显示中文名称修改

parent fc1f3898
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view class="finish-list"> <view class="finish-list">
<view class="finish-info" style="padding-top:12px"> <view class="finish-info" style="padding-top:12px">
<text>{{$lang.lang.finsh.orderNo}}:</text> <text>{{$lang.lang.finsh.orderNo}}:</text>
<text style="font-size: 16px;font-weight: 600;">{{orderData.orderNo}}</text> <text style="font-size: 16px;font-weight: 600;">{{orderData.orderNo}}</text>
<view class="copy" @click="toCopy">{{$lang.lang.notices.copy}}</view> <view class="copy" @click="toCopy">{{$lang.lang.notices.copy}}</view>
</view> </view>
<view class="finish-info" style="margin-top: 2px;"> <view class="finish-info" style="margin-top: 2px;">
...@@ -45,10 +45,10 @@ ...@@ -45,10 +45,10 @@
</view> </view>
<view class="finish-info"> <view class="finish-info">
<text>{{$lang.lang.finsh.address}}:</text> <text>{{$lang.lang.finsh.address}}:</text>
<text>{{orderData.logisticsInfoDto?orderData.logisticsInfoDto.startAddressZh:''}}</text> <text>{{orderData.logisticsInfoDto?orderData.logisticsInfoDto[$lang.startAddress]:''}}</text>
</view> </view>
<view class="finish-info"> <view class="finish-info">
<text>{{$lang.lang.finsh.phone}}:</text> <text>{{$lang.lang.finsh.phone}}:</text>
<text>{{orderData.logisticsInfoDto?orderData.logisticsInfoDto.startTell:''}}</text> <text>{{orderData.logisticsInfoDto?orderData.logisticsInfoDto.startTell:''}}</text>
</view> </view>
<view class="finish-info"> <view class="finish-info">
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
var name = [] var name = []
if(this.orderData.orderItemVOList.length>0){ if(this.orderData.orderItemVOList.length>0){
this.orderData.orderItemVOList.forEach((item)=>{ this.orderData.orderItemVOList.forEach((item)=>{
name.push(item.prodTitleZh) name.push(item[this.$lang.prodTitle])
}) })
this.orderData.goodsName = name.join(',') this.orderData.goodsName = name.join(',')
} }
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
return this.orderData.logisticsInfoDto.startTitleZh+'>>'+this.orderData.logisticsInfoDto.destTitleZh return this.orderData.logisticsInfoDto.startTitleZh+'>>'+this.orderData.logisticsInfoDto.destTitleZh
}else{ }else{
return this.orderData.logisticsInfoDto.startTitleEn+'>>'+this.orderData.logisticsInfoDto.destTitleEn return this.orderData.logisticsInfoDto.startTitleEn+'>>'+this.orderData.logisticsInfoDto.destTitleEn
} }
} }
}, },
getLineData(){ getLineData(){
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
}else{ }else{
transName = name[0].startTitleEn+'>>'+name[0].destTitleEn transName = name[0].startTitleEn+'>>'+name[0].destTitleEn
} }
} }
} }
return transName return transName
} }
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
}) })
}, },
//复制订单号 //复制订单号
toCopy(){ toCopy(){
let str = this.$lang.lang.finsh.orderNo+' : '+this.orderData.orderNo+'\n'+this.$lang.lang.create.marks+' : '+this.orderData.marks let str = this.$lang.lang.finsh.orderNo+' : '+this.orderData.orderNo+'\n'+this.$lang.lang.create.marks+' : '+this.orderData.marks
str = str +'\n'+ this.$lang.lang.orderInfo.ballAddress+' : '+(this.orderData.logisticsInfoDto?(this.$lang.locale=='zh'?this.orderData.logisticsInfoDto.destTitleZh:this.orderData.logisticsInfoDto.destTitleEn):'') str = str +'\n'+ this.$lang.lang.orderInfo.ballAddress+' : '+(this.orderData.logisticsInfoDto?(this.$lang.locale=='zh'?this.orderData.logisticsInfoDto.destTitleZh:this.orderData.logisticsInfoDto.destTitleEn):'')
str = str +'\n' + this.$lang.lang.finsh.saddress + ' : '+ (this.orderData.logisticsInfoDto?this.orderData.logisticsInfoDto.startAddressZh:'') str = str +'\n' + this.$lang.lang.finsh.saddress + ' : '+ (this.orderData.logisticsInfoDto?this.orderData.logisticsInfoDto.startAddressZh:'')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment