小程序编译0.0.0

This commit is contained in:
魏啾
2024-11-13 09:25:34 +08:00
parent 1fbf346aec
commit 2147f86b93
65 changed files with 3745 additions and 852 deletions

View File

@@ -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)
},
}
}