first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:07:10 +08:00
commit c7cbc11d07
594 changed files with 112383 additions and 0 deletions

View File

@@ -0,0 +1,120 @@
<template>
<view class="addBankCard p30">
<view style="height: 30rpx"></view>
<view>
<view class="addBankCard_input_tit">请输入{{ enterprise.type == 1 ? '姓名' : '企业名称' }}</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.name"></u-input>
</view>
<!-- <view v-if="enterprise.type == 2">
<view class="addBankCard_input_tit">请输入纳税人识别号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.taxNo"></u-input>
</view>
</view> -->
<view v-if="enterprise.type == 1">
<view class="addBankCard_input_tit">请输入手机号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.phone"></u-input>
</view>
</view>
<view v-if="enterprise.type == 1">
<view class="addBankCard_input_tit">请输入身份证号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.idCard"></u-input>
</view>
</view>
<!--
<view class="addBankCard_input_tit">请输入开户行名称</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.bankName"></u-input>
</view> -->
<view class="addBankCard_input_tit" v-if="enterprise.type == 2">请输入开户行</view>
<view class="addBankCard_input" v-if="enterprise.type == 2">
<u-input :border="false" placeholder="请输入" v-model="enterprise.subbranchName"></u-input>
</view>
<view class="addBankCard_input_tit">请输入银行卡卡号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.bankCard"></u-input>
</view>
</view>
<view style="margin: 30rpx 0">
<view style="font-size: 28rpx; color: coral">请仔细核对信息填写错误会导致提现失败</view>
</view>
<view style="display: flex; justify-content: center">
<view class="addBankCard_btn" @click="addBank">确定</view>
</view>
</view>
</template>
<script>
// registerVerify
import { addUsersAccountInfo } from '@/api/api';
export default {
data() {
return {
value: '',
getInfo: {},
enterprise: {
type: 1
},
bank: null
};
},
onLoad(options) {
this.enterprise.type = options.type;
},
methods: {
async addBank() {
if (this.enterprise.type == 2) {
this.enterprise.taxNo = '';
this.enterprise.bankName = '';
} else {
this.enterprise.bankName = '';
}
let _res = await addUsersAccountInfo(this.enterprise);
uni.showToast({ title: '添加成功', icon: 'none' });
setTimeout(() => {
uni.navigateBack();
}, 1500);
}
}
};
</script>
<style scoped lang="scss">
.addBankCard {
// @include flex();
&_input {
width: 690rpx;
height: 70rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
@include flex;
margin-bottom: 30rpx;
padding: 0 30rpx;
&_tit {
width: 100%;
font-weight: bold;
font-size: 26rpx;
color: #232323;
margin-bottom: 20rpx;
}
}
&_btn {
width: 488rpx;
height: 86rpx;
background: #e93323;
border-radius: 44rpx 44rpx 44rpx 44rpx;
@include flex($space: center);
font-weight: bold;
font-size: 28rpx;
color: #ffffff;
}
}
</style>

View File

@@ -0,0 +1,103 @@
<template>
<view class="bankCard">
<z-paging ref="paging" v-model="dataList" @query="queryList">
<view class="p30">
<view class="bankCard_add" @click="addBank">
<u-icon name="plus" color="#333" size="28"></u-icon>
<view style="font-size: 26rpx; color: #333; margin-top: 15rpx">添加银行卡</view>
</view>
</view>
<view style="height: 30rpx"></view>
<view v-for="(item, index) in dataList" :key="index" @click="bankSele(item)">
<view class="p30">
<view style="background-color: #ffffff; border-radius: 12rpx; padding: 20rpx; margin-bottom: 20rpx">
<view style="font-size: 28rpx; display: flex; align-items: center">
<view>
<u-tag :text="item.type == 1 ? '个人' : '企业'" size="mini" :type="item.type == 1 ? 'success' : 'error'" plain plainFill></u-tag>
</view>
<view style="width: 30rpx"></view>
<view style="font-size: 26rpx">{{ item.name }}</view>
<view style="width: 30rpx"></view>
<view style="font-size: 26rpx">{{ item.phone || '' }}</view>
</view>
<view style="height: 20rpx"></view>
<view style="color: #232323">
<view style="font-size: 28rpx" v-if="item.type == 2">开户行{{ item.subbranchName }}</view>
<view style="height: 10rpx"></view>
<view style="font-size: 28rpx">银行卡号{{ item.bankCard }}</view>
<view style="height: 10rpx"></view>
</view>
</view>
</view>
</view>
</z-paging>
</view>
</template>
<script>
import { getUsersAccountInfo } from '@/api/api';
export default {
data() {
return {
dataList: []
};
},
onShow() {},
onLoad(options) {
if (options.type) {
this.type = options.type;
}
},
methods: {
addBank() {
uni.showActionSheet({
itemList: ['个人', '企业'],
success: (res) => {
if (res.tapIndex + 1 == 0) {
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
} else {
uni.navigateTo({
url: `/pages/users/bank/addBankCard?type=${res.tapIndex + 1}`
});
}
},
fail: function (res) {
console.log(res.errMsg);
}
});
},
bankSele(e) {
if (this.type) {
uni.$emit('bank', e);
uni.navigateBack();
}
},
queryList(pageNo, pageSize) {
const params = {
current: pageNo,
pageSize: pageSize
};
getUsersAccountInfo(params)
.then(({ data }) => {
this.$refs.paging.complete(data);
})
.catch((res) => {
this.$refs.paging.complete(false);
});
}
}
};
</script>
<style scoped lang="scss">
.bankCard {
&_add {
width: 690rpx;
height: 174rpx;
background: #eeeeee;
border-radius: 16rpx 16rpx 16rpx 16rpx;
@include flex($direction: column, $space: center);
margin-top: 30rpx;
}
}
</style>