This commit is contained in:
2024-07-03 14:11:37 +08:00
9 changed files with 51 additions and 32 deletions

View File

@@ -256,7 +256,10 @@
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
},
onReachBottom() {
console.log('触底');

View File

@@ -204,8 +204,10 @@
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
this.getData(this.courseId)
},
onReachBottom() {
@@ -646,6 +648,10 @@
}).catch(e => {
console.log(e, '获取目录数据报错')
uni.showToast({
title:"获取数据失败",
icon:'error'
})
});
},
@@ -887,6 +893,10 @@
}).catch(e => {
console.log(e, '获取章节列表数据报错')
uni.showToast({
title:"获取数据失败",
icon:'error'
})
});
},
// 跳转

View File

@@ -780,7 +780,7 @@ export default {
},
onLoad(options) {
this.options = options;
console.log('options',options)
// this.handleClickGetGoodsList();
// this.getUserInfo()
// this.getCateList()
@@ -1027,7 +1027,7 @@ export default {
that.curriculumData.productImageList == null ||
that.curriculumData.productImageList == ""
) {
this.swiperList.push(that.curriculumData.explainsImg);
this.swiperList.push(that.curriculumData.productImages);
} else {
that.swiperList = that.curriculumData.productImageList.split(",");
// for (var i = 0; i < imgList.length; i++) {

View File

@@ -12,8 +12,8 @@
</view>
</view>
</view>
<view class="fourBox nopadding ">
<view class="fourIcon flexbox noRadius" style="justify-content: space-around;">
<view class="fourBox nopadding" style="">
<view class="fourIcon flexbox noRadius" style="justify-content: space-around; margin-bottom:0; box-shadow: none; ">
<div class="item flexbox" @click="onPageJump('/pages/course/outline')">
<image src="../../static/my_01.png" mode="aspectFit"></image>
<text>学习大纲</text>
@@ -37,7 +37,7 @@
</view>
</view>
<view class="newLeve2">
<view class="home_nar " style="padding: 0; background-color: #fff;">
<view class="home_nar nomargin" style="padding: 0; background-color: #fff;">
<view class="flexbox">
<view :class="['hn_cl_tit',tabsid==item.id?'active':'']" @click="curseClick(item)"
v-for="(item, index) in curseTagList" :key="index">
@@ -305,8 +305,10 @@
//页面显示
onShow() {
uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
this.requestAll()
},
onTabItemTap() {
@@ -687,7 +689,7 @@
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
.nomargin{margin: 0 !important;}
.nopadding{padding: 0 !important;}
.noRadius{border-radius: 0 !important;}
.appJump {
@@ -1343,9 +1345,10 @@
}
.newLeve2{
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.3);
// box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.3);
background-color: #fff;
padding: 0 10rpx;
border-top: 1px solid #eee;
// padding-bottom:2rpx;
}
.home_nar {

View File

@@ -254,7 +254,7 @@
icon: 'error',
duration: 1000,
})
}else{
}else{
uni.navigateTo({
url: '../bookShop/settlement?type=1&list='+JSON.stringify(shangList)
});
@@ -265,8 +265,11 @@
// 商品内容跳转
goDetail(id) {
uni.navigateTo({
url: '../bookShop/commodityDetail?id=' + id
url: '/pages/goods/index/index?id=' + id
});
// uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + id
// });
},
},