小程序编译0.0.0
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<navseat :opacity='false' :title='"开票记录"' :titleshow='true' :namecolor='"#fff"' iconcolor='#fff'></navseat>
|
||||
<view class="content_item" v-for="(item,index) in list" :key="index" @click="clickoange(item)">
|
||||
<view class="content_item_top flex-between">
|
||||
<view class="content_item_topone flex-start">
|
||||
<image src="@/static/sz.png" mode="aspectFill"></image>
|
||||
<image src="https://czg-invoicing.oss-cn-beijing.aliyuncs.com/static/sz.png" mode="aspectFill"></image>
|
||||
<text>{{item.createtime}}</text>
|
||||
</view>
|
||||
<view class="content_item_toptow flex-start">
|
||||
@@ -34,7 +35,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import navseat from '@/components/navseat.vue'
|
||||
export default {
|
||||
components: {
|
||||
navseat
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
@@ -44,14 +49,8 @@
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.list = []
|
||||
this.form = {
|
||||
page: 1,
|
||||
status: 'loadmore',
|
||||
},
|
||||
this.storeinvoicelist()
|
||||
this.initial()
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.form.status != 'nomore') {
|
||||
@@ -61,6 +60,13 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
initial() {
|
||||
this.form = {
|
||||
page: 1,
|
||||
status: 'loadmore',
|
||||
},
|
||||
this.storeinvoicelist()
|
||||
},
|
||||
clickoange(e) {
|
||||
if (e.status == 2 || e.status == 4 || e.status == 3) {
|
||||
uni.pro.navigateTo('index/orderinfo', {
|
||||
@@ -86,8 +92,13 @@
|
||||
this.form.status = 'nomore'
|
||||
return false;
|
||||
} else {
|
||||
|
||||
setTimeout(() => {
|
||||
this.list = [...this.list, ...res.data.list];
|
||||
if (this.form.page == 1) {
|
||||
this.list = res.data.list
|
||||
} else {
|
||||
this.list = [...this.list, ...res.data.list];
|
||||
}
|
||||
if (res.data.list.length < 10) {
|
||||
this.form.status = 'nomore';
|
||||
} else {
|
||||
@@ -95,6 +106,7 @@
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
console.log(this.list)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user