This commit is contained in:
Gdpao 2020-08-18 15:24:06 +08:00
parent 7191b29b44
commit ee04a8cb08
4 changed files with 60 additions and 18 deletions

View File

@ -1,9 +1,12 @@
<template>
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id,item.video_path)">
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
<view class="header_fist" v-else>
<view class="backes"></view>
<image class="head" :src="item.article_pic" ></image>
<view class="header_fist" v-else>
<view class="backes">
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
<text>视频</text>
</view>
<image class="head" :src="item.article_pic"></image>
</view>
<view class="title" v-if="">{{ item.article_title }}</view>
<view class="jianjie">{{ item.article_content }}</view>
@ -172,11 +175,22 @@
.header_fist{
position: relative;
.backes{
z-index: 99;
position: absolute;
top: 0;
width: 100%;
height: 100%;
color: #fff;
display: flex;
align-items: center;
justify-content: space-around;
top: 10rpx;
left: 10rpx;
width: 80rpx;
height: 30rpx;
padding: 0 10rpx;
border-radius: 30rpx;
background-color: rgba(0,0,0,0.5);
& > text {
color: #fff;
font-size: 18rpx;
}
}
}
@ -197,7 +211,7 @@ export default {
},
watch: {
item(newVal, old) {
// console.log(newVal);
console.log(newVal);
this.item = newVal;
},
deep: true

View File

@ -233,11 +233,11 @@
console.log(res.data.member.member_mobilebind);
if(res.data.member.member_mobilebind) {
uni.switchTab({
url: "/pages/index/index"
url: "/pages/index/index"
});
} else {
uni.navigateTo({
url: '/pageA/bindinges/bindinges'
url: '/pageA/bindinges/bindinges'
});
}
}
@ -271,11 +271,11 @@
console.log(res.data.member.member_mobilebind);
if(res.data.member.member_mobilebind) {
uni.switchTab({
url: "/pages/index/index"
url: "/pages/index/index"
});
} else {
uni.navigateTo({
url: '/pageA/bindinges/bindinges'
url: '/pageA/bindinges/bindinges'
});
}
}

View File

@ -16,8 +16,10 @@
<text class="tips">已是最新版本</text>
</view>
</view>
<u-popup v-model="show" v-if="type == 2">
<view>出淤泥而不染濯清涟而不妖</view>
<u-popup v-model="show" v-if="type == 2" mode="left" width="100%">
<view class="u-content">
<rich-text :nodes="nodes"></rich-text>
</view>
</u-popup>
</view>
</template>
@ -26,11 +28,11 @@ import common from '@/static/js/common.js'
export default {
data() {
return {
version: "",
phone_type: "",
type: 1,
nodes: "",
show: false,
version: "",
show: false,
phone_type: "",
}
},
onLoad(option) {
@ -43,6 +45,17 @@ export default {
this.getVersion();
this.phone_type = this.$u.os();
},
onBackPress() {
if (this.show) {
this.show = !this.show;
} else {
return false;
}
return true;
},
onNavigationBarButtonTap(e) {
console.log(e);
},
methods: {
setTitle(title){
uni.setNavigationBarTitle({
@ -129,4 +142,10 @@ page {
font-size: 22rpx;
}
}
.u-content {
padding: 20rpx;
font-size: 30rpx;
text-indent: 1rem;
line-height: 1.2;
}
</style>

View File

@ -610,7 +610,16 @@
"titleSize": "36px",
"titleNView": {
"titleColor": "#333333",
"backgroundColor": "#FFFFFF"
"backgroundColor": "#FFFFFF",
"buttons": [
{
"width": "0",
"type":"none",
"text":"关闭",
"float":"right",
"fontSize":"14"
}
]
}
}
}