Commit cda8946c authored by 和慭琛's avatar 和慭琛

培训视频页 原型图页面搭建 交互 100%

parent 659aab99
......@@ -8,6 +8,14 @@
{
"path": "pages/video/index",
"style": {
"navigationBarTitleText": "培训&考试"
}
},
{
"path": "pages/exam/index",
"style": {
"navigationBarTitleText": "入驻考试"
......
......@@ -13,8 +13,14 @@
},
onLoad(e) {
getApp().trackPage('师傅入驻页')
getApp().trackPage('内置网页')
if(e && e.url){
this.webUrl = e.url
return
}
//https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40
getApp().trackPage('师傅入驻页')
this.webUrl = getApp().globalData.domain_Name
+ '/weixiuapp/site/index.html#/?pioneerId=40'
//console.log(this.webUrl)
......
<template>
<view class="backView">
<view class="itemView" v-for="(item,ikey) in dataList":key="ikey"
@click="itemClick(item,ikey)">
<view class="titleView">
<text class="title">{{item.title}}</text>
<image class="arrow" :src="icon_arrow_right" mode=""></image>
</view>
<text class="notice">时长:5分钟,已完成学习</text>
</view>
<view class="bottomView">
<view class="bottomBtn" @click="examClick()">
<text class="bottomTitle">完成学习后,可参加考试</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
icon_arrow_right:'',
dataList:[],
}
},
onLoad(e) {
this.icon_arrow_right = getApp().globalData.icon_arrow_right
this.getData()
},
methods: {
//获取数据
getData: function () {
this.dataList = [
{
'title':'第一章 希望的终结',
},
{
'title':'第二章 困惑的浪漫',
},
{
'title':'第三章 诸神的黄昏',
},
];
},
itemClick: function (item , ikey) {
uni.navigateTo({
url:'/pages/take/web'
+'?url=' + 'https://www.baidu.com',
})
},
//参加考试
examClick: function () {
uni.navigateTo({
url:'/pages/exam/index'
})
}
}
}
</script>
<style>
.backView{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
.itemView{
background-color: #FAFAFA;
width: 100%;
display: flex;
flex-direction: column;
border-bottom: 2rpx solid #999999;
}
.titleView{
background-color: #FFFFFF;
width: 100%;
height: 80rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-bottom: 2rpx solid #999999;
}
.title{
font-size: 28rpx;
margin-left: 40rpx;
}
.arrow{
width: 16rpx;
height: 28rpx;
margin-right: 40rpx;
}
.notice{
padding-left: 40rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
font-size: 28rpx;
color: #999999;
}
.bottomView{
background-color: #FFFFFF;
width: 100%;
height: 140rpx;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0;
}
.bottomBtn{
background-color: #007AFF;
width: 60%;
height: 80rpx;
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bottomTitle{
font-size: 32rpx;
color: #FFFFFF;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment