| | |
| | | <view class="box-info"> |
| | | <view class="shop"> |
| | | <view class="shop-image"> |
| | | <image src="/static/logo.png" mode="widthFix"></image> |
| | | <image v-if="shop.imgurl" @click="previewImage(shop.imgurl)" :src="shop.imgurl" mode="widthFix"></image> |
| | | </view> |
| | | <view class="shop-info"> |
| | | <text>鼎元农机一号经销商</text> |
| | | <text>联系人:吴书为</text> |
| | | <text>联系电话:0551-676763678</text> |
| | | <text>{{shop.name || ''}}</text> |
| | | <text>联系人:{{shop.realname || ''}}</text> |
| | | <text>联系电话:{{shop.phone || ''}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="xian"></view> |
| | | <view class="info"> |
| | | <view class="info-item"> |
| | | <view class="info-item-label">营业时间:</view> |
| | | <view class="info-item-val">周一至周五 09:30-17:00</view> |
| | | <view class="info-item-val">周一至周五 {{shop.startTime || ''}}</view> |
| | | </view> |
| | | <view class="info-item"> |
| | | <view class="info-item-label">省市区:</view> |
| | | <view class="info-item-val">安徽省合肥市经济技术开发区</view> |
| | | <view class="info-item-val">{{(shop.areas.provinceName||'') + (shop.areas.cityName||'') + (shop.areas.name||'')}}</view> |
| | | </view> |
| | | <view class="info-item"> |
| | | <view class="info-item-label">门店地址:</view> |
| | | <view class="info-item-val">莲花路200号莲花产业园F栋401</view> |
| | | <view class="info-item-val">{{shop.addr || ''}}</view> |
| | | </view> |
| | | <view class="info-item"> |
| | | <view class="info-item-label">营业执照:</view> |
| | | <view class="info-item-image"> |
| | | <image src="/static/logo.png" mode="widthFix"></image> |
| | | <image v-if="shop.businessImg" @click="previewImage(shop.businessImg)" :src="shop.businessImg" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="info"> |
| | | <view class="info-item"> |
| | | <view class="info-item-label">法人姓名:</view> |
| | | <view class="info-item-val">张光宣</view> |
| | | <view class="info-item-val">{{shop.legalPersonName || ''}}</view> |
| | | </view> |
| | | <view class="info-item"> |
| | | <view class="info-item-label">法人电话:</view> |
| | | <view class="info-item-val">181554462589</view> |
| | | <view class="info-item-val">{{shop.legalPersonPhone||''}}</view> |
| | | </view> |
| | | <view class="info-item"> |
| | | <view class="info-item-label">身份证:</view> |
| | | <view class="info-item-list"> |
| | | <view class="info-item-list-image"> |
| | | <image src="/static/logo.png" mode="widthFix"></image> |
| | | <view class="info-item-list-image" v-if="shop.idcardImg" > |
| | | <image :src="shop.idcardImg" mode="widthFix" @click="previewImage(shop.idcardImg)"></image> |
| | | </view> |
| | | <view class="info-item-list-image"> |
| | | <image src="/static/logo.png" mode="widthFix"></image> |
| | | <view class="info-item-list-image" v-if="shop.idcardImgBack"> |
| | | <image :src="shop.idcardImgBack" @click="previewImage(shop.idcardImgBack)" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | computed: { |
| | | ...mapState(['navHeight', 'statusbarHeight','shopInfo', 'shopToken']) |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | shop:{} |
| | | }; |
| | | }, |
| | | onShow() { |
| | | this.shop ={} |
| | | this.checkShopLogin() |
| | | this.shop = this.shopInfo || {} |
| | | }, |
| | | methods:{ |
| | | previewImage (url) { |
| | | if (url) { |
| | | uni.previewImage({ |
| | | urls:[url] |
| | | }) |
| | | } |
| | | }, |
| | | async checkShopLogin(){ |
| | | var that =this |
| | | if( this.shopInfo ==null || this.shopInfo.id==null || this.shopToken==null || this.shopToken==''){ |
| | | uni.navigateTo({ |
| | | url: '/pages/login/login' |
| | | }) |
| | | } |
| | | let res = await that.$u.api.getShopInfo({tokenType:1 }) |
| | | if (res.code === 200) { |
| | | that.shop = res.data |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |