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.
 
 
 
 
 
 
yanzong_qianduan/pages/news/consult/about.vue

176 lines
3.8 KiB

<template>
<view class="park">
<view class="park-navbar">
<u-navbar title="联系我们" :border-bottom="false" :background="background"></u-navbar>
</view>
<view class="park-hd">
<image :src="cityInfo.imageList?cityInfo.imageList[0]:''"></image>
<view class="a">{{cityInfo.shop_name}}</view>
<view class="b" @click="openMap()"><u-icon name="map" style="margin-right: 10rpx; margin-top: 10rpx;"></u-icon>{{cityInfo.address}}</view>
</view>
<view class="park-bd">
<view class="a">联系电话</view>
<view class="b">{{cityInfo.phone}}<image :src="$picUrl+'/static/news/tel.png'" @click="callPhone()"></image></view>
</view>
<view class="park-fd">
<image :src="cityInfo.wechat"></image>
<view class="txt">长按识别二维码</view>
<view class="txt">添加我的微信</view>
</view>
<view class="park-btn" v-if="userInfo.user_type==40">
<view class="btn" @click="toEdit">编辑信息</view>
</view>
</view>
</template>
<script>
// import img from "@/static/news/login-bg.png"
export default {
data() {
return {
currentIndex: 0,
background: {
background: `url(${this.$picUrl}/static/news/login-bg.png) center top no-repeat`,
// background: 'url('+ img+') center top no-repeat',
backgroundSize: '100%',
},
cityInfo: {},
userInfo: {}
}
},
onShow() {
this.cityInfo = uni.getStorageSync("cityInfo");
this.userInfo = uni.getStorageSync("userInfo");
},
methods: {
callPhone() {
uni.makePhoneCall({
phoneNumber: this.cityInfo.phone
})
},
openMap() {
uni.openLocation({
latitude: Number(this.cityInfo.latitude),
longitude: Number(this.cityInfo.longitude)
})
},
toEdit() {
uni.navigateTo({
url: "/pages/news/park/personal"
})
},
}
}
</script>
<style lang="scss" scoped>
.park{
width: 100%;
background: url(https://www.royaum.com.cn/static/news/login-bg.png) center 0 no-repeat;
background-size: 100% auto;
min-height: 100vh;
&-hd{
width: 698rpx;
background: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
margin-top: 60rpx;
padding: 30rpx 35rpx;
box-sizing: border-box;
overflow: hidden;
image{
width: 221rpx;
height: 157rpx;
margin-right: 20rpx;
float: left;
}
.a{
font-size: 28rpx;
font-weight: 500;
color: #000000;
}
.b{
display: flex;
align-items: flex-start;
font-size: 28rpx;
font-weight: 400;
color: #818181;
margin-top: 20rpx;
}
}
&-bd{
width: 698rpx;
background: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
margin-top: 20rpx;
padding: 30rpx 30rpx;
box-sizing: border-box;
overflow: hidden;
display: flex;
justify-content: space-between;
image{
width: 40rpx;
height: 40rpx;
}
.a{
font-size: 28rpx;
font-weight: 500;
color: #000000;
}
.b{
padding: 0 30rpx;
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
font-weight: 400;
color: #7B7B7B;
}
}
&-fd{
width: 698rpx;
background: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
margin-top: 20rpx;
padding: 60rpx 40rpx;
box-sizing: border-box;
overflow: hidden;
text-align: center;
image{
width: 300rpx;
height: 300rpx;
display: block;
margin: 0 auto;
}
.txt{
font-size: 32rpx;
font-weight: 400;
color: #686868;
margin-top: 20rpx;
}
}
&-btn{
width: 100%;
position: fixed;
left: 0;
bottom: 0;
padding: 30rpx;
background-color: #fafafa;
box-sizing: border-box;
.btn{
width: 100%;
line-height: 96rpx;
background: #FF564A;
border-radius: 96rpx;
text-align: center;
font-size: 28rpx;
font-weight: 500;
color: #FFFFFF;
}
}
}
</style>