mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
337 lines
8.0 KiB
Vue
337 lines
8.0 KiB
Vue
<template>
|
||
<view style="background: #F0D8B0;width: 100%;position: relative;">
|
||
<view class="back-icon" >
|
||
<u-icon name="arrow-left" @click="goBack"></u-icon>
|
||
</view>
|
||
<view class="myub-top">
|
||
<view class="ub-content">
|
||
<view class="ub-heard">
|
||
<view class="ub-tab" @click="ubtab(1)" :class="tab == 1 ? 'ub-tabactive' : ' ' ">课程学习<text></text></view>
|
||
<view class="ub-tab" @click="ubtab(2)" :class="tab == 2 ? 'ub-tabactive' : ' ' ">知识贡献<text></text></view>
|
||
<view class="ub-tab" @click="ubtab(3)" :class="tab == 3 ? 'ub-tabactive' : ' ' ">平台活跃<text></text></view>
|
||
</view>
|
||
<view class="ub-listbox">
|
||
<view class="listbox-list">
|
||
<view class="classify" style="text-align: center;">分类</view>
|
||
<view class="description" style="text-align: center;">描述</view>
|
||
<view class="upper" style="text-align: center;">经验值/U币</view>
|
||
<view class="upper" style="text-align: center;">每日上限</view>
|
||
</view>
|
||
<view class="lsitbox-info" v-for="item,idx in list">
|
||
<view class="classify">{{ item.name }}</view>
|
||
<view class="description">{{ item.hear }}</view>
|
||
<view class="upper" style="text-align: center;">{{ item.value }}</view>
|
||
<view class="upper" style="text-align: center;">{{ item.upperlimit }}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
tab:1,
|
||
list:[],
|
||
tabplatform:[{
|
||
name: '',
|
||
hear: '一次性奖励',
|
||
value: '+2',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '每日签到',
|
||
hear: '连续签到5天',
|
||
value: '+20',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '',
|
||
hear: '连续签到10天',
|
||
value: '+50',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '',
|
||
hear: '连续签到20天',
|
||
value: '+100',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '点赞',
|
||
hear: '每点赞一次',
|
||
value: '+1',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '完成课时评分',
|
||
hear: '每打分一次',
|
||
value: '+2',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '转发/分享',
|
||
hear: '每转发一次',
|
||
value: '+2',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '参与课程活动',
|
||
hear: '每参与投票等课程活动一次',
|
||
value: '+3',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '完善个人信息',
|
||
hear: '一次性奖励:需完成头像,个性签名,学习偏好设置',
|
||
value: '+50',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '意见反馈',
|
||
hear: '每通过平台提意见一次',
|
||
value: '+10',
|
||
upperlimit: 10
|
||
},
|
||
{
|
||
name: '意见反馈被采纳',
|
||
hear: '意见每被采纳一次',
|
||
value: '+30',
|
||
upperlimit: null
|
||
},
|
||
|
||
|
||
|
||
],
|
||
tableData: [{
|
||
name: '试听学习',
|
||
hear: '每日累计学习10分钟',
|
||
value: '+10',
|
||
upperlimit: 50
|
||
},
|
||
{
|
||
name: ' ',
|
||
hear: '每日累计学习20分钟',
|
||
value: '+20',
|
||
upperlimit: 50
|
||
},
|
||
{
|
||
name: ' ',
|
||
hear: '每日累计学习30分钟',
|
||
value: '+30',
|
||
upperlimit: 50
|
||
},
|
||
{
|
||
name: ' ',
|
||
hear: '每日累计学习45分钟',
|
||
value: '+40',
|
||
upperlimit: 50
|
||
},
|
||
{
|
||
name: ' ',
|
||
hear: '每日累计学习60分钟',
|
||
value: '+50',
|
||
upperlimit: 50
|
||
},
|
||
{
|
||
name: '案例学习',
|
||
hear: '完成一个案例的阅读',
|
||
value: '+5',
|
||
upperlimit: 30,
|
||
label: '(最低3分钟)'
|
||
},
|
||
{
|
||
name: '文章学习',
|
||
hear: '完成一个文章的阅读',
|
||
value: '+5',
|
||
upperlimit: 30,
|
||
label: '(最低2分钟)'
|
||
},
|
||
],
|
||
tableList: [{
|
||
name: '发布音视频课程',
|
||
hear: '完成一个音视频课发布',
|
||
value: '+60',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '面授课记录',
|
||
hear: '有一个完成的面授课记录(<4h)',
|
||
value: '+40',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: ' ',
|
||
hear: '有一个完成的面授课记录(>=4h)',
|
||
value: '+60',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '发布文章',
|
||
hear: '每发布1篇文章',
|
||
value: '+40',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '发布案例',
|
||
hear: '每发布1篇案例',
|
||
value: '+50',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '发布笔记',
|
||
hear: '每发布公开笔记1篇',
|
||
value: "+5",
|
||
upperlimit: 30
|
||
},
|
||
{
|
||
name: '发表评论',
|
||
hear: '在课程,问答,案例中发表1个评论',
|
||
value: '+2',
|
||
upperlimit: 20
|
||
},
|
||
{
|
||
name: '回复评论',
|
||
hear: '在课程、问答、案例中回复一个评论',
|
||
value: '+2',
|
||
upperlimit: 20
|
||
},
|
||
{
|
||
name: '提问',
|
||
hear: '在问答专区提一个问题',
|
||
value: '+10',
|
||
upperlimit: 30
|
||
},
|
||
{
|
||
name: '回复问题',
|
||
hear: '在问答专区回复一个问题',
|
||
value: '+5',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: ' ',
|
||
hear: '回答内容被设为最佳答案',
|
||
value: '+30',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '被点赞',
|
||
hear: '作者课程、案例文章、回答每被点赞一次',
|
||
value: '+1',
|
||
upperlimit: null
|
||
},
|
||
{
|
||
name: '被转发/分享',
|
||
hear: '作者课程、案例文章、回答每被转发一次',
|
||
value: '+1',
|
||
upperlimit: null
|
||
},
|
||
|
||
],
|
||
}
|
||
},
|
||
mounted() {
|
||
this.tab = 1;
|
||
this.ubtab(1);
|
||
},
|
||
methods: {
|
||
goBack(){
|
||
uni.navigateBack();
|
||
},
|
||
ubtab(num){
|
||
this.tab = num;
|
||
if(num == 1){
|
||
this.list = this.tableData
|
||
}else if(num == 2){
|
||
this.list = this.tableList;
|
||
}else if(num == 3){
|
||
this.list = this.tabplatform;
|
||
}
|
||
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.back-icon{
|
||
position: absolute;
|
||
top:110upx;
|
||
left:40upx;
|
||
}
|
||
.lsitbox-info{
|
||
display:flex ;
|
||
width: 100%;
|
||
font-size: 28upx;
|
||
color: #834B3B;
|
||
margin-top: 20upx;
|
||
padding-bottom: 20upx;
|
||
border-bottom: 2px solid rgba(153,153,153,0.1);
|
||
}
|
||
.classify{
|
||
width: 25%;
|
||
}
|
||
.description{
|
||
flex: 1;
|
||
}
|
||
.upper{
|
||
width: 20%;
|
||
}
|
||
.ub-listbox{
|
||
width: 100%;
|
||
height: 100%;
|
||
.listbox-list {
|
||
display:flex ;
|
||
color: #FF7721;
|
||
font-size: 24upx;
|
||
|
||
}
|
||
}
|
||
.myub-top{
|
||
width: 100%;
|
||
// height: 484upx;
|
||
background-image: url(../../static/images/myubimg.png);
|
||
background-repeat: no-repeat;
|
||
background-size: 100%;
|
||
padding-top: 245upx;
|
||
.ub-content{
|
||
background-color: #fff;
|
||
margin: 0 30upx;
|
||
border-radius: 6px;
|
||
padding: 45upx 30upx;
|
||
.ub-heard{
|
||
width: 100%;
|
||
height: 100upx;
|
||
.ub-tab{
|
||
color: #999999;
|
||
float: left;
|
||
font-size: 32upx;
|
||
margin-right: 44upx;
|
||
position: relative;
|
||
text{
|
||
width: 84upx;
|
||
height: 8upx;
|
||
background: linear-gradient(180deg, #FFA31F 0%, #FF6E0E 100%);
|
||
border-radius: 13px;
|
||
position: absolute;
|
||
left: 15%;
|
||
top: 120%;
|
||
display: none;
|
||
}
|
||
}
|
||
.ub-tabactive{
|
||
font-weight: 500;
|
||
color: #333333;
|
||
text{
|
||
display: inline-block;
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
}
|
||
</style>
|