|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-03-26 14:32:03
|
|
|
|
* @Date: 2022-03-26 14:32:03
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-25 14:49:52
|
|
|
|
* @LastEditTime: 2022-05-26 21:02:48
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -14,7 +14,13 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="msg-item--con" @click="handleDetail(item)">
|
|
|
|
<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"/>
|
|
|
|
<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>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<u-loadmore status="loading" v-if="!msgData || !msgData.length"/>
|
|
|
|
<u-loadmore status="loading" v-if="!msgData || !msgData.length"/>
|
|
|
@ -103,6 +109,16 @@ export default {
|
|
|
|
plus.runtime.openURL(item.payload.linkJump);
|
|
|
|
plus.runtime.openURL(item.payload.linkJump);
|
|
|
|
// #endif
|
|
|
|
// #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;
|
|
|
|
font-size: $font-size-base;
|
|
|
|
line-height: 39rpx;
|
|
|
|
line-height: 39rpx;
|
|
|
|
color: $color-grey5;
|
|
|
|
color: $color-grey5;
|
|
|
|
|
|
|
|
&-link{
|
|
|
|
|
|
|
|
color: $color-yellow4;
|
|
|
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|