78 lines
2.2 KiB
Plaintext
78 lines
2.2 KiB
Plaintext
<template>
|
|
<view class="fs-30 col333">
|
|
<view class="bgff pb-30">
|
|
<view class="pl-30 pr-30 bgff rowsb rowsm h-120" style="border-bottom: 2rpx solid #f1f1f1;">
|
|
<view class="f-5 one_overflow">姓名</view>
|
|
<input v-model="parmas.name" placeholder="请输入姓名" class="f-5 trt fs-26 col666"/>
|
|
</view>
|
|
<view class="pl-30 pr-30 bgff mt-10 rowsb rowsm h-120" style="border-bottom: 2rpx solid #f1f1f1;">
|
|
<view class="f-5 one_overflow">联系电话</view>
|
|
<input v-model="parmas.id_numbber" placeholder="请输入联系电话" class="f-5 trt fs-26 col666"/>
|
|
</view>
|
|
<view class="pl-30 pr-30 bgff mt-10 rowsb rowsm h-120" style="border-bottom: 2rpx solid #f1f1f1;">
|
|
<view class="f-5 one_overflow">居住地</view>
|
|
<input v-model="parmas.bank_name" placeholder="请输入居住地" class="f-5 trt fs-26 col666"/>
|
|
</view>
|
|
<view class="pl-30 pr-30 bgff">
|
|
<view class="one_overflow pt-36 pb-20">申请原因</view>
|
|
<textarea class="w-690 h-166 bgf1 p-all-20 fs-26 br-6" placeholder="请输入详细地址"></textarea>
|
|
</view>
|
|
</view>
|
|
|
|
<view @tap="saveCare" class="w-690 h-100 br-20 mt-80 fs-30 colfff tct lh-100 ml-30 bg">提交</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
parmas: {
|
|
id_numbber: '',
|
|
bank_name: '',//开户人
|
|
name: '',//银行
|
|
card_number: '',//开户行
|
|
amount: '',//银行卡号
|
|
},
|
|
type: 0
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
this.type = e.type || 0
|
|
if (this.type == 0) {
|
|
uni.setNavigationBarTitle({
|
|
title: '合伙人申请'
|
|
})
|
|
} else {
|
|
uni.setNavigationBarTitle({
|
|
title: '区域经理申请'
|
|
})
|
|
}
|
|
},
|
|
methods: {
|
|
saveCare() {
|
|
let bool = this.$tools.formInfo(this.parmas)
|
|
if (!bool) return this.showtt('字段不能为空')
|
|
this.axiosFromToken('POST','store_merchandise/applyWithdrawal', this.parmas, '加载中').then(res => {
|
|
if (res.code == 1) {
|
|
this.showtt('申请成功')
|
|
setTimeout(() => {
|
|
this.goBack()
|
|
},500)
|
|
} else {
|
|
this.showtt(res.msg)
|
|
for (let key in this.parmas) {
|
|
this.parmas[key] = ''
|
|
}
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
page {
|
|
background: #f5f7f9;
|
|
}
|
|
</style> |