Browse Source

对接添加银行卡

master
前端-胡立永 10 months ago
parent
commit
10f32e28ef
5 changed files with 46 additions and 9 deletions
  1. +3
    -2
      api/api.js
  2. +4
    -0
      common.css
  3. +4
    -3
      pages/publish/actorRelease.vue
  4. +32
    -2
      pages_mine/mine/addBankCard.vue
  5. +3
    -2
      pages_mine/mine/purse.vue

+ 3
- 2
api/api.js View File

@ -10,7 +10,7 @@ const config = {
getConfig: { getConfig: {
url: '/api/getConfig', url: '/api/getConfig',
method: 'GET', method: 'GET',
limit: 500
limit: 1000
}, },
//获取banner列表 //获取banner列表
@ -62,7 +62,8 @@ const config = {
infoAddBankCard: { infoAddBankCard: {
url: '/api/info/addBankCard', url: '/api/info/addBankCard',
method: 'GET', method: 'GET',
auth: true
auth: true,
limit : 1500,
}, },
//获取用户平台数据 //获取用户平台数据
infoGetInfoMoney: { infoGetInfoMoney: {


+ 4
- 0
common.css View File

@ -7,4 +7,8 @@
text-align: center; text-align: center;
color: #ffffff; color: #ffffff;
background: linear-gradient(to right, #3c69f1, #5f3bf5); background: linear-gradient(to right, #3c69f1, #5f3bf5);
display: flex;
justify-content: center;
align-items: center;
font-size: 30rpx;
} }

+ 4
- 3
pages/publish/actorRelease.vue View File

@ -127,6 +127,7 @@
:fileList="fileList" :fileList="fileList"
:maxCount="5" :maxCount="5"
multiple multiple
accept="video"
width="150rpx" width="150rpx"
height="150rpx" height="150rpx"
@delete="deleteImage" @delete="deleteImage"
@ -174,9 +175,9 @@
createType : '1', createType : '1',
}, },
fileList: [ fileList: [
{
url: 'https://cdn.uviewui.com/uview/swiper/2.jpg'
},
// {
// url: 'https://cdn.uviewui.com/uview/swiper/2.jpg'
// },
], ],
}; };
}, },


+ 32
- 2
pages_mine/mine/addBankCard.vue View File

@ -40,8 +40,8 @@
</view> </view>
<!--下一步按钮--> <!--下一步按钮-->
<button @click="onNextClick" class="bottomBtn">
下一步
<button @click="addCart" class="bottomBtn">
添加
</button> </button>
</view> </view>
</template> </template>
@ -61,6 +61,36 @@ export default {
onCameraClick() { onCameraClick() {
// //
}, },
addCart(){
let data = {
bankAddress : this.bankAddress,
name : this.name,
bankId : this.idCard,
}
if (this.$utils.verificationAll(data, {
bankAddress: '请输入开户行',
name: '请输入姓名',
idCard: '请输入银行卡号',
})) {
return
}
this.$api('infoAddBankCard', data, res => {
if(res.code == 200){
uni.showToast({
title:'添加成功',
icon : 'none'
})
setTimeout(() => {
uni.navigateTo({
url:'/pages_mine/mine/purse'
})
}, 500)
}
})
},
onNextClick() { onNextClick() {
this.$utils.navigateTo("/mine/purse"); this.$utils.navigateTo("/mine/purse");
} }


+ 3
- 2
pages_mine/mine/purse.vue View File

@ -36,7 +36,7 @@
<view class="cards" > <view class="cards" >
<view class="cardItem" v-for="(item, index) in list" :key="index"> <view class="cardItem" v-for="(item, index) in list" :key="index">
<view class="cardImage"> <view class="cardImage">
<image src="../static/image/addBankCard/1.svg" style="width: 100%;height: 100%;"></image>
<image src="../static/addBankCard/1.svg" style="width: 100%;height: 100%;"></image>
</view> </view>
<view class="cardInfo"> <view class="cardInfo">
<view class="cardNum"> <view class="cardNum">
@ -47,7 +47,7 @@
</view> </view>
</view> </view>
<view class="cardIcon"> <view class="cardIcon">
<image src="/static/image/purse/1.svg" style="width: 70%;height: 70%;"></image>
<image src="../static/purse/1.svg" style="width: 70%;height: 70%;"></image>
</view> </view>
</view> </view>
@ -88,6 +88,7 @@ export default {
}, },
// //
onReachBottom() { onReachBottom() {
console.log(1111111);
if(this.queryParams.pageSize < this.total){ if(this.queryParams.pageSize < this.total){
this.queryParams.pageSize += 10 this.queryParams.pageSize += 10
this.getData() this.getData()


Loading…
Cancel
Save