1
This commit is contained in:
@@ -5,8 +5,8 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
// baseUrl = "http://localhost:7001/";
|
// baseUrl = "http://localhost:7001/";
|
||||||
// socketUrl = "ws://localhost:6001/";
|
// socketUrl = "ws://localhost:6001/";
|
||||||
// baseUrl = "https://twin-ui.com/demo/";
|
// baseUrl = "https://twin-ui.com/demo/";
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
||||||
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||||
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
||||||
// baseUrl = "http://59.110.212.44:9200/pb/";
|
// baseUrl = "http://59.110.212.44:9200/pb/";
|
||||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
||||||
|
|||||||
@@ -50,9 +50,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item" v-for="(item, index) in courseList" :key="index" @click="gotoDetail(item, index)">
|
<view class="item" v-for="(item, index) in courseList" :key="index" @click="gotoDetail(item, index)">
|
||||||
<text>{{item.title}}</text>
|
<text>{{item.title}}</text>
|
||||||
<uni-tag v-if="librayList[curIndex].isBuy == 1 && item.isLearned == 0" style="margin-left: 10rpx;" :inverted="true" text="未学"
|
<uni-tag v-if="item.isLearned == 0" style="margin-left: 10rpx;" :inverted="true" text="未学"
|
||||||
size="mini" type="primary" />
|
size="mini" type="primary" />
|
||||||
<uni-tag v-if="librayList[curIndex].isBuy == 1 && item.isLearned == 1" style="margin-left: 10rpx;" :inverted="true" text="已学"
|
<uni-tag v-if="item.isLearned == 1" style="margin-left: 10rpx;" :inverted="true" text="已学"
|
||||||
size="mini" type="success" />
|
size="mini" type="success" />
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="showAll zhezhe" v-show="fold">
|
<!-- <view class="showAll zhezhe" v-show="fold">
|
||||||
@@ -65,10 +65,17 @@
|
|||||||
color="#258feb" size="28"></u-icon></view>
|
color="#258feb" size="28"></u-icon></view>
|
||||||
<text>收 起</text>
|
<text>收 起</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="buyBox flexbox" v-if="librayList[curIndex].isBuy == 0 && userMsg.vip == 0">
|
<view class="buyBox flexbox" style="flex-wrap: wrap;" v-if="librayList[curIndex].isBuy == 0 && userMsg.vip == 0">
|
||||||
<!-- 普通未购买 -->
|
<!-- 普通未购买 -->
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text>您未购买此目录课程或已到期,购买后或开通 <text style="font-weight: bold;">超级VIP</text> 即可学习本目录课程</text> <view class="tag-view">
|
<view class="" style="">
|
||||||
|
<!-- <text> -->
|
||||||
|
您未购买此目录课程或已到期,购买后或开通 <i style="font-weight: bold; font-style:normal">超级VIP</i> 即可学习本目录课程
|
||||||
|
<!-- </text> -->
|
||||||
|
</view>
|
||||||
|
<view class="tag-view">
|
||||||
|
|
||||||
|
|
||||||
<uni-tag @click="goBuy()" text="购买课程" type="warning" style="larg" />
|
<uni-tag @click="goBuy()" text="购买课程" type="warning" style="larg" />
|
||||||
<uni-tag @click="onPageJump('/pages/mine/vip/index')" style="margin-left: 20rpx;" text="开通VIP" type="success" />
|
<uni-tag @click="onPageJump('/pages/mine/vip/index')" style="margin-left: 20rpx;" text="开通VIP" type="success" />
|
||||||
</view>
|
</view>
|
||||||
@@ -814,29 +821,6 @@
|
|||||||
=${this.curId}&chapterId=${item.id}`
|
=${this.curId}&chapterId=${item.id}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getPath(item, index) {
|
|
||||||
$http.request({
|
|
||||||
url: "sociology/course/getCourseCatalogueChapterDetail",
|
|
||||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
|
||||||
data: {
|
|
||||||
"id": item.id
|
|
||||||
},
|
|
||||||
header: { //默认 无 说明:请求头
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
|
|
||||||
// if (res.page.length > 0) {
|
|
||||||
// this.learnList = res.page
|
|
||||||
// } else {
|
|
||||||
// this.learnList = []
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
// console.log(res,'-------------')
|
|
||||||
|
|
||||||
});
|
|
||||||
},
|
|
||||||
clicklib(item, index) {
|
clicklib(item, index) {
|
||||||
if (item.id == this.curId) {
|
if (item.id == this.curId) {
|
||||||
return
|
return
|
||||||
@@ -893,7 +877,7 @@
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (res.chapterList.length > 0) {
|
if (res.chapterList.length > 0) {
|
||||||
this.courseList = res.chapterList
|
this.courseList = res.chapterList
|
||||||
// console.log('status', res)
|
console.log('status++++++++++++++', this.courseList)
|
||||||
} else {
|
} else {
|
||||||
this.courseList = []
|
this.courseList = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user