幼教产品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.

146 lines
3.7 KiB

12 months ago
<template>
12 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">
12 months ago
<image class="avatar" :src="info.logoUrl"></image>
12 months ago
</view>
</view>
12 months ago
<view class="line">
12 months ago
<view class="name">幼儿园名称</view>
12 months ago
<view class="val">{{ info.classificationName }}</view>
12 months ago
</view>
11 months ago
<view class="line">
<view class="name">供应商分类</view>
<view class="val">{{ typeName }}</view>
</view>
12 months ago
<view class="line">
12 months ago
<view class="name">幼儿园slogan</view>
12 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>
12 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>
12 months ago
<view class="val">{{ info.address }}</view>
12 months ago
</view>
12 months ago
<view class="line">
<view class="name">联系电话</view>
<view class="val">{{ info.phone }}</view>
</view>
<view class="line no-bd">
12 months ago
<view class="name">幼儿园简介</view>
12 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>
<view class="line">
<view class="name">二维码描述一</view>
<view class="val">{{ info.qrCodeOneName }}</view>
</view>
<view class="line">
<view class="name">二维码一</view>
<image v-if="info.qrCodeOneUrl" class="qrcode" :src="info.qrCodeOneUrl" mode="widthFix"></image>
</view>
<view class="line">
<view class="name">二维码描述二</view>
<view class="val">{{ info.qrCodeTwoName }}</view>
</view>
<view class="line">
<view class="name">二维码二</view>
<image v-if="info.qrCodeTwoUrl" class="qrcode" :src="info.qrCodeTwoUrl" mode="widthFix"></image>
</view>
<view class="line">
<view class="name">二维码描述三</view>
<view class="val">{{ info.qrCodeThreeName }}</view>
</view>
<view class="line">
<view class="name">二维码三</view>
<image v-if="info.qrCodeThreeUrl" class="qrcode" :src="info.qrCodeThreeUrl" mode="widthFix"></image>
12 months ago
</view>
12 months ago
</view>
12 months ago
</view>
12 months ago
12 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>
12 months ago
import { queryTeamInfo } from '@/apis/modules/user.js'
import Common from '@/config/common'
12 months ago
export default {
data() {
return {
12 months ago
isTeam: uni.getStorageSync('team').isTeam == 1, // 队长
teamId: uni.getStorageSync('teamId'),
info: {},
11 months ago
pictureUrl: [],
typeName: ''
12 months ago
}
},
onShow() {
12 months ago
this.getInfo()
12 months ago
},
methods: {
12 months ago
// 获取个人信息
getInfo() {
12 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 = ''
}
12 months ago
if (data.pictureUrl) this.pictureUrl = data.pictureUrl.split(',')
this.info = data
12 months ago
}).catch(e => {})
},
12 months ago
// 编辑
toEdit() {
this.$util.to('/team/infoEdit/infoEdit')
12 months ago
}
12 months ago
}
}
</script>
<style scoped lang="scss">
12 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
}
12 months ago
.form-list {
.pic {
width: 200rpx;
height: 200rpx;
margin-right: 10rpx;
12 months ago
}
12 months ago
.qrcode {
12 months ago
width: 300rpx;
12 months ago
}
}
</style>