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


+ 4
- 0
common.css View File

@ -7,4 +7,8 @@
text-align: center;
color: #ffffff;
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"
:maxCount="5"
multiple
accept="video"
width="150rpx"
height="150rpx"
@delete="deleteImage"
@ -174,9 +175,9 @@
createType : '1',
},
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>
<!--下一步按钮-->
<button @click="onNextClick" class="bottomBtn">
下一步
<button @click="addCart" class="bottomBtn">
添加
</button>
</view>
</template>
@ -61,6 +61,36 @@ export default {
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() {
this.$utils.navigateTo("/mine/purse");
}


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

@ -36,7 +36,7 @@
<view class="cards" >
<view class="cardItem" v-for="(item, index) in list" :key="index">
<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 class="cardInfo">
<view class="cardNum">
@ -47,7 +47,7 @@
</view>
</view>
<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>
@ -88,6 +88,7 @@ export default {
},
//
onReachBottom() {
console.log(1111111);
if(this.queryParams.pageSize < this.total){
this.queryParams.pageSize += 10
this.getData()


Loading…
Cancel
Save