| | |
| | | <fui-upload immediate :url="`${apiBaseUrl}/api/UpFile/UpBizLicense`" ref="uploadB" max='1' |
| | | background='#fff' @success="success" @error="error" @complete="complete" width="300" |
| | | :sizeType='sizeType' height="150"> |
| | | <image |
| | | :src="enterpriseInfo.businessLicense?enterpriseInfo.businessLicense:'/static/enterprise.png'" |
| | | mode="aspectFill" style="width: 300rpx;height: 150rpx;"></image> |
| | | <image src="/static/enterprise.png" mode="widthFix" style="width: 300rpx;height: 150rpx;"> |
| | | </image> |
| | | </fui-upload> |
| | | <!-- <template #right> |
| | | <up-icon name="arrow-right"></up-icon> |
| | |
| | | $util, |
| | | $db |
| | | } = getCurrentInstance().appContext.config.globalProperties |
| | | let uploadB = ref() |
| | | onLoad(() => { |
| | | const userToken = $db.get("userToken"); |
| | | if (!userToken) { |
| | |
| | | const formRef = ref(null); |
| | | onReady(() => { |
| | | formRef.value.setRules(rules); |
| | | if(enterpriseInfo.businessLicense){ |
| | | uploadB.value.urls = [enterpriseInfo.businessLicense] |
| | | uploadB.value.status = ['success'] |
| | | } |
| | | }) |
| | | onMounted(() => { |
| | | formRef.value.setRules(rules); |