xiaoe_mp_npm 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/miniprogram_dist/Lottery/components/LotteryResult/index.js +22 -22
  2. package/miniprogram_dist/SharePoster/PosterDom/index.js +37 -2
  3. package/miniprogram_dist/SharePoster/PosterDom/index.wxml +2 -2
  4. package/miniprogram_dist/SharePoster/PosterDom/index.wxss +3 -3
  5. package/miniprogram_dist/SharePoster/components/saveTip/index.js +40 -0
  6. package/miniprogram_dist/SharePoster/components/saveTip/index.json +5 -0
  7. package/miniprogram_dist/SharePoster/components/saveTip/index.less +0 -0
  8. package/miniprogram_dist/SharePoster/components/saveTip/index.wxml +6 -0
  9. package/miniprogram_dist/SharePoster/components/saveTip/index.wxss +21 -0
  10. package/miniprogram_dist/SharePoster/components/settingModal/index.js +38 -0
  11. package/miniprogram_dist/SharePoster/components/settingModal/index.json +5 -0
  12. package/miniprogram_dist/SharePoster/components/settingModal/index.less +0 -0
  13. package/miniprogram_dist/SharePoster/components/settingModal/index.wxml +9 -0
  14. package/miniprogram_dist/SharePoster/components/settingModal/index.wxss +45 -0
  15. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.js +35 -0
  16. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.json +5 -0
  17. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxml +5 -0
  18. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxss +35 -0
  19. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.js +35 -0
  20. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.json +5 -0
  21. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxml +11 -0
  22. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxss +51 -0
  23. package/miniprogram_dist/SharePoster/sharePopup/index.js +310 -5
  24. package/miniprogram_dist/SharePoster/sharePopup/index.json +5 -1
  25. package/miniprogram_dist/SharePoster/sharePopup/index.wxml +37 -28
  26. package/miniprogram_dist/SharePoster/sharePopup/index.wxss +27 -13
  27. package/package.json +1 -1
  28. package/src/Lottery/components/LotteryResult/index.js +22 -22
  29. package/src/SharePoster/PosterDom/index.js +37 -2
  30. package/src/SharePoster/PosterDom/index.wxml +2 -2
  31. package/src/SharePoster/PosterDom/index.wxss +3 -3
  32. package/src/SharePoster/components/saveTip/index.js +40 -0
  33. package/src/SharePoster/components/saveTip/index.json +5 -0
  34. package/src/SharePoster/components/saveTip/index.less +0 -0
  35. package/src/SharePoster/components/saveTip/index.wxml +6 -0
  36. package/src/SharePoster/components/saveTip/index.wxss +21 -0
  37. package/src/SharePoster/components/settingModal/index.js +38 -0
  38. package/src/SharePoster/components/settingModal/index.json +5 -0
  39. package/src/SharePoster/components/settingModal/index.less +0 -0
  40. package/src/SharePoster/components/settingModal/index.wxml +9 -0
  41. package/src/SharePoster/components/settingModal/index.wxss +46 -0
  42. package/src/SharePoster/components/shareCircleTip/index.js +35 -0
  43. package/src/SharePoster/components/shareCircleTip/index.json +5 -0
  44. package/src/SharePoster/components/shareCircleTip/index.wxml +5 -0
  45. package/src/SharePoster/components/shareCircleTip/index.wxss +35 -0
  46. package/src/SharePoster/components/unauthorizedModal/index.js +35 -0
  47. package/src/SharePoster/components/unauthorizedModal/index.json +5 -0
  48. package/src/SharePoster/components/unauthorizedModal/index.wxml +11 -0
  49. package/src/SharePoster/components/unauthorizedModal/index.wxss +52 -0
  50. package/src/SharePoster/sharePopup/index.js +310 -5
  51. package/src/SharePoster/sharePopup/index.json +5 -1
  52. package/src/SharePoster/sharePopup/index.wxml +37 -28
  53. package/src/SharePoster/sharePopup/index.wxss +27 -13
@@ -7,6 +7,7 @@ import {
7
7
  } from '../../common/api/sharePoster'
8
8
 
9
9
  import {POSTER_CLS,LOADING_DELAY} from '../libs/constant'
10
+ import { sensorLog } from "live-mp-tools";
10
11
 
11
12
  const computedBehavior = require('miniprogram-computed').behavior
12
13
 
@@ -23,6 +24,10 @@ Component({
23
24
  // })
24
25
  // }
25
26
  },
27
+ isShareCircleTipDisplayed: {
28
+ type: Boolean,
29
+ value: false
30
+ },
26
31
  aliveId: {
27
32
  type: String,
28
33
  value: 'l_61921db160b2c37884d51f6e'
@@ -42,6 +47,10 @@ Component({
42
47
  unionId: {
43
48
  type: String,
44
49
  value: ''
50
+ },
51
+ sensorReportParams: {
52
+ type: Object,
53
+ value: () => {},
45
54
  }
46
55
  },
47
56
  options: {
@@ -61,6 +70,19 @@ Component({
61
70
  recommendPopupVisible: false,
62
71
  loadingTimer: 0, // loading的定时器。场景:加载太快时不必展示loading
63
72
  posterList: [],
73
+ isAndroid: false, // 是否是安卓手机
74
+ isShowSettingModal: false, // 拒绝授权后弹窗
75
+ isShowUnauthorizedModal: false, // ios微信未授权相册弹窗
76
+ isShowSaveTip: false,
77
+ firstContent: '',
78
+ secondContent: '',
79
+ isShowShareCircleTip: false,
80
+ selectItem: null, // 选中的海报
81
+ isClickShareCircle: false, // 判断是点击分享到朋友圈还是保存海报弹起的授权窗
82
+ forwardFriend: 0,
83
+ shareMoments: 0,
84
+ savePoster: 0,
85
+ roomInfo: {}
64
86
  },
65
87
  observers: {
66
88
  posterItem(val) {
@@ -74,12 +96,31 @@ Component({
74
96
  this.selectFirstOnePoster();
75
97
  }
76
98
  },
99
+ // 同步分享提示隐藏
100
+ isShareCircleTipDisplayed(val) {
101
+ if(!val) {
102
+ this.setData({
103
+ isShowShareCircleTip: val
104
+ })
105
+ }
106
+ },
77
107
  },
78
108
  lifetimes: {
79
109
  attached() {
110
+ let params = {
111
+ appId: this.properties.appId,
112
+ userId: this.properties.userId,
113
+ aliveId: this.properties.aliveId,
114
+ unionId: this.properties.unionId,
115
+ }
116
+ this.setData({
117
+ roomInfo: params
118
+ })
119
+ console.log('roomInfo11111111', params)
80
120
  // 在组件实例进入页面节点树时执行
81
121
  // this.getPosterList()
82
122
  this.initData()
123
+ this.checkIsAndroid()
83
124
  },
84
125
  },
85
126
  computed: {
@@ -91,6 +132,82 @@ Component({
91
132
  // },
92
133
  },
93
134
  methods: {
135
+ sharePopupSensors( buttonValue , eventName='click_butt' ) {
136
+ try{
137
+ let sersorsParam = {
138
+ page_id: 'e_alive#mini#first#alive_room',
139
+ l_program: '鹅直播',
140
+ page_name: '直播间页面',
141
+ page_path: '鹅直播#小程序#首页#直播间页面',
142
+ app_id: this.properties.appId,
143
+ c_user_id: this.properties.userId,
144
+ union_id:this.properties.unionId,
145
+ resource_id: this.properties.aliveId,
146
+ current_role:this.properties.sensorReportParams.current_role,
147
+ type:this.properties.sensorReportParams.type,
148
+ cmm1:this.properties.sensorReportParams.alive_type,
149
+ cmm2:this.properties.sensorReportParams.version_type,
150
+ comm2:this.properties.sensorReportParams.pay_type,
151
+ cmm3:'鹅直播增长',
152
+ page_button: buttonValue
153
+ }
154
+ sensorLog.sensors.track(eventName,{
155
+ ...sersorsParam
156
+ })
157
+ }catch(e){
158
+ console.log('埋点',e)
159
+ }
160
+ },
161
+ clickForwardFriend() {
162
+ // 转发给朋友时关闭弹窗
163
+ this.setData({
164
+ showPopup: false
165
+ })
166
+ this.triggerEvent('changePosterStatus',false)
167
+ try{
168
+ this.sharePopupSensors("转发给朋友")
169
+ console.log("当前点击了 转发给朋友" , Number(++this.data.forwardFriend) ,"次");
170
+ }catch(e){
171
+ console.log("埋点", e)
172
+ }
173
+
174
+ },
175
+ clickShareMoments() {
176
+ try{
177
+ this.sharePopupSensors("分享到朋友圈")
178
+ console.log("当前点击了 分享到朋友圈" , Number(++this.data.shareMoments) ,"次");
179
+ }catch(e) {
180
+ console.log("埋点", e)
181
+ }
182
+
183
+ },
184
+ clickSavePoster() {
185
+ try{
186
+ this.sharePopupSensors("保存海报")
187
+ console.log("当前点击了 保存海报" , Number(++this.data.savePoster) ,"次");
188
+ }catch(e) {
189
+ console.log("埋点", e)
190
+ }
191
+ },
192
+ checkIsAndroid(){
193
+ const that = this
194
+ wx.getSystemInfo({
195
+ success (res) {
196
+ console.log('分享到朋友圈', res)
197
+ if(res.system.includes('iOS')) {
198
+ console.log('是ios系统')
199
+ that.setData({
200
+ isAndroid: false
201
+ })
202
+ } else if(res.system.includes('Android')){
203
+ console.log('是安卓系统')
204
+ that.setData({
205
+ isAndroid: true
206
+ })
207
+ }
208
+ }
209
+ })
210
+ },
94
211
  async initData() {
95
212
  await Promise.all([this.getPromotion(), this.getPosterSetting(), this.getPosterList()]);
96
213
  // await this.getQrcode();
@@ -100,14 +217,29 @@ Component({
100
217
  return
101
218
  }
102
219
  this.setData({
103
- selection: this.data.posterList[0].id
220
+ selection: this.data.posterList[0].id,
104
221
  })
105
222
  this.getPosterDetail(this.data.posterList[0].id)
106
223
  },
107
224
  openPopup() {
108
- this.setData({
109
- showPopup: true
110
- })
225
+ if(this.data.isAndroid) {
226
+ this.setData({
227
+ showPopup: true
228
+ })
229
+ } else {
230
+ this.setData({
231
+ firstContent: '苹果手机暂不支持将小程序分享到朋友圈',
232
+ secondContent: '请长按海报保存并分享',
233
+ isShowSaveTip: true,
234
+ showPopup: true
235
+ }, ()=>{
236
+ setTimeout(()=>{
237
+ this.setData({
238
+ isShowSaveTip: false
239
+ })
240
+ }, 1000)
241
+ })
242
+ }
111
243
  },
112
244
  onClose() {
113
245
  this.setData({
@@ -150,8 +282,11 @@ Component({
150
282
  console.log('draw poster begin')
151
283
  console.time('draw poster using')
152
284
  },
153
- drawPosterFulfilled() {
285
+ drawPosterFulfilled(e) {
154
286
  console.log('draw poster fulfilled')
287
+ this.setData({
288
+ selectItem: e.detail
289
+ })
155
290
  console.timeEnd('draw poster using')
156
291
  this.hideLoading()
157
292
  },
@@ -332,5 +467,175 @@ Component({
332
467
  console.error(err)
333
468
  })
334
469
  },
470
+
471
+ shareCircle(){
472
+ if(this.data.isAndroid) {
473
+ // 安卓展示分享tip 关闭弹出组件
474
+ this.setData({
475
+ isShowShareCircleTip: true,
476
+ showPopup: false
477
+ })
478
+ this.triggerEvent('changePosterStatus',false)
479
+ this.triggerEvent('showShareTip', true)
480
+ this.clickShareMoments();
481
+ } else {
482
+ this.setData({
483
+ isClickShareCircle: true
484
+ })
485
+ this.savePhoto('share')
486
+ }
487
+ },
488
+ // 关闭弹窗 点击分享状态重置
489
+ closeModal(){
490
+ this.setData({
491
+ isShowSettingModal: false,
492
+ isClickShareCircle: false
493
+ })
494
+ },
495
+ closeUnauthorizedModal(){
496
+ this.setData({
497
+ isShowUnauthorizedModal: false
498
+ })
499
+ },
500
+ closeShareTip(){
501
+ this.setData({
502
+ isShowShareCircleTip: false
503
+ })
504
+ this.triggerEvent('showShareTip', false)
505
+ },
506
+ confirmModal(){
507
+ const that = this
508
+ wx.openSetting({
509
+ success(settingData) {
510
+ if (settingData.authSetting['scope.writePhotosAlbum']) {
511
+ that.data.isClickShareCircle ? that.canSavePhoto('share') : that.canSavePhoto()
512
+ } else {
513
+ wx.showToast({
514
+ title: '保存失败',
515
+ icon: 'error'
516
+ })
517
+ }
518
+ },
519
+ fail(failData) {
520
+ console.log("failData", failData)
521
+ that.setData({
522
+ isClickShareCircle: false
523
+ })
524
+ },
525
+ complete(finishData) {
526
+ console.log("finishData", finishData)
527
+ }
528
+ })
529
+ this.setData({
530
+ isShowSettingModal: false
531
+ })
532
+ },
533
+ savePhoto(type){
534
+ if( type !== 'share' ){
535
+ this.clickSavePoster();
536
+ }else{
537
+ this.clickShareMoments();
538
+ }
539
+ wx.showLoading({
540
+ title: '加载中'
541
+ })
542
+ var self =this
543
+ // 如果是ios 需要先判断微信相册权限
544
+ if(!this.isAndroid) {
545
+ const appAuthorizeSetting = wx.getAppAuthorizeSetting()
546
+ if(appAuthorizeSetting.albumAuthorized === 'denied') {
547
+ // toast提示
548
+ this.setData({
549
+ isShowUnauthorizedModal: true
550
+ })
551
+ wx.hideLoading()
552
+ return
553
+ }
554
+ }
555
+ wx.getSetting({
556
+ success(res) {
557
+ wx.hideLoading()
558
+ console.log(res, res.authSetting['scope.writePhotosAlbum'])
559
+ //判断是否已授权
560
+ if (!res.authSetting['scope.writePhotosAlbum']) {
561
+ wx.authorize({
562
+ scope: 'scope.writePhotosAlbum',
563
+ success() {
564
+ //授权成功
565
+ self.canSavePhoto(type)
566
+ },
567
+ fail() {
568
+ //未授权
569
+ self.setData({
570
+ isShowSettingModal: true
571
+ })
572
+ }
573
+ })
574
+ }else{
575
+ //已授权直接保存图片
576
+ self.canSavePhoto(type)
577
+ }
578
+ },
579
+ })
580
+ },
581
+ // type: save 点击保存海报 提示有区别
582
+ canSavePhoto(type){
583
+ let imgSrc = this.data.selectItem
584
+ if(!imgSrc) {
585
+ wx.showToast({
586
+ title: '海报未加载完成,请重试'
587
+ })
588
+ wx.hideLoading()
589
+ return
590
+ }
591
+ const that = this
592
+ //图片保存到本地
593
+ wx.saveImageToPhotosAlbum({
594
+ filePath: imgSrc,
595
+ success(data) {
596
+ if(type === 'share') {
597
+ that.setData({
598
+ firstContent: '海报已保存至相册',
599
+ secondContent: '快去朋友圈分享吧~',
600
+ isShowSaveTip: true,
601
+ showPopup: false
602
+ }, ()=>{
603
+ that.triggerEvent('changePosterStatus',false)
604
+ setTimeout(()=>{
605
+ that.setData({
606
+ isShowSaveTip: false
607
+ })
608
+ }, 1000)
609
+ })
610
+ } else {
611
+ that.triggerEvent('changePosterStatus',false)
612
+ that.setData({
613
+ showPopup: false
614
+ })
615
+ wx.showToast({
616
+ title: '保存成功',
617
+ icon: 'success'
618
+ })
619
+ }
620
+ },
621
+ fail(err) {
622
+ console.log('保存失败');
623
+ console.log(err)
624
+ if (err.errMsg == "saveImageToPhotosAlbum:fail auth deny") {
625
+ //在这种逻辑下这种错误不会出现
626
+ console.log("未授权")
627
+ } else if (err.errMsg == 'saveImageToPhotosAlbum:fail cancel'){
628
+ //用户点击了取消
629
+ console.log('用户点击了取消')
630
+ }
631
+ },
632
+ complete(res) {
633
+ //结束回调 需要清空判断点击分享按钮的状态
634
+ that.setData({
635
+ isClickShareCircle: false
636
+ })
637
+ }
638
+ })
639
+ },
335
640
  }
336
641
  })
@@ -4,6 +4,10 @@
4
4
  "ShareTextPopup": "../ShareTextPopup/index",
5
5
  "van-popup": "@vant/weapp/popup/index",
6
6
  "van-icon": "@vant/weapp/icon/index",
7
- "PosterDom": "../PosterDom/index"
7
+ "PosterDom": "../PosterDom/index",
8
+ "SettingModal": "../components/settingModal/index",
9
+ "SaveTip": "../components/saveTip/index",
10
+ "ShareCircleTip": "../components/shareCircleTip/index",
11
+ "UnauthorizedModal": "../components/unauthorizedModal/index"
8
12
  }
9
13
  }
@@ -8,13 +8,16 @@
8
8
  promotionInfo="{{ promotionInfo }}"
9
9
  resBaseInfo="{{ resBaseInfo }}"
10
10
  isSinglePoster="{{ isSinglePoster }}"
11
+ sensorReportParams="{{ sensorReportParams }}"
12
+ roomInfo="{{ roomInfo }}"
11
13
  bind:drawPosterBegin="drawPosterBegin"
12
14
  bind:drawPosterFulfilled="drawPosterFulfilled"></PosterDom>
13
- <view class="share-content {{isSinglePoster? 'single-poster': '' }}">
15
+ <view class="share-content">
14
16
  <view class="header-close">
15
- <van-icon name="cross" bindtap="onClose" />
17
+ <image bindtap="onClose" src="https://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/b_u_5b2225aa46488_oGKN7IvA/ky1bv4le0k5v.png">
18
+ </image>
16
19
  </view>
17
- <view wx:if="{{!isSinglePoster}}" class="selector">
20
+ <view class="selector">
18
21
  <scroll-view
19
22
  class="poster-list"
20
23
  scroll-x="{{true}}" bindscroll="scroll">
@@ -36,7 +39,6 @@
36
39
  </view>
37
40
  </scroll-view>
38
41
  <view
39
- wx:if="{{!isSinglePoster}}"
40
42
  class="recommend-btn"
41
43
  bindtap="showRecommendPopup">
42
44
  <image
@@ -48,38 +50,45 @@
48
50
  </view>
49
51
  </view>
50
52
  <view class="share-methods" >
51
- <view class="operator">
52
- <button
53
+ <view class="operator" catchtap="clickForwardFriend">
54
+ <button
55
+
53
56
  class="shareBtn"
54
- open-type="share"></button>
57
+ open-type="share">
58
+ <view class="operator-btn">
59
+ <image
60
+ src="https://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/b_u_5b2225aa46488_oGKN7IvA/ky1acpth0n87.png"
61
+ class="wechat">
62
+ </image>
63
+ </view>
64
+ </button>
65
+ <div class="desc">转发给朋友</div>
66
+ </view>
67
+ <view class="operator" catchtap="shareCircle">
55
68
  <view class="operator-btn">
56
- <image
57
- src="../../common/assets/images/wechat.svg"
58
- class="wechat">
59
- </image>
69
+ <image
70
+ src="https://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/b_u_5b2225aa46488_oGKN7IvA/ky1acpth049r.png"
71
+ class="wechat">
72
+ </image>
60
73
  </view>
61
- <span class="desc">
62
- 微信
63
- </span>
74
+ <div class="desc">分享到朋友圈</div>
64
75
  </view>
65
- <view
66
- wx:if="{{isSinglePoster}}"
67
- class="operator">
68
- <view
69
- class="operator-btn"
70
- bindtap="showRecommendPopup">
71
- <image
72
- src="../../common/assets/images/recommend_with_bg.png"
73
- class="recommend">
74
- </image>
76
+ <view class="operator" catchtap="savePhoto">
77
+ <view class="operator-btn">
78
+ <image
79
+ src="https://wechatapppro-1252524126.file.myqcloud.com/appAKLWLitn7978/image/b_u_5b2225aa46488_oGKN7IvA/ky1acpt20kmb.png"
80
+ class="wechat">
81
+ </image>
75
82
  </view>
76
- <span class="word">
77
- 推荐语
78
- </span>
83
+ <div class="desc">保存海报</div>
79
84
  </view>
80
85
  </view>
81
86
  </view>
82
87
  </van-popup>
83
- <ShareTextPopup recommendInfo="{{recommendInfo}}" recommendPopupVisible="{{recommendPopupVisible}}" wx:if="{{recommendInfo.length!=0}}" bind:changePopupVisible="changePopupVisible"></ShareTextPopup>
88
+ <SaveTip wx:if="{{isShowSaveTip}}" firstContent="{{firstContent}}" secondContent="{{secondContent}}"/>
89
+ <SettingModal wx:if="{{isShowSettingModal}}" bindclose="closeModal" bindconfirm="confirmModal"/>
90
+ <UnauthorizedModal wx:if="{{isShowUnauthorizedModal}}" bindclose="closeUnauthorizedModal"/>
91
+ <ShareCircleTip wx:if="{{isShowShareCircleTip}}" bindclose="closeShareTip"/>
92
+ <ShareTextPopup recommendInfo="{{recommendInfo}}" recommendPopupVisible="{{recommendPopupVisible}}" wx:if="{{recommendInfo.length!=0}}" bind:changePopupVisible="changePopupVisible"></ShareTextPopup>
84
93
  </view>
85
94
 
@@ -9,13 +9,13 @@
9
9
  }
10
10
  .popUp .share-content {
11
11
  box-sizing: border-box;
12
- height: 426rpx;
12
+ height: 480rpx;
13
13
  width: 100%;
14
14
  background-color: #ffffff;
15
15
  border-radius: 16rpx;
16
16
  }
17
17
  .popUp .share-content .header-close {
18
- height: 76rpx;
18
+ height: 72rpx;
19
19
  width: 100%;
20
20
  background-color: #ffffff;
21
21
  display: flex;
@@ -23,6 +23,10 @@
23
23
  justify-content: flex-end;
24
24
  align-items: center;
25
25
  }
26
+ .popUp .share-content .header-close image {
27
+ width: 32rpx;
28
+ height: 32rpx;
29
+ }
26
30
  .popUp .share-content .selector {
27
31
  display: flex;
28
32
  align-items: flex-end;
@@ -80,6 +84,7 @@
80
84
  flex-direction: column;
81
85
  justify-content: center;
82
86
  align-items: center;
87
+ padding-left: 10rpx;
83
88
  }
84
89
  .popUp .share-content .selector .recommend-btn .recommend {
85
90
  width: 48rpx;
@@ -92,38 +97,43 @@
92
97
  }
93
98
  .popUp .share-content .share-methods {
94
99
  display: flex;
95
- justify-content: space-evenly;
100
+ justify-content: space-around;
96
101
  }
97
102
  .popUp .share-content .share-methods .operator {
98
- padding-top: 32rpx;
99
- display: inline-flex;
103
+ padding-top: 36rpx;
104
+ display: flex;
105
+ flex-direction: column;
100
106
  align-items: center;
101
107
  justify-content: center;
108
+ font-size: 24rpx;
102
109
  }
103
110
  .popUp .share-content .share-methods .operator .shareBtn {
104
- width: 150rpx;
105
- height: 96rpx;
106
- position: absolute;
111
+ display: flex;
112
+ flex-direction: column;
113
+ width: auto;
114
+ height: auto;
115
+ /* position: absolute; */
107
116
  border-color: transparent;
108
117
  background-color: transparent;
118
+ line-height: 0;
109
119
  }
110
120
  .popUp .share-content .share-methods .operator .shareBtn::after {
111
121
  border: none;
112
122
  }
113
123
  .popUp .share-content .share-methods .operator .operator-btn {
124
+ color: #333333;
125
+ /* margin-left: 16rpx; */
114
126
  width: 96rpx;
115
127
  height: 96rpx;
116
128
  }
117
129
  .popUp .share-content .share-methods .operator .operator-btn .wechat,
118
130
  .popUp .share-content .share-methods .operator .operator-btn .recommend {
119
- width: 100%;
120
- height: 100%;
131
+ width: 96rpx;
132
+ height: 96rpx;
121
133
  }
122
134
  .popUp .share-content .share-methods .operator .desc,
123
135
  .popUp .share-content .share-methods .operator .word {
124
- font-size: 24rpx;
125
- color: #333333;
126
- margin-left: 16rpx;
136
+ margin-top: 12rpx;
127
137
  }
128
138
  .popUp .share-content .share-methods .operator.vertical {
129
139
  flex-direction: column;
@@ -177,3 +187,7 @@
177
187
  font-weight: 500;
178
188
  font-size: 28rpx;
179
189
  }
190
+ .van-toast {
191
+ width: 568rpx;
192
+ margin: 0 auto;
193
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -20,13 +20,13 @@ Component(
20
20
  return data.resultInfo.is_win
21
21
  }
22
22
  },
23
- observers: {
24
- visible(val) {
25
- if (val && this.data.isWin) {
26
- this.reportData()
27
- }
28
- }
29
- },
23
+ // observers: {
24
+ // visible(val) {
25
+ // if (val && this.data.isWin) {
26
+ // this.reportData()
27
+ // }
28
+ // }
29
+ // },
30
30
  lifetimes: {
31
31
  attached() {}
32
32
  },
@@ -36,21 +36,21 @@ Component(
36
36
  type: visible ? 'show_lottery_result' : 'hide_lottery_result'
37
37
  })
38
38
  },
39
- reportData() {
40
- const data = {
41
- page_id: 'e_alive#mini#first#alive_room',
42
- page_name: this.data.baseInfo.title,
43
- page_module: '中奖页面',
44
- l_program: '鹅直播',
45
- current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
46
- type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
47
- h_live_state: this.data.baseInfo.alive_state,
48
- c_user_id: this.data.baseInfo.user_id,
49
- app_id: this.data.baseInfo.app_id
50
- }
51
- sensorLog.sensors.track('view_page', data)
52
- console.log('reportData:', data)
53
- }
39
+ // reportData() {
40
+ // const data = {
41
+ // page_id: 'e_alive#mini#first#alive_room',
42
+ // page_name: this.data.baseInfo.title,
43
+ // page_module: '中奖页面',
44
+ // l_program: '鹅直播',
45
+ // current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
46
+ // type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
47
+ // h_live_state: this.data.baseInfo.alive_state,
48
+ // c_user_id: this.data.baseInfo.user_id,
49
+ // app_id: this.data.baseInfo.app_id
50
+ // }
51
+ // sensorLog.sensors.track('view_page', data)
52
+ // console.log('reportData:', data)
53
+ // }
54
54
  }
55
55
  })
56
56
  )