This commit is contained in:
2025-03-12 11:39:31 +08:00
parent b8a44a2716
commit 55954a4a9b
125 changed files with 30973 additions and 30045 deletions

View File

@@ -1,271 +1,251 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="container commonPageBox commonDetailPage">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar :title="options.navTitle" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="contentBox commonPageWhiteBox">
<common-rich-detail :detailInfo="detailInfo">
<template #richHeadImg>
<image :src="detailInfo.imgUrl" v-if="detailInfo.imgUrl" mode="aspectFit" class="headImage"></image>
<image src="@/static/image/headImg/07.png" v-if="detailInfo.imgUrl == ''" mode="aspectFit"
class="headImage"></image>
</template>
</common-rich-detail>
<!-- <view>{{ detailInfo.content }}</view> -->
</view>
<view class="container commonPageBox commonDetailPage">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar
:title="options.navTitle"
bgColor="#3AB3AE"
fontColor="#fff"
></z-nav-bar>
<view class="contentBox commonPageWhiteBox">
<common-rich-detail :detailInfo="detailInfo">
<template #richHeadImg>
<image
:src="detailInfo.imgUrl"
v-if="detailInfo.imgUrl"
mode="aspectFit"
class="headImage"
></image>
<image
src="@/static/image/headImg/07.png"
v-if="detailInfo.imgUrl == ''"
mode="aspectFit"
class="headImage"
></image>
</template>
</common-rich-detail>
<!-- <view>{{ detailInfo.content }}</view> -->
</view>
</view>
</template>
<script>
import courseDescription from "@/pages/component/commonComponents/list";
// import richDetail from "@/pages/component/commonComponents/richDetail.vue";
import $http from '@/config/requestConfig.js';
import {
mapState
} from 'vuex';
import $http from "@/config/requestConfig.js";
import { mapState } from "vuex";
export default {
components: {
courseDescription,//课程说明
// richDetail,
components: {
courseDescription, //课程说明
// richDetail,
},
data() {
return {
options: {},
detailInfo: {},
playData: {},
searchValue: "",
twoCateList: [], // 二级分类标题
dataList: [{}, {}], // 方剂标题
currentCateIndex: 0, // 当前选中的一级分类
curTwoCateIndex: 0, // 当前选中的二级分类
searchList: [], // 搜索结果数组
showSearchList: false,
userMes: {}, // 用户信息
searchDisable: false, // 搜索不可用
limitShow: false,
limitTitle: "提示",
limitContent: "",
scrollViewHeight: 0,
};
},
onLoad(options) {
this.options = options;
this.getData();
// this.getUserInfo()
// this.getCateList()
},
onHide() {
// this.showSearchList = false
// this.searchList = []
},
computed: {
...mapState(["userInfo"]),
},
methods: {
goCourseDescription(v) {
uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/courseInformation/courseDescription/detail?title=${v.nameCN}&oid=${v.oid}`,
});
},
data() {
return {
options: {},
detailInfo: {},
playData: {},
searchValue: '',
getData() {
console.log(this.$store.state, "11111111111");
this.$http
.post("app/phoneDoctor.do?getTHTSDetail", {
customerType: "D",
token: uni.getStorageSync("token"),
customerOid: uni.getStorageSync("customerOid"),
oid: this.options.oid,
})
.then((res) => {
this.detailInfo = res.obj;
// if (res.obj.imgUrl) {
// $mars.getCacheImgUrl(ret.imgUrl, function(ret) {
// $api.attr($api.byId('img'), 'src', ret);
// }, 'F');
// } else {
// $api.attr($api.byId('img'), 'src', '../../../../image/headImg/07.png');
// }
twoCateList: [], // 二级分类标题
dataList: [{}, {}], // 方剂标题
currentCateIndex: 0, // 当前选中的一级分类
curTwoCateIndex: 0, // 当前选中的二级分类
searchList: [], // 搜索结果数组
showSearchList: false,
userMes: {}, // 用户信息
searchDisable: false, // 搜索不可用
limitShow: false,
limitTitle: '提示',
limitContent: '',
scrollViewHeight: 0,
}
// socket.init();
});
},
onLoad(options) {
this.options = options
this.getData()
// this.getUserInfo()
// this.getCateList()
},
onHide() {
// this.showSearchList = false
// this.searchList = []
},
computed: {
...mapState(['userInfo']),
},
methods: {
goCourseDescription(v) {
uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/courseInformation/courseDescription/detail?title=${v.nameCN}&oid=${v.oid}`
})
// 放大图片
previewImage(url) {
console.log(url);
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ["很抱歉,暂不支持保存图片到本地"],
success: function (res) {
// console.log(res,'+++++')
},
},
getData() {
console.log(this.$store.state, '11111111111')
this.$http
.post('app/phoneDoctor.do?getTHTSDetail', {
customerType
:
"D",
token
:uni.getStorageSync("token")
,
customerOid
:uni.getStorageSync("customerOid"),
oid: this.options.oid,
})
.then(res => {
this.detailInfo = res.obj
// if (res.obj.imgUrl) {
// $mars.getCacheImgUrl(ret.imgUrl, function(ret) {
// $api.attr($api.byId('img'), 'src', ret);
// }, 'F');
// } else {
// $api.attr($api.byId('img'), 'src', '../../../../image/headImg/07.png');
// }
// socket.init();
});
},
// 放大图片
previewImage(url) {
console.log(url)
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ['很抱歉,暂不支持保存图片到本地'],
success: function (res) {
// console.log(res,'+++++')
}
}
});
},
// getSearch() {
// $http.request({
// url: "book/prescript/searchPrescript",
// method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
// data: {
// loadAnimate: 'none', // 请求加载动画
// 'keywords': this.searchValue,
// type: this.currentCateIndex + 1
// },
// header: { //默认 无 说明:请求头
// 'Content-Type': 'application/json'
// },
// }).then(res => {
// console.log(res, '搜索结果')
// if (res.code == 0 && res.list.length >= 0) {
// this.showSearchList = true
// this.searchList = res.list
// } else {
// this.searchList = []
// }
// }).catch(e => {
// // this.dataList = []
// this.searchList = []
// console.log(e)
// })
// },
// search(res) {
// console.log(res, 'res')
// // uni.showToast({
// // title: '搜索:' + res,
// // icon: 'none'
// // })
// if (res == '') {
// this.showSearchList = false
// this.searchList = []
// } else {
// this.getSearch()
// }
// },
// input(res) {
// console.log('----input:', res)
// if (res == '') {
// this.searchList = []
// } else {
// this.getSearch()
// }
// },
// clear(res) {
// console.log('----clear:', res)
// // uni.showToast({
// // title: 'clear事件清除值为',
// // icon: 'none'
// // })
// this.searchValue = ''
// this.showSearchList = false
// },
// blur(res) {
// // console.log('----blur:', res)
// // if (res == '') {
// // this.showSearchList = false
// // this.searchList = []
// // } else {
// // this.getSearch()
// // }
// },
// focus(e) {
// console.log('----focus:')
// // uni.showToast({
// // title: 'focus事件输出值为' + e.value,
// // icon: 'none'
// // })
// // 等于1 就是有权限
// // this.showSearchList = true
// },
// cancel(res) {
// uni.showToast({
// title: '点击取消,输入值为:' + res.value,
// icon: 'none'
// })
// }
},
onBackPress() {
// #ifdef APP-PLUS
plus.key.hideSoftKeybord();
// #endif
});
},
// getSearch() {
// $http.request({
// url: "book/prescript/searchPrescript",
// method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
// data: {
// loadAnimate: 'none', // 请求加载动画
// 'keywords': this.searchValue,
// type: this.currentCateIndex + 1
// },
// header: { //默认 无 说明:请求头
// 'Content-Type': 'application/json'
// },
// }).then(res => {
// console.log(res, '搜索结果')
// if (res.code == 0 && res.list.length >= 0) {
// this.showSearchList = true
// this.searchList = res.list
// } else {
// this.searchList = []
// }
// }).catch(e => {
// // this.dataList = []
// this.searchList = []
// console.log(e)
// })
// },
// search(res) {
// console.log(res, 'res')
// // uni.showToast({
// // title: '搜索:' + res,
// // icon: 'none'
// // })
// if (res == '') {
// this.showSearchList = false
// this.searchList = []
// } else {
// this.getSearch()
// }
}
// },
// input(res) {
// console.log('----input:', res)
// if (res == '') {
// this.searchList = []
// } else {
// this.getSearch()
// }
// },
// clear(res) {
// console.log('----clear:', res)
// // uni.showToast({
// // title: 'clear事件清除值为',
// // icon: 'none'
// // })
// this.searchValue = ''
// this.showSearchList = false
// },
// blur(res) {
// // console.log('----blur:', res)
// // if (res == '') {
// // this.showSearchList = false
// // this.searchList = []
// // } else {
// // this.getSearch()
// // }
// },
// focus(e) {
// console.log('----focus:')
// // uni.showToast({
// // title: 'focus事件输出值为' + e.value,
// // icon: 'none'
// // })
// // 等于1 就是有权限
// // this.showSearchList = true
// },
// cancel(res) {
// uni.showToast({
// title: '点击取消,输入值为:' + res.value,
// icon: 'none'
// })
// }
},
onBackPress() {
// #ifdef APP-PLUS
plus.key.hideSoftKeybord();
// #endif
},
};
</script>
<style lang="scss" scoped>
.commonPageBox {
padding: 40rpx 0;
padding: 40rpx 0;
}
.contentBox {
.headImage {
margin-bottom: 20rpx;
}
.detail_title {
padding: 0 40rpx;
font-size: 38rpx;
line-height: 64rpx;
font-weight: bold;
text-align: center;
box-sizing: border-box;
margin-bottom: 20rpx;
}
.headImage {
.rich_box {
padding: 20rpx;
box-sizing: border-box;
margin-bottom: 20rpx;
}
.detail_title {
padding: 0 40rpx;
font-size: 38rpx;
line-height: 64rpx;
font-weight: bold;
text-align: center;
box-sizing: border-box;
margin-bottom: 20rpx;
}
.rich_box {
padding: 20rpx;
box-sizing: border-box;
p {
display: block;
text-indent: 2em;
letter-spacing: 2px !important;
line-height: 46rpx;
}
p {
display: block;
text-indent: 2em;
letter-spacing: 2px !important;
line-height: 46rpx;
}
}
}
</style>
</style>

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,8 @@
<template><page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="container commonPageBox commonDetailPage">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
@@ -34,7 +35,6 @@
></common-sticky>
</template>
<template slot="label" slot-scope="slotProps">
<view
class="content_title"
:style="`margin-top: ${
@@ -242,12 +242,12 @@ export default {
.replace(/width:[^;]+;/gi, "max-width:100%;")
.replace(/width:[^;]+;/gi, "max-width:100%;");
return match;
}
},
);
newContent = newContent.replace(/<br[^>]*\/>/gi, "");
newContent = newContent.replace(
/\<img/gi,
'<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"'
'<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"',
);
return newContent;
},

View File

@@ -1,13 +1,17 @@
<template><page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="componentPage">
<!-- 公共组件-每个页面必须引入 -->
<view class="fixed">
<block v-for="(v, index) in cateIconList" :key="index">
<view :class="`bg${index} PM_font rightButton`" :data-index="index" @click="getViewId"
<view
:class="`bg${index} PM_font rightButton`"
:data-index="index"
@click="getViewId"
>{{ v.title }}</view
>
</block>
@@ -19,28 +23,17 @@
scroll-with-animation
>
<block v-for="(v, index) in cateIconList" :key="index">
<view :id="`cont${index}`" :class="`bg${index}`">
<view class="cate_item_box">
<view class="cate_item_border">
<image
:src="
cateIconList.find((e) => v.title == e.title)
.imgUrl
"
mode="aspectFill"
:style="
cateIconList.find((e) => v.title == e.title)
.style
"
></image>
</view>
<view class="cate_item_name">{{ v.title }}</view>
</view>
<view class="cate_item_box">
<view class="cate_item_border">
<image
:src="cateIconList.find((e) => v.title == e.title).imgUrl"
mode="aspectFill"
:style="cateIconList.find((e) => v.title == e.title).style"
></image>
</view>
<view class="cate_item_name">{{ v.title }}</view>
</view>
</view>
</block>
</scroll-view>
@@ -172,7 +165,7 @@ export default {
},
methods: {
getViewId(e) {
console.log('e at line 88:', e)
console.log("e at line 88:", e);
this.viewid = "cont" + e.currentTarget.dataset.index;
},
goCourseDescription(v) {
@@ -307,7 +300,7 @@ export default {
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
@import "@/style/mixin.scss";
.commonPageBox {
padding: 40rpx 0;
}
@@ -351,48 +344,46 @@ export default {
}
.scroll view {
// width: 100%;
// height: 1000rpx;
}.rightButton{
font-size: 48rpx;
text-align: center;
color: $themeColor;
// width: 100%;
// height: 1000rpx;
}
.rightButton {
font-size: 48rpx;
text-align: center;
color: $themeColor;
}
.cate_item_box {
width: 100%;
height: auto;
width: 100%;
height: auto;
display: flex;
align-items: center;
background-color: $themeColor;
padding: 0 20rpx;
.cate_item_border {
width: 60rpx;
height: 78rpx;
// padding: 10rpx;
background-size: 100% 100%;
// background-image: url("@/static/icon/homePage/cate_bg.png");
border-radius: 4rpx;
display: flex;
align-items: center;
background-color: $themeColor; padding: 0 20rpx;
.cate_item_border {
width: 60rpx;
height: 78rpx;
// padding: 10rpx;
background-size: 100% 100%;
// background-image: url("@/static/icon/homePage/cate_bg.png");
border-radius: 4rpx;
display: flex;
align-items: center;
justify-content: center;
justify-content: center;
image {
// height: 56rpx;
}
}
.cate_item_name {
margin-left: 21rpx;
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
font-weight: normal;
font-size: 42rpx;
color: #000000;
// line-height: 46rpx;
text-align: center;
image {
// height: 56rpx;
}
}
.cate_item_name {
margin-left: 21rpx;
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
font-weight: normal;
font-size: 42rpx;
color: #000000;
// line-height: 46rpx;
text-align: center;
}
}
</style>

View File

@@ -1,7 +1,8 @@
<template><page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="componentPage">
<!-- 公共组件-每个页面必须引入 -->
@@ -115,25 +116,21 @@ export default {
title: "购买须知",
valueName: "buyRecord",
url: "/pages/curriculum/cate/index",
},
{
title: "使用须知",
valueName: "useRecord",
url: "/pages/curriculum/cate/index",
},
{
title: "学习次序",
valueName: "studyRecord",
url: "/pages/curriculum/cate/index",
},
{
title: "超 v",
valueName: "vipRecord",
url: "/pages/curriculum/cate/index",
},
],
options: {},
@@ -372,7 +369,7 @@ export default {
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
@import "@/style/mixin.scss";
.commonPageBox {
padding: 40rpx 0;
}
@@ -414,7 +411,7 @@ export default {
border: none !important;
}
.openBox {
background-color: #B7E0E2;
background-color: #b7e0e2;
border: 2rpx solid #eee;
width: 160rpx;
line-height: 80rpx;
@@ -492,7 +489,7 @@ export default {
height: 50rpx;
}
}
.richDetail{
.richDetail {
padding: 20rpx;
}
</style>

View File

@@ -1,7 +1,8 @@
<template><page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="componentPage">
<!-- 公共组件-每个页面必须引入 -->
@@ -34,72 +35,71 @@
height: 50rpx;"></image>
</view>
</view> -->
<uni-indexed-list :options="indexList" :showSelect="false" @itemKeyClick="getCurrent">
<uni-indexed-list
:options="indexList"
:showSelect="false"
@itemKeyClick="getCurrent"
>
<!-- labelSlot -->
<template slot="titleSlot" slot-scope="slotProps">
<text :class="`cate_item_name ${viewidIndex == slotProps.rowIndex ? 'hot' : ''}`">{{ slotProps.row }}</text>
<text
:class="`cate_item_name ${viewidIndex == slotProps.rowIndex ? 'hot' : ''}`"
>{{ slotProps.row }}</text
>
</template>
<template slot="labelSlot" slot-scope="slotProps">
<common-list
noDataIcon="data"
:isCondition="true"
:isNoIcon="true"
:dataList="slotProps.row"
label="title"
>
<template slot="labelSlot" slot-scope="slotProps">
<image
v-if="slotProps.row.image"
:src="slotProps.row.image"
mode="aspectFil"
class="book_image"
></image>
<image
v-else
src="@/static/icon/videoIcon.png"
mode="aspectFil"
class="book_image"
></image>
noDataIcon="data"
:isCondition="true"
:isNoIcon="true"
:dataList="slotProps.row"
label="title"
>
<template slot="labelSlot" slot-scope="slotProps">
<image
v-if="slotProps.row.image"
:src="slotProps.row.image"
mode="aspectFil"
class="book_image"
></image>
<image
v-else
src="@/static/icon/videoIcon.png"
mode="aspectFil"
class="book_image"
></image>
<view class="related_courses_name">
<view class="">
{{ slotProps.row.title }}
</view>
<view style="margin-top: 10rpx">
<view
v-for="item in slotProps.row.courseCatalogueEntityList"
style="float: left; margin-right: 20rpx"
>
{{
slotProps.row.courseCatalogueEntityList.length > 1
? item.title
: "整部"
}}
<text v-if="item.halfFee == 0 && item.fee == 0">免费</text>
<text v-else-if="item.halfFee == 0 || item.fee == 0">
{{ item.halfFee != 0 ? item.halfFee : "免费" }}/{{
item.fee != 0 ? item.fee : "免费"
}}</text
>
<text v-else-if="item.halfFee != 0 || item.fee != 0">
{{ item.halfFee }}/{{ item.fee }}</text
>
</view>
</view>
<view class="related_courses_name">
<view class="">
{{ slotProps.row.title }}
</view>
</template>
</common-list>
<view style="margin-top: 10rpx">
<view
v-for="item in slotProps.row.courseCatalogueEntityList"
style="float: left; margin-right: 20rpx"
>
{{
slotProps.row.courseCatalogueEntityList.length > 1
? item.title
: "整部"
}}
<text v-if="item.halfFee == 0 && item.fee == 0">免费</text>
<text v-else-if="item.halfFee == 0 || item.fee == 0">
{{ item.halfFee != 0 ? item.halfFee : "免费" }}/{{
item.fee != 0 ? item.fee : "免费"
}}</text
>
<text v-else-if="item.halfFee != 0 || item.fee != 0">
{{ item.halfFee }}/{{ item.fee }}</text
>
</view>
</view>
</view>
</template>
</common-list>
</template>
</uni-indexed-list>
<!-- <u-index-list
@@ -179,9 +179,6 @@
</u-index-item>
</view>
</u-index-list> -->
</view>
</template>
@@ -375,10 +372,9 @@ export default {
...mapState(["userInfo"]),
},
methods: {
getCurrent(data){
console.log('data at line 375:', data)
this.viewidIndex=data
getCurrent(data) {
console.log("data at line 375:", data);
this.viewidIndex = data;
},
close() {
this.isOpenRightButton = false;
@@ -471,7 +467,7 @@ export default {
this.cateIconList = res.list;
this.indexList = this.cateIconList.map((e) => {
return {...e,data:e.courseList,letter:e.sociology.title};
return { ...e, data: e.courseList, letter: e.sociology.title };
});
console.log("this.indexList at line 645:", this.indexList);
this.itemArr = this.cateIconList.map((e) => {
@@ -674,23 +670,20 @@ export default {
// height: 56rpx;
}
}
}
.cate_item_name {
padding-top: 60rpx;
width: 100%;
// margin-left: 21rpx;
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
font-weight: 500;
// font-weight: normal;
font-size: 52rpx;
color: #000000;
line-height: 80rpx;
text-align: center;
}
padding-top: 60rpx;
width: 100%;
// margin-left: 21rpx;
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
font-weight: 500;
// font-weight: normal;
font-size: 52rpx;
color: #000000;
line-height: 80rpx;
text-align: center;
}
.hot {
color: $themeColor !important;
}

View File

@@ -1,260 +1,234 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="componentPage">
<!-- 公共组件-每个页面必须引入 -->
<view class="componentPage">
<!-- 公共组件-每个页面必须引入 -->
<richDetail :detailInfo="detailInfo">
<template #richHeadImg>
<image
:src="detailInfo.imgUrl"
v-if="detailInfo.imgUrl"
mode="widthFix"
class="headImage"
></image>
</template>
</richDetail>
<richDetail :detailInfo="detailInfo">
<template #richHeadImg>
<image :src="detailInfo.imgUrl" v-if="detailInfo.imgUrl" mode="widthFix" class="headImage"></image>
</template>
</richDetail>
<!-- <view>{{ detailInfo.content }}</view> -->
</view>
<!-- <view>{{ detailInfo.content }}</view> -->
</view>
</template>
<script>
import courseDescription from "@/pages/component/commonComponents/list";
import richDetail from "@/pages/component/commonComponents/richDetail.vue";
import $http from '@/config/requestConfig.js';
import {
mapState
} from 'vuex';
import $http from "@/config/requestConfig.js";
import { mapState } from "vuex";
export default {
components: {
courseDescription,//课程说明
richDetail,
},
data() {
return {
options:{},
detailInfo:{},
playData: {},
searchValue: '',
components: {
courseDescription, //课程说明
richDetail,
},
data() {
return {
options: {},
detailInfo: {},
playData: {},
searchValue: "",
twoCateList: [], // 二级分类标题
dataList: [{}, {}], // 方剂标题
currentCateIndex: 0, // 当前选中的一级分类
curTwoCateIndex: 0, // 当前选中的二级分类
searchList: [], // 搜索结果数组
showSearchList: false,
userMes: {}, // 用户信息
searchDisable: false, // 搜索不可用
limitShow: false,
limitTitle: "提示",
limitContent: "",
scrollViewHeight: 0,
};
},
onLoad(options) {
this.options = options;
// this.getData()
// this.getUserInfo()
// this.getCateList()
},
onShow() {
// this.getData()
// this.getUserInfo()
// this.getCateList()
},
onHide() {
// this.showSearchList = false
// this.searchList = []
},
computed: {
...mapState(["userInfo"]),
},
methods: {
goCourseDescription(v) {
uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/courseInformation/courseDescription/detail?title=${v.nameCN}&oid=${v.oid}`,
});
},
getData() {
console.log(this.$store.state, "88888");
this.$http
.post("app/phoneDoctor.do?getTHTSDetail", {
customerType: "D",
token: uni.getStorageSync("token"),
customerOid: uni.getStorageSync("customerOid"),
oid: "8a9fb99809e4428888aad6b56a3096a6",
step: 0,
limit: 100,
})
.then((res) => {
console.log(res.obj.dataLst, "7777777777777777777");
this.detailInfo = res.obj;
twoCateList: [], // 二级分类标题
dataList: [{}, {}], // 方剂标题
currentCateIndex: 0, // 当前选中的一级分类
curTwoCateIndex: 0, // 当前选中的二级分类
searchList: [], // 搜索结果数组
showSearchList: false,
userMes: {}, // 用户信息
searchDisable: false, // 搜索不可用
limitShow: false,
limitTitle: '提示',
limitContent: '',
scrollViewHeight: 0,
}
// socket.init();
});
},
onLoad(options) {
this.options=options
// this.getData()
// this.getUserInfo()
// this.getCateList()
},
onShow() {
// this.getData()
// this.getUserInfo()
// this.getCateList()
},
onHide() {
// this.showSearchList = false
// this.searchList = []
},
computed: {
...mapState(['userInfo']),
},
methods: {
goCourseDescription(v){
uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/courseInformation/courseDescription/detail?title=${v.nameCN}&oid=${v.oid}`
})
// 放大图片
previewImage(url) {
console.log(url);
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ["很抱歉,暂不支持保存图片到本地"],
success: function (res) {
// console.log(res,'+++++')
},
},
getData() {
console.log(this.$store.state, '88888')
this.$http
.post('app/phoneDoctor.do?getTHTSDetail', {
customerType
:
"D",
token
:uni.getStorageSync("token")
,
customerOid
:uni.getStorageSync("customerOid"),
oid: '8a9fb99809e4428888aad6b56a3096a6',
step: 0,
limit: 100
})
.then(res => {
console.log(res.obj.dataLst
, '7777777777777777777')
this.detailInfo = res.obj
// socket.init();
});
},
// 放大图片
previewImage(url) {
console.log(url)
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ['很抱歉,暂不支持保存图片到本地'],
success: function (res) {
// console.log(res,'+++++')
}
}
});
},
// getSearch() {
// $http.request({
// url: "book/prescript/searchPrescript",
// method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
// data: {
// loadAnimate: 'none', // 请求加载动画
// 'keywords': this.searchValue,
// type: this.currentCateIndex + 1
// },
// header: { //默认 无 说明:请求头
// 'Content-Type': 'application/json'
// },
// }).then(res => {
// console.log(res, '搜索结果')
// if (res.code == 0 && res.list.length >= 0) {
// this.showSearchList = true
// this.searchList = res.list
// } else {
// this.searchList = []
// }
// }).catch(e => {
// // this.dataList = []
// this.searchList = []
// console.log(e)
// })
// },
// search(res) {
// console.log(res, 'res')
// // uni.showToast({
// // title: '搜索:' + res,
// // icon: 'none'
// // })
// if (res == '') {
// this.showSearchList = false
// this.searchList = []
// } else {
// this.getSearch()
// }
// },
// input(res) {
// console.log('----input:', res)
// if (res == '') {
// this.searchList = []
// } else {
// this.getSearch()
// }
// },
// clear(res) {
// console.log('----clear:', res)
// // uni.showToast({
// // title: 'clear事件清除值为',
// // icon: 'none'
// // })
// this.searchValue = ''
// this.showSearchList = false
// },
// blur(res) {
// // console.log('----blur:', res)
// // if (res == '') {
// // this.showSearchList = false
// // this.searchList = []
// // } else {
// // this.getSearch()
// // }
// },
// focus(e) {
// console.log('----focus:')
// // uni.showToast({
// // title: 'focus事件输出值为' + e.value,
// // icon: 'none'
// // })
// // 等于1 就是有权限
// // this.showSearchList = true
// },
// cancel(res) {
// uni.showToast({
// title: '点击取消,输入值为:' + res.value,
// icon: 'none'
// })
// }
},
onBackPress() {
// #ifdef APP-PLUS
plus.key.hideSoftKeybord();
// #endif
});
},
// getSearch() {
// $http.request({
// url: "book/prescript/searchPrescript",
// method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
// data: {
// loadAnimate: 'none', // 请求加载动画
// 'keywords': this.searchValue,
// type: this.currentCateIndex + 1
// },
// header: { //默认 无 说明:请求头
// 'Content-Type': 'application/json'
// },
// }).then(res => {
// console.log(res, '搜索结果')
// if (res.code == 0 && res.list.length >= 0) {
// this.showSearchList = true
// this.searchList = res.list
// } else {
// this.searchList = []
// }
// }).catch(e => {
// // this.dataList = []
// this.searchList = []
// console.log(e)
// })
// },
// search(res) {
// console.log(res, 'res')
// // uni.showToast({
// // title: '搜索:' + res,
// // icon: 'none'
// // })
// if (res == '') {
// this.showSearchList = false
// this.searchList = []
// } else {
// this.getSearch()
// }
}
// },
// input(res) {
// console.log('----input:', res)
// if (res == '') {
// this.searchList = []
// } else {
// this.getSearch()
// }
// },
// clear(res) {
// console.log('----clear:', res)
// // uni.showToast({
// // title: 'clear事件清除值为',
// // icon: 'none'
// // })
// this.searchValue = ''
// this.showSearchList = false
// },
// blur(res) {
// // console.log('----blur:', res)
// // if (res == '') {
// // this.showSearchList = false
// // this.searchList = []
// // } else {
// // this.getSearch()
// // }
// },
// focus(e) {
// console.log('----focus:')
// // uni.showToast({
// // title: 'focus事件输出值为' + e.value,
// // icon: 'none'
// // })
// // 等于1 就是有权限
// // this.showSearchList = true
// },
// cancel(res) {
// uni.showToast({
// title: '点击取消,输入值为:' + res.value,
// icon: 'none'
// })
// }
},
onBackPress() {
// #ifdef APP-PLUS
plus.key.hideSoftKeybord();
// #endif
},
};
</script>
<style lang="scss" scoped>
.commonPageBox{
padding:40rpx 0;
.commonPageBox {
padding: 40rpx 0;
}
.contentBox{
.headImage{
width: 100%;
height: 100%;
margin-bottom: 20rpx;
}
.detail_title{
padding:0 40rpx;
font-size: 38rpx;
line-height: 64rpx;
font-weight: bold;
text-align: center;
box-sizing:border-box ;
margin-bottom: 20rpx;
}
.rich_box{
padding: 20rpx; box-sizing: border-box;
p{
display: block;text-indent: 2em;
letter-spacing: 2px !important;
line-height: 46rpx;
}
.contentBox {
.headImage {
width: 100%;
height: 100%;
margin-bottom: 20rpx;
}
.detail_title {
padding: 0 40rpx;
font-size: 38rpx;
line-height: 64rpx;
font-weight: bold;
text-align: center;
box-sizing: border-box;
margin-bottom: 20rpx;
}
.rich_box {
padding: 20rpx;
box-sizing: border-box;
p {
display: block;
text-indent: 2em;
letter-spacing: 2px !important;
line-height: 46rpx;
}
}
}
</style>
</style>