55 lines
1.5 KiB
JavaScript
55 lines
1.5 KiB
JavaScript
import { API } from './../../../utils/network/api'
|
|
|
|
const api = new API()
|
|
const app = getApp()
|
|
Page({
|
|
data: {
|
|
navbarData: {
|
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
|
title: '去提现', //导航栏 中间的标题
|
|
},
|
|
height: app.globalData.height,
|
|
bank_card_id: "",
|
|
bank_icon_path: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png",
|
|
realname: "默认姓名",
|
|
bank_name : "招商银行",
|
|
bank_card_code_mask: "2233 9988 9989 9900",
|
|
withdrawal_amount: "987",
|
|
income_tax: "12",
|
|
contactKeFu: false
|
|
},
|
|
onLoad(options){
|
|
//获取提现数据
|
|
api.getDoctorWithdrawal().then(response => {
|
|
console.log(response);
|
|
if(response.data.bank_card_id){
|
|
this.setData({
|
|
bank_card_id: response.data.bank_card_id,
|
|
bank_icon_path: response.data.bank_icon_path,
|
|
bank_name : response.data.bank_name,
|
|
bank_card_code_mask: response.data.bank_card_code_mask,
|
|
withdrawal_amount: response.data.withdrawal_amount,
|
|
income_tax: response.data.income_tax,
|
|
})
|
|
}
|
|
}).catch(errors => {
|
|
console.error(errors);
|
|
})
|
|
},
|
|
contactKeFu(e){
|
|
let _this = this;
|
|
|
|
console.log("concatKeFu");
|
|
wx.requestSubscribeMessage({
|
|
tmplIds: ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc'],
|
|
success (res) {
|
|
console.log(res);
|
|
_this.setData({
|
|
contactKeFu: true
|
|
})
|
|
|
|
}
|
|
})
|
|
|
|
},
|
|
}) |