emis-sapp/pages/user/monthCardList.vue

126 lines
3.0 KiB
Vue
Raw Normal View History

2023-12-13 03:04:28 +00:00
<template>
2024-07-17 16:02:14 +00:00
<tpx-page>
<tpx-layout>
<template v-slot:header>
2023-12-13 03:04:28 +00:00
2024-07-17 16:02:14 +00:00
</template>
<template v-slot:body>
<view class="pos-abt-all">
<tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
ref="listRef"
>
<view class="pgb-header">
<view class="com-jianju">
<!-- 关键字搜索框 -->
<tpx-search placeholder="请输入" v-model:value="searchParam.searchValue" @change="handleSearchParamChange()" ></tpx-search>
</view>
</view>
<view class="pgb-cont">
<!-- 列表数据 -->
<!-- -->
2023-12-13 03:04:28 +00:00
<view>
2024-07-17 16:02:14 +00:00
<view v-for="(item) in dataList" class="blcok-white radius-20 mb-20" style="margin-top: 0;"
@click="handleTODetail(item)"
>
<view>
<u-row justify="between">
<u-row @click="handleItemClick(item)">
<u-avatar size="100" shape="square"></u-avatar>
<view class="pl-10">
<u-text :text="'月结账号 TANO2500123'" size="30" :bold="true" lines="1"></u-text>
<u-text margin="10rpx 0 0 0" :text="'平湖华盛进出口有限公司'" size="28" color="#999"></u-text>
</view>
</u-row>
<u-row justify="end" align="top" custom-style="width: 100rpx;height:100rpx;"
@click="setClipboardData('xxxxxxx' + item.id)"
>
<u-icon name="file-text" size="38"></u-icon>
</u-row>
</u-row>
</view>
</view>
2023-12-13 03:04:28 +00:00
</view>
</view>
2024-07-17 16:02:14 +00:00
</tpx-scroll-view>
2023-12-13 03:04:28 +00:00
</view>
2024-07-17 16:02:14 +00:00
</template>
<template v-slot:footer>
<view class="blcok-white-noradius">
<u-button @click="handleEditItem()" type="primary" size="large" shape="circle"
custom-style="height:80rpx;font-size: 30rpx;"
>
<u-row>
<u-icon size="34" color="#fff" name="plus"></u-icon>
<text class="pl-10">添加月结卡</text>
<u-icon size="34" color="#fff" ></u-icon>
</u-row>
</u-button>
</view>
</template>
</tpx-layout>
</tpx-page>
2023-12-13 03:04:28 +00:00
</template>
<script>
import getCdnUrl from "@/common/getCdnUrl"
2024-07-17 16:02:14 +00:00
import * as apiService from "@/common/api"
2023-12-13 03:04:28 +00:00
export default {
props: {
// hasLeftWin: {
// type: Boolean
// }
},
computed: {
},
data() {
return {
searchParam: {
2024-07-17 16:02:14 +00:00
searchValue: '',
2023-12-13 03:04:28 +00:00
},
2024-07-17 16:02:14 +00:00
resData: { list: [] },
2023-12-13 03:04:28 +00:00
queryOption: {},
}
},
onLoad(queryOption) {
this.queryOption = queryOption
this.initData();
},
onUnload() {
},
methods: {
2024-07-17 16:02:14 +00:00
getListFun: apiService.getMonthpayAccountList,
2023-12-13 03:04:28 +00:00
initData(){
},
handleEditItem(item={}) {
2024-07-17 16:02:14 +00:00
this.goto(`user/monthCardEdit?id=${item.id}`)
2023-12-13 03:04:28 +00:00
},
}
}
</script>
<style lang="scss">
@import '@/common/uni-nvue.scss';
page {
background-color: #F6F6F6;
height: 100% !important;
}
</style>
<style scoped lang="scss">
.pgb-header {
// padding-top: --status-bar-height;
padding-top: 30rpx;
padding-bottom: 30rpx;
background-color: #FFF;
position: relative;
}
.pgb-cont{
2024-07-17 16:02:14 +00:00
padding: 30rpx 30rpx 0 30rpx;
2023-12-13 03:04:28 +00:00
}
</style>