This commit is contained in:
曹辉 2023-04-21 17:08:47 +08:00
parent 7589c057d3
commit 6b3f01bf3b
8 changed files with 236 additions and 32 deletions

View File

@ -4,24 +4,28 @@
}, },
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/Videolearning/Videolearning",
"style": {
"navigationBarTitleText": "视频学习",
"onReachBottomDistance": 50, // px
"enablePullDownRefresh": true //true
}
}, {
"path": "pages/MyLearning/MyLearning",
"style": {
"navigationBarTitleText": "我的学习",
"enablePullDownRefresh": false
}
}, {
"path": "pages/startup/startup", "path": "pages/startup/startup",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{
"path": "pages/Videolearning/Videolearning",
"style": {
"navigationBarTitleText": "视频学习",
"enablePullDownRefresh": false,
"onReachBottomDistance": 50, // px
"enablePullDownRefresh": true //true
}
}, { }, {
"path": "pages/Graphiclearning/Graphiclearning", "path": "pages/Graphiclearning/Graphiclearning",
"style": { "style": {
"navigationBarTitleText": "图文学习", "navigationBarTitleText": "图文学习",
"enablePullDownRefresh": false,
"onReachBottomDistance": 50, // px "onReachBottomDistance": 50, // px
"enablePullDownRefresh": true //true "enablePullDownRefresh": true //true
} }
@ -29,11 +33,10 @@
"path": "pages/Learningtraining/Learningtraining", "path": "pages/Learningtraining/Learningtraining",
"style": { "style": {
"navigationBarTitleText": "学习培训", "navigationBarTitleText": "学习培训",
"enablePullDownRefresh": false,
"onReachBottomDistance": 50, // px "onReachBottomDistance": 50, // px
"enablePullDownRefresh": true //true "enablePullDownRefresh": true //true
} }
}, { }, {
"path": "pages/Healthknowledge/Healthknowledge", "path": "pages/Healthknowledge/Healthknowledge",
"style": { "style": {
"navigationBarTitleText": "护理新闻", "navigationBarTitleText": "护理新闻",
@ -119,17 +122,14 @@
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, {
"path": "pages/Videolearningdetails/Videolearningdetails",
"style": {
"navigationBarTitleText": "视频学习",
"enablePullDownRefresh": false
}
} }
,{ ],
"path" : "pages/Videolearningdetails/Videolearningdetails",
"style" :
{
"navigationBarTitleText": "视频学习",
"enablePullDownRefresh": false
}
}
],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "", "navigationBarTitleText": "",

View File

@ -0,0 +1,180 @@
<template>
<view class='app'>
<view class="card">
<view class="toptitle">
<image src="../../static/shipin.png" mode=""></image>
<view class="title">
视频
</view>
</view>
<view class="items">
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
</view>
</view>
<view class="card">
<view class="toptitle">
<image src="../../static/zhibo.png" mode=""></image>
<view class="title">
直播
</view>
</view>
<view class="items">
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
</view>
</view>
<view class="card">
<view class="toptitle">
<image src="../../static/peixun.png" mode=""></image>
<view class="title">
培训
</view>
</view>
<view class="items">
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
<view class="item">
<image src="../../static/jnks.png" mode=""></image>
<view class="text">
基础护理技能操作
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
.app {
margin: 15rpx auto 0;
padding: 0 0 60rpx;
color: #000000;
.card {
width: 97%;
margin: 0 auto 15rpx;
background-color: #fff;
.items {
width: 92%;
margin: 30rpx auto 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.item {
margin-bottom: 55rpx;
image {
width: 190rpx;
height: 190rpx;
border-radius: 5rpx;
}
.text {
width: 166rpx;
font-size: 27rpx;
font-weight: 500;
line-height: 36rpx;
margin: 0 auto;
}
}
}
.toptitle {
width: 92%;
margin: 0 auto;
position: relative;
height: 90rpx;
border-bottom: 1rpx solid #E6E6E6;
.title {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 50rpx;
}
image {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
width: 36rpx;
height: 36rpx;
}
}
}
}
</style>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="app"> <view class="app">
<view class="card"> <view class="card">
<view class="item" v-for='(item,index) in list' :key="index" @tap='goVideolearningdetails(item)'> <view class="item" v-for='(item,index) in list' :key="index" @click.stop='goVideolearningdetails(item)'>
<image :src="baseurl + item.trainingItemCoverUrl" mode=""></image> <image :src="baseurl + item.trainingItemCoverUrl" mode=""></image>
<view class="title"> <view class="title">
{{item.trainingItemTitle}} {{item.trainingItemTitle}}
@ -12,7 +12,7 @@
<view class="price"> <view class="price">
{{item.trainingItemPrice}} {{item.trainingItemPrice}}
</view> </view>
<view class="buy" v-if='!item.trainingOrderStatus'> <view class="buy" v-if='!item.trainingOrderStatus' @click.stop='buy(item)'>
购买 购买
</view> </view>
<view class="havebuy" v-else> <view class="havebuy" v-else>
@ -20,6 +20,12 @@
</view> </view>
</view> </view>
</view> </view>
<u-popup v-model="buyshow" mode='bottom' height='800'>
<view class="popuptitle">请选择支付方式</view>
<view class="buybtn">
确认支付{{buylist.trainingItemPrice}}
</view>
</u-popup>
</view> </view>
</template> </template>
@ -31,12 +37,14 @@
export default { export default {
data() { data() {
return { return {
buyshow: false,
baseurl: undefined, baseurl: undefined,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
trainingCategoryId: undefined, trainingCategoryId: undefined,
list: [], list: [],
total: 0, total: 0,
buylist: {},
}; };
}, },
onLoad(options) { onLoad(options) {
@ -45,6 +53,11 @@
this.info(); this.info();
}, },
methods: { methods: {
//
buy(item) {
this.buylist = item
this.buyshow = true
},
// //
goVideolearningdetails(item) { goVideolearningdetails(item) {
uni.navigateTo({ uni.navigateTo({
@ -83,6 +96,11 @@
padding: 15rpx 0 0; padding: 15rpx 0 0;
color: #000000; color: #000000;
.popuptitle {
font-size: 41rpx;
text-align: center;
}
.card { .card {
width: 96%; width: 96%;
margin: 0 auto; margin: 0 auto;
@ -107,28 +125,28 @@
} }
.havebuy { .havebuy {
width: 115rpx; width: 125rpx;
height: 48rpx; height: 55rpx;
background: #CDCDCD; background: #CDCDCD;
border-radius: 5rpx; border-radius: 5rpx;
text-align: center; text-align: center;
line-height: 48rpx; line-height: 55rpx;
color: #FFFFFF; color: #FFFFFF;
position: absolute; position: absolute;
right: 20rpx; right: 15rpx;
bottom: 30rpx; bottom: 30rpx;
} }
.buy { .buy {
width: 115rpx; width: 125rpx;
height: 48rpx; height: 55rpx;
background: #4271B9; background: #4271B9;
border-radius: 5rpx; border-radius: 5rpx;
text-align: center; text-align: center;
line-height: 48rpx; line-height: 55rpx;
color: #FFFFFF; color: #FFFFFF;
position: absolute; position: absolute;
right: 20rpx; right: 15rpx;
bottom: 30rpx; bottom: 30rpx;
} }

View File

@ -61,7 +61,7 @@
我的收益 我的收益
</view> </view>
</view> </view>
<view class="bottomitem" @tap='gostudy'> <view class="bottomitem" @tap='goMyLearning'>
<image src="../../static/xuexi.png" mode=""></image> <image src="../../static/xuexi.png" mode=""></image>
<view class=""> <view class="">
我的学习 我的学习
@ -159,6 +159,12 @@
}) })
}, },
// //
goMyLearning() {
uni.navigateTo({
url: "/pages/MyLearning/MyLearning"
})
},
//
gostudy() { gostudy() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/study/study' url: '/pages/study/study'

BIN
static/peixun.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/shipin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/wechat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
static/zhibo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB