合并前

This commit is contained in:
wwz
2024-12-23 18:33:22 +08:00
parent 7b44d1f9fb
commit d747791c9a
119 changed files with 6788 additions and 199 deletions

View File

@@ -0,0 +1,365 @@
<template>
<view class="content">
<navseat :opacity='false' :title='"审核开票"' :titleshow='true' :namecolor='"#fff"' iconcolor='#fff'></navseat>
<view class="contentbox" v-for="(item,index) in list" :key="index" @click.stop="clickinof(item)">
<view class="contentboxitemtop flex-between">
<view class="contentboxitemone">
{{item.user_name}}
</view>
<view class="contentboxitemboxtow">
<view class="contentboxitemboxtows" @click.stop="clickconfirm(item,6)">
拒绝
</view>
<view class="contentboxitemboxone" @click.stop="clickconfirm(item,1)">
通过
</view>
</view>
</view>
<image src="components/inte1 (3).JPG" mode=""></image>
<view class="contentboxitembottom flex-between">
<view class="contentboxitembottomleft flex-colum-start">
<view class="contentboxitembottomleftone">¥<text>{{item.price || '-'}}</text></view>
<view class="flex-start">
<u-icon name="clock" color="#666666" size="16"></u-icon>
<view class="flexstartico">
{{item.createtime}}
</view>
</view>
</view>
<view class="contentboxitembottomright" @click.stop="previewImage(item.img)">
<image class="contentboxitembottomrightimage" :src="item.album" mode="aspectFill"></image>
</view>
</view>
</view>
<image src="components/inte1 (5).JPG" mode=""></image>
<view class="flex-colum" style="width: 100%;">
<u-loadmore :status="form.status" />
</view>
<u-popup :show="clickconfirmshow" mode="center" :round="10">
<view class="popupshow">
<view class="Box_box flex-between">
<view>拒绝理由</view>
<u--textarea v-model="no" placeholder="请输入拒绝理由"></u--textarea>
</view>
<view class="content_bottom">
<view class="content_bottomone"
@click="saveMerchantBaseInfo(saveMerchantBaseInfolsit.item,saveMerchantBaseInfolsit.i)">
确定
</view>
<view class="content_bottomtow" @click="clickconfirmshow = false">
取消
</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
import navseat from '@/components/navseat.vue'
export default {
components: {
navseat
},
data() {
return {
clickconfirmshow: false,
is_end: false,
list: [],
form: {
page: 1,
status: 'loadmore',
},
no: '',
saveMerchantBaseInfolsit: {
item: {
},
i: ''
}
};
},
async onLoad(e) {
try {
if (e.userId) {
uni.cache.set('userId', e.userId);
}
} catch (e) {
//TODO handle the exception
}
let token = await this.api.h5encryption({
store_id: uni.cache.get('userId')
})
if (token.code == 1) {
uni.cache.set('token', token.data.token);
} else {
return false
}
},
onShow() {
this.list = []
this.is_end = false
this.form.status = 'loadmore'
this.form.page = 0
this.storeinvoicingrecordsthatneed()
},
methods: {
clickinof(item) {
uni.pro.navigateTo('index/orderinfoauditbilling', {
id: item.id
})
},
saveMerchantBaseInfo(item, i) {
this.clickconfirmshow = false
this.storereviewandinvoicing(item, i)
},
async clickconfirm(item, i) {
if (i == 1) {
uni.showModal({
title: '提示',
content: '确认通过吗?',
success: async (res) => {
if (res.confirm) {
this.storereviewandinvoicing(item, i)
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} else {
this.saveMerchantBaseInfolsit.item = item
this.saveMerchantBaseInfolsit.i = i
this.clickconfirmshow = true
}
},
async storereviewandinvoicing(item, i) {
let res = await this.api.storereviewandinvoicing({
store_id: uni.cache.get('userId'),
id: item.id,
no: this.no,
s_type: i
})
if (res.code == 1) {
this.storeinvoicingrecordsthatneed()
}
},
// 预览图片
previewImage(e) {
uni.previewImage({
urls: [e],
longPressActions: {
itemList: ['发送给朋友', '保存图片', '收藏'],
success: function(data) {
console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
},
fail: function(err) {
console.log(err.errMsg);
}
}
});
},
async storeinvoicingrecordsthatneed() {
let res = await this.api.storeinvoicingrecordsthatneed({
store_id: uni.cache.get('userId')
})
console.log(res)
if (res.code == 1) {
if (res.data.length == 0) {
this.is_end = true
this.form.status = 'nomore'
this.list = []
return false;
} else {
this.form.status = 'loading';
this.form.page = ++this.form.page;
setTimeout(() => {
this.list = [...this.list, ...res.data];
if (res.data.length == 10) {
this.form.status = 'loading';
} else {
this.is_end = true;
this.form.status = 'nomore';
}
}, 500)
}
}
}
}
};
</script>
<style lang="scss">
page {
background: #F9F9F9;
}
.content {
padding: 28rpx;
.contentbox {
padding: 32rpx 16rpx;
margin-top: 40rpx;
width: 100%;
background: #FFFFFF;
.contentboxitemtop {
flex-wrap: nowrap;
padding-bottom: 18rpx;
border-bottom: 1rpx solid #E3E3E3;
.contentboxitemone {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 28rpx;
color: #333333;
}
.contentboxitemboxtow {
display: flex;
justify-content: flex-start;
align-items: center;
.contentboxitemboxone {
margin-left: 10rpx;
width: 104rpx;
height: 44rpx;
background: #318AFE;
border-radius: 8rpx 8rpx 8rpx 8rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 24rpx;
color: #FFFFFF;
line-height: 44rpx;
text-align: center;
}
.contentboxitemboxtows {
width: 104rpx;
height: 44rpx;
background: red;
border-radius: 8rpx 8rpx 8rpx 8rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 24rpx;
color: #FFFFFF;
line-height: 44rpx;
text-align: center;
}
}
}
.contentboxitembottom {
padding-top: 16rpx;
.contentboxitembottomleft {
.contentboxitembottomleftone {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 26rpx;
color: #C92E2E;
text {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 32rpx;
color: #C92E2E;
}
}
.flex-start {
margin-top: 20rpx;
.flexstartico {
margin-left: 12rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 24rpx;
color: #666666;
}
}
}
.contentboxitembottomright {
position: relative;
width: 148rpx;
height: 104rpx;
border-radius: 10rpx;
.contentboxitembottomrightimage {
width: 148rpx;
height: 104rpx;
border-radius: 10rpx;
}
.contentboxitembottomrightimage::after {
content: '查看大图';
position: absolute;
top: 0;
left: 0;
width: 148rpx;
height: 104rpx;
background: rgba(0, 0, 0, 0.5);
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 28rpx;
color: #FFFFFF;
line-height: 104rpx;
text-align: center;
}
}
}
}
.popupshow {
width: 600rpx;
border-radius: 16rpx;
.Box_box {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
text-align: right;
padding: 24rpx;
border-bottom: 1px solid #e5e5e5;
font-size: 28rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400;
color: #333333;
}
.content_bottom {
margin: 70rpx auto 60rpx auto;
width: 70%;
height: 84rpx;
display: flex;
justify-content: space-between;
align-items: center;
.content_bottomone {
padding: 16rpx 60rpx;
background: #288EFB;
border-radius: 32rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 24rpx;
color: #FFFFFF;
text-align: center;
}
.content_bottomtow {
padding: 16rpx 60rpx;
background: red;
border-radius: 32rpx;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 24rpx;
color: #FFFFFF;
text-align: center;
}
}
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

View File

@@ -18,6 +18,7 @@
</view>
</view>
</view>
<image src="components/inte1 (11).JPG" mode=""></image>
<u-gap height="30" bg-color="#F7F7F7"></u-gap>
<view class="margin">
<view class="flex justify-between u-border-bottom padding-tb" v-for="(item,index) in integralList" :key="index" >
@@ -26,6 +27,7 @@
<u-image src="@/me/static/integral/jinbi.png" width="36rpx" height="36rpx"></u-image>
<view class="margin-right-sm" style="line-height: 36rpx;">+2</view>
</view>
<image src="components/inte1 (14).JPG" mode=""></image>
</view>
</view>
</view>

View File

@@ -1,7 +1,7 @@
<template>
<view>
<view class="bg-white padding">
<view class="box" style="">
<view class="boxczg" style="">
<view class="text-19">总资产()</view>
<view class="text-bold padding-tb"><text style="font-size: 68rpx;">{{inviterRecord}}</text></view>
<!-- <view>累计提现325.05</view> -->
@@ -18,8 +18,9 @@
<view class="margin-top padding bg-white radius">
<view class="flex align-center">
<view class="linh"></view>
<view class="linhczg"></view>
<view class="u-font-16 text-bold " style="color: #333333;" >账单明细</view>
<image src="components/inte1 (17).JPG" mode=""></image>
</view>
<view style="text-align: left">
<view v-for="(item, index) in userList" :key="index" class="item">
@@ -127,7 +128,7 @@
</script>
<style>
.box{
.boxczg{
background: linear-gradient(90deg, #90A7FF 0%, #5074FF 100%);
border-radius: 16rpx;
color: #FFFFFF;
@@ -146,7 +147,7 @@
line-height: 70rpx;
border-radius: 12rpx;
}
.linh{
.linhczg{
width:8rpx;
height: 32rpx;
background: #2474FF;