@@ -12,6 +12,14 @@
background-color: #570044;
width: 100%;
}
+#MyOrderScroll .no-order{
+ color: white;
+ padding: 20% 0;
+ font-size: 20px;
+ text-align: center;
+ background-color: white;
+ text-shadow: 1px 1px 1px black;
+}
.my-order-body:nth-child(1) {
margin-top: 0;
@@ -9,7 +9,7 @@ define(['base', '$', 'native', 'api', 'order', 'config', 'address'], function (b
// localStorage.getItem('xyhwxUserID')
User.instance = this;
this.storagePrefix = 'user_';
- this.id = '5870c935a84ea0417e8b456f'; //5870c935a84ea0417e8b456f
+ this.id = '597ed29d47a7b2aceba34eec'; //5870c935a84ea0417e8b456f 597ed29d47a7b2aceba34eec
this.lastID = this.getCache('lastID', null, '');
this.name = '';
this.avatar='';
@@ -1,5 +1,8 @@
<div class="content" id="MyOrderScroll">
<div class="page-content">
+ {{if order.length === 0}}
+ <div class="no-order">暂未订单数据</div>
+ {{/if}}
{{each order as orders}}
<div class="my-order-body btn-order-info" data-order-id="{{orders._id.$id}}">
<div>订单编号:{{orders.order_num}}</div>