幼教产品B2B生态平台小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
4.3 KiB

12 months ago
<template>
11 months ago
<view class="page">
12 months ago
<view class="block">
<view class="form-list">
12 months ago
<view class="line">
12 months ago
<view class="name">LOGO</view>
<view class="val">
11 months ago
<image class="avatar" :src="info.logoUrl"></image>
12 months ago
</view>
</view>
12 months ago
<view class="line">
11 months ago
<view class="name">{{ platformName }}名称</view>
11 months ago
<view class="val">{{ info.classificationName }}</view>
12 months ago
</view>
11 months ago
<view v-if="platformSource === '6'" class="line">
11 months ago
<view class="name">供应商分类</view>
<view class="val">{{ typeName }}</view>
</view>
12 months ago
<view class="line">
11 months ago
<view class="name">{{ platformName }}slogan</view>
11 months ago
<view class="val">{{ info.slogan }}</view>
</view>
<view class="line">
<view class="name">省份</view>
<view class="val">{{ info.province }}</view>
12 months ago
</view>
11 months ago
<view class="line">
<view class="name">城市</view>
<view class="val">{{ info.city }}</view>
</view>
<view class="line">
12 months ago
<view class="name">地址</view>
11 months ago
<view class="val">{{ info.address }}</view>
12 months ago
</view>
11 months ago
<view class="line">
<view class="name">联系电话</view>
<view class="val">{{ info.phone }}</view>
</view>
<view class="line no-bd">
11 months ago
<view class="name">{{ platformName }}简介</view>
11 months ago
<view class="val">{{ info.briefIntroduction }}</view>
</view>
<view class="py">
<image v-for="(item, i) in pictureUrl" :key="i" class="pic" :src="item"></image>
</view>
10 months ago
<view v-if="info.qrCodeOneName" class="line">
<view class="name">二维码描述1</view>
11 months ago
<view class="val">{{ info.qrCodeOneName }}</view>
</view>
10 months ago
<view v-if="info.qrCodeOneUrl" class="line">
<view class="name">二维码1</view>
<image class="qrcode" :src="info.qrCodeOneUrl" mode="widthFix"></image>
11 months ago
</view>
10 months ago
<view v-if="info.qrCodeTwoName" class="line">
<view class="name">二维码描述2</view>
11 months ago
<view class="val">{{ info.qrCodeTwoName }}</view>
</view>
10 months ago
<view v-if="info.qrCodeTwoUrl" class="line">
<view class="name">二维码2</view>
<image class="qrcode" :src="info.qrCodeTwoUrl" mode="widthFix"></image>
11 months ago
</view>
10 months ago
<view v-if="info.qrCodeThreeName" class="line">
<view class="name">二维码描述3</view>
11 months ago
<view class="val">{{ info.qrCodeThreeName }}</view>
</view>
10 months ago
<view v-if="info.qrCodeThreeUrl" class="line">
<view class="name">二维码3</view>
<image class="qrcode" :src="info.qrCodeThreeUrl" mode="widthFix"></image>
12 months ago
</view>
12 months ago
</view>
12 months ago
</view>
12 months ago
11 months ago
<view v-if="isTeam" class="btn-wrap">
12 months ago
<view class="btn" @click="toEdit">编辑</view>
</view>
12 months ago
</view>
</template>
<script>
11 months ago
import { queryTeamInfo, enterpriseCertificationStatus } from '@/apis/modules/user.js'
11 months ago
import Common from '@/config/common'
12 months ago
export default {
data() {
return {
11 months ago
openId: uni.getStorageSync('openId'),
11 months ago
isTeam: uni.getStorageSync('team').isTeam == 1, // 队长
teamId: uni.getStorageSync('teamId'),
info: {},
11 months ago
pictureUrl: [],
11 months ago
typeName: '',
platformSource: '',
12 months ago
}
},
11 months ago
computed: {
// 平台名字
platformName() {
return this.platformSource === '6' ? '供应商' : this.platformSource === '5' ? '幼儿园' : ''
},
},
12 months ago
onShow() {
11 months ago
this.getEnterInfo()
11 months ago
this.getInfo()
12 months ago
},
methods: {
12 months ago
// 获取个人信息
getInfo() {
11 months ago
queryTeamInfo({
teamId: this.teamId
}).then(res => {
const data = res.teamInfo
if (!data.logoUrl) data.logoUrl = Common.avatar
11 months ago
// 分类回显
const type = res.supplierClassification
if (type && type.length) {
this.typeName = type[0].supplierClassificationName
} else {
this.typeName = ''
}
11 months ago
if (data.pictureUrl) this.pictureUrl = data.pictureUrl.split(',')
this.info = data
12 months ago
}).catch(e => {})
},
11 months ago
// 企业认证信息
async getEnterInfo() {
const { data } = await enterpriseCertificationStatus(this.openId)
if (data) {
this.platformSource = data.platformSource
}
},
12 months ago
// 编辑
toEdit() {
this.$util.to('/team/infoEdit/infoEdit')
12 months ago
}
12 months ago
}
}
</script>
<style scoped lang="scss">
11 months ago
.page {
padding-bottom: 170rpx;
-webkit-overflow-scrolling: touch;
}
12 months ago
.avatar {
width: 80rpx;
height: 80rpx;
border: 0;
border-radius: 50%;
12 months ago
}
11 months ago
.form-list {
.pic {
width: 200rpx;
height: 200rpx;
margin-right: 10rpx;
12 months ago
}
12 months ago
.qrcode {
11 months ago
width: 300rpx;
12 months ago
}
}
</style>