13 changed files with 1306 additions and 560 deletions
@ -0,0 +1,168 @@ |
|||||
|
<template> |
||||
|
<u-navbar :title="'企业帮'" placeholder="true" bg-color="#F1F3F9" :auto-back="true" /> |
||||
|
<view class="container"> |
||||
|
<view class="main"> |
||||
|
<view class="head"> |
||||
|
<image class="toux" :src="baseurl + userData.head_pic" mode=""></image> |
||||
|
<view style="margin-left: 40rpx;display: grid;justify-items: flex-start;"> |
||||
|
<text class="name">{{ userData.name }}</text> |
||||
|
<text class="type">{{ userData.enterprise }}</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="content"> |
||||
|
<view class="titlepart"> |
||||
|
<view class="icon"></view> |
||||
|
<text class="title">个人介绍</text> |
||||
|
</view> |
||||
|
<u-parse v-if="userData.introduction" :content="userData.introduction"></u-parse> |
||||
|
<view class="titlepart"> |
||||
|
<view class="icon"></view> |
||||
|
<text class="title">联系电话</text> |
||||
|
</view> |
||||
|
<view class="people"> |
||||
|
<text class="text">{{ userData.mobile }}</text> |
||||
|
</view> |
||||
|
<view class="titlepart"> |
||||
|
<view class="icon"></view> |
||||
|
<text class="title">微信二维码</text> |
||||
|
</view> |
||||
|
<image style="width: 338rpx; height: 338rpx; margin-top: 28rpx; margin-left: 24%" |
||||
|
:src="baseurl + userData.code_pic" mode=""></image> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
import { |
||||
|
onLoad |
||||
|
} from '@dcloudio/uni-app' |
||||
|
import { |
||||
|
ref |
||||
|
} from 'vue' |
||||
|
import { |
||||
|
enterpriseInfo |
||||
|
} from '@/api/shop' |
||||
|
|
||||
|
const baseurl = ref(import.meta.env.VITE_APP_BASE_URL + '/') |
||||
|
|
||||
|
const userData = ref({}) |
||||
|
|
||||
|
onLoad(async (param) => { |
||||
|
await enterpriseInfo({id:param.id,category_id:param.current}).then((res) => { |
||||
|
if (res.code === 1) { |
||||
|
userData.value = res.data |
||||
|
} |
||||
|
}) |
||||
|
}) |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="scss"> |
||||
|
.container { |
||||
|
background-color: #ffffff; |
||||
|
height: calc(100vh - 182rpx); |
||||
|
width: 100%; |
||||
|
|
||||
|
.main { |
||||
|
width: 100%; |
||||
|
|
||||
|
.head { |
||||
|
padding: 40rpx; |
||||
|
box-sizing: border-box; |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
|
||||
|
.toux { |
||||
|
width: 180rpx; |
||||
|
height: 180rpx; |
||||
|
box-sizing: border-box; |
||||
|
border-radius: 50%; |
||||
|
box-shadow: 0rpx 8rpx 40rpx 0rpx rgba(101, 101, 101, 0.15); |
||||
|
} |
||||
|
|
||||
|
.name { |
||||
|
margin-top: 32rpx; |
||||
|
font-family: Inter; |
||||
|
font-size: 32rpx; |
||||
|
font-weight: 350; |
||||
|
color: #000000; |
||||
|
} |
||||
|
|
||||
|
.type { |
||||
|
margin-top: 40rpx; |
||||
|
margin-top: 4rpx; |
||||
|
font-family: Inter; |
||||
|
font-size: 32rpx; |
||||
|
font-weight: 350; |
||||
|
color: #858494; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.content { |
||||
|
padding: 0 40rpx; |
||||
|
box-sizing: border-box; |
||||
|
padding-bottom: 100rpx; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.titlepart { |
||||
|
margin-top: 40rpx; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
|
||||
|
.icon { |
||||
|
width: 12rpx; |
||||
|
height: 32rpx; |
||||
|
border-radius: 0rpx 32rpx 32rpx 0rpx; |
||||
|
/* 蓝色渐变 */ |
||||
|
background: linear-gradient(0deg, #007fff 0%, #99ccff 100%); |
||||
|
} |
||||
|
|
||||
|
.title { |
||||
|
margin-left: 18rpx; |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 30rpx; |
||||
|
font-weight: 350; |
||||
|
line-height: 32rpx; |
||||
|
text-align: justify; |
||||
|
/* 浏览器可能不支持 */ |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
color: #0072ff; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.message { |
||||
|
margin-top: 36rpx; |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 32rpx; |
||||
|
font-weight: 300; |
||||
|
line-height: 60rpx; |
||||
|
text-align: justify; |
||||
|
/* 浏览器可能不支持 */ |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
color: #3d3d3d; |
||||
|
} |
||||
|
|
||||
|
.people { |
||||
|
margin-top: 28rpx; |
||||
|
display: flex; |
||||
|
|
||||
|
.text { |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 32rpx; |
||||
|
font-weight: 300; |
||||
|
line-height: 60rpx; |
||||
|
text-align: justify; |
||||
|
/* 浏览器可能不支持 */ |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
color: #3d3d3d; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
@ -0,0 +1,147 @@ |
|||||
|
<template> |
||||
|
<u-navbar :title="'开店帮'" placeholder="true" bg-color="#F1F3F9" :auto-back="true" /> |
||||
|
<view class="container"> |
||||
|
<text class="title">{{ xdbData.title }}</text> |
||||
|
<text class="fbr">发布人:{{ xdbData.publisher }}</text> |
||||
|
<view class="readtime"> |
||||
|
<text class="time">{{ xdbData.create_time }}</text> |
||||
|
<view class="readnum"> |
||||
|
阅读量: |
||||
|
<text class="num">{{ xdbData.count }}</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="nrxq"> |
||||
|
<view class="icon"></view> |
||||
|
<text class="nrtitle">内容详情</text> |
||||
|
</view> |
||||
|
<u-parse :content="xdbData.content"></u-parse> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
import { onLoad } from '@dcloudio/uni-app' |
||||
|
import { ref } from 'vue' |
||||
|
import { enterpriseInfo } from '@/api/shop' |
||||
|
|
||||
|
const xdbData = ref({}) |
||||
|
|
||||
|
onLoad(async (param) => { |
||||
|
await enterpriseInfo({id:param.id,category_id:param.current}).then((res) => { |
||||
|
if (res.code === 1) { |
||||
|
xdbData.value = res.data |
||||
|
} |
||||
|
}) |
||||
|
}) |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="scss"> |
||||
|
.container { |
||||
|
background-color: #ffffff; |
||||
|
height: calc(100vh - 182rpx); |
||||
|
width: 100%; |
||||
|
padding: 60rpx 40rpx 0 40rpx; |
||||
|
box-sizing: border-box; |
||||
|
|
||||
|
.title { |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 36rpx; |
||||
|
font-weight: normal; |
||||
|
line-height: 48rpx; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
color: #0c092a; |
||||
|
} |
||||
|
|
||||
|
.fbr { |
||||
|
margin-top: 28rpx; |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 28rpx; |
||||
|
font-weight: 350; |
||||
|
line-height: 48rpx; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
color: #858494; |
||||
|
} |
||||
|
|
||||
|
.readtime { |
||||
|
margin-top: 28rpx; |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: space-between; |
||||
|
|
||||
|
.time { |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 28rpx; |
||||
|
font-weight: 350; |
||||
|
line-height: 48rpx; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
color: #858494; |
||||
|
} |
||||
|
|
||||
|
.readnum { |
||||
|
display: flex; |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 28rpx; |
||||
|
font-weight: 350; |
||||
|
line-height: 48rpx; |
||||
|
text-align: right; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
/* 阅读量: */ |
||||
|
color: #858494; |
||||
|
|
||||
|
.num { |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 28rpx; |
||||
|
font-weight: 350; |
||||
|
line-height: 48rpx; |
||||
|
text-align: right; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
/* 2 */ |
||||
|
color: #007fff; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.nrxq { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
margin-top: 60rpx; |
||||
|
margin-bottom: 40rpx; |
||||
|
|
||||
|
.icon { |
||||
|
width: 12rpx; |
||||
|
height: 32rpx; |
||||
|
border-radius: 0rpx 32rpx 32rpx 0rpx; |
||||
|
/* 蓝色渐变 */ |
||||
|
background: linear-gradient(0deg, #007fff 0%, #99ccff 100%); |
||||
|
} |
||||
|
|
||||
|
.nrtitle { |
||||
|
margin-left: 20rpx; |
||||
|
font-family: Source Han Sans; |
||||
|
font-size: 30rpx; |
||||
|
font-weight: 350; |
||||
|
line-height: 32rpx; |
||||
|
text-align: justify; |
||||
|
/* 浏览器可能不支持 */ |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
letter-spacing: normal; |
||||
|
color: #0072ff; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.message { |
||||
|
margin-top: 40rpx; |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in new issue