|
|
@ -13,7 +13,7 @@ |
|
|
|
<view v-if="newsList == ''" class="mart60 fotct font14 fcor666"> |
|
|
|
<view v-if="newsList == ''" class="mart60 fotct font14 fcor666"> |
|
|
|
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image> |
|
|
|
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="newscont width90 border-8r backcorfff mart20" v-for="(item,index) in newsList" :key="index"> |
|
|
|
<view class="newscont width90 border-8r backcorfff mart20" v-for="(item,index) in newsList" :key="index" @click="jumporther(item)"> |
|
|
|
<view class="alijusstart mart10 margle10" v-if="item.type == 1"> |
|
|
|
<view class="alijusstart mart10 margle10" v-if="item.type == 1"> |
|
|
|
<image src="../../../static/img/user/notive.png" mode="widthFix" class="icon30"></image> |
|
|
|
<image src="../../../static/img/user/notive.png" mode="widthFix" class="icon30"></image> |
|
|
|
<text class="font18 margle" style="color: #0B1D83;">服务通知</text> |
|
|
|
<text class="font18 margle" style="color: #0B1D83;">服务通知</text> |
|
|
@ -36,7 +36,7 @@ |
|
|
|
<!-- 交易信息 --> |
|
|
|
<!-- 交易信息 --> |
|
|
|
<view class="width90 mart20" v-if="item.type == 2"> |
|
|
|
<view class="width90 mart20" v-if="item.type == 2"> |
|
|
|
<view class="font18 fcor333">{{item.title}}</view> |
|
|
|
<view class="font18 fcor333">{{item.title}}</view> |
|
|
|
<view class="mart10 border-r backcor9"> |
|
|
|
<view class="mart15 border-r backcor9"> |
|
|
|
<view class="font20 colore95 fontwig6 paddtop10 fotct">¥{{item.content | msgFormat('price')}}</view> |
|
|
|
<view class="font20 colore95 fontwig6 paddtop10 fotct">¥{{item.content | msgFormat('price')}}</view> |
|
|
|
<view class="width94 mart10 alijusstart font14"> |
|
|
|
<view class="width94 mart10 alijusstart font14"> |
|
|
|
<view class="fontwig6 fcor333 width30">交易对象</view> |
|
|
|
<view class="fontwig6 fcor333 width30">交易对象</view> |
|
|
@ -47,8 +47,8 @@ |
|
|
|
<view class="fontwig6 fcor333 width30">交易时间</view> |
|
|
|
<view class="fontwig6 fcor333 width30">交易时间</view> |
|
|
|
<view class="width70 fcor666 fotrt">{{item.content | msgFormat('time') }}</view> |
|
|
|
<view class="width70 fcor666 fotrt">{{item.content | msgFormat('time') }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="font16 fcor666 alijus mart10 fotct paddbotm20">查看详情<image |
|
|
|
<view class="font16 fcor666 alijus mart15 fotct paddbotm20" @click="jumpDetails(item.content)">查看详情 |
|
|
|
src="../../../static/img/jt.png" mode="widthFix" class="icon15 margle"></image> |
|
|
|
<image src="../../../static/img/jt.png" mode="widthFix" class="icon15 margle"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -86,10 +86,7 @@ |
|
|
|
newsTyplist: [], //消息类型 |
|
|
|
newsTyplist: [], //消息类型 |
|
|
|
newsList: [], // 信内容 |
|
|
|
newsList: [], // 信内容 |
|
|
|
newstypeid: 1, //类型id |
|
|
|
newstypeid: 1, //类型id |
|
|
|
headerTop: '0px', |
|
|
|
headerTop: '0px' |
|
|
|
pageNum: 1, |
|
|
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
|
|
isNoMoreData: false, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
filters: { |
|
|
@ -103,13 +100,11 @@ |
|
|
|
// #ifdef H5 |
|
|
|
// #ifdef H5 |
|
|
|
this.headerTop = '44px'; |
|
|
|
this.headerTop = '44px'; |
|
|
|
// #endif |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
|
|
|
|
onShow() { |
|
|
|
|
|
|
|
this.getDictionaryByCodeType(); |
|
|
|
this.getDictionaryByCodeType(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
|
// onShow() { |
|
|
|
this.getMsgByList(); |
|
|
|
// this.getDictionaryByCodeType(); |
|
|
|
}, |
|
|
|
// }, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
//查询类型 |
|
|
|
//查询类型 |
|
|
|
getDictionaryByCodeType() { |
|
|
|
getDictionaryByCodeType() { |
|
|
@ -126,37 +121,49 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
//切换 |
|
|
|
//切换 |
|
|
|
changeValue(item) { |
|
|
|
changeValue(item) { |
|
|
|
this.pageNum = 1; |
|
|
|
|
|
|
|
this.newsList = []; |
|
|
|
this.newsList = []; |
|
|
|
this.isNoMoreData = false; |
|
|
|
|
|
|
|
this.getMsgByList(item); |
|
|
|
this.getMsgByList(item); |
|
|
|
}, |
|
|
|
}, |
|
|
|
//查询列表 |
|
|
|
//查询列表 |
|
|
|
getMsgByList(item) { |
|
|
|
getMsgByList(item) { |
|
|
|
this.newstypeid = item; |
|
|
|
this.newstypeid = item; |
|
|
|
if (this.isNoMoreData) { |
|
|
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
let pagenum = this.pageNum; |
|
|
|
|
|
|
|
let datas = { |
|
|
|
let datas = { |
|
|
|
companyId: app.globalData.companyId, |
|
|
|
companyId: app.globalData.companyId, |
|
|
|
type: item, |
|
|
|
type: item |
|
|
|
pageNum: this.pageNum, |
|
|
|
|
|
|
|
pageSize: this.pageSize |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
getMsgByList(datas).then(res => { |
|
|
|
getMsgByList(datas).then(res => { |
|
|
|
if (res.return_code == '000000' && res.return_data.list != '') { |
|
|
|
if (res.return_code == '000000' && res.return_data != '') { |
|
|
|
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true; |
|
|
|
this.newsList = res.return_data; |
|
|
|
if (res.return_data.total == (this.pageNum * this.pageSize)) { |
|
|
|
|
|
|
|
this.isNoMoreData = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.newsList = this.newsList.concat(res.return_data.list); |
|
|
|
|
|
|
|
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.newsList = []; |
|
|
|
this.newsList = []; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//根据类型跳转详情 |
|
|
|
|
|
|
|
jumpDetails(item1) { |
|
|
|
|
|
|
|
let lists = JSON.parse(item1); |
|
|
|
|
|
|
|
if (lists.productType == 1 || lists.productType == 2 || lists.productType == 3) { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/qianzhu-KFC/order-details/order-details?id=' + lists.orderNo |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/user/order_details/order_details?id=' + lists.orderNo |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//客服信息 |
|
|
|
|
|
|
|
jumporther(item){ |
|
|
|
|
|
|
|
if(item.jumpType == 2){ |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/tabBar/order/webUrl/webUrl?url=' + item.content |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(item.jumpType == 3){ |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url:item.content |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|