Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
223358d9a5
2 changed files with 7 additions and 7 deletions
  1. 4
      pages/home/certificate/index.js
  2. 10
      pages/home/certificate/index.wxml

4
pages/home/certificate/index.js

@ -46,7 +46,7 @@ Page({
return return
} }
if (util.isEmpty(this.data.form.name)) { if (util.isEmpty(this.data.form.name)) {
util.showToast('请输入公司名称')
util.showToast('请输入企业名称')
return return
} }
if (util.isEmpty(this.data.form.uniformSocialCreditCode)) { if (util.isEmpty(this.data.form.uniformSocialCreditCode)) {
@ -116,7 +116,7 @@ Page({
} }
}, },
checkLicense: function(url){ checkLicense: function(url){
this.data.form['businessLicenseImg'] = url
this.setData({ ['form.businessLicenseImg'] : url })
wx.showLoading({ title: '识别中', mask: true }) wx.showLoading({ title: '识别中', mask: true })
ocrLicense({businessLicenseUrl: url}).then(result => { ocrLicense({businessLicenseUrl: url}).then(result => {
this.setData({ this.setData({

10
pages/home/certificate/index.wxml

@ -27,19 +27,19 @@
<wux-uploader count="1" column="4" fileList="{{fileList}}" bindcustomevent="onImageChange"></wux-uploader> <wux-uploader count="1" column="4" fileList="{{fileList}}" bindcustomevent="onImageChange"></wux-uploader>
<view style="padding: 0rpx 30rpx"><view style="border-top: 1rpx solid #f3f3f3;"></view></view> <view style="padding: 0rpx 30rpx"><view style="border-top: 1rpx solid #f3f3f3;"></view></view>
</view> --> </view> -->
<view class="cu-item">
<view class="cu-item" wx:if="{{form.businessLicenseImg}}">
<view class="flex content cu-item" style="font-size:28rpx"> <view class="flex content cu-item" style="font-size:28rpx">
<view style="min-width:200rpx"><text class="text-red must">*</text>公司名称:</view>
<input id="name" value="{{form.name}}" disabled="{{editable}}" class="inputs" placeholder="请输入公司名称" bindinput="bindForm"></input>
<view style="min-width:200rpx"><text class="text-red must">*</text>企业名称:</view>
<input id="name" value="{{form.name}}" disabled="{{editable}}" class="inputs" placeholder="请输入企业名称" bindinput="bindForm"></input>
</view> </view>
</view> </view>
<view class="cu-item">
<view class="cu-item" wx:if="{{form.businessLicenseImg}}">
<view class="flex content cu-item" style="font-size:28rpx"> <view class="flex content cu-item" style="font-size:28rpx">
<view style="min-width:200rpx"><text class="text-red must">*</text>信用代码:</view> <view style="min-width:200rpx"><text class="text-red must">*</text>信用代码:</view>
<input id="uniformSocialCreditCode" disabled="{{editable}}" value="{{form.uniformSocialCreditCode}}" class="inputs" placeholder="请输社会入统一信用代码" bindinput="bindForm"></input> <input id="uniformSocialCreditCode" disabled="{{editable}}" value="{{form.uniformSocialCreditCode}}" class="inputs" placeholder="请输社会入统一信用代码" bindinput="bindForm"></input>
</view> </view>
</view> </view>
<view class="cu-item">
<view class="cu-item" wx:if="{{form.businessLicenseImg}}">
<view class="flex content cu-item" style="font-size:28rpx"> <view class="flex content cu-item" style="font-size:28rpx">
<view style="min-width:200rpx"><text class="text-red must">*</text>法人姓名:</view> <view style="min-width:200rpx"><text class="text-red must">*</text>法人姓名:</view>
<input id="legalPersonName" disabled="{{editable}}" value="{{form.legalPersonName}}" class="inputs" placeholder="请输法人姓名" bindinput="bindForm"></input> <input id="legalPersonName" disabled="{{editable}}" value="{{form.legalPersonName}}" class="inputs" placeholder="请输法人姓名" bindinput="bindForm"></input>

Loading…
Cancel
Save