|
|
@ -1,16 +1,16 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<view class="index"> |
|
|
|
<view class="index"> |
|
|
|
<view class="header header-search acea-row row-middle"> |
|
|
|
<!-- <view class="header header-search acea-row row-middle"> --> |
|
|
|
<view @click="goGoodSearch()" class="search acea-row row-middle"> |
|
|
|
<!-- view @click="goGoodSearch()" class="search acea-row row-middle"> |
|
|
|
<text class="iconfont icon-xiazai5"></text> |
|
|
|
<text class="iconfont icon-xiazai5"></text> |
|
|
|
搜索商品 |
|
|
|
搜索商品 |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- #ifndef H5 --> |
|
|
|
<!-- #ifndef H5 --> |
|
|
|
<!-- <view class="qr" @click="startQr()" v-if="$deviceType !== 'weixin'"> |
|
|
|
<!-- <view class="qr" @click="startQr()" v-if="$deviceType !== 'weixin'"> |
|
|
|
<image src="../../static/saoyisao-icon.png" /> |
|
|
|
<image src="../../static/saoyisao-icon.png" /> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
<!-- #endif --> |
|
|
|
<!-- #endif --> |
|
|
|
</view> |
|
|
|
<!-- </view> --> |
|
|
|
<view class="banner-box"> |
|
|
|
<view class="banner-box"> |
|
|
|
<image src="https://www.cyjyyjy.com:8081/static/home-banner.png" mode=""></image> |
|
|
|
<image src="https://www.cyjyyjy.com:8081/static/home-banner.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -59,38 +59,38 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="notice-box acea-row row-middle" @click="toNoticePage"> |
|
|
|
<!-- <view class="notice-box acea-row row-middle" @click="toNoticePage"> |
|
|
|
<view class="notice-t">公告</view> |
|
|
|
<view class="notice-t">公告</view> |
|
|
|
<view class="notice">点击下载直播APP,在线观看!!</view> |
|
|
|
<view class="notice">点击下载直播APP,在线观看!!</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- 推荐课程 --> |
|
|
|
<!-- 推荐课程 --> |
|
|
|
<view class="recommend-box p30"> |
|
|
|
<view class="recommend-box p30" v-if="courseList.length > 0"> |
|
|
|
<view class="title-box acea-row row-between-wrapper"> |
|
|
|
<view class="title-box acea-row row-between-wrapper"> |
|
|
|
<view class="title">今日推荐</view> |
|
|
|
<view class="title">今日推荐</view> |
|
|
|
<view class="more" @click="toCourse">查看全部课程</view> |
|
|
|
<view class="more" @click="toCourse">查看全部课程</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="recommend-list-box acea-row"> |
|
|
|
<view class="recommend-list-box acea-row"> |
|
|
|
<view class="recommend-item" v-for="(item,index) in courseList" :key="index" @click="toCourseDetail(item.id)"> |
|
|
|
<view class="recommend-item" v-for="(item,index) in courseList" :key="index" @click="toCourseDetail(item.id)"> |
|
|
|
<view class="img-box"><image :src="item.imageArr[0]" mode="aspectFill"></image></view> |
|
|
|
<view class="img-box"><image :src="item.coverImg" mode="aspectFill"></image></view> |
|
|
|
<view class="course-content"> |
|
|
|
<view class="course-content"> |
|
|
|
<view class="course-title line1">{{item.courseName}}</view> |
|
|
|
<view class="course-title line1">{{item.courseName}}</view> |
|
|
|
<view class="course-tips-box acea-row"> |
|
|
|
<view class="course-tips-box acea-row"> |
|
|
|
<view class="course-tip-item blue">{{item.categoryName}}</view> |
|
|
|
<view class="course-tip-item blue">{{item.categoryName}}</view> |
|
|
|
<view class="course-tip-item yellow">{{item.levelName}}</view> |
|
|
|
<!-- <view class="course-tip-item yellow">{{item.levelName}}</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="price" v-if="item.level > 2">{{item.level}}级课程</view> |
|
|
|
<!-- <view class="price" v-if="item.level > 2">{{item.level}}级课程</view> |
|
|
|
<view class="price" v-if="item.level == 2">¥{{item.courseCharge}}</view> |
|
|
|
<view class="price" v-if="item.level == 2">¥{{item.courseCharge}}</view> |
|
|
|
<view class="price colG" v-if="item.chargeType == 0 || item.level == 1">免费</view> --> |
|
|
|
<view class="price colG" v-if="item.chargeType == 0 || item.level == 1">免费</view> --> |
|
|
|
<view class="course-address acea-row row-between-wrapper"> |
|
|
|
<view class="course-address acea-row row-between-wrapper"> |
|
|
|
<view class="address">{{item.coursePlace}}</view> |
|
|
|
<view class="address">{{item.coursePlace}}</view> |
|
|
|
<view class="course-time">{{setDate(item.courseStartTime)}}-{{setDate(item.courseEndTime)}}</view> |
|
|
|
<view class="course-time">{{setDate(item.enterStartTime)}}-{{setDate(item.enterEndTime)}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 学习榜 --> |
|
|
|
<!-- 学习榜 --> |
|
|
|
<view class="study-list-box"> |
|
|
|
<view class="study-list-box" v-if="studyList.length > 0"> |
|
|
|
<view class="title-box acea-row row-between-wrapper"> |
|
|
|
<view class="title-box acea-row row-between-wrapper"> |
|
|
|
<view class="title">学习榜单</view> |
|
|
|
<view class="title">学习榜单</view> |
|
|
|
<view class="more" @click="toCourse">查看全部榜单</view> |
|
|
|
<view class="more" @click="toCourse">查看全部榜单</view> |
|
|
@ -300,13 +300,13 @@ export default { |
|
|
|
that.$set(that, 'benefit', res.data.benefit) |
|
|
|
that.$set(that, 'benefit', res.data.benefit) |
|
|
|
that.$set(that, 'couponList', res.data.couponList) |
|
|
|
that.$set(that, 'couponList', res.data.couponList) |
|
|
|
that.$set(that, 'combinationList', res.data.combinationList) |
|
|
|
that.$set(that, 'combinationList', res.data.combinationList) |
|
|
|
that.$set(that, 'courseList', res.data.courseDtos) |
|
|
|
that.$set(that, 'courseList', res.data.lessionDtos) |
|
|
|
that.$set(that, 'studyList', res.data.studyLists) |
|
|
|
that.$set(that, 'studyList', res.data.studyLists) |
|
|
|
that.$set(that, 'articleList', res.data.articleDtos) |
|
|
|
that.$set(that, 'articleList', res.data.articleDtos) |
|
|
|
uni.hideLoading() |
|
|
|
uni.hideLoading() |
|
|
|
that.setOpenShare() |
|
|
|
that.setOpenShare() |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
console.log(res.data.courseDtos) |
|
|
|
// console.log(res.data.courseDtos) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
todiandeng(){ |
|
|
|
todiandeng(){ |
|
|
@ -315,8 +315,10 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
setDate(t){ |
|
|
|
setDate(t){ |
|
|
|
|
|
|
|
if(t && t.length > 0){ |
|
|
|
let str = t.split(" ")[0].split("-")[1] + "." + t.split(" ")[0].split("-")[2] |
|
|
|
let str = t.split(" ")[0].split("-")[1] + "." + t.split(" ")[0].split("-")[2] |
|
|
|
return str |
|
|
|
return str |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
getDate(){ |
|
|
|
getDate(){ |
|
|
|
var today = new Date(); |
|
|
|
var today = new Date(); |
|
|
@ -439,7 +441,6 @@ export default { |
|
|
|
uni.showModal({ |
|
|
|
uni.showModal({ |
|
|
|
title:'提示!', |
|
|
|
title:'提示!', |
|
|
|
content:'签到成功!您的座位号是' + res.data, |
|
|
|
content:'签到成功!您的座位号是' + res.data, |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|