138 lines
2.8 KiB
Vue
138 lines
2.8 KiB
Vue
<template>
|
|
<view class="detail_main" v-if="detail">
|
|
<nav-bar :title='name'></nav-bar>
|
|
|
|
<view class="video_nav">
|
|
<video :src="detail.videoUrl" controls></video>
|
|
</view>
|
|
<view class="detail_info">
|
|
<view class="tle">
|
|
<image src="/static/firstaid/tle_left.png"></image>
|
|
<view>操作说明</view>
|
|
<image src="/static/firstaid/tle_right.png"></image>
|
|
</view>
|
|
<view class="content">
|
|
<view class="content_item" v-for="(item,index) in detail.operationSteps" :key="index">
|
|
<view class="content_item_tle">
|
|
{{item.title}}
|
|
</view>
|
|
<view class="content_item_row">
|
|
{{item.content}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
callbackRequest
|
|
} from '@/common/util.js';
|
|
import {
|
|
firstaIdselectById
|
|
} from '@/common/api.js';
|
|
import navBar from "@/components/navBar/index.vue";
|
|
export default {
|
|
components: {
|
|
navBar
|
|
},
|
|
data() {
|
|
return {
|
|
id: '',
|
|
name: '',
|
|
detail: null
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.id = options.id
|
|
this.name = options.name
|
|
this.getDetail()
|
|
},
|
|
methods: {
|
|
getDetail() {
|
|
let params = {
|
|
method:firstaIdselectById,
|
|
id: this.id
|
|
}
|
|
callbackRequest(params).then((res) => {
|
|
if (res.returnCode == 1) {
|
|
this.detail = res.returnData
|
|
}else{
|
|
uni.showToast({title: res.returnMsg,icon: 'none'});
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.detail_main {
|
|
padding-top: 100rpx;
|
|
}
|
|
.video_nav {
|
|
width: 100%;
|
|
height: 440rpx;
|
|
video {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
.detail_info {
|
|
background-color: #ffffff;
|
|
margin-top: 24rpx;
|
|
padding: 0 24rpx 28rpx 24rpx;
|
|
box-sizing: border-box;
|
|
.tle {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: bold;
|
|
font-size: 36rpx;
|
|
color: #0E1A24;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 24rpx 0;
|
|
image {
|
|
width: 38rpx;
|
|
height: 38rpx;
|
|
display: block;
|
|
margin: 0 12rpx;
|
|
}
|
|
}
|
|
.content {
|
|
width: 100%;
|
|
background: linear-gradient( 135deg, #E6FFFF 0%, #E1FDFF 100%);
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
padding-top: 24rpx;
|
|
box-sizing: border-box;
|
|
.content_item {
|
|
width: 100%;
|
|
margin-bottom: 40rpx;
|
|
.content_item_tle {
|
|
min-width: 138rpx;
|
|
max-width: 80%;
|
|
background: linear-gradient( 180deg, #67E380 0%, #18A4B5 100%);
|
|
border-radius: 0rpx 16rpx 0rpx 0rpx;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: bold;
|
|
font-size: 28rpx;
|
|
color: #FFFFFF;
|
|
display: inline-flex;
|
|
padding: 10rpx 24rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
.content_item_row {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
color: #4B5B68;
|
|
padding: 0 24rpx;
|
|
box-sizing: border-box;
|
|
margin-top: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|