xiaoe_mp_npm 0.2.2-t220110 → 0.2.2

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 (144) hide show
  1. package/.gitlab-ci.yml +2 -2
  2. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.js +1 -1
  3. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.less +4 -4
  4. package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxss +4 -4
  5. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +11 -0
  6. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js +2 -20
  7. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.js +2 -1
  8. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.less +18 -3
  9. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxml +4 -2
  10. package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxss +17 -2
  11. package/miniprogram_dist/CouponList/components/CouponItem/index.js +2 -1
  12. package/miniprogram_dist/CouponList/couponColumn/index.js +3 -0
  13. package/miniprogram_dist/CouponList/couponColumn/index.wxml +1 -0
  14. package/miniprogram_dist/GoodsItem/index.js +9 -25
  15. package/miniprogram_dist/GoodsItem/index.wxml +2 -2
  16. package/miniprogram_dist/LiveGoodsList/index.js +8 -4
  17. package/miniprogram_dist/LiveGoodsList/index.wxml +2 -2
  18. package/miniprogram_dist/Lottery/components/AddressCollection/index.js +11 -8
  19. package/miniprogram_dist/Lottery/components/CommonPopup/index.less +4 -4
  20. package/miniprogram_dist/Lottery/components/CommonPopup/index.wxss +4 -4
  21. package/miniprogram_dist/Lottery/components/LotteryInfo/index.js +17 -11
  22. package/miniprogram_dist/Lottery/components/LotteryInfo/index.wxml +2 -2
  23. package/miniprogram_dist/Lottery/components/LotteryPopups/index.js +19 -0
  24. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.js +4 -1
  25. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.less +4 -0
  26. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxml +3 -4
  27. package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxss +4 -0
  28. package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.js +2 -1
  29. package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.wxml +2 -2
  30. package/miniprogram_dist/Lottery/components/LotteryResult/index.js +22 -22
  31. package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.wxml +1 -1
  32. package/miniprogram_dist/Lottery/components/NobodyAttend/index.wxml +1 -1
  33. package/miniprogram_dist/Lottery/components/Winners/index.js +3 -1
  34. package/miniprogram_dist/Lottery/components/Winners/index.wxml +2 -1
  35. package/miniprogram_dist/Lottery/constants.js +2 -1
  36. package/miniprogram_dist/Lottery/store/reducer.js +6 -0
  37. package/miniprogram_dist/Lottery/utils.js +4 -0
  38. package/miniprogram_dist/PayModule/index/index.js +1 -0
  39. package/miniprogram_dist/SharePoster/PosterDom/index.js +37 -2
  40. package/miniprogram_dist/SharePoster/PosterDom/index.wxml +2 -2
  41. package/miniprogram_dist/SharePoster/PosterDom/index.wxss +3 -3
  42. package/miniprogram_dist/SharePoster/components/saveTip/index.js +40 -0
  43. package/miniprogram_dist/SharePoster/components/saveTip/index.json +5 -0
  44. package/miniprogram_dist/SharePoster/components/saveTip/index.less +0 -0
  45. package/miniprogram_dist/SharePoster/components/saveTip/index.wxml +6 -0
  46. package/miniprogram_dist/SharePoster/components/saveTip/index.wxss +21 -0
  47. package/miniprogram_dist/SharePoster/components/settingModal/index.js +38 -0
  48. package/miniprogram_dist/SharePoster/components/settingModal/index.json +5 -0
  49. package/miniprogram_dist/SharePoster/components/settingModal/index.less +0 -0
  50. package/miniprogram_dist/SharePoster/components/settingModal/index.wxml +9 -0
  51. package/miniprogram_dist/SharePoster/components/settingModal/index.wxss +45 -0
  52. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.js +35 -0
  53. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.json +5 -0
  54. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxml +5 -0
  55. package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxss +35 -0
  56. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.js +35 -0
  57. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.json +5 -0
  58. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxml +11 -0
  59. package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxss +51 -0
  60. package/miniprogram_dist/SharePoster/sharePopup/index.js +327 -5
  61. package/miniprogram_dist/SharePoster/sharePopup/index.json +5 -1
  62. package/miniprogram_dist/SharePoster/sharePopup/index.wxml +37 -28
  63. package/miniprogram_dist/SharePoster/sharePopup/index.wxss +27 -13
  64. package/miniprogram_dist/Sku/commSelect/index.js +2 -1
  65. package/miniprogram_dist/Sku/index/index.js +2 -1
  66. package/miniprogram_dist/TeacherGoodsList/index.js +3 -3
  67. package/miniprogram_dist/common/api/confirmOrder.js +3 -3
  68. package/miniprogram_dist/common/api/pay.js +2 -2
  69. package/miniprogram_dist/common/api/payComplete.js +1 -1
  70. package/miniprogram_dist/common/api/sku.js +4 -4
  71. package/miniprogram_dist/common/utils/constants.js +2 -0
  72. package/miniprogram_dist/common/utils/helper.js +2 -1
  73. package/package.json +2 -2
  74. package/src/AliveInvite/LiveRoomVertical/index.js +1 -1
  75. package/src/AliveInvite/LiveRoomVertical/index.less +4 -4
  76. package/src/AliveInvite/LiveRoomVertical/index.wxss +4 -4
  77. package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +11 -0
  78. package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js +2 -20
  79. package/src/ConfirmOrder/components/GoodsInfo/index.js +2 -1
  80. package/src/ConfirmOrder/components/PickupSelect/index.less +18 -3
  81. package/src/ConfirmOrder/components/PickupSelect/index.wxml +4 -2
  82. package/src/ConfirmOrder/components/PickupSelect/index.wxss +17 -2
  83. package/src/CouponList/components/CouponItem/index.js +2 -1
  84. package/src/CouponList/couponColumn/index.js +3 -0
  85. package/src/CouponList/couponColumn/index.wxml +1 -0
  86. package/src/GoodsItem/index.js +9 -25
  87. package/src/GoodsItem/index.wxml +2 -2
  88. package/src/LiveGoodsList/index.js +8 -4
  89. package/src/LiveGoodsList/index.wxml +2 -2
  90. package/src/Lottery/components/AddressCollection/index.js +11 -8
  91. package/src/Lottery/components/CommonPopup/index.less +4 -4
  92. package/src/Lottery/components/CommonPopup/index.wxss +4 -4
  93. package/src/Lottery/components/LotteryInfo/index.js +17 -11
  94. package/src/Lottery/components/LotteryInfo/index.wxml +2 -2
  95. package/src/Lottery/components/LotteryPopups/index.js +19 -0
  96. package/src/Lottery/components/LotteryResult/LosingLottery/index.js +4 -1
  97. package/src/Lottery/components/LotteryResult/LosingLottery/index.less +4 -0
  98. package/src/Lottery/components/LotteryResult/LosingLottery/index.wxml +3 -4
  99. package/src/Lottery/components/LotteryResult/LosingLottery/index.wxss +4 -0
  100. package/src/Lottery/components/LotteryResult/WinLottery/index.js +2 -1
  101. package/src/Lottery/components/LotteryResult/WinLottery/index.wxml +2 -2
  102. package/src/Lottery/components/LotteryResult/index.js +22 -22
  103. package/src/Lottery/components/MerchantContactInfo/index.wxml +1 -1
  104. package/src/Lottery/components/NobodyAttend/index.wxml +1 -1
  105. package/src/Lottery/components/Winners/index.js +3 -1
  106. package/src/Lottery/components/Winners/index.wxml +2 -1
  107. package/src/Lottery/constants.js +2 -1
  108. package/src/Lottery/store/reducer.js +6 -0
  109. package/src/Lottery/utils.js +4 -0
  110. package/src/PayModule/index/index.js +1 -0
  111. package/src/SharePoster/PosterDom/index.js +37 -2
  112. package/src/SharePoster/PosterDom/index.wxml +2 -2
  113. package/src/SharePoster/PosterDom/index.wxss +3 -3
  114. package/src/SharePoster/components/saveTip/index.js +40 -0
  115. package/src/SharePoster/components/saveTip/index.json +5 -0
  116. package/src/SharePoster/components/saveTip/index.less +0 -0
  117. package/src/SharePoster/components/saveTip/index.wxml +6 -0
  118. package/src/SharePoster/components/saveTip/index.wxss +21 -0
  119. package/src/SharePoster/components/settingModal/index.js +38 -0
  120. package/src/SharePoster/components/settingModal/index.json +5 -0
  121. package/src/SharePoster/components/settingModal/index.less +0 -0
  122. package/src/SharePoster/components/settingModal/index.wxml +9 -0
  123. package/src/SharePoster/components/settingModal/index.wxss +46 -0
  124. package/src/SharePoster/components/shareCircleTip/index.js +35 -0
  125. package/src/SharePoster/components/shareCircleTip/index.json +5 -0
  126. package/src/SharePoster/components/shareCircleTip/index.wxml +5 -0
  127. package/src/SharePoster/components/shareCircleTip/index.wxss +35 -0
  128. package/src/SharePoster/components/unauthorizedModal/index.js +35 -0
  129. package/src/SharePoster/components/unauthorizedModal/index.json +5 -0
  130. package/src/SharePoster/components/unauthorizedModal/index.wxml +11 -0
  131. package/src/SharePoster/components/unauthorizedModal/index.wxss +52 -0
  132. package/src/SharePoster/sharePopup/index.js +327 -5
  133. package/src/SharePoster/sharePopup/index.json +5 -1
  134. package/src/SharePoster/sharePopup/index.wxml +37 -28
  135. package/src/SharePoster/sharePopup/index.wxss +27 -13
  136. package/src/Sku/commSelect/index.js +2 -1
  137. package/src/Sku/index/index.js +2 -1
  138. package/src/TeacherGoodsList/index.js +3 -3
  139. package/src/common/api/confirmOrder.js +3 -3
  140. package/src/common/api/pay.js +2 -2
  141. package/src/common/api/payComplete.js +1 -1
  142. package/src/common/api/sku.js +4 -4
  143. package/src/common/utils/constants.js +2 -0
  144. package/src/common/utils/helper.js +2 -1
@@ -6,12 +6,11 @@
6
6
  <image class="losing-icon" mode="widthFix" src="{{remotePic.losing_lottery}}" />
7
7
  <view class="check-winners">
8
8
  <block wx:if="{{resultInfo.prize_activity_num}}">
9
- <text>共{{resultInfo.prize_activity_num}}人参与,</text>
9
+ <text wx:if="{{isShowParticipant}}">共{{resultInfo.prize_activity_num}}人参与,</text>
10
10
  <view class="inner" bind:tap="checkWinners">
11
- <text>查看中奖名单</text>
12
- <image class="right-arrow-icon" src="../../../../common/assets/images/lottery/black-right-arrow.png" />
11
+ <text class="inner-under-line">查看中奖名单</text>
13
12
  </view>
14
13
  </block>
15
- <text wx:else>本场抽奖无人参与</text>
14
+ <text wx:else>本次抽奖无人中奖</text>
16
15
  </view>
17
16
  </view>
@@ -38,6 +38,10 @@
38
38
  display: inline-flex;
39
39
  align-items: center;
40
40
  }
41
+ .losing-lottery .check-winners .inner .inner-under-line {
42
+ text-decoration: underline;
43
+ color: #2d8cf0;
44
+ }
41
45
  .losing-lottery .check-winners .inner .right-arrow-icon {
42
46
  width: 40rpx;
43
47
  height: 40rpx;
@@ -13,7 +13,8 @@ const computedBehavior = require('miniprogram-computed').behavior
13
13
  const mapState = state => ({
14
14
  baseInfo: state.baseInfo,
15
15
  lotteryStatus: state.lotteryStatus,
16
- participationCondition: state.participationCondition
16
+ participationCondition: state.participationCondition,
17
+ isShowParticipant: state.isShowParticipant
17
18
  })
18
19
  Component(
19
20
  connect(mapState)({
@@ -2,13 +2,13 @@
2
2
  <image class="title" src="{{remotePic.winner_background_new_title}}" />
3
3
  <view class="check-winners">
4
4
  <block wx:if="{{resultInfo.prize_activity_num}}">
5
- <text>共{{resultInfo.prize_activity_num}}人参与,</text>
5
+ <text wx:if="{{isShowParticipant}}">共{{resultInfo.prize_activity_num}}人参与,</text>
6
6
  <view class="inner" bind:tap="checkWinners">
7
7
  <text>查看中奖名单</text>
8
8
  <image class="right-arrow-icon" src="../../../../common/assets/images/lottery/white_right_arrow.png" />
9
9
  </view>
10
10
  </block>
11
- <text wx:else>本场抽奖无人参与</text>
11
+ <text wx:else>本次抽奖无人中奖</text>
12
12
  </view>
13
13
  <view class="prize-card-box">
14
14
  <prize-card prize="{{resultInfo.win_product_info}}"></prize-card>
@@ -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
  )
@@ -3,7 +3,7 @@
3
3
  <text class="title">奖品领取方式</text>
4
4
  <text class="prompt">请通过以下方式联系兑奖</text>
5
5
  <view wx:if="{{hasQrcode}}" class="qrcode-box {{hasWxNumber ? '' : 'swell'}}">
6
- <image class="qrcode" mode="widthFix" src="{{contactInfo.qrcode}}" />
6
+ <image class="qrcode" mode="widthFix" src="{{contactInfo.qrcode}}" show-menu-by-longpress />
7
7
  <text class="qrcode-prompt">长按识别二维码,或保存图片</text>
8
8
  </view>
9
9
  <block wx:if="{{hasWxNumber}}">
@@ -2,7 +2,7 @@
2
2
  <view class="nobody-attend">
3
3
  <view class="title-box">
4
4
  <image class="title" src="{{remotePic.losing_lottery_title}}" />
5
- <view class="desc">本场抽奖无人参与</view>
5
+ <view class="desc">本次抽奖无人中奖</view>
6
6
  </view>
7
7
  <view class="icon-box">
8
8
  <image class="losing-icon" mode="widthFix" src="{{remotePic.losing_lottery}}" />
@@ -10,7 +10,9 @@ const mapState = state => ({
10
10
  prizeId: state.currentPrizeId,
11
11
  backTo: state.winnersBackTo,
12
12
  myLotteryVisible: state.myLotteryVisible,
13
- myLotteryContent: state.myLotteryContent
13
+ myLotteryContent: state.myLotteryContent,
14
+ isShowParticipant: state.isShowParticipant
15
+
14
16
  })
15
17
  Component(
16
18
  connect(mapState)({
@@ -14,7 +14,8 @@
14
14
  <view class="winner-number">
15
15
  <image class="emoji-icon" src="../../../common/assets/images/lottery/winner_list_smile_icon.svg" />
16
16
  <view class="message-box">
17
- <text class="message">共{{winnersInfo.prize_activity_num}}人参与,{{winnersInfo.count}}人中奖</text>
17
+ <text class="message" wx:if="{{isShowParticipant}}">共{{winnersInfo.prize_activity_num}}人参与,</text>
18
+ <text class="message">{{winnersInfo.count}}人中奖</text>
18
19
  </view>
19
20
  </view>
20
21
  <scroll-view scroll-y="true" style="height: calc(100% - 198rpx);">
@@ -114,5 +114,6 @@ export const ACTION_TYPE = {
114
114
  SET_ADDRESS_QUERY: 'set_address_query',
115
115
  SET_ADDRESS_INFO: 'set_address_info',
116
116
  SET_ADDRESS_SUBMIT_CALLBACK: 'set_address_submit_callback',
117
- SET_PARTICIPATION_CONDITION: 'set_participation_condition'
117
+ SET_PARTICIPATION_CONDITION: 'set_participation_condition',
118
+ IS_SHOW_PARTICIPANT: 'is_show_participant'
118
119
  }
@@ -182,6 +182,12 @@ export default function reducer(state, action) {
182
182
  participationCondition: action.payload
183
183
  }
184
184
 
185
+ case ACTION_TYPE.IS_SHOW_PARTICIPANT:
186
+ return {
187
+ ...state,
188
+ isShowParticipant: action.payload
189
+ }
190
+
185
191
  default:
186
192
  return state
187
193
  }
@@ -62,3 +62,7 @@ export function delay(duration = 0) {
62
62
  }, duration)
63
63
  })
64
64
  }
65
+
66
+ export function hasKey(obj) {
67
+ return obj && Object.keys(obj).length > 0
68
+ }
@@ -198,6 +198,7 @@ Component({
198
198
  that.queryOrderState({
199
199
  order_id: that.data.payResult.order_id,
200
200
  // front_callback: JSON.stringify(res || {}),
201
+ app_id: that.properties.aliveInfo.app_id,
201
202
  front_callback: '{}',
202
203
  }).then((data) => {
203
204
  that.resolvePayResult(data.data);
@@ -1,6 +1,7 @@
1
1
  import objToPoster from '../createPoster/index'
2
2
  import { posterInfo } from '../libs/positionMap';
3
3
  import { TYPES,POSTER_CLS, } from '../libs/constant';
4
+ import { sensorLog } from "live-mp-tools";
4
5
  const computedBehavior = require('miniprogram-computed').behavior;
5
6
  const POSTER_WIDTH = 750;
6
7
  const POSTER_HEIGHT = 1344;
@@ -39,6 +40,14 @@ Component({
39
40
  showPopup:{
40
41
  type: Boolean,
41
42
  value: false
43
+ },
44
+ sensorReportParams: {
45
+ type: Object,
46
+ value: () => {}
47
+ },
48
+ roomInfo: {
49
+ type: Object,
50
+ value: () => {}
42
51
  }
43
52
  },
44
53
  observers: {
@@ -88,6 +97,7 @@ Component({
88
97
  posterItemData:{},
89
98
  posterStyle:"",
90
99
  defaultAvatarUrl: 'https://wechatavator-1252524126.cos.ap-shanghai.myqcloud.com/dasda.jpg',
100
+ longPressCount: 0
91
101
  },
92
102
  computed:{
93
103
  posterData(data) {
@@ -180,6 +190,31 @@ Component({
180
190
  * 组件的方法列表
181
191
  */
182
192
  methods: {
193
+ longPress() {
194
+ try{
195
+ let params = {
196
+ page_id: 'e_alive#mini#first#alive_room',
197
+ l_program: '鹅直播',
198
+ page_name: '直播间页面',
199
+ page_path: '鹅直播#小程序#首页#直播间页面',
200
+ app_id: this.properties.roomInfo.appId,
201
+ page_button: "长按保存海报",
202
+ c_user_id: this.properties.roomInfo.userId,
203
+ union_id:this.properties.roomInfo.unionId,
204
+ resource_id: this.properties.roomInfo.aliveId,
205
+ current_role:this.properties.sensorReportParams.current_role,
206
+ type:this.properties.sensorReportParams.type,
207
+ cmm1:this.properties.sensorReportParams.alive_type,
208
+ cmm2:this.properties.sensorReportParams.version_type,
209
+ comm2:this.properties.sensorReportParams.pay_type,
210
+ cmm3:'鹅直播增长'
211
+ }
212
+ sensorLog.sensors.track('click_butt', params);
213
+ console.log("当前长按了 保存图片" + Number(++this.data.longPressCount) +"次",params);
214
+ }catch(e) {
215
+ console.log("埋点", e)
216
+ }
217
+ },
183
218
  getPosterData() {
184
219
  let temInfo = this.data.posterItemData;
185
220
  let defaultPoster = this.data.posterMapInfo[this.data.posterItemData.default_poster_mark];
@@ -311,7 +346,7 @@ Component({
311
346
  isSwitchBtnShow: isShow,
312
347
  isVisible: false
313
348
  })
314
- that.triggerEvent('drawPosterFulfilled');
349
+ that.triggerEvent('drawPosterFulfilled', that.imageUrl);
315
350
  }
316
351
  }else{
317
352
  that.wxWriteFile(response,random)
@@ -365,7 +400,7 @@ Component({
365
400
  this.setData({
366
401
  isSwitchBtnShow:isShow
367
402
  })
368
- this.triggerEvent('drawPosterFulfilled');
403
+ this.triggerEvent('drawPosterFulfilled', this.data.imageUrl);
369
404
  },
370
405
  fail:(error)=>{
371
406
  console.log(error);
@@ -2,8 +2,8 @@
2
2
  <view>
3
3
  <canvas class="canvasPosition" wx-if="{{isVisible}}" type="2d" style="height: 1344px; width:750px;" id='customCanvas'></canvas>
4
4
  </view>
5
- <view class="posterDetail {{isSinglePoster? 'single-poster': '' }}">
6
- <image lazy-load="true" class="posterContent" src="{{imageUrl}}" show-menu-by-longpress="true" alt=""></image>
5
+ <view class="posterDetail">
6
+ <image lazy-load="true" class="posterContent" src="{{imageUrl}}" show-menu-by-longpress="true" alt="" bindlongpress="longPress"></image>
7
7
  <view class="saveDes">
8
8
  <image class="finger-print" src="../../common/assets/images/fingerprint.png"></image>
9
9
  <view>长按上方图片保存并分享</view>
@@ -7,15 +7,15 @@
7
7
  position: fixed;
8
8
  left: 50%;
9
9
  transform: translateX(-50%);
10
- bottom: 470rpx;
10
+ bottom: 512rpx;
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  }
14
14
  .posterDetail .posterContent {
15
- height: calc(100vh - 570rpx);
15
+ height: calc(100vh - 616rpx);
16
16
  border-radius: 16rpx;
17
17
  box-shadow: 0rpx 12rpx 20rpx 0rpx rgba(0, 0, 0, 0.08);
18
- width: calc((100vh - 570rpx)*9/16);
18
+ width: calc((100vh - 616rpx)*9/16);
19
19
  }
20
20
  .posterDetail .saveDes .finger-print,
21
21
  .posterDetail .switch-motive-btn .finger-print,
@@ -0,0 +1,40 @@
1
+ Component({
2
+ /**
3
+ * 组件的属性列表
4
+ */
5
+ properties: {
6
+ firstContent: {
7
+ type: String,
8
+ value: ''
9
+ },
10
+ secondContent: {
11
+ type: String,
12
+ value: ''
13
+ }
14
+ },
15
+
16
+ /**
17
+ * 组件的初始数据
18
+ */
19
+ data: {
20
+ },
21
+
22
+ /**
23
+ * 生命周期函数--监听页面显示
24
+ */
25
+ ready: function () {
26
+
27
+ },
28
+
29
+ /**
30
+ * 计算属性
31
+ */
32
+ computed: {
33
+ },
34
+
35
+ /**
36
+ * 组件的方法列表
37
+ */
38
+ methods: {
39
+ }
40
+ })
@@ -0,0 +1,5 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
+ }
@@ -0,0 +1,6 @@
1
+ <view class="setting-modal">
2
+ <view class="content-box">
3
+ <view class="first-line">{{firstContent}}</view>
4
+ <view class="second-line">{{secondContent}}</view>
5
+ </view>
6
+ </view>
@@ -0,0 +1,21 @@
1
+ .setting-modal {
2
+ position: fixed;
3
+ z-index: 999;
4
+ top: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ }
11
+ .content-box {
12
+ background-color: rgba(0, 0, 0, 0.7);
13
+ padding: 24rpx 32rpx;
14
+ border-radius: 8rpx;
15
+ margin-bottom: 176rpx;
16
+ font-size: 28rpx;
17
+ font-weight: 400;
18
+ line-height: 40rpx;
19
+ color: #fff;
20
+ text-align: center;
21
+ }
@@ -0,0 +1,38 @@
1
+ Component({
2
+ /**
3
+ * 组件的属性列表
4
+ */
5
+ properties: {
6
+ },
7
+
8
+ /**
9
+ * 组件的初始数据
10
+ */
11
+ data: {
12
+ },
13
+
14
+ /**
15
+ * 生命周期函数--监听页面显示
16
+ */
17
+ ready: function () {
18
+
19
+ },
20
+
21
+ /**
22
+ * 计算属性
23
+ */
24
+ computed: {
25
+ },
26
+
27
+ /**
28
+ * 组件的方法列表
29
+ */
30
+ methods: {
31
+ closeModal() {
32
+ this.triggerEvent('close')
33
+ },
34
+ confirm(){
35
+ this.triggerEvent('confirm')
36
+ }
37
+ }
38
+ })
@@ -0,0 +1,5 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
+ }
@@ -0,0 +1,9 @@
1
+ <view class="setting-modal" catchtap="closeModal">
2
+ <view class="content-box" catchtap>
3
+ <view class="content">无法访问相册,请前往设置允许鹅直播访问你的照片</view>
4
+ <view class="btn">
5
+ <view class="cancel" catchtap="closeModal">取消</view>
6
+ <view class="confirm" catchtap="confirm">去设置</view>
7
+ </view>
8
+ </view>
9
+ </view>
@@ -0,0 +1,45 @@
1
+ .setting-modal {
2
+ position: fixed;
3
+ z-index: 999;
4
+ top: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background: rgba(0, 0, 0, 0.4);
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ }
12
+ .content-box {
13
+ background-color: #fff;
14
+ width: 576rpx;
15
+ border-radius: 16rpx;
16
+ margin-bottom: 176rpx;
17
+ }
18
+ .content-box .content {
19
+ padding: 48rpx;
20
+ font-size: 28rpx;
21
+ font-weight: 400;
22
+ line-height: 40rpx;
23
+ color: #000;
24
+ text-align: center;
25
+ }
26
+ .content-box .btn {
27
+ display: flex;
28
+ }
29
+ .content-box .btn .cancel,
30
+ .content-box .btn .confirm {
31
+ flex: 1;
32
+ height: 96rpx;
33
+ display: flex;
34
+ justify-content: center;
35
+ align-items: center;
36
+ color: #999;
37
+ font-weight: 500;
38
+ }
39
+ .content-box .btn .cancel {
40
+ box-shadow: inset 0 0.1rpx 0 0 #ebebeb;
41
+ }
42
+ .content-box .btn .confirm {
43
+ color: #1472FF;
44
+ box-shadow: inset 0 0.1rpx 0 0 #ebebeb, inset 0.1rpx 0 0 0 #ebebeb;
45
+ }
@@ -0,0 +1,35 @@
1
+ Component({
2
+ /**
3
+ * 组件的属性列表
4
+ */
5
+ properties: {
6
+ },
7
+
8
+ /**
9
+ * 组件的初始数据
10
+ */
11
+ data: {
12
+ },
13
+
14
+ /**
15
+ * 生命周期函数--监听页面显示
16
+ */
17
+ ready: function () {
18
+
19
+ },
20
+
21
+ /**
22
+ * 计算属性
23
+ */
24
+ computed: {
25
+ },
26
+
27
+ /**
28
+ * 组件的方法列表
29
+ */
30
+ methods: {
31
+ closeModal() {
32
+ this.triggerEvent('close')
33
+ }
34
+ }
35
+ })
@@ -0,0 +1,5 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ <view class="setting-modal" catchtap="closeModal">
2
+ <view class="instructor">
3
+ 点击屏幕右上角「…」将直播间分享到朋友圈
4
+ </view>
5
+ </view>
@@ -0,0 +1,35 @@
1
+ .setting-modal {
2
+ position: fixed;
3
+ z-index: 999;
4
+ top: 0;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ background: rgba(0, 0, 0, 0.4);
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ }
12
+ .instructor {
13
+ position: absolute;
14
+ top: 16rpx;
15
+ color: #fff;
16
+ border-radius: 8rpx;
17
+ background-color: #1472FF;
18
+ padding: 24rpx 32rpx;
19
+ font-size: 28rpx;
20
+ font-weight: 400;
21
+ line-height: 44rpx;
22
+ box-shadow: 0 -4rpx 80rpx 0 rgba(51, 51, 51, 0.2);
23
+ }
24
+ .instructor:after {
25
+ content: '';
26
+ position: absolute;
27
+ top: -30rpx;
28
+ right: 60rpx;
29
+ border: 16rpx solid #1472FF;
30
+ border-color: transparent;
31
+ border-bottom-color: #1472FF;
32
+ }
33
+ .instructor .share-tip {
34
+ width: 624rpx;
35
+ }
@@ -0,0 +1,35 @@
1
+ Component({
2
+ /**
3
+ * 组件的属性列表
4
+ */
5
+ properties: {
6
+ },
7
+
8
+ /**
9
+ * 组件的初始数据
10
+ */
11
+ data: {
12
+ },
13
+
14
+ /**
15
+ * 生命周期函数--监听页面显示
16
+ */
17
+ ready: function () {
18
+
19
+ },
20
+
21
+ /**
22
+ * 计算属性
23
+ */
24
+ computed: {
25
+ },
26
+
27
+ /**
28
+ * 组件的方法列表
29
+ */
30
+ methods: {
31
+ closeModal() {
32
+ this.triggerEvent('close')
33
+ }
34
+ }
35
+ })
@@ -0,0 +1,5 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
+ }
@@ -0,0 +1,11 @@
1
+ <view class="setting-modal" catchtap="closeModal">
2
+ <view class="main-box">
3
+ <view class="content-box" catchtap>
4
+ <view class="title">无法保存</view>
5
+ <view class="content">请在iPhone的“设置-隐私-照片”选项中,允许微信访问你的照片。</view>
6
+ </view>
7
+ <view class="btn">
8
+ <view class="cancel" catchtap="closeModal">好</view>
9
+ </view>
10
+ </view>
11
+ </view>