<template> <view class="page"> <u-navbar title="使用说明" :border-bottom="false" :background="bgc" title-color='#3D3D3D' back-icon-color="#3D3D3D" title-size='36' height='44'></u-navbar> <view class="" v-html="cont"> </view> <view class="" style="position: fixed;top: 0;left: 0;width: 100%;height: 100vh;z-index: -1;"> <image style="width: 100%;height: 100vh;" src="https://api.ccttiot.com/smartmeter/img/static/u5AWkMT3khOhGPKrUPMH" mode=""></image> </view> </view> </template> <script> export default { data() { return { bgc: { // background:'linear-gradient(to right, #FFEFEF 20%, #D9F6FF 100%)' }, cont:'' } }, onLoad() { this.getwz() }, // 分享到好友(会话) onShareAppMessage: function() { return { title: '创亿康', path: '/pages/index/index' } }, // 分享到朋友圈 onShareTimeline: function() { return { title: '创亿康', query: '', path: '/pages/index/index' } }, methods: { getwz(){ this.$u.get(`/app/article/useInfo`).then(res => { if(res.code == 200){ this.cont = res.data.content } }) } } } </script> <style lang="scss"> /deep/ .u-title { padding-bottom: 15rpx; } /deep/ .u-icon__icon { padding-bottom: 15rpx; } page { background: #F4F5F7; } .page { width: 750rpx; height: 100vh; overflow: hidden; padding: 0 30rpx; box-sizing: border-box; font-size: 26rpx; } </style>