Browse Source

1.10.0版本暂存

v1.10.0
kola-web 5 days ago
parent
commit
42816265b1
  1. 2
      README.md
  2. 50
      src/components/toast/index.scss
  3. 14
      src/components/toast/index.wxml
  4. BIN
      src/images/bg24.png
  5. BIN
      src/images/bg31.png
  6. BIN
      src/images/icon80.png
  7. 1
      src/patient/pages/index/index.ts
  8. 5
      src/patient/pages/live/index.ts
  9. 51
      src/patient/pages/liveDetail/index.scss
  10. 17
      src/patient/pages/liveDetail/index.ts
  11. 16
      src/patient/pages/liveDetail/index.wxml

2
README.md

@ -29,3 +29,5 @@ wx.showModal({ @@ -29,3 +29,5 @@ wx.showModal({
审核账号
18910233000 1111

50
src/components/toast/index.scss

@ -2339,7 +2339,7 @@ @@ -2339,7 +2339,7 @@
.container {
margin-top: 76rpx;
font-size: 40rpx;
color: #211D2E;
color: #211d2e;
text-align: center;
line-height: 68rpx;
.line {
@ -2348,7 +2348,7 @@ @@ -2348,7 +2348,7 @@
justify-content: center;
}
.high {
color: #B982FF;
color: #b982ff;
font-weight: bold;
}
}
@ -2585,3 +2585,49 @@ @@ -2585,3 +2585,49 @@
}
}
}
.popup-drug-guide {
.popup-container {
.badge {
position: relative;
z-index: 1;
display: block;
margin: 0 auto;
width: 302rpx;
height: 316rpx;
}
.container {
margin-top: -168rpx;
padding: 148rpx 0 0;
width: 630rpx;
height: 512rpx;
box-sizing: border-box;
.title {
font-size: 36rpx;
color: #211d2e;
text-align: center;
line-height: 52rpx;
font-weight: bold;
}
.content {
margin-top: 30rpx;
font-size: 32rpx;
color: #adacb2;
text-align: center;
}
.btn {
margin: 38rpx auto 0;
width: 364rpx;
height: 84rpx;
font-size: 36rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
background: linear-gradient(197deg, #ffbcf9 0%, #b982ff 100%);
border-radius: 98rpx 98rpx 98rpx 98rpx;
}
}
}
}

14
src/components/toast/index.wxml

@ -776,4 +776,18 @@ @@ -776,4 +776,18 @@
<image class="btn" bind:tap="handleOk" src="{{imageUrl}}za-images/icon16.png?t={{Timestamp}}"></image>
</view>
</view>
<view class="popup-drug-guide" wx:if="{{type == 'drug-guide'}}">
<view class="popup-container">
<image class="badge" src="/images/icon80.png"></image>
<view class="container" style="background: url('/images/bg31.png') no-repeat top center/100%">
<view class="title">
为更好地为您提供健康管理服务
<view></view>
需您补充完善个人信息
</view>
<view class="content">信息仅用于您的专属健康档案</view>
<view class="btn" bind:tap="handleOk">去完善</view>
</view>
</view>
</view>
</van-popup>

BIN
src/images/bg24.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

BIN
src/images/bg31.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

BIN
src/images/icon80.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

1
src/patient/pages/index/index.ts

@ -38,6 +38,7 @@ Page({ @@ -38,6 +38,7 @@ Page({
// toastType:"dedicatedDoctor",
// toastType: 'referral-toast',
// toastType: 'public-toast',
// toastType: 'drug-guide',
toastShow: false,
toastType: '',

5
src/patient/pages/live/index.ts

@ -230,9 +230,6 @@ Page({ @@ -230,9 +230,6 @@ Page({
handleDetail(e) {
app.mpBehavior({ PageName: 'BTN_PatientLiveList' })
const { id } = e.currentTarget.dataset
if (this.data.active == 0) {
} else if (this.data.active == 1) {
}
wx.navigateTo({
url: `/patient/pages/liveDetail/index?id=${id}`,
})
@ -246,7 +243,7 @@ Page({ @@ -246,7 +243,7 @@ Page({
onShareAppMessage() {
return {
title: '周三大咖说',
path: 'pages/live/index',
path: '/patient/pages/live/index',
}
},
})

51
src/patient/pages/liveDetail/index.scss

@ -124,6 +124,57 @@ @@ -124,6 +124,57 @@
height: 230rpx;
}
}
.lightspot {
margin-top: 32rpx;
.l-title {
font-size: 36rpx;
color: #333333;
font-weight: bold;
}
.l-list {
.l-item {
padding: 16rpx 0;
display: flex;
border-bottom: 1px dashed rgba(159, 168, 172, 0.1);
&:last-of-type {
border: none;
}
.photo {
flex-shrink: 0;
width: 290rpx;
height: 164rpx;
border-radius: 10rpx;
}
.wrap {
flex: 1;
padding-left: 24rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
.w-title {
font-size: 32rpx;
color: #211d2e;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.time {
margin-top: 20rpx;
font-size: 32rpx;
color: #adacb2;
}
}
}
}
}
.public {
margin-top: 32rpx;
display: block;
height: 270rpx;
border-radius: 24rpx;
}
.content {
margin-top: 24rpx;
.c-title {

17
src/patient/pages/liveDetail/index.ts

@ -12,6 +12,8 @@ Page({ @@ -12,6 +12,8 @@ Page({
params: {},
play: false,
currentVideoSrc: '',
popupShow: false,
popupType: 'popup6', // 登录失败弹窗
popupParams: {
@ -109,11 +111,15 @@ Page({ @@ -109,11 +111,15 @@ Page({
}),
BeginTime: dayjs(res.BeginTime).format('YYYY-MM-DD HH:mm'),
},
currentVideoSrc: res.ReplayVideoUrl,
})
})
},
handleReplay() {
app.mpBehavior({ PageName: 'BTN_PatientLiveReview' })
this.setData({
currentVideoSrc: this.data.detail.ReplayVideoUrl,
})
this.videoContext.requestFullScreen({})
this.videoContext.seek(0)
this.videoContext.play()
@ -327,6 +333,17 @@ Page({ @@ -327,6 +333,17 @@ Page({
url: `/pages/webview/index?url=${encodeURIComponent('https://shop.show.hbsaas.com/statics/#/?nId=bz56')}`,
})
},
hadnleMessage() {
wx.requestSubscribeMessage({
tmplIds: ['IMF4HFzZaKG13H3yjFyna23g0ZuIHcVND6dUGqhr8IA'],
success(res) {
console.log(res)
},
fail(err) {
console.log(err)
},
})
},
onShareAppMessage() {
this.saveShare()
return {

16
src/patient/pages/liveDetail/index.wxml

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
class="page"
style="background: url('{{imageUrl}}bg10.png?t={{Timestamp}}') no-repeat top center/100% 610rpx;padding-top:{{pageTop+22}}px;"
>
<button bind:tap="hadnleMessage">订阅消息</button>
<image class="banner" mode="aspectFill" src="{{detail.IntroductionUrl}}"></image>
<view class="page-container">
<view class="title">{{detail.Name}}</view>
@ -58,6 +59,19 @@ @@ -58,6 +59,19 @@
<view class="answer" bind:tap="handleAnswer">
<image class="a-img" src="/images/bg21.png"></image>
</view>
<view class="lightspot">
<view class="l-title">直播亮点</view>
<view class="l-list">
<view class="l-item" wx:for="{{2}}">
<image class="photo" src="/images/bg24.png"></image>
<view class="wrap">
<view class="w-title">视频标题显示视频标题显示</view>
<view class="time">02:12</view>
</view>
</view>
</view>
</view>
<view class="public" style="background: url('/images/bg24.png') no-repeat center/100%"></view>
<view class="content">
<view class="c-title">详情介绍</view>
<image class="c-img" mode="widthFix" src="{{item.url}}" wx:for="{{detail.DetailJson}}" wx:key="name"></image>
@ -114,7 +128,7 @@ @@ -114,7 +128,7 @@
show-progress
enable-play-gesture
bindfullscreenchange="handleFullscreenExit"
src="{{detail.ReplayVideoUrl}}"
src="{{currentVideoSrc}}"
bindplay="handleVideoPlay"
bindpause="handleVideoPause"
>

Loading…
Cancel
Save