<template>
		<view class="container">
			<view class="banner"><image src="http://shicai.liuniu946.com/static/img/img21.png"></image></view>
			<!-- <view class="service">
				<view class="title">扫描下方二维码添加客服微信</view>
				<view class="time">服务时间（8:30-18:00）</view>
				<view class="image"><image src="http://shicai.liuniu946.com/static/img/img20.png"></image></view>
				<view class="time">任何有关产品咨询、订单查询、售后退款意见反馈的</br> 问题您都可以咨询美天选菜客服哦！</view>
			</view> -->
		</view>
</template>
<script>
	import { saveUrl } from '@/utils/loginUtils.js';
	export default {
		data() {
			return {
				id:'',
				list:"",
				spread:"",
				show:false,
				scrollTop: 0,
			    description:'',
				old: {
					scrollTop: 0
				}
			};
		},
		async onLoad(options) {
			// 判断有无邀请人
			if (options.spread) {
				uni.setStorageSync('spread', options.spread);
			}
			saveUrl();
		},
		methods: {
			//分享
			// #ifdef MP
			onShareAppMessage: function(res) {
				let userInfo = uni.getStorageSync('userInfo');
				let GetInfo = uni.getStorageSync('GetInfo');
				// 来自页面内分享按钮
				let pages = getCurrentPages();
				// 获取当前页面
				let page = pages[pages.length - 1];
				let path = '/pages/service/service?';
				// 保存邀请人
				path += 'spread=' + userInfo.uid;
				let data = {
					path: path,
					imageUrl: GetInfo.img,
					title: GetInfo.title
				};
				console.log(data)
				return data;
			},
			// #endif
		}
	};
</script>

<style lang="scss">
page{
	background: #F4F4F4;
	height: 100%;
	.container{
		background: #F4F4F4;
		height: 100%;
		font-size: 24rpx;
	}
}
.banner{
	width: 100%;
	height: 100%;
	image{
		width: 100%;
		height: 100%;
	}
}
.service{
	padding: 54rpx 0rpx;
	background: #FFFFFF;
	text-align: center;
	font-size: 24rpx;
	width: 712rpx;
	margin: 0rpx auto;
	border:1px solid rgba(231, 231, 231, 0.96);
	box-shadow:0px 3px 2px 0px rgba(219,219,219,0.75);
	.image{
		width: 260rpx;
		height: 260rpx;
		margin: 0rpx auto;
		image{
			width: 260rpx;
			height: 260rpx;
		}
	}
}
</style>
