<view style="margin: 0 auto; width: 100%;">
<button class="imagess" wx:if="{
{sourcel == sourcesls}}" bindtap="uploadimg">请上传企业证书</button>
<image class="imagess" wx:if="{
{sourcel}}" src='{
{source}}' />
</view>
<view class="btns" bindtap="tijiao">确认提交</view>
var app=getApp()
Page({
/**
* 页面的初始数据
*/
data: { //初始化为空
source:'',
sources:'',
sourcesl:false,
sourcesls:false,
sourcel:false,
userNameInput:'',
cellphone:'',
workerid:0,
},
onLoad: function (options) {
this.setData({
workerid:options.workerid,
userNameInput:options.userNameInput
})
},
tijiao(e){
var that=this
var tempFilePaths = that.data.source
wx.uploadFile({
url: app.globalData.bas