Browse Source

直播分享bug处理

dev
kola-web 2 weeks ago
parent
commit
f475dabd54
  1. 2
      project.config.json
  2. 12
      src/app.ts
  3. 2
      src/patient/pages/live/index.ts
  4. 14
      src/patient/pages/liveDetail/index.scss
  5. 15
      src/patient/pages/liveDetail/index.wxml

2
project.config.json

@ -71,5 +71,5 @@
} }
] ]
}, },
"appid": "wxf9ce8010f1ad24aa" "appid": "wx71ac9c27c3c3e3f4"
} }

12
src/app.ts

@ -16,15 +16,15 @@ App<IAppOption>({
// 测试号 wx2b0bb13edf717c1d // 测试号 wx2b0bb13edf717c1d
// dev // dev
// appid:wxf9ce8010f1ad24aa // appid:wxf9ce8010f1ad24aa
url: 'https://m.xd.hbraas.com', // url: 'https://m.xd.hbraas.com',
upFileUrl: 'https://m.xd.hbraas.com/', // upFileUrl: 'https://m.xd.hbraas.com/',
imageUrl: 'https://m.xd.hbraas.com/xd/', // imageUrl: 'https://m.xd.hbraas.com/xd/',
// pro // pro
// appid:wx71ac9c27c3c3e3f4 // appid:wx71ac9c27c3c3e3f4
// url: 'https://m.xd.hbsaas.com', url: 'https://m.xd.hbsaas.com',
// upFileUrl: 'https://m.xd.hbsaas.com/', upFileUrl: 'https://m.xd.hbsaas.com/',
// imageUrl: 'https://m.xd.hbsaas.com/api/xd/', imageUrl: 'https://m.xd.hbsaas.com/api/xd/',
loginState: '', loginState: '',
isLogin: 0, isLogin: 0,

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

@ -246,7 +246,7 @@ Page({
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '周三大咖说', title: '周三大咖说',
path: 'pages/live/index', path: '/patient/pages/live/index',
} }
}, },
}) })

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

@ -203,7 +203,7 @@
} }
} }
.fixed-share-wrap { .fixed-share {
position: fixed; position: fixed;
z-index: 2; z-index: 2;
right: 14rpx; right: 14rpx;
@ -211,19 +211,7 @@
width: 84rpx; width: 84rpx;
height: 84rpx; height: 84rpx;
box-shadow: 0 4rpx 24rpx 0 rgba(51, 5, 109, 0.17); box-shadow: 0 4rpx 24rpx 0 rgba(51, 5, 109, 0.17);
background: transparent;
padding: 0;
border-radius: 50%; border-radius: 50%;
&::after {
border: none;
background: transparent;
}
.fixed-share {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
}
} }
.custom-popup { .custom-popup {

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

@ -55,9 +55,9 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
<view class="answer" bind:tap="handleAnswer"> <!-- <view class="answer" bind:tap="handleAnswer"> -->
<image class="a-img" src="/images/bg21.png"></image> <!-- <image class="a-img" src="/images/bg21.png"></image> -->
</view> <!-- </view> -->
<view class="content"> <view class="content">
<view class="c-title">详情介绍</view> <view class="c-title">详情介绍</view>
<image class="c-img" mode="widthFix" src="{{item.url}}" wx:for="{{detail.DetailJson}}" wx:key="name"></image> <image class="c-img" mode="widthFix" src="{{item.url}}" wx:for="{{detail.DetailJson}}" wx:key="name"></image>
@ -127,9 +127,12 @@
</video> </video>
</view> </view>
<button class="fixed-share-wrap" open-type="share"> <image
<image class="fixed-share" wx:if="{{detail.PosterUrl}}" src="{{imageUrl}}icon67.png?t={{Timestamp}}"></image> class="fixed-share"
</button> wx:if="{{detail.PosterUrl}}"
src="{{imageUrl}}icon67.png?t={{Timestamp}}"
bind:tap="handleShare"
></image>
<van-popup show="{{shareShow}}" custom-class="custom-popup" bind:click-overlay="handleShareClose"> <van-popup show="{{shareShow}}" custom-class="custom-popup" bind:click-overlay="handleShareClose">
<view class="p-share"> <view class="p-share">

Loading…
Cancel
Save