代码合并

This commit is contained in:
2024-12-23 18:45:22 +08:00
88 changed files with 2268 additions and 470 deletions

View File

View File

@@ -1,8 +1,9 @@
<template>
<view class="u-relative bg-gray fixed position-all">
<view class="time btn" v-if="time<=0" @click="enter"><text>进入</text></view>
<view class="time" v-else ><text>{{time}}</text></view>
<view class="w-full box">
<view class="u-relative bg-gray fixed yodwbsHlmJ-all">
<view class="jdwbHJCFxl ydwbzNqTbj" v-if="time<=0" @click="enter"><text>进入</text></view>
<view class="jdwbHJCFxl" v-else ><text>{{time}}</text></view>
<image src="./asz.JPG" v-if="false" mode=""></image>
<view class="w-full dumdwbwauP">
<image src="/static/images/share_bg2.png" class="img"></image>
</view>
</view>
@@ -37,10 +38,10 @@
</script>
<style lang="scss" scoped>
.position-all{
.yodwbsHlmJ-all{
position: fixed;
inset: 0;
.time{
.jdwbHJCFxl{
position: absolute;
z-index: 10;
width: 50rpx;
@@ -57,14 +58,14 @@
border: 1px solid rgba(255, 255, 255, .8);
top: calc(var(--status-bar-height) + 20rpx );
}
.btn{
.ydwbzNqTbj{
border-radius: 100rpx;
white-space: nowrap;
width: auto;
height: auto;
padding: 4rpx 20rpx;
}
.box{
.dumdwbwauP{
position: absolute;
inset: 0;
.img{

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 KiB

BIN
pages/BdwbOqUuVz/asz.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

View File

@@ -0,0 +1,27 @@
<template>
<view class="gyqSxFeTGt">
<image class="img CBKwkqgyqg" src="./asz.JPG" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6808.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6808.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6810.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6811.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6812.jpg" mode="widthFix"></image>
</view>
</template>
<script>
export default {
data() {
return {
list: []
};
}
};
</script>
<style scoped lang="scss">
.img {
width: 100%;
display: block;
}
</style>

View File

@@ -1,16 +1,16 @@
<template>
<view class="">
<u-sticky :enable="enable">
<view class="search-box">
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keyword"
:show-action="false" :animation="true" @search="getCourseList()"></u-search>
<u-sticky :enable="enableIos">
<view class="search-box-ios">
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
</view>
</u-sticky>
<view class="swiper flex align-center justify-center">
<view class="swiper-box">
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
:circular="true" style="width: 100%;height: 350rpx;">
<swiper-item v-for="(item,index) in swiperList" :key='index' @tap="goPage(item.url)">
<swiper-item v-for="(item,index) in swiperListIos" :key='index' @tap="goPageIos(item.url)">
<image :src="item.imageUrl" mode="scaleToFill"
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
</swiper-item>
@@ -18,24 +18,11 @@
</view>
</view>
<view class="padding-lr">
<view class="" v-if="courseList.length">
<!-- <view class="vidoList flex align-center justify-between flex-wrap">
<view class="vidoList-item" @click="goCourse(item.courseId,item.courseDetailsId)"
v-for="(item, index) in courseList" :key="index">
<view class="vidoList-item-img">
<image :src="item.titleImg" mode="aspectFill"></image>
</view>
<view class="vidoList-item-title">
{{item.title}}
</view>
</view>
<view class="vidoList-item" style="height: 0;"></view>
<view class="vidoList-item" style="height: 0;"></view>
</view> -->
<videoList @success="posterSuccess" :list="courseList" />
<view class="" v-if="courseListIos.length">
<videoList @success="posterSuccessIos" :list="courseListIos" />
</view>
<empty title="暂无视频" :isShow='false' v-else></empty>
<u-loadmore v-if="courseList.length > 0" :status="status" />
<u-loadmore v-if="courseListIos.length > 0" :status="statusIos" />
</view>
</view>
@@ -51,71 +38,58 @@
},
data() {
return {
enable: true,
status: 'loadmore',
swiperList: [], //轮播图列表
courseList: [], //资源列表
page: 1,
limit: 10,
id: '',
datalist: [{
id: 1,
name: '综合'
}, {
id: 2,
name: '人气'
}, {
id: 3,
name: '价格',
label: '0'
}],
dataIndex: 0,
sort: '',
count: 0,
keyword: '',
isPrice: '', //是否免费 2:免费
enableIos: true,
statusIos: 'loadmore',
swiperListIos: [], //轮播图列表
courseListIos: [], //资源列表
pageIos: 1,
limitIos: 10,
pagesIos: 0,
sortIos: '',
keywordIos: '',
isPriceIos: '', //是否免费 2:免费
}
},
onShow() {
this.enable = true
this.getCourseList()
this.enableIos = true
this.getCourseListIos()
},
onHide() {
this.enable = false
this.enableIos = false
},
onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.getBannerList()
this.getBannerListIos()
if (option.sort) {
this.sort = option.sort
this.sortIos = option.sort
}
if (option.isPrice) {
this.isPrice = option.isPrice
this.isPriceIos = option.isPrice
}
},
methods: {
goPage(url) {
goPageIos(url) {
uni.navigateTo({
url: url
})
},
//点击回调
posterSuccess(item) {
posterSuccessIos(item) {
uni.navigateTo({
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId
})
},
//最新热播
getCourseList() {
getCourseListIos() {
let data = {
limit: this.limit,
page: this.page,
sort: this.sort ? this.sort : '',
title: this.keyword,
limit: this.limitIos,
page: this.pageIos,
sort: this.sortIos ? this.sortIos : '',
title: this.keywordIos,
}
// #ifdef MP-WEIXIN
data.wxShow = 1
@@ -123,24 +97,24 @@
// #ifdef MP-TOUTIAO
data.dyShow = 1
// #endif
if (this.isPrice) {
data.isPrice = this.isPrice
if (this.isPriceIos) {
data.isPrice = this.isPriceIos
}
this.$u.api.courseList(data).then(res => {
if (res.code == 0) {
this.pages = res.data.totalPage
if (this.page < this.pages) {
this.status = 'loadmore'
this.pagesIos = res.data.totalPage
if (this.pageIos < this.pagesIos) {
this.statusIos = 'loadmore'
} else {
this.status = 'nomore'
this.statusIos = 'nomore'
}
// res.data.list.forEach(ret => {
// ret.courseLabel = ret.courseLabel ? ret.courseLabel.split(',') : []
// })
if (this.page == 1) {
this.courseList = res.data.list
if (this.pageIos == 1) {
this.courseListIos = res.data.list
} else {
this.courseList = [...this.courseList, ...res.data.list]
this.courseListIos = [...this.courseListIos, ...res.data.list]
}
} else {
uni.showToast({
@@ -154,14 +128,14 @@
})
},
// 获取轮播图列表
getBannerList() {
getBannerListIos() {
this.$u.api.bannerList({
classify: '1'
}).then(res => {
if (res.code == 0) {
res.data.forEach(d => {
if (d.state == 1) {
this.swiperList.push(d)
this.swiperListIos.push(d)
}
})
@@ -177,25 +151,25 @@
},
onReachBottom: function() {
if (this.page < this.pages) {
this.page += 1
this.status = 'loading'
this.getCourseList()
if (this.pageIos < this.pagesIos) {
this.pageIos += 1
this.statusIos = 'loading'
this.getCourseListIos()
} else {
this.status = 'nomore'
this.statusIos = 'nomore'
}
},
onPullDownRefresh: function() {
this.page = 1;
this.getCourseList()
this.pageIos = 1;
this.getCourseListIos()
},
}
</script>
<style lang="scss" scoped>
.search-box {
.search-box-ios {
width: 100%;
padding: 15upx 2.5%;
display: flex;
@@ -203,42 +177,7 @@
background-color: #ffffff;
}
.vidoList {
width: 100%;
height: auto;
margin-bottom: 20rpx;
.vidoList-item {
width: calc((100% - 40rpx) / 3);
height: 356rpx;
background-color: #FFFFFF;
border-radius: 24rpx;
margin-bottom: 20rpx;
}
.vidoList-item-img {
width: 100%;
height: 280rpx;
border-radius: 24rpx 24rpx 0 0;
image {
width: 100%;
height: 100%;
border-radius: 24rpx 24rpx 0 0;
}
}
.vidoList-item-title {
width: 100%;
text-align: center;
background-color: #FFFFFF;
border-radius: 0 0 24rpx 24rpx;
padding: 20rpx;
overflow: hidden;
text-overflow: ellipsis; //溢出用省略号显示
white-space: nowrap; // 默认不换行;
}
}
.swiper {
width: 100%;

View File

@@ -1,44 +1,44 @@
<template>
<view>
<view class="bg-white padding-sm margin flex" style="border-radius: 24rpx;">
<u-image width="200rpx" height="200rpx" border-radius="10rpx" :src="courseList.titleImg">
<u-image width="200rpx" height="200rpx" border-radius="10rpx" :src="courseListIos.titleImg">
</u-image>
<view class="flex flex-direction justify-between margin-left-sm" style="width:420rpx;">
<view class="text-bold text-black margin-top-xs u-line-1 text-lg">{{courseList.title}}
<view class="text-bold text-black margin-top-xs u-line-1 text-lg">{{courseListIos.title}}
</view>
<!-- <view class="text-gray text-26 margin-top">最近在学{{courseList.payNum}}</view> -->
<!-- <view class="text-gray text-26 margin-top">最近在学{{courseListIos.payNum}}</view> -->
<view class="flex justify-between ">
<view class=" text-bold " style="color: #FF8211;">¥<text
style="font-size: 42rpx;">{{courseList.price}}</text></view>
style="font-size: 42rpx;">{{courseListIos.price}}</text></view>
</view>
</view>
</view>
<view class="popup_pay">
<view class="popup_pay_ios">
<view class="text-lg text-bold">支付方式</view>
<view class="flex align-center justify-between" style="height: 100upx;" v-for="(item,index) in openLists"
<view class="flex align-center justify-between" style="height: 100upx;" v-for="(item,index) in openListsIos"
:key='index'>
<image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;">
</image>
<view style="font-size: 30upx;margin-left: 20upx;width: 70%;">
{{item.text}}
</view>
<radio-group name="openWay" style="margin-left: 45upx;" @tap.stop='selectWay(item)'>
<label class="tui-radio">
<radio color="red" :checked="openWay === item.id ? true : false" />
<radio-group name="openWay" style="margin-left: 45upx;" @tap.stop='selectWayIos(item)'>
<label >
<radio color="red" :checked="openWayIos === item.id ? true : false" />
</label>
</radio-group>
</view>
<!-- <view class="pay_btn" @click="pay()">确认支付</view> -->
<!-- <view class="pay_btn" @click="payIos()">确认支付</view> -->
</view>
<view class="taber">
<view class="taber_ios">
<view class="flex align-center" style="color: #FF8211;">
<text style="color: #333;">实付款</text>
<view class=" text-bold " style="color: #FF8211;">¥<text
style="font-size: 42rpx;">{{courseList.price}}</text></view>
style="font-size: 42rpx;">{{courseListIos.price}}</text></view>
</view>
<view class="btn" @click="pay">确定并支付</view>
<view class="btn_ios" @click="payIos">确定并支付</view>
</view>
</view>
</template>
@@ -47,17 +47,17 @@
export default {
data() {
return {
courseId: '',
courseList: [],
courseIdIos: '',
courseListIos: [],
openLists: [],
openWay: 1,
flag: true
openListsIos: [],
openWayIos: 1,
flagIos: true
}
},
onLoad(option) {
// #ifdef APP
this.openLists = [{
this.openListsIos = [{
image: '../../../static/images/index/weixin.png',
text: '微信支付',
id: 1
@@ -66,22 +66,22 @@
text: '支付宝',
id: 2
}],
this.openWay = 1;
this.openWayIos = 1;
// #endif
// #ifdef MP-WEIXIN
this.openLists = [{
this.openListsIos = [{
image: '../../../static/images/index/weixin.png',
text: '微信支付',
id: 1
}],
this.openWay = 1;
this.openWayIos = 1;
// #endif
// #ifdef H5
let ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('micromessenger') !== -1) {
this.openLists = [{
this.openListsIos = [{
image: '../../../static/images/index/weixin.png',
text: '微信支付',
id: 1
@@ -90,39 +90,39 @@
text: '支付宝',
id: 2
}],
this.openWay = 1;
this.openWayIos = 1;
} else {
this.openLists = [{
this.openListsIos = [{
image: '../../../static/images/index/zhifubao.png',
text: '支付宝',
id: 2
}],
this.openWay = 2;
this.openWayIos = 2;
}
// this.openLists = [{
// this.openListsIos = [{
// image: '../../../static/images/index/zhifubao.png',
// text: '支付宝',
// id: 2
// }],
// this.openWay = 2;
// this.openWayIos = 2;
// #endif
if (option.courseId) {
this.courseId = option.courseId
this.getDataList(this.courseId)
this.courseIdIos = option.courseId
this.getDataListIos(this.courseIdIos)
}
},
methods: {
selectWay(e) {
this.openWay = e.id;
selectWayIos(e) {
this.openWayIos = e.id;
},
// 资源详情
getDataList(id) {
getDataListIos(id) {
let data = {
id
}
this.$u.api.courseDet(data).then(res => {
if (res.code == 0) {
this.courseList = res.data
this.courseListIos = res.data
} else {
uni.showToast({
title: res.msg,
@@ -133,12 +133,12 @@
})
},
pay() {
payIos() {
let that = this
if (that.flag) {
that.flag = false
if (that.flagIos) {
that.flagIos = false
let data = {
courseId: that.courseList.courseId
courseId: that.courseListIos.courseId
}
that.$u.api.courseOrder(data).then(res => {
if (res.code == 0 && res.data.flag == 1) {
@@ -146,12 +146,12 @@
title: '已获取资源',
icon: 'success'
})
that.getDataList(that.courseId);
that.getDataListIos(that.courseIdIos);
} else if (res.code == 0 && res.data.flag == 2) {
uni.showLoading({
title: '支付中...'
})
if (that.openWay == 1) {
if (that.openWayIos == 1) {
// #ifdef MP-WEIXIN
that.$u.post('app/wxPay/wxPayJsApiOrder?orderId=' + res.data.orders.ordersId, {})
.then(
@@ -219,7 +219,7 @@
}
});
// #endif
} else if (that.openWay == 2) {
} else if (that.openWayIos == 2) {
// #ifdef H5
that.$u.post('/app/aliPay/payOrder?orderId=' + res.data.orders.ordersId +
'&classify=2').then(
@@ -261,11 +261,11 @@
icon: 'none',
// duration: 1500
})
// that.getDataList(that.courseId);
// that.getDataListIos(that.courseId);
}
})
setTimeout(() => {
that.flag = true
that.flagIos = true
}, 1500)
}
@@ -364,14 +364,14 @@
background: #F5F5F5;
}
.popup_pay {
.popup_pay_ios {
background: #FFFFFF;
border-radius: 24rpx;
margin: 30rpx 30rpx;
padding: 30rpx 30rpx 20rpx 30rpx;
}
.taber {
.taber_ios {
position: fixed;
bottom: 0;
left: 0;
@@ -384,7 +384,7 @@
justify-content: space-between;
}
.btn {
.btn_ios {
width: 260rpx;
height: 78rpx;
background: #5074FF;

View File

@@ -0,0 +1,270 @@
<template>
<view class="">
<view class="shop-info-wrap">
<view class="info-wrap flex-between">
<view></view>
<text class="shopName">{{ shopInfo.storeInfo.shopName }}</text>
<view class="close" @click="showShopInfo = false">
<u-icon name="close" color="#999999" size="28"></u-icon>
</view>
</view>
<view class="info-wrap-title">商家信息</view>
<view class="row" style="margin-bottom: 20rpx;">
<view class="col">
<text class="l">营业时间</text>
<text
class="t">{{ (shopInfo.storeInfo.businessStartDay || '——') +'至'+ (shopInfo.storeInfo.businessEndDay || '——') +' '+ (shopInfo.storeInfo.businessTime || '')}}</text>
</view>
<view class="col">
<text class="l">商家地址</text>
<text class="t">{{ shopInfo.storeInfo.address }}</text>
</view>
<view class="col" @click="makePhoneCall(shopInfo.storeInfo.phone)">
<text class="l">商家电话</text>
<text class="t">{{ shopInfo.storeInfo.phone }}</text>
</view>
</view>
<view class="info-wrap-title">商家公告</view>
<view class="row">
<view class="col">
<text class="l">公告</text>
<text class="t">{{ shopInfo.storeInfo.detail }}</text>
</view>
</view>
</view>
<view class="shop_bottom ">
<view class="flex-between">
<view class="price">
<text class="i"></text>
<text class="num">{{salePrice}}</text>
<text class="i">/{{specifications.unitSnap}}</text>
</view>
<view class="operation-wrap">
<view class="btn">
<u-icon name="minus-circle-fill" color="#E9AB7A" size="50"></u-icon>
<view class="btnClick" @click="shopAdd(specifications,specifications.indexa,specifications.indexb,'-',specifications.tagSnap == null ? '单规格':'')"></view>
</view>
<text class="num">{{amountcartNumber}}</text>
<view class="btn" >
<u-icon name="plus-circle-fill" color="#E9AB7A" size="50"></u-icon>
<view class="btnClick" @click="shopAdd(specifications,specifications.indexa,specifications.indexb,'+',specifications.tagSnap == null ? '单规格':'')"></view>
</view>
</view>
</view>
<view class="shop_skuselect flex-start" v-if="specifications.tagSnap">
<view class="shop_skuselectname">{{skuidname.toString()}}</view>
</view>
<view class="addShopping" :class="(amountcartNumber>0&&isSpec)?'active':''"
@click="addShopping(specifications,specifications.indexa,specifications.indexb,'+',specifications.tagSnap == null ? '单规格':'')">
{{skuBtnText}}
</view>
</view>
</view>
</template>
<script>
import videoList from '../../../components/videoList/videoList.vue'
import empty from '@/components/empty.vue'
export default {
components: {
empty,
videoList
},
data() {
return {
}
},
onShow() {
this.enable = true
this.getCourseList()
},
onHide() {
this.enable = false
},
onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.getBannerList()
if (option.sort) {
this.sort = option.sort
}
if (option.isPrice) {
this.isPrice = option.isPrice
}
},
methods: {
goPage(url) {
uni.navigateTo({
url: url
})
},
//点击回调
posterSuccess(item) {
uni.navigateTo({
url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId
})
},
//最新热播
getCourseList() {
let data = {
limit: this.limit,
page: this.page,
sort: this.sort ? this.sort : '',
title: this.keyword,
}
// #ifdef MP-WEIXIN
data.wxShow = 1
// #endif
// #ifdef MP-TOUTIAO
data.dyShow = 1
// #endif
if (this.isPrice) {
data.isPrice = this.isPrice
}
this.$u.api.courseList(data).then(res => {
if (res.code == 0) {
this.pages = res.data.totalPage
if (this.page < this.pages) {
this.status = 'loadmore'
} else {
this.status = 'nomore'
}
// res.data.list.forEach(ret => {
// ret.courseLabel = ret.courseLabel ? ret.courseLabel.split(',') : []
// })
if (this.page == 1) {
this.courseList = res.data.list
} else {
this.courseList = [...this.courseList, ...res.data.list]
}
} else {
uni.showToast({
title: res.msg,
duration: 1000,
icon: 'none'
});
}
uni.stopPullDownRefresh();
})
},
// 获取轮播图列表
getBannerList() {
this.$u.api.bannerList({
classify: '1'
}).then(res => {
if (res.code == 0) {
res.data.forEach(d => {
if (d.state == 1) {
this.swiperList.push(d)
}
})
} else {
uni.showToast({
title: res.msg,
duration: 1000,
icon: 'none'
});
}
})
},
},
onReachBottom: function() {
if (this.page < this.pages) {
this.page += 1
this.status = 'loading'
this.getCourseList()
} else {
this.status = 'nomore'
}
},
onPullDownRefresh: function() {
this.page = 1;
this.getCourseList()
},
}
</script>
<style lang="scss" scoped>
.search-box {
width: 100%;
padding: 15upx 2.5%;
display: flex;
justify-content: space-between;
background-color: #ffffff;
}
.vidoList {
width: 100%;
height: auto;
margin-bottom: 20rpx;
.vidoList-item {
width: calc((100% - 40rpx) / 3);
height: 356rpx;
background-color: #FFFFFF;
border-radius: 24rpx;
margin-bottom: 20rpx;
}
.vidoList-item-img {
width: 100%;
height: 280rpx;
border-radius: 24rpx 24rpx 0 0;
image {
width: 100%;
height: 100%;
border-radius: 24rpx 24rpx 0 0;
}
}
.vidoList-item-title {
width: 100%;
text-align: center;
background-color: #FFFFFF;
border-radius: 0 0 24rpx 24rpx;
padding: 20rpx;
overflow: hidden;
text-overflow: ellipsis; //溢出用省略号显示
white-space: nowrap; // 默认不换行;
}
}
.swiper {
width: 100%;
height: auto;
margin-bottom: 10rpx;
margin-top: 10rpx;
.swiper-box {
width: 686rpx;
height: 100%;
}
}
.active {
color: #5074FF;
}
.btn {
width: 150upx;
height: 60upx;
background: #5074FF;
border-radius: 30upx;
color: #FFFFFF;
text-align: center;
line-height: 60rpx;
font-size: 26rpx;
}
</style>

View File

@@ -401,7 +401,7 @@
//去助力页面
goZl() {
uni.navigateTo({
url: '/me/assistance/assistance'
url: '/me/rHTgyqGoIV/rHTgyqGoIV'
})
this.showjl = false
},

View File

@@ -185,7 +185,7 @@
<!-- 追剧悬浮 -->
<!-- <drag-button v-if="shodrag && shodrags" @clickClose="clickClose" :videoInfo="videoInfo" :isDock="true"
:existTabBar="true" @btnClick="btnClick" /> -->
<u-image v-if="isShowMoneyPay" @click="goMsg('/me/choujiang/choujiang')" :src="`../../static/red-pack-new.gif`"
<u-image v-if="isShowMoneyPay" @click="goMsg('/me/VjgyqAzklr/VjgyqAzklr')" :src="`../../static/red-pack-new.gif`"
style="width: 200rpx;height: 200rpx;position: fixed;right: 10rpx;bottom: 180rpx;"></u-image>
<!-- #ifdef H5 -->
<div v-if="isWeixin"
@@ -679,7 +679,7 @@
//去助力页面
goZl() {
uni.navigateTo({
url: '/me/assistance/assistance'
url: '/me/rHTgyqGoIV/rHTgyqGoIV'
})
this.showjl = false
},

View File

@@ -138,7 +138,7 @@
</view>
</view> -->
<!-- <view class="tool-box-content-item flex align-center justify-center flex-wrap"
@click="goNav('/me/choujiang/choujiang')">
@click="goNav('/me/VjgyqAzklr/VjgyqAzklr')">
<view class="tool-box-content-item-img">
<image src="../../static/images/me/zhuanpan.png" mode=""></image>
</view>

View File

@@ -289,7 +289,7 @@
//去助力页面
goZl() {
uni.navigateTo({
url: '/me/assistance/assistance'
url: '/me/rHTgyqGoIV/rHTgyqGoIV'
})
this.showjl = false
},

View File

@@ -125,10 +125,10 @@
}
})
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
// uni.showToast({
// title: res.msg,
// icon: 'none'
// })
}
})
},

BIN
pages/yodwbsHlmJ/11c.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@@ -0,0 +1,30 @@
<template>
<view class="gyqSxFeTGt">
<image class="img CBKwkqgyqg" src="./asz.JPG" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6982.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6983.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6984.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6985.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6986.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6986.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6986.jpg" mode="widthFix"></image>
<image class="img QxmTgyqLtb" src="./IMG_6986.jpg" mode="widthFix"></image>
</view>
</template>
<script>
export default {
data() {
return {
list: []
};
}
};
</script>
<style scoped lang="scss">
.img {
width: 100%;
display: block;
}
</style>

View File

@@ -0,0 +1,247 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/common.css">
<style>
html,
body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
.box {
position: relative;
width: 840px;
height: 525px;
margin: 100px auto;
overflow: hidden;
}
ul,
ol,
li {
padding: 0;
margin: 0;
list-style: none;
}
ul {
position: absolute;
}
ul li {
float: left;
width: 840px;
height: 525px;
}
ul img {
display: block;
width: 840px;
height: 525px;
}
ol {
position: absolute;
left: 50%;
bottom: 20px;
transform: translateX(-50%);
}
ol li {
float: left;
width: 15px;
height: 15px;
background-color: #fff;
border: 2px solid #ccc;
margin: 0 5px;
border-radius: 50%;
}
.active {
background-color: greenyellow;
}
.left,
.right {
display: none;
position: absolute;
width: 30px;
height: 60px;
line-height: 60px;
font-size: 24px;
font-weight: bold;
color: greenyellow;
background-color: rgba(129, 92, 148, 0.5);
top: 50%;
transform: translateY(-50%);
}
.right {
right: 0;
}
</style>
</head>
<body>
<!-- 搭建结构 -->
<div class="box">
<ul>
<li><img src="./images/1.jpg" alt=""></li>
<li><img src="./images/2.jpg" alt=""></li>
<li><img src="./images/3.jpg" alt=""></li>
<li><img src="./images/4.jpg" alt=""></li>
<li><img src="./images/5.jpg" alt=""></li>
</ul>
<ol></ol>
<span class="left iconfont">&#xe64a;</span>
<span class="right iconfont">&#xe637;</span>
</div>
<script src="./js/animate.js"></script>
<script>
// 1.获取元素
let box = document.querySelector('.box');
let ul = document.querySelector('ul');
let ol = document.querySelector('ol');
let left = document.querySelector('.left');
let right = document.querySelector('.right');
let flag = true; // 假设动画已经执行完成了
// 创建计数器
let num = 0;
// 将第一张图片克隆放到后面
ul.appendChild(ul.children[0].cloneNode(true));
// 计算ul的宽度
ul.style.width = ul.children.length * 840 + 'px';
// 更具图片的数量来创建小圆点
for (let i = 0; i < ul.children.length - 1; i++) {
// 创建节点
let li = document.createElement('li');
// 给每个li添加自定属性
li.dataset['index'] = i;
// 将节点添加到ol里面
ol.appendChild(li);
// 绑定事件
li.onclick = function () {
// 清除其他小圆点的类名
for (let i = 0; i < ol.children.length; i++) {
ol.children[i].classList.remove('active');
}
// 给被点击的元素添加类名
this.classList.add('active');
// 让ul移动到对应的位置
num = this.dataset['index'];
animate(ul, {
left: -num * box.offsetWidth
});
console.log(box.offsetWidth)
}
}
// 默认给第一个小圆点添加样式
ol.children[0].classList.add('active');
// 给右箭头添加事件
right.addEventListener('click', () => {
if (flag) {
flag = false;
// 判断是不是在最后一个元素
if (num == ul.children.length - 1) {
num = 0;
// 如果在最后一个元素,瞬间回到第一个元素
// 实现无缝切换
ul.style.left = 0;
}
num++;
// 为了防止被多次点击速度越来越快,我们需要判断段动画是否完成了
animate(ul, {
left: -num * box.offsetWidth
},() => {
// 当动画执行完成后,执行回调函数
// 让flag变为true
flag = true;
})
// 让小圆点跟着图片走
for (let i = 0; i < ol.children.length; i++) {
ol.children[i].classList.remove('active');
}
// 给对应的小圆点添加上样式
// 应为我们做了无缝切换,只有五个小圆点,实际上有六张图片,我们还需要判断一下
if (num == ul.children.length - 1) {
ol.children[0].classList.add('active');
} else {
ol.children[num].classList.add('active');
}
}
})
// 给左箭头添加事件
left.addEventListener('click', () => {
if (flag) {
flag = false;
// 判断是不是第一个元素
if (num == 0) {
num = ul.children.length - 1;
// 如果是第一个元素,我们瞬间切换到最后一个元素
// 应为第一个元素和最后一个元素是一样的,所以可以实现
// 无缝切换
ul.style.left = -num * box.offsetWidth + 'px';
}
num--;
// 为了防止被多次点击速度越来越快,我们需要判断段动画是否完成了
animate(ul, {
left: -num * box.offsetWidth
},() => {
// 当动画执行完成后,执行回调函数
// 让flag变为true
flag = true;
})
// 让小圆点跟着图片走
for (let i = 0; i < ol.children.length; i++) {
ol.children[i].classList.remove('active');
}
// 给对应的小圆点添加上样式
// 应为我们做了无缝切换,只有五个小圆点,实际上有六张图片,我们还需要判断一下
if (num == ul.children.length - 1) {
ol.children[0].classList.add('active');
} else {
ol.children[num].classList.add('active');
}
}
})
// 让轮播图自动轮播
let timer = setInterval(function() {
right.click();
},2000)
// 鼠标移入,显示箭头,并且停止轮播
box.addEventListener('mouseenter',()=> {
right.style.display = 'block';
left.style.display = 'block';
// 清除定时器
clearInterval(timer);
})
// 鼠标移出,继续轮播
box.addEventListener('mouseleave',() => {
// 隐藏按钮
right.style.display = 'none';
left.style.display = 'none';
timer = setInterval(function() {
right.click();
},2000)
})
</script>
</body>
</html>

View File

@@ -46,7 +46,8 @@
</view>
</view>
</view> -->
<view v-if="list.length>0" class="itemTitle flex align-center justify-center">
<image src="./11c.JPG" v-if="false" mode=""></image>
<view v-if="list.length>0" class="dwbSSEfVRz flex align-center justify-center">
<view class="itemTitle-box flex align-center justify-between">
<view class="itemTitle-box-l">
最近观看
@@ -57,27 +58,27 @@
</view>
</view>
<view v-if="list.length>0" class="zuijin flex align-center justify-center">
<view class="zuijin-box flex justify-between">
<view class="zuijin-box-item" @click="goCourse(item.courseId,item.courseDetailsId)"
<view class="GpkmladwbU flex justify-between">
<view class="kjFVivdwbz" @click="goCourse(item.courseId,item.courseDetailsId)"
v-for="(item,index) in list" :key="index">
<view class="zuijin-box-item-img">
<view class="MXdwbIHrMo">
<image :src="item.titleImg" mode="aspectFill"></image>
<view class="zuijin-box-item-img-t" v-if="item.courseDetailsName">
<view class="kpdwbbDLKT" v-if="item.courseDetailsName">
{{item.courseDetailsName}}
</view>
</view>
<view class="zuijin-box-item-txt flex align-center flex-wrap">
<view class="zuijin-box-item-txt-t">
<view class="gSSSCWdwbD flex align-center flex-wrap">
<view class="dwbkFoLNxI">
{{item.title}}
</view>
<view class="zuijin-box-item-txt-l" v-if="item.courseLabel">
<view class="kemrdwbYSM" v-if="item.courseLabel">
{{item.courseLabel}}
</view>
</view>
</view>
</view>
</view>
<view v-if="zhuiju.length>0" class="itemTitle flex align-center justify-center">
<view v-if="zhuiju.length>0" class="dwbSSEfVRz flex align-center justify-center">
<view class="itemTitle-box flex align-center justify-between">
<view class="itemTitle-box-l">
我的追剧
@@ -88,20 +89,20 @@
</view>
</view>
<view v-if="zhuiju.length>0" class="zuijin flex align-center justify-center">
<view class="zuijin-box flex justify-between">
<view @click="goCourse(item.courseId,item.courseDetailsId)" class="zuijin-box-item"
<view class="GpkmladwbU flex justify-between">
<view @click="goCourse(item.courseId,item.courseDetailsId)" class="kjFVivdwbz"
v-for="(item,index) in zhuiju" :key="index">
<view class="zuijin-box-item-img">
<view class="MXdwbIHrMo">
<image :src="item.titleImg" mode="aspectFill"></image>
<view class="zuijin-box-item-img-t" v-if="item.courseDetailsName">
<view class="kpdwbbDLKT" v-if="item.courseDetailsName">
{{item.courseDetailsName}}
</view>
</view>
<view class="zuijin-box-item-txt flex align-center flex-wrap">
<view class="zuijin-box-item-txt-t">
<view class="gSSSCWdwbD flex align-center flex-wrap">
<view class="dwbkFoLNxI">
{{item.title}}
</view>
<view class="zuijin-box-item-txt-l" v-if="item.courseLabel">
<view class="kemrdwbYSM" v-if="item.courseLabel">
{{item.courseLabel}}
</view>
</view>
@@ -298,7 +299,7 @@
background-color: #F5F7FF;
}
.itemTitle {
.dwbSSEfVRz {
width: 100%;
height: auto;
margin-top: 46rpx;
@@ -321,30 +322,30 @@
}
}
.zuijin-box.justify-between{
.GpkmladwbU.justify-between{
justify-content: flex-start;
}
.zuijin {
width: 100%;
margin-top: 26rpx;
.zuijin-box {
.GpkmladwbU {
width: 700rpx;
height: 100%;
flex-wrap: wrap;
}
.zuijin-box-item {
.kjFVivdwbz {
width: calc((700rpx - 40rpx) / 3);
height: 100%;
margin-bottom: 30rpx;
margin-right: calc(40rpx / 2);
}
.zuijin-box-item:nth-of-type(3n){
.kjFVivdwbz:nth-of-type(3n){
margin-right: 0;
}
.zuijin-box-item-img {
.MXdwbIHrMo {
width: 100%;
// height: 204rpx;
height: 204rpx;
@@ -357,7 +358,7 @@
border-radius: 24rpx 24rpx 0 0;
}
.zuijin-box-item-img-t {
.kpdwbbDLKT {
position: absolute;
bottom: 10rpx;
right: 0;
@@ -374,7 +375,7 @@
}
}
.zuijin-box-item-txt {
.gSSSCWdwbD {
width: 100%;
height: 100rpx;
background-color: #ffffff;
@@ -382,7 +383,7 @@
align-content: center;
}
.zuijin-box-item-txt-t {
.dwbkFoLNxI {
width: 100%;
padding: 0 20rpx;
color: #333333;
@@ -394,7 +395,7 @@
}
.zuijin-box-item-txt-l {
.kemrdwbYSM {
width: 100%;
padding: 0 20rpx;
color: #999999;
@@ -402,83 +403,74 @@
}
}
.title {
width: 100%;
padding-top: 30rpx;
// .title {
// width: 100%;
// padding-top: 30rpx;
.title-box {
width: 686rpx;
background-color: rgba(255, 117, 129, 0.1);
border-radius: 24rpx;
padding: 20rpx;
}
// .title-box {
// width: 686rpx;
// background-color: rgba(255, 117, 129, 0.1);
// border-radius: 24rpx;
// padding: 20rpx;
// }
.title-box-title {
font-size: 36rpx;
font-weight: 700;
color: #333;
}
// .title-box-title {
// font-size: 36rpx;
// font-weight: 700;
// color: #333;
// }
.title-box-title-r {
background-color: #ff7581;
font-size: 26rpx;
color: #ffffff;
font-weight: 500;
border-radius: 40rpx;
padding: 20rpx 0;
width: 166rpx;
}
// .title-box-title-r {
// background-color: #ff7581;
// font-size: 26rpx;
// color: #ffffff;
// font-weight: 500;
// border-radius: 40rpx;
// padding: 20rpx 0;
// width: 166rpx;
// }
.title-box-tishi {
font-size: 24rpx;
margin-top: 20rpx;
color: #999999;
}
// .title-box-tishi {
// font-size: 24rpx;
// margin-top: 20rpx;
// color: #999999;
// }
.title-box-day {
width: 100%;
margin-top: 30rpx;
// .title-box-day {
// width: 100%;
// margin-top: 30rpx;
.title-box-day-item-lin {
width: 30rpx;
height: 4rpx;
background: #bfbfbf;
margin: 0 4rpx;
margin-top: 30rpx;
}
// .title-box-day-item-lin {
// width: 30rpx;
// height: 4rpx;
// background: #bfbfbf;
// margin: 0 4rpx;
// margin-top: 30rpx;
// }
.title-box-day-item-num {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
// border: 1px solid #999999;
color: #999999;
// .title-box-day-item-num {
// width: 60rpx;
// height: 60rpx;
// border-radius: 50%;
// // border: 1px solid #999999;
// color: #999999;
image {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
// image {
// width: 100%;
// height: 100%;
// border-radius: 50%;
// }
// }
.title-box-day-item-day {
width: 100%;
text-align: center;
font-size: 24rpx;
margin-top: 20rpx;
}
// .title-box-day-item-day {
// width: 100%;
// text-align: center;
// font-size: 24rpx;
// margin-top: 20rpx;
// }
}
// }
.title-box-btn {
margin-top: 30rpx;
width: 100%;
border-radius: 44rpx;
background-color: #ff7581;
color: #ffffff;
text-align: center;
padding: 22rpx 0;
font-size: 32rpx;
}
}
// }
</style>