@@ -47,6 +47,24 @@ Page({
// console.log(e.detail.value)
var data = this.data.data, form = e.detail.value;
+ if (this.data.account == 2){
+ if (!form.bill_name){
+ wx.showToast({
+ title: '请输入公司全称',
+ icon: 'none',
+ duration: 2000
+ })
+ return false
+ }
+ if (!form.bill_no) {
+ title: '请输入税号',
wx.showLoading({
title: '正在提交...',
})
@@ -14,6 +14,10 @@
<image src="../../images/arrow-bottom.png" mode="widthFix"></image>
</view>
<view class="item" wx:if='{{account == 2}}'>
+ <label>公司全称</label>
+ <input name='bill_name' placeholder="请输入公司全称"></input>
+ </view>
+ <view class="item" wx:if='{{account == 2}}'>
<label>税号</label>
<input name='bill_no' placeholder="请输入税号"></input>