aboutOur.vue 2.44 KB
<template>
	<view>
		<view class="about-content">
			<view class="text-center">
				<image class="logo" src="/static/logo.png"></image>
				<view>
					<view class="title">{{appName}}</view>
					<view class="title-msg">{{apptitle}}</view>
				</view>
			</view>
			<uni-list class="">
				<view class="recordCon uni-list-cell-pd">
					<text class="fontColor000">微信公众号</text>
					<text>{{officialAccountName}}</text>
				</view>
				<view class="recordCon uni-list-cell-pd" @click="call">
					<text class="fontColor000">客服电话</text>
					<text>{{customerServicePhone}}</text>
				</view>
				<view class="recordCon uni-list-cell-pd">
					<text class="fontColor000">门户网站</text>
					<text>{{website}}</text>
				</view>
			</uni-list>

			<view class="info">

				<view class="">
					<view class="titleinfo">江阴慧停车版权所有</view>
					<view class="titleinfo">All Rights Reserved</view>
				</view>

			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				appName: '江阴慧停车',
				apptitle: '江阴慧停车·智慧便捷',
				officialAccountName: '',
				customerServicePhone: '',
				website: '',
			}
		},
		mounted() {
			this.aboutUs()
		},
		methods: {
			call(){
				var me = this;
				uni.makePhoneCall({
				    phoneNumber: me.customerServicePhone  
				});
			},
			aboutUs() {
				let that = this;
				that.$myRequest({
					url: that.$common.useraboutUs,
					method: 'POST',
					data: that.$common.requestSign()
				}).then(res => {

					console.log(res)
					let aboutInfo = res.data;
					that.officialAccountName = aboutInfo.officialAccountName;
					that.customerServicePhone = aboutInfo.customerServicePhone;
					that.website = aboutInfo.website;
				})
			},

		}
	}
</script>

<style lang="scss">
	.about-content {
		// padding-top: 30rpx;
		background-color: #f6f6f6;
		height: 100vh;
	}

	.logo {
		height: 200upx;
		width: 200upx;
		margin-top: 50upx;
	}

	.title {
		font-size: 32upx;
		color: #000;
		font-weight: 400;
	}

	.title-msg {
		font-size: 26upx;
		color: #8d8d8d;
		margin-bottom: 30upx;
	}

	.fontColor000 {
		color: #000;
	}

	.recordCon {
		color: #999;
		display: flex;
		justify-content: space-between;
		border-bottom: 2px solid #f6f6f6;
	}

	.info {
		width: 100%;
		bottom: 50px;
		text-align: center;
		position: absolute;
	}

	.info {
		width: 100%;
		bottom: 50px;
		text-align: center;
		position: absolute;
	}

	.titleinfo {
		font-size: 20upx;

	}
</style>