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

File diff suppressed because it is too large Load Diff

View File

@@ -1,42 +1,79 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar :title="prescriptDetail.name" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="uni-margin-wrap"
v-if="prescriptDetail && prescriptDetail.images && prescriptDetail.images.length > 0">
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
:duration="duration">
<swiper-item v-for="(item, index) in prescriptDetail.images" :key="index">
<view class="swiper-item">
<image :src="item" mode="aspectFit" @click="previewImage(item)"></image>
</view>
</swiper-item>
</swiper>
</view>
<view class="contentBox">
<view class="content">
<uni-section class="mb-10" titleFontSize="18px" title="姓名" type="line">
<view class="item">
{{ prescriptDetail.name }}
</view>
</uni-section>
<uni-section class="mb-10" titleFontSize="18px" title="城市" type="line"
v-if="prescriptDetail.city_name && prescriptDetail.city_name != ''">
<view class="item" v-html="prescriptDetail.city_name">
</view>
</uni-section>
<uni-section class="mb-10" titleFontSize="18px" title="详细介绍" type="line"
v-if="prescriptDetail.content && prescriptDetail.content != ''">
<view class="item" v-html="prescriptDetail.content">
</view>
</uni-section>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<!-- <uni-section class="mb-10" titleFontSize="18px" title="配伍" type="line">
<z-nav-bar
:title="prescriptDetail.name"
bgColor="#3AB3AE"
fontColor="#fff"
></z-nav-bar>
<view
class="uni-margin-wrap"
v-if="
prescriptDetail &&
prescriptDetail.images &&
prescriptDetail.images.length > 0
"
>
<swiper
class="swiper"
circular
:indicator-dots="indicatorDots"
:autoplay="autoplay"
:interval="interval"
:duration="duration"
>
<swiper-item
v-for="(item, index) in prescriptDetail.images"
:key="index"
>
<view class="swiper-item">
<image
:src="item"
mode="aspectFit"
@click="previewImage(item)"
></image>
</view>
</swiper-item>
</swiper>
</view>
<view class="contentBox">
<view class="content">
<uni-section
class="mb-10"
titleFontSize="18px"
title="姓名"
type="line"
>
<view class="item">
{{ prescriptDetail.name }}
</view>
</uni-section>
<uni-section
class="mb-10"
titleFontSize="18px"
title="城市"
type="line"
v-if="prescriptDetail.city_name && prescriptDetail.city_name != ''"
>
<view class="item" v-html="prescriptDetail.city_name"> </view>
</uni-section>
<uni-section
class="mb-10"
titleFontSize="18px"
title="详细介绍"
type="line"
v-if="prescriptDetail.content && prescriptDetail.content != ''"
>
<view class="item" v-html="prescriptDetail.content"> </view>
</uni-section>
<!-- <uni-section class="mb-10" titleFontSize="18px" title="配伍" type="line">
<view class="item" v-if="prescriptDetail.compatibility && prescriptDetail.compatibility != ''" v-html="prescriptDetail.compatibility">
</view>
<view class="item" v-else>
@@ -51,128 +88,129 @@
暂无
</view>
</uni-section> -->
</view>
</view>
<music-play :playData="playData"></music-play>
<!-- <z-navigation></z-navigation> -->
</view>
</view>
</view>
<music-play :playData="playData"></music-play>
<!-- <z-navigation></z-navigation> -->
</view>
</template>
<script>
import musicPlay from '@/components/music.vue'
import $http from '@/config/requestConfig.js';
import musicPlay from "@/components/music.vue";
import $http from "@/config/requestConfig.js";
export default {
data() {
return {
playData: {},
prescriptDetail: {
images: []
},
id: null,
indicatorDots: true,
autoplay: true,
interval: 5000,
duration: 500,
}
},
onLoad(e) {
this.id = e.id
},
onShow() {
this.getDetail()
},
methods: {
// 放大图片
previewImage(url) {
console.log(url)
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ['很抱歉,暂不支持保存图片到本地'],
success: function (res) {
// console.log(res,'+++++')
}
}
});
},
// 方剂详情
getDetail() {
$http.request({
url: "book/medicaldes/getInheritById?id=" + this.id,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
// loadAnimate: 'none', // 请求加载动画
// 'prescriptId': this.prescriptId
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
},
}).then(res => {
console.log(res, '内容获取成功')
if (res.code == 0) {
this.prescriptDetail = res.result
if (this.prescriptDetail.img) {
this.prescriptDetail.images = this.prescriptDetail.img.split(';');
}
}
}).catch(e => {
// this.titleList = []
console.log(e)
})
},
},
components: {
musicPlay
},
}
data() {
return {
playData: {},
prescriptDetail: {
images: [],
},
id: null,
indicatorDots: true,
autoplay: true,
interval: 5000,
duration: 500,
};
},
onLoad(e) {
this.id = e.id;
},
onShow() {
this.getDetail();
},
methods: {
// 放大图片
previewImage(url) {
console.log(url);
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ["很抱歉,暂不支持保存图片到本地"],
success: function (res) {
// console.log(res,'+++++')
},
},
});
},
// 方剂详情
getDetail() {
$http
.request({
url: "book/medicaldes/getInheritById?id=" + this.id,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
// loadAnimate: 'none', // 请求加载动画
// 'prescriptId': this.prescriptId
},
header: {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
})
.then((res) => {
console.log(res, "内容获取成功");
if (res.code == 0) {
this.prescriptDetail = res.result;
if (this.prescriptDetail.img) {
this.prescriptDetail.images = this.prescriptDetail.img.split(";");
}
}
})
.catch((e) => {
// this.titleList = []
console.log(e);
});
},
},
components: {
musicPlay,
},
};
</script>
<style lang="scss" scoped>
.contentBox {
padding-bottom: 20rpx;
padding-bottom: 20rpx;
}
.mb-10 {
margin-bottom: 10px;
margin-bottom: 10px;
}
.content {
font-size: 28rpx;
font-size: 28rpx;
}
.swiper-item {
image {
margin: 0 auto;
height: 250rpx;
}
image {
margin: 0 auto;
height: 250rpx;
}
}
.uni-margin-wrap {
margin-bottom: 20rpx;
padding-top: 20rpx;
background-color: #fff;
margin-bottom: 20rpx;
padding-top: 20rpx;
background-color: #fff;
}
.container {
padding: 10rpx;
padding: 10rpx;
// background-color: #fff;
.item {
color: #666;
padding: 10rpx 20rpx;
padding-bottom: 20rpx;
line-height: 46rpx;
}
// background-color: #fff;
.item {
color: #666;
padding: 10rpx 20rpx;
padding-bottom: 20rpx;
line-height: 46rpx;
}
}
.flexbox {
display: flex;
display: flex;
}
/deep/ .uni-section-header__decoration.line {
background-color: #18bc37;
background-color: #18bc37;
}
</style>
</style>

View File

@@ -1,48 +1,40 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="contentBox">
<web-view :webview-styles="webviewStyles" :src="id"></web-view>
</view>
</view>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="contentBox">
<web-view :webview-styles="webviewStyles" :src="id"></web-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
id: '',
webviewStyles: {
progress: {
color: '#000'
}
}
};
},
onLoad(e) {
this.id = uni.getStorageSync('prescriptUrl')
},
computed: {
},
watch: {
},
mounted() {
},
methods: {
}
};
export default {
data() {
return {
id: "",
webviewStyles: {
progress: {
color: "#000",
},
},
};
},
onLoad(e) {
this.id = uni.getStorageSync("prescriptUrl");
},
computed: {},
watch: {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
</style>
@import "@/style/mixin.scss";
</style>

View File

@@ -1,36 +1,69 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar :title="prescriptDetail.title" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="uni-margin-wrap"
v-if="prescriptDetail && prescriptDetail.images && prescriptDetail.images.length > 0">
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
:duration="duration">
<swiper-item v-for="(item, index) in prescriptDetail.images" :key="index">
<view class="swiper-item">
<image :src="item" mode="aspectFit" @click="previewImage(item)"></image>
</view>
</swiper-item>
</swiper>
</view>
<view class="contentBox">
<view class="content">
<uni-section class="mb-10" titleFontSize="18px" title="标题" type="line">
<view class="item">
{{prescriptDetail.title}}
</view>
</uni-section>
<uni-section class="mb-10" titleFontSize="18px" title="内容" type="line"
v-if="prescriptDetail.content && prescriptDetail.content != ''">
<view class="item" v-html="prescriptDetail.content">
</view>
</uni-section>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar
:title="prescriptDetail.title"
bgColor="#3AB3AE"
fontColor="#fff"
></z-nav-bar>
<view
class="uni-margin-wrap"
v-if="
prescriptDetail &&
prescriptDetail.images &&
prescriptDetail.images.length > 0
"
>
<swiper
class="swiper"
circular
:indicator-dots="indicatorDots"
:autoplay="autoplay"
:interval="interval"
:duration="duration"
>
<swiper-item
v-for="(item, index) in prescriptDetail.images"
:key="index"
>
<view class="swiper-item">
<image
:src="item"
mode="aspectFit"
@click="previewImage(item)"
></image>
</view>
</swiper-item>
</swiper>
</view>
<view class="contentBox">
<view class="content">
<uni-section
class="mb-10"
titleFontSize="18px"
title="标题"
type="line"
>
<view class="item">
{{ prescriptDetail.title }}
</view>
</uni-section>
<uni-section
class="mb-10"
titleFontSize="18px"
title="内容"
type="line"
v-if="prescriptDetail.content && prescriptDetail.content != ''"
>
<view class="item" v-html="prescriptDetail.content"> </view>
</uni-section>
<!-- <uni-section class="mb-10" titleFontSize="18px" title="配伍" type="line">
<!-- <uni-section class="mb-10" titleFontSize="18px" title="配伍" type="line">
<view class="item" v-if="prescriptDetail.compatibility && prescriptDetail.compatibility != ''" v-html="prescriptDetail.compatibility">
</view>
<view class="item" v-else>
@@ -45,128 +78,130 @@
暂无
</view>
</uni-section> -->
</view>
</view>
<music-play :playData="playData"></music-play>
<!-- <z-navigation></z-navigation> -->
</view>
</view>
</view>
<music-play :playData="playData"></music-play>
<!-- <z-navigation></z-navigation> -->
</view>
</template>
<script>
import musicPlay from '@/components/music.vue'
import $http from '@/config/requestConfig.js';
export default {
data() {
return {
playData: {},
prescriptDetail: {
images: []
},
id: null,
indicatorDots: true,
autoplay: true,
interval: 5000,
duration: 500,
}
},
onLoad(e) {
this.id = e.id
},
onShow() {
this.getDetail()
},
methods: {
// 放大图片
previewImage(url) {
console.log(url)
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ['很抱歉,暂不支持保存图片到本地'],
success: function(res) {
// console.log(res,'+++++')
}
}
});
},
// 方剂详情
getDetail() {
$http.request({
url: "book/medicaldes/getRecordById?id=" + this.id,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
// loadAnimate: 'none', // 请求加载动画
// 'prescriptId': this.prescriptId
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
},
}).then(res => {
console.log(res, '内容获取成功')
if (res.code == 0) {
this.prescriptDetail = res.result
if (this.prescriptDetail.image) {
this.prescriptDetail.images = this.prescriptDetail.image.split(';');
}
}
}).catch(e => {
// this.titleList = []
console.log(e)
})
},
},
components: {
musicPlay
},
}
import musicPlay from "@/components/music.vue";
import $http from "@/config/requestConfig.js";
export default {
data() {
return {
playData: {},
prescriptDetail: {
images: [],
},
id: null,
indicatorDots: true,
autoplay: true,
interval: 5000,
duration: 500,
};
},
onLoad(e) {
this.id = e.id;
},
onShow() {
this.getDetail();
},
methods: {
// 放大图片
previewImage(url) {
console.log(url);
uni.previewImage({
urls: [url],
longPressActions: {
itemList: ["很抱歉,暂不支持保存图片到本地"],
success: function (res) {
// console.log(res,'+++++')
},
},
});
},
// 方剂详情
getDetail() {
$http
.request({
url: "book/medicaldes/getRecordById?id=" + this.id,
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
// loadAnimate: 'none', // 请求加载动画
// 'prescriptId': this.prescriptId
},
header: {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
})
.then((res) => {
console.log(res, "内容获取成功");
if (res.code == 0) {
this.prescriptDetail = res.result;
if (this.prescriptDetail.image) {
this.prescriptDetail.images =
this.prescriptDetail.image.split(";");
}
}
})
.catch((e) => {
// this.titleList = []
console.log(e);
});
},
},
components: {
musicPlay,
},
};
</script>
<style lang="scss" scoped>
.contentBox {
padding-bottom: 20rpx;
}
.contentBox {
padding-bottom: 20rpx;
}
.mb-10 {
margin-bottom: 10px;
}
.mb-10 {
margin-bottom: 10px;
}
.content {
font-size: 28rpx;
}
.content {
font-size: 28rpx;
}
.swiper-item {
image {
margin: 0 auto;
height: 250rpx;
}
.swiper-item {
image {
margin: 0 auto;
height: 250rpx;
}
}
}
.uni-margin-wrap {
margin-bottom: 20rpx;
padding-top: 20rpx;
background-color: #fff;
}
.uni-margin-wrap {
margin-bottom: 20rpx;
padding-top: 20rpx;
background-color: #fff;
}
.container {
padding: 10rpx;
.container {
padding: 10rpx;
// background-color: #fff;
.item {
color: #666;
padding: 10rpx 20rpx;
padding-bottom: 20rpx;
line-height: 46rpx;
}
}
// background-color: #fff;
.item {
color: #666;
padding: 10rpx 20rpx;
padding-bottom: 20rpx;
line-height: 46rpx;
}
}
.flexbox {
display: flex;
}
.flexbox {
display: flex;
}
/deep/ .uni-section-header__decoration.line {
background-color: #18bc37;
}
</style>
/deep/ .uni-section-header__decoration.line {
background-color: #18bc37;
}
</style>

View File

@@ -1,204 +1,215 @@
<template><page-meta
<template>
<page-meta
:page-font-size="$baseFontSize() + 'px'"
:root-font-size="$baseFontSize() + 'px'"
></page-meta>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar :title="title" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="contentBox">
<!-- <view class="video_box" :style="{ height: screenHeight + 'px'}"> -->
<video
class="video_file"
:id="`video_${objId}`"
:ref="`video_${objId}`"
:src="src"
:poster="poster"
loop
object-fit="contain"
:show-play-btn="false"
:show-center-play-btn="false"
:controls="false"
:enable-progress-gesture="false"
:autoplay="videoPlayId == objId"
:style="'height: '+screenHeight + 'px'"
@timeupdate="onScheduleChange"
@waiting="onWaiting"
></video>
<!-- <view class="bottom_mask"></view> -->
<!-- 播放按钮 -->
<view class="play_btn" @click="onPlay">
<image class="icon_play" v-if="playState == 1000" src="http://qn.kemean.cn/upload/202103/08/1615183536616rn7yfe5g.png" mode="aspectFit"></image>
</view>
<view class="play_schedule" :style="{bottom: progressBottom + 'rpx'}">
<view class="schedule_bg"></view>
<view class="schedule" :style="{ width: schedule + 'rpx' }"></view>
<view class="progress_drag_dot" v-if="progressDrag"></view>
</view>
<!-- </view> -->
</view>
</view>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar :title="title" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<view class="contentBox">
<!-- <view class="video_box" :style="{ height: screenHeight + 'px'}"> -->
<video
class="video_file"
:id="`video_${objId}`"
:ref="`video_${objId}`"
:src="src"
:poster="poster"
loop
object-fit="contain"
:show-play-btn="false"
:show-center-play-btn="false"
:controls="false"
:enable-progress-gesture="false"
:autoplay="videoPlayId == objId"
:style="'height: ' + screenHeight + 'px'"
@timeupdate="onScheduleChange"
@waiting="onWaiting"
></video>
<!-- <view class="bottom_mask"></view> -->
<!-- 播放按钮 -->
<view class="play_btn" @click="onPlay">
<image
class="icon_play"
v-if="playState == 1000"
src="http://qn.kemean.cn/upload/202103/08/1615183536616rn7yfe5g.png"
mode="aspectFit"
></image>
</view>
<view class="play_schedule" :style="{ bottom: progressBottom + 'rpx' }">
<view class="schedule_bg"></view>
<view class="schedule" :style="{ width: schedule + 'rpx' }"></view>
<view class="progress_drag_dot" v-if="progressDrag"></view>
</view>
<!-- </view> -->
</view>
</view>
</template>
<script>
import { mapState, mapMutations } from 'vuex';
import { mapState, mapMutations } from "vuex";
export default {
data() {
return {
schedule: 0,
// 1000 待播放
// 2000 播放中
// 3000 播放缓冲中
playState: 1000,
// 是否拖动进度
progressDrag: false,
// 视频总长度
duration: 0,
videoCtx: null,
objId:''
};
},
onLoad(e) {
console.log('1111',e)
this.src = e.src
this.title = e.title
},
computed: {
...mapState(['videoPlayId'])
},
watch: {
videoPlayId(val) {
if (val == this.objId) {
setTimeout(() => {
this.videoCtx.play();
this.playState = 2000;
}, 200);
} else {
setTimeout(() => {
this.videoCtx.pause();
this.videoCtx.seek(0);
this.playState = 1000;
this.schedule = 0;
},100);
}
}
},
mounted() {
console.log('src', this.src)
this.videoCtx = uni.createVideoContext(`video_${this.objId}`, this);
if(this.videoPlayId == this.objId){
setTimeout(() => {
this.videoCtx.play();
this.playState = 2000;
}, 200);
}
let throttling = true;
uni.$on("videoProgress", res => {
if(throttling){
throttling = false;
setTimeout(() => {
throttling = true;
if (res.progress == 1) {
this.progressDrag = true;
} else {
this.progressDrag = false;
}
if (this.videoPlayId == this.objId && res.progressValue) {
this.schedule = res.progressValue * 750;
this.videoCtx.seek(this.duration * res.progressValue);
}
}, 100);
}
});
},
methods: {
onScheduleChange(e) {
this.duration = e.detail.duration;
if (!this.progressDrag) {
this.schedule = (parseFloat(e.detail.currentTime) / e.detail.duration) * 750;
}
},
onPlay() {
if (this.playState == 2000) {
this.videoCtx.pause();
this.playState = 1000;
} else if (this.playState == 1000) {
this.videoCtx.play();
this.playState = 2000;
} else if (this.playState == 3000) {
this.videoCtx.play();
this.playState = 2000;
}
},
// 视频进入缓冲中
onWaiting() {
this.playState = 3000;
},
onError(e){
console.log("视频播放出错", e);
}
}
data() {
return {
schedule: 0,
// 1000 待播放
// 2000 播放中
// 3000 播放缓冲中
playState: 1000,
// 是否拖动进度
progressDrag: false,
// 视频总长度
duration: 0,
videoCtx: null,
objId: "",
};
},
onLoad(e) {
console.log("1111", e);
this.src = e.src;
this.title = e.title;
},
computed: {
...mapState(["videoPlayId"]),
},
watch: {
videoPlayId(val) {
if (val == this.objId) {
setTimeout(() => {
this.videoCtx.play();
this.playState = 2000;
}, 200);
} else {
setTimeout(() => {
this.videoCtx.pause();
this.videoCtx.seek(0);
this.playState = 1000;
this.schedule = 0;
}, 100);
}
},
},
mounted() {
console.log("src", this.src);
this.videoCtx = uni.createVideoContext(`video_${this.objId}`, this);
if (this.videoPlayId == this.objId) {
setTimeout(() => {
this.videoCtx.play();
this.playState = 2000;
}, 200);
}
let throttling = true;
uni.$on("videoProgress", (res) => {
if (throttling) {
throttling = false;
setTimeout(() => {
throttling = true;
if (res.progress == 1) {
this.progressDrag = true;
} else {
this.progressDrag = false;
}
if (this.videoPlayId == this.objId && res.progressValue) {
this.schedule = res.progressValue * 750;
this.videoCtx.seek(this.duration * res.progressValue);
}
}, 100);
}
});
},
methods: {
onScheduleChange(e) {
this.duration = e.detail.duration;
if (!this.progressDrag) {
this.schedule =
(parseFloat(e.detail.currentTime) / e.detail.duration) * 750;
}
},
onPlay() {
if (this.playState == 2000) {
this.videoCtx.pause();
this.playState = 1000;
} else if (this.playState == 1000) {
this.videoCtx.play();
this.playState = 2000;
} else if (this.playState == 3000) {
this.videoCtx.play();
this.playState = 2000;
}
},
// 视频进入缓冲中
onWaiting() {
this.playState = 3000;
},
onError(e) {
console.log("视频播放出错", e);
},
},
};
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
@import "@/style/mixin.scss";
.video_box {
position: relative;
width: 750rpx;
position: relative;
width: 750rpx;
}
.bottom_mask {
position: absolute;
left: 0rpx;
bottom: 0rpx;
right: 0rpx;
height: 300rpx;
width: 750rpx;
background-image: linear-gradient(to bottom, rgba(0,0,0,0) , rgba(0,0,0,0.7));
position: absolute;
left: 0rpx;
bottom: 0rpx;
right: 0rpx;
height: 300rpx;
width: 750rpx;
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
rgba(0, 0, 0, 0.7)
);
}
.video_file {
width: 750rpx;
width: 750rpx;
}
.play_schedule {
position: absolute;
bottom: 6rpx;
left: 0;
height: 16rpx;
width: 750rpx;
flex-direction: row;
align-items: center;
justify-content: flex-start;
position: absolute;
bottom: 6rpx;
left: 0;
height: 16rpx;
width: 750rpx;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.schedule_bg {
position: absolute;
top: 7rpx;
left: 0;
right: 0;
height: 2rpx;
background-color: rgba(255, 255, 255, 0.3);
position: absolute;
top: 7rpx;
left: 0;
right: 0;
height: 2rpx;
background-color: rgba(255, 255, 255, 0.3);
}
.schedule {
background-color: #fff;
height: 2rpx;
position: relative;
background-color: #fff;
height: 2rpx;
position: relative;
}
.progress_drag_dot {
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background-color: #fff;
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background-color: #fff;
}
.play_btn {
position: absolute;
top: 50%;
left: 45%;
right: 0;
bottom: 0;
justify-content: center;
align-items: center;
position: absolute;
top: 50%;
left: 45%;
right: 0;
bottom: 0;
justify-content: center;
align-items: center;
}
.icon_play {
width: 90rpx;
height: 90rpx;
width: 90rpx;
height: 90rpx;
}
</style>

View File

@@ -1,11 +1,16 @@
<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">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar :title="prescriptDetail.title" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
<z-nav-bar
:title="prescriptDetail.title"
bgColor="#3AB3AE"
fontColor="#fff"
></z-nav-bar>
<view
class="contentBox"
v-if="prescriptDetail.content && prescriptDetail.contentType == 1"
@@ -92,7 +97,7 @@ export default {
) {
this.prescriptDetail.content = res.result.content.replace(
/<img/g,
'<img style="max-width: 100%;"'
'<img style="max-width: 100%;"',
);
}
// if (this.prescriptDetail.image) {
@@ -177,4 +182,4 @@ export default {
/deep/ .uni-section-header__decoration.line {
background-color: #18bc37;
}
</style>
</style>

File diff suppressed because it is too large Load Diff