Commit ff1e7584 authored by zhanglw's avatar zhanglw

默认营业执照

parent 3b1c1ca9
......@@ -255,13 +255,14 @@
<inquiry-view ref="inquiryView" />
<float-inquiry-view v-show="tabIndex==='1'" ref="floatInquiryView" />
<el-backtop />
<el-dialog title="营业执照" :visible.sync="dialogVisible" :show-close="false">
<el-dialog title="营业执照" :visible.sync="dialogVisible" :show-close="false" top="10vh">
<el-image v-for="url in urls" :key="url" :src="url" lazy fit="contain" style="width: 100%" />
</el-dialog>
</div>
</template>
<script>
import default_product from '@/assets/home_images/default_product.png'
import default_businessLicense from '@/assets/home_images/businessLicense.jpg'
import titleMenus from '../components/titleMenusV2'
import userLogin from '../components/userLoginV2'
import languageSetting from '../components/languageSettingV2'
......@@ -308,7 +309,11 @@ export default {
customerId: this.$route.params.id
}).then((res) => {
this.supplierObj = res.data
if (this.supplierObj.businessLicense) {
this.urls = this.supplierObj.businessLicense.split(';').map(item => { return this.imgSrcStart + '/businessLicense/' + item })
} else {
this.urls = [default_businessLicense]
}
this.$refs.floatInquiryView.setOption({
customerId: this.supplierObj.customerId,
title: this.supplierObj.enterpriseName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment