Commit 5fc01454 authored by Smile's avatar Smile Committed by wux

app订单收发货图标,根据多语言动态展示

parent ec3226b8
......@@ -53,8 +53,8 @@
</view>
<view class="order-list-it" v-else v-for="(item,index) in data" :key="index">
<view class="order-list-tp">
<image v-if="selectIndex==1||(selectIndex==0&&item.deliverGoods)||(selectIndex==3&&item.consigneePhone==userInfo.mobile)" class="fa" src="../../static/img/fa.png" mode=""></image>
<image v-else class="fa" src="../../static/img/shou.png" mode=""></image>
<image v-if="selectIndex==1||(selectIndex==0&&item.deliverGoods)||(selectIndex==3&&item.consigneePhone==userInfo.mobile)" class="fa" :src="shippingImg" mode=""></image>
<image v-else class="fa" :src="receivingImg" mode=""></image>
<view class="order-list-it-v">
<view class="fa-v">
<text>{{$lang.lang.order.orderNo}}:{{item.orderNo}}</text>
......@@ -484,6 +484,8 @@
},
data() {
return {
shippingImg:'',
receivingImg:'',
nvs: [
{name: this.$lang.lang.order.allOrder, icon: '../../static/img/order-1.png', nums: 0,icons:'../../static/img/order-5.png'},
{name: this.$lang.lang.order.form, icon: '../../static/img/order-2.png', nums: 0,icons:'../../static/img/order-6.png'},
......@@ -578,6 +580,7 @@
// this.getIssued()
// this.getReceiver()
this.getOrderNum()
this.changeImage();
},
onReachBottom() {
if(this.pages > this.page){
......@@ -594,6 +597,18 @@
}
},
methods: {
changeImage() {
if (this.$lang.locale=='zh'){
this.shippingImg="../../static/img/fa.png"
this.receivingImg="../../static/img/shou.png"
}else if(this.$lang.locale=='en'){
this.shippingImg="../../static/img/fa_en.png"
this.receivingImg="../../static/img/shou_en.png"
}else {
this.shippingImg="../../static/img/fa_fr.png"
this.receivingImg="../../static/img/shou_fr.png"
}
},
//获取状态
getStatusData () {
let that = this
......
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