Commit efa85366 authored by linking2014's avatar linking2014

update

parent 94b8db53
<template> <template>
<div> <div>
<h1 class="logistics-title">我的快递</h1> <div class="no-result" v-if="!list.length">
<p>
<ol class="logistics-list"> 暂无物流信息
<br>
<li class="no-result" v-if="!list.length"> <span class="link" @click="goIndex">返回首页</span>
暂无数据 </p>
</li> </div>
<li class="item" v-else-if="list.length && list[0] != 0" v-for="item in list"> <div v-else-if="list.length && list[0] != 0">
<div class="item-header"> <h1 class="logistics-title">我的快递</h1>
<h2>{{item.goods_title}}</h2>
</div> <ol class="logistics-list">
<div class="item-content">
<div class="dl"> <li class="item" v-for="item in list">
<div class="dt">收件地址:</div> <div class="item-header">
<div class="dd">{{item.receive_address}}</div> <h2>{{item.goods_title}}</h2>
</div> </div>
<div class="dl"> <div class="item-content">
<div class="dt">物流信息:</div> <div class="dl">
<div class="dd" style="color: #666666"> <div class="dt">收件地址:</div>
<template v-if="item.status == 0"> <div class="dd">{{item.receive_address}}</div>
待发货 </div>
</template> <div class="dl">
<template v-if="item.status == 1"> <div class="dt">物流信息:</div>
{{item.express_name}} <span class="link" @click="search(item.express_no)">{{item.express_no}}</span> <div class="dd" style="color: #666666">
</template> <template v-if="item.status == 0">
待发货
</template>
<template v-if="item.status == 1">
{{item.express_name}} <span class="link" @click="search(item.express_no)">{{item.express_no}}</span>
</template>
</div>
</div> </div>
</div> </div>
</div> </li>
</li>
</ol> </ol>
</div>
</div> </div>
</template> </template>
...@@ -61,6 +67,10 @@ ...@@ -61,6 +67,10 @@
// window.location='https://m.baidu.com/from=1013755s/s?word=806454448534420146&sa=tb&ts=2790568&t_kt=0&ie=utf-8&rsv_t=cbe2F%252FT5T3MIzkRl%252Fg8ZUw%252FEPHZmn2wHIrB8cLvgNlEKyyDqUNPrTyDEEDjkAb8&rsv_pq=11793168499026332712&ss=110000000001&tj=1&rqlang=zh&rsv_sug4=4111&inputT=3178&oq=快递单号查询' // window.location='https://m.baidu.com/from=1013755s/s?word=806454448534420146&sa=tb&ts=2790568&t_kt=0&ie=utf-8&rsv_t=cbe2F%252FT5T3MIzkRl%252Fg8ZUw%252FEPHZmn2wHIrB8cLvgNlEKyyDqUNPrTyDEEDjkAb8&rsv_pq=11793168499026332712&ss=110000000001&tj=1&rqlang=zh&rsv_sug4=4111&inputT=3178&oq=快递单号查询'
}, },
goIndex() {
window.location = window.location.origin
},
initPage() { initPage() {
Toast.loading({ Toast.loading({
mask: false, mask: false,
...@@ -78,6 +88,24 @@ ...@@ -78,6 +88,24 @@
<style lang="less"> <style lang="less">
@import "../util/public"; @import "../util/public";
.no-result {
height: 95vh;
line-height: 40px;
color: #999;
font-size: 16*@toVw;
text-align: center;
display: flex;
p {
align-items: center;
justify-content: center;
}
.link {
font-size: 14*@toVw;
color: #40A9FF;
text-decoration: underline;
}
}
.logistics-title { .logistics-title {
padding: 14*@toVw 15*@toVw 10*@toVw; padding: 14*@toVw 15*@toVw 10*@toVw;
height:21*@toVw; height:21*@toVw;
...@@ -90,13 +118,6 @@ ...@@ -90,13 +118,6 @@
.logistics-list { .logistics-list {
padding: 0 15*@toVw; padding: 0 15*@toVw;
.no-result {
height: 80vh;
line-height: 80vh;
color: #999;
font-size: 16*@toVw;
text-align: center;
}
.item { .item {
margin-bottom: 10*@toVw; margin-bottom: 10*@toVw;
......
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