国学经典,讲书视频
This commit is contained in:
@@ -32,52 +32,35 @@
|
||||
</view>
|
||||
<!-- </scroll-view> -->
|
||||
<view v-show="!showSearchList">
|
||||
<view v-if="limiOneFour==0">
|
||||
<view class="grid twoCateList" v-if="twoCateList.length > 0">
|
||||
<u-grid :col="3" border class="u-grid-list">
|
||||
<u-grid-item v-for="(item, index) in twoCateList" :key="item.prescriptCategoryId"
|
||||
@click="setTwoCateIndex(item, index)">
|
||||
<view :class="['grid-text',curTwoCateIndex == index ? 'cur' : '']">{{item.title}}</view>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
</view>
|
||||
<view class="titleList" v-if="curOneCateIndex != 2">
|
||||
<u-grid :col="3" v-if="titleList.length > 0">
|
||||
<u-grid-item v-for="(item, index) in titleList" :key="item.prescriptId"
|
||||
@click="gotoDetail(item)">
|
||||
<view :class="['titleItem']">{{item.title}}</view>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
<u-divider v-else text="暂无方剂数据哦~"></u-divider>
|
||||
</view>
|
||||
<view class="titleList" v-else>
|
||||
<u-grid :col="1" v-if="titleList">
|
||||
<u-grid-item v-for="(item, index) in titleList" :key="index">
|
||||
<view :class="['titleItem']">{{index}}</view>
|
||||
<u-grid-item v-for="(item1, index1) in item" :key="item1.prescriptId">
|
||||
<view :class="['JFtitleItem']" @click="gotoDetail(item1)">{{item1.title}}</view>
|
||||
</u-grid-item>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
<u-divider v-else text="暂无方剂数据哦~"></u-divider>
|
||||
</view>
|
||||
<view class="grid twoCateList" v-if="twoCateList.length > 0">
|
||||
<u-grid :col="3" border class="u-grid-list">
|
||||
<u-grid-item v-for="(item, index) in twoCateList" :key="item.prescriptCategoryId"
|
||||
@click="setTwoCateIndex(item, index)">
|
||||
<view :class="['grid-text',curTwoCateIndex == index ? 'cur' : '']">{{item.title}}</view>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
</view>
|
||||
<view v-else>
|
||||
<view v-if="curOneCateIndex == 0">
|
||||
<text class="limiTy">
|
||||
此功能使用权限仅对同一手机账号注册过一路健康APP,且开通《吴门验方基础班》【上中下】与《吴门验方提高班》【上下】五部课程的疯子读书APP学员开通。
|
||||
<br>如果您符合条件,请联系微信客服开通。
|
||||
<br>客服微信:<b>yilujiankangkefu</b>
|
||||
</text>
|
||||
</view>
|
||||
<view v-if="curOneCateIndex == 3">
|
||||
<text class="limiTy">
|
||||
此功能使用权限仅对在疯子读书APP购买《肿瘤六经辨证法》书籍的学员开通。
|
||||
<br>如果您符合条件,请联系微信客服开通。
|
||||
<br>客服微信:<b>yilujiankangkefu</b>
|
||||
</text>
|
||||
</view>
|
||||
<view class="titleList" v-if="curOneCateIndex != 2">
|
||||
<u-grid :col="1" v-if="titleList.length > 0">
|
||||
<u-grid-item v-for="(item, index) in titleList" :key="item.prescriptId"
|
||||
@click="gotoDetail(item)" style="align-items: flex-start;border-bottom: 2px solid #fff;">
|
||||
<view :class="['titleItem']">{{item.title}}</view>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
<u-divider v-else text="暂无方剂数据哦~"></u-divider>
|
||||
</view>
|
||||
<view class="titleList" v-else>
|
||||
<u-grid :col="1" v-if="titleList">
|
||||
<u-grid-item v-for="(item, index) in titleList" :key="index">
|
||||
<view :class="['titleItem']">{{index}}</view>
|
||||
<u-grid-item v-for="(item1, index1) in item" :key="item1.prescriptId">
|
||||
<view :class="['JFtitleItem']" @click="gotoDetail(item1)">{{item1.title}}</view>
|
||||
</u-grid-item>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
<u-divider v-else text="暂无方剂数据哦~"></u-divider>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -88,6 +71,22 @@
|
||||
<text class="prompt">请输入方剂名</text>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<u-modal :show="limitShow" :title="limitTitle" :content='limitContent' @confirm="limitShow=false">
|
||||
<view class="limiTy">
|
||||
<view v-if="curOneCateIndex == 0">
|
||||
此功能使用权限仅对同一手机账号注册过一路健康APP,且开通《吴门验方基础班》【上中下】与《吴门验方提高班》【上下】五部课程的疯子读书APP学员开通。
|
||||
<br>如果您符合条件,请联系微信客服开通。
|
||||
<br>客服微信:<b>yilujiankangkefu</b>
|
||||
</view>
|
||||
<view v-if="curOneCateIndex == 3">
|
||||
此功能使用权限仅对在疯子读书APP购买《肿瘤六经辨证法》书籍的学员开通。
|
||||
<br>如果您符合条件,请联系微信客服开通。
|
||||
<br>客服微信:<b>yilujiankangkefu</b>
|
||||
</view>
|
||||
</view>
|
||||
</u-modal>
|
||||
|
||||
<z-navigation></z-navigation>
|
||||
</view>
|
||||
</template>
|
||||
@@ -113,7 +112,9 @@
|
||||
showSearchList: false,
|
||||
userMes: {}, // 用户信息
|
||||
searchDisable: false, // 搜索不可用
|
||||
limiOneFour: 1,
|
||||
limitShow: false,
|
||||
limitTitle: '提示',
|
||||
limitContent: ''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -141,7 +142,7 @@
|
||||
// showNoRights() {
|
||||
// let that = this
|
||||
// uni.showModal({
|
||||
// content: "购买 手模 或 脚模 后方可使用此功能",
|
||||
// content: "",
|
||||
// confirmText: '好的',
|
||||
// showCancel: false,
|
||||
// success: function(res) {
|
||||
@@ -160,26 +161,27 @@
|
||||
.post('book/user/info/' + this.userInfo.id)
|
||||
.then(res => {
|
||||
this.userMes = res.user
|
||||
if (this.userMes.prescriptAPower == 1) {
|
||||
this.limiOneFour = 0
|
||||
}
|
||||
this.getCateList()
|
||||
// console.log(this.userMes, '呼呼')
|
||||
console.log(this.userMes, '呼呼')
|
||||
});
|
||||
}
|
||||
},
|
||||
// 方剂详情
|
||||
gotoDetail(item) {
|
||||
if (this.userMes.prescriptAPower == 0 && this.curOneCateIndex == 0) {
|
||||
this.limitShow = true
|
||||
return
|
||||
}
|
||||
|
||||
// if (this.userMes.pointPower == 0 && this.oneCateList[this.curOneCateIndex].prescriptCategoryId == 3 || this.userMes
|
||||
// .pointPower == 0 && this.oneCateList[this.curOneCateIndex].prescriptCategoryId == 6) { // 等于0 就是没有权限
|
||||
// this.showNoRights()
|
||||
// } else {
|
||||
if (this.userMes.prescriptBPower == 0 && this.curOneCateIndex == 3) {
|
||||
this.limitShow = true
|
||||
return
|
||||
}
|
||||
// 等于1 就是有权限
|
||||
uni.navigateTo({
|
||||
url: "./prescriptDetail?id=" + item.prescriptId
|
||||
})
|
||||
// }
|
||||
|
||||
|
||||
},
|
||||
// 获取方剂名称
|
||||
@@ -240,16 +242,7 @@
|
||||
this.searchValue = ''
|
||||
this.searchList = []
|
||||
this.showSearchList = false
|
||||
this.limiOneFour = 0
|
||||
if (index != 2) {
|
||||
if (index == 0 && this.userMes.prescriptAPower != 1) {
|
||||
this.limiOneFour = 1
|
||||
return
|
||||
}
|
||||
if (index == 3 && this.userMes.prescriptBPower != 1) {
|
||||
this.limiOneFour = 1
|
||||
return
|
||||
}
|
||||
this.getTowCateList(id)
|
||||
} else {
|
||||
this.getJFList(id)
|
||||
@@ -562,10 +555,12 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.limiTy {
|
||||
display: block;
|
||||
font-size: 26rpx;
|
||||
line-height: 48rpx;
|
||||
padding: 0 25rpx;
|
||||
.uni-modal .uni-modal__bd {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.limiTy{
|
||||
font-size: 28rpx;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user