- 新增心理论坛页面及文章详情页 - 更新订单状态文案:"待发货"改为"待发出","待收货"改为"待收到" - 统一修改"收货地址"相关文案为"收件地址" - 添加安卓应用包下载地址配置 - 更新依赖edu-core至v1.0.6版本 - 优化首页课程列表布局和样式 - 新增分享功能到我的页面
71 lines
1.4 KiB
Vue
71 lines
1.4 KiB
Vue
<template>
|
|
<view>
|
|
<z-nav-bar title="文章详情"></z-nav-bar>
|
|
<web-view :webview-styles="webviewStyles" :src="surl"></web-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'vuex';
|
|
export default {
|
|
data() {
|
|
return {
|
|
surl:'',
|
|
webviewStyles: {
|
|
progress: {
|
|
color: '#55aaff'
|
|
}
|
|
},
|
|
|
|
};
|
|
},
|
|
//第一次加载
|
|
onLoad(e) {
|
|
// 隐藏原生的tabbar
|
|
uni.hideTabBar();
|
|
this.surl = e.url
|
|
console.log(e, '------')
|
|
// #ifdef APP-PLUS
|
|
const pages = getCurrentPages()
|
|
const page = pages[pages.length - 1];
|
|
const currentWebview = page.$getAppWebview()
|
|
currentWebview.setStyle({
|
|
titleNView: {
|
|
buttons: [{
|
|
float: 'right',
|
|
type: 'close',
|
|
onclick: function() {
|
|
uni.navigateBack({
|
|
delta: 1
|
|
});
|
|
}
|
|
}]
|
|
}
|
|
})
|
|
// #endif
|
|
},
|
|
computed: {
|
|
...mapState(['userInfo'])
|
|
},
|
|
//页面显示
|
|
onShow() {
|
|
// 隐藏原生的tabbar
|
|
uni.hideTabBar();
|
|
},
|
|
onPullDownRefresh() {
|
|
uni.stopPullDownRefresh()
|
|
},
|
|
//方法
|
|
methods: {
|
|
|
|
},
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.box {
|
|
background-color: #fff;
|
|
min-height: calc(100vh - 270rpx);
|
|
}
|
|
.title{font-size: 32rpx; font-weight: bold; display: block; text-align: center;}
|
|
.content { font-size: 26rpx; line-height: 48rpx; margin-top: 10rpx;}
|
|
</style> |