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.
155 lines
2.7 KiB
155 lines
2.7 KiB
3 years ago
|
<template>
|
||
|
<view class="container">
|
||
|
<view class="schedule-card schedule-card1" style="padding-bottom: 20rpx;">
|
||
|
<view style="max-width:100%;">
|
||
|
<u-parse :content="shopcourse" @navigate="navigate" class="shopparse"></u-parse>
|
||
|
<!-- <view v-html="shopcourse" class="shopparse"></view> -->
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
shopcourse: ''
|
||
|
};
|
||
|
},
|
||
|
onLoad(e) {
|
||
|
if (e.className) {
|
||
|
if (e.className === '商家教程') {
|
||
|
uni.setNavigationBarTitle({
|
||
|
title: '商家教程'
|
||
|
})
|
||
|
|
||
|
//获取全局邀请码
|
||
|
this.$Request.getT('/common/type/144').then(res => {
|
||
|
if (res.code == 0) {
|
||
|
if (res.data && res.data.value) {
|
||
|
this.shopcourse = res.data.value;
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
} else if (e.className === '关于我们') {
|
||
|
uni.setNavigationBarTitle({
|
||
|
title: '关于我们'
|
||
|
})
|
||
|
//获取全局邀请码
|
||
|
this.$Request.getT('/common/type/146').then(res => {
|
||
|
if (res.code == 0) {
|
||
|
if (res.data && res.data.value) {
|
||
|
this.shopcourse = res.data.value;
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
navigate(href, e) {
|
||
|
// #ifdef H5
|
||
|
window.location.href = href;
|
||
|
//#endif
|
||
|
|
||
|
//#ifdef APP-PLUS
|
||
|
setTimeout(function() {
|
||
|
plus.runtime.openURL(href);
|
||
|
}, 500);
|
||
|
// #endif
|
||
|
},
|
||
|
navTo(url) {
|
||
|
let token = this.$queue.getData("token");
|
||
|
if (token) {
|
||
|
uni.navigateTo({
|
||
|
url: url
|
||
|
});
|
||
|
} else {
|
||
|
uni.navigateTo({
|
||
|
url: '/pages/public/login'
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang='scss'>
|
||
|
page {
|
||
|
background: #FFFFFF;
|
||
|
}
|
||
|
|
||
|
|
||
|
.shopparse {
|
||
|
color: #333333;
|
||
|
display: block;
|
||
|
width: 100%;
|
||
|
max-width: 100%;
|
||
|
/* margin: 20rpx; */
|
||
|
background-size: 100%;
|
||
|
height: auto;
|
||
|
/* padding: 0 30rpx; */
|
||
|
}
|
||
|
|
||
|
.right-txt {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
.list-cell {
|
||
|
display: flex;
|
||
|
align-items: baseline;
|
||
|
padding: 20upx $page-row-spacing;
|
||
|
line-height: 60upx;
|
||
|
position: relative;
|
||
|
background: #fff;
|
||
|
justify-content: center;
|
||
|
|
||
|
&.log-out-btn {
|
||
|
margin-top: 40upx;
|
||
|
|
||
|
.cell-tit {
|
||
|
color: $uni-color-primary;
|
||
|
text-align: center;
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
&.cell-hover {
|
||
|
background: #fafafa;
|
||
|
}
|
||
|
|
||
|
&.b-b:after {
|
||
|
left: 32upx;
|
||
|
}
|
||
|
|
||
|
&.m-t {
|
||
|
margin-top: 18upx;
|
||
|
}
|
||
|
|
||
|
.cell-more {
|
||
|
align-self: baseline;
|
||
|
font-size: $font-lg;
|
||
|
color: $font-color-light;
|
||
|
margin-left: 12upx;
|
||
|
}
|
||
|
|
||
|
.cell-tit {
|
||
|
flex: 1;
|
||
|
font-size: $font-base + 2upx;
|
||
|
color: $font-color-dark;
|
||
|
margin-right: 12upx;
|
||
|
}
|
||
|
|
||
|
.cell-tip {
|
||
|
font-size: $font-base;
|
||
|
color: $font-color-light;
|
||
|
}
|
||
|
|
||
|
switch {
|
||
|
transform: translateX(8px) scale(.84);
|
||
|
}
|
||
|
}
|
||
|
</style>
|