deming/pageD/logistics/logistics.vue

147 lines
2.7 KiB
Vue
Raw Normal View History

2020-06-11 00:43:51 +00:00
<template>
<view id="actives">
<!-- 活动消息推送 -->
<view class="activity" v-for="(item, index) in actives" :key="index">
2020-08-20 02:54:09 +00:00
<view class="times">{{item.kd_time}}</view>
2020-06-11 00:43:51 +00:00
<view class="content">
<view class="store_name">
2020-08-20 03:26:59 +00:00
<image :src="item.store_avatar"></image>
<view>{{item.store_name}}</view>
2020-06-11 00:43:51 +00:00
</view>
<view class="xiantiao"></view>
2020-08-20 02:54:09 +00:00
<view class="title">{{item.title}}</view>
2020-08-21 06:48:19 +00:00
<view class="images_about" @click="viewLogistics(item)">
2020-08-20 02:54:09 +00:00
<image :src="item.picture"></image>
2020-06-11 00:43:51 +00:00
<view>
2020-08-20 02:54:09 +00:00
<text>{{item.summary}}</text>
2020-06-11 00:43:51 +00:00
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
2020-08-06 12:42:03 +00:00
actives: [],
page: 1
2020-06-11 00:43:51 +00:00
};
},
2020-08-06 12:42:03 +00:00
onLoad() {
this.getCartList();
},
2020-06-11 00:43:51 +00:00
methods: {
2020-08-06 12:42:03 +00:00
getCartList() {
this.$u.post("message/orderDeliveryList",{page: this.page}).then(res => {
2020-08-20 02:54:09 +00:00
console.log(res.data.data)
2020-08-06 12:42:03 +00:00
if (res.errCode == 0) {
2020-08-20 02:54:09 +00:00
this.actives = res.data.data;
2020-08-06 12:42:03 +00:00
}
})
2020-08-20 08:16:34 +00:00
},
2020-08-21 06:48:19 +00:00
viewLogistics(item) {
let url;
if(item.takeawayer_phone) {
url = '/pageE/order/Details';
} else {
url = '/pageE/order/Logistics';
}
this.$u.route(url, {
oid: item.order_id,
2020-08-20 08:16:34 +00:00
});
}
2020-06-11 00:43:51 +00:00
},
components:{
}
};
</script>
2020-08-20 02:54:09 +00:00
<style lang="scss" >
page{
background-color: #ECECEC;
}
2020-06-11 00:43:51 +00:00
#actives{
height: 100%;
}
.activity{
.times{
width:100%;
font-size:28rpx;
font-weight:400;
color:rgba(102,102,102,1);
text-align: center;
padding: 39rpx 0 30rpx;
}
.content{
width:630rpx;
padding: 30rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
margin: 0 auto;
overflow: hidden;
image{
width: 137rpx;
height: 140rpx;
float: left;
}
.title{
font-size:30rpx;
color:rgba(51,51,51,1);
padding: 0rpx 0 19rpx;
font-weight: bold;
}
.images_about{
overflow: hidden;
text{
display: table-cell;
height: 140rpx;
vertical-align: middle;
width: 400rpx;
padding-left: 15rpx;
line-height: 36rpx;
font-size: 26rpx;
}
view{
display: inline-block;
float: left;
width:430rpx;
height:140rpx;
background:rgba(241,241,241,1);
}
}
.content{
}
.xiantiao{
width: 630rpx;
border-top: 1px #ececec solid;
margin-left: -30rpx;
margin-bottom: 20rpx;
}
// 店铺
.store_name{
overflow: hidden;
zoom: 1;
padding: 0rpx 0 20rpx 0;
image{
width: 60rpx;
height: 60rpx;
border-radius: 50%;
float: left;
}
view{
font-size:26rpx;
color:rgba(51,51,51,1);
float: left;
display: table-cell;
line-height: 60rpx;
display: inline-block;
margin-left: 21rpx;
}
}
}
}
</style>