-
-
- {{item.update_time}}
-{{item.status_text}} -
-
-
-
-
-
{{item.product_name}}
-¥{{item.official_price}}
+ +
+
+
@@ -98,20 +105,26 @@
/* toast */
toastShow: '',
toastTip: '',
+ redirect: false,
- redirect: false
+ /* 加载 */
+ scrollTop: 0,
+ startY: 0,
+ loadShowHeight: 0
}
},
components: {
tabComponent,
payPop,
- modelPop
+ modelPop,
},
created () {
this.getOrderList()
this.goodsCount = localStorage.getItem('goodsCount');
+ this.scrollTop =
+ document.documentElement.scrollTop || document.body.scrollTop
},
methods: {
@@ -121,6 +134,32 @@
return colorArray[status];
},
+ /* 以下三个方法是下拉刷新 */
+ touchStart (e) {
+ this.startY = e.targetTouches[0].pageY
+ },
+
+
+ touchMove (e) {
+ if (this.scrollTop == 0) {
+ let moveDistance = e.targetTouches[0].pageY - this.startY
+ if (moveDistance > 0 && moveDistance <= 80) {
+ this.loadShowHeight = moveDistance
+ }
+ }
+ },
+
+ touchEnd () {
+ if (this.loadShowHeight >= 60) {
+ this.getOrderList()
+ setTimeout(() => {
+ this.loadShowHeight = 0;
+ }, 2000);
+ } else {
+ this.loadShowHeight = 0
+ }
+ },
+
/* 图标分流 */
filterImgSrc (item) {
if (item.type === 1) {
+
+
+
-
+
+ {{item.update_time}}
+{{item.status_text}} +
+
+
+
+
+
-
+
+ {{item.product_name}}
+¥{{item.official_price}}
+订单编号:{{item.order_number}}
订单编号:{{item.order_number}}
+
+
实付金额:¥{{item.pay_amount}}
+ + + + +
-
-
- 实付金额:¥{{item.pay_amount}}
- - - - - + +
+
+
暂无订单
-
-
暂无订单
-