You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
// pages/client/bank-list/index.js
|
|
import Dialog from '../../../components/dialog/dialog'
|
|
import { getBankCardList, deleteBankCard, checkPayPassword, bankCardDefault } from "../../../api/saas"
|
|
const util = require('../../../utils/util')
|
|
const app = getApp()
|
|
|
|
Page({
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
show: false,
|
|
actions: [
|
|
{ id: 1, name: '设为默认' },
|
|
{ id: 2, name: '解除绑定' }
|
|
],
|
|
},
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
|
|
},
|
|
showActionSheet(e) {
|
|
this.data.nowIndex = e.currentTarget.dataset.index
|
|
if (this.data.nowIndex < 0) {
|
|
// if(!app.userInfo.isAuth){
|
|
// Dialog.alert({ title: '温馨提示', message: '您还没有进行个人信息认证,无法绑定银行卡,现在去进行个人信息认证?' }).then(() => {
|
|
// wx.navigateTo({ url: '/pages/home/authory/index' })
|
|
// })
|
|
// return
|
|
// }
|
|
wx.navigateTo({url: '/pages/client/bank-add/index'})
|
|
return
|
|
}
|
|
this.setData({ show: true })
|
|
},
|
|
onClose: function() {
|
|
this.setData({ show: false })
|
|
},
|
|
onSelect: function({detail}) {
|
|
console.log(detail)
|
|
},
|
|
})
|