发货消息

fix/0523-ch
ch 2 years ago
parent b0f9249b5b
commit 502f445666

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-26 14:32:03
* @LastEditors: ch
* @LastEditTime: 2022-05-25 14:49:52
* @LastEditTime: 2022-05-26 21:02:48
* @Description: file content
-->
<template>
@ -14,7 +14,13 @@
</view>
<view class="msg-item--con" @click="handleDetail(item)">
<image class="msg-item--img" :src="item.payload.productImageUrls ? item.payload.productImageUrls[0] : require('@/static/message/xt.png')" mode="widthFix"/>
<view class="msg-item--desc">{{item.payload.content}}</view>
<view class="msg-item--desc" v-if="item.payload.customType === 'orderAutoDelivery'">
<template v-for="i in item.payload.virtualProductContentList" @click="openLink(i)">
<text class="msg-item--desc-link" v-if="i.shipType === 1" :key="i.shipContent">[]</text>
<text v-else :key="i.shipContent">{{i.shipContent}}</text>
</template>
</view>
<view class="msg-item--desc" v-else>{{item.payload.content}}</view>
</view>
</view>
<u-loadmore status="loading" v-if="!msgData || !msgData.length"/>
@ -103,6 +109,16 @@ export default {
plus.runtime.openURL(item.payload.linkJump);
// #endif
}
},
openLink(item){
if(item.shipType === 1){
// #ifdef H5
window.location.href = item.shipContent;
// #endif
// #ifdef APP-PLUS
plus.runtime.openURL(item.shipContent);
// #endif
}
}
}
}
@ -138,6 +154,10 @@ export default {
font-size: $font-size-base;
line-height: 39rpx;
color: $color-grey5;
&-link{
color: $color-yellow4;
margin-right: 10rpx;
}
}
}
</style>
Loading…
Cancel
Save