xiaoe_mp_npm 0.1.4 → 0.1.7
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.
- package/miniprogram_dist/SharePoster/PosterDom/index.js +37 -2
- package/miniprogram_dist/SharePoster/PosterDom/index.wxml +2 -2
- package/miniprogram_dist/SharePoster/PosterDom/index.wxss +3 -3
- package/miniprogram_dist/SharePoster/components/saveTip/index.js +40 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.less +0 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.wxml +6 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.wxss +21 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.js +38 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.less +0 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.wxml +9 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.wxss +45 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.js +35 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxml +5 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxss +35 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.js +35 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxml +11 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxss +51 -0
- package/miniprogram_dist/SharePoster/sharePopup/index.js +327 -5
- package/miniprogram_dist/SharePoster/sharePopup/index.json +5 -1
- package/miniprogram_dist/SharePoster/sharePopup/index.wxml +37 -28
- package/miniprogram_dist/SharePoster/sharePopup/index.wxss +27 -13
- package/package.json +1 -1
- package/src/SharePoster/PosterDom/index.js +37 -2
- package/src/SharePoster/PosterDom/index.wxml +2 -2
- package/src/SharePoster/PosterDom/index.wxss +3 -3
- package/src/SharePoster/components/saveTip/index.js +40 -0
- package/src/SharePoster/components/saveTip/index.json +5 -0
- package/src/SharePoster/components/saveTip/index.less +0 -0
- package/src/SharePoster/components/saveTip/index.wxml +6 -0
- package/src/SharePoster/components/saveTip/index.wxss +21 -0
- package/src/SharePoster/components/settingModal/index.js +38 -0
- package/src/SharePoster/components/settingModal/index.json +5 -0
- package/src/SharePoster/components/settingModal/index.less +0 -0
- package/src/SharePoster/components/settingModal/index.wxml +9 -0
- package/src/SharePoster/components/settingModal/index.wxss +46 -0
- package/src/SharePoster/components/shareCircleTip/index.js +35 -0
- package/src/SharePoster/components/shareCircleTip/index.json +5 -0
- package/src/SharePoster/components/shareCircleTip/index.wxml +5 -0
- package/src/SharePoster/components/shareCircleTip/index.wxss +35 -0
- package/src/SharePoster/components/unauthorizedModal/index.js +35 -0
- package/src/SharePoster/components/unauthorizedModal/index.json +5 -0
- package/src/SharePoster/components/unauthorizedModal/index.wxml +11 -0
- package/src/SharePoster/components/unauthorizedModal/index.wxss +52 -0
- package/src/SharePoster/sharePopup/index.js +327 -5
- package/src/SharePoster/sharePopup/index.json +5 -1
- package/src/SharePoster/sharePopup/index.wxml +37 -28
- 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.
|
|
109
|
-
|
|
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,192 @@ 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.data.isAndroid) {
|
|
545
|
+
// 判断是否支持该api
|
|
546
|
+
if (wx.getAppAuthorizeSetting) {
|
|
547
|
+
const appAuthorizeSetting = wx.getAppAuthorizeSetting()
|
|
548
|
+
if(appAuthorizeSetting.albumAuthorized === 'denied') {
|
|
549
|
+
// toast提示
|
|
550
|
+
this.setData({
|
|
551
|
+
isShowUnauthorizedModal: true
|
|
552
|
+
})
|
|
553
|
+
wx.hideLoading()
|
|
554
|
+
return
|
|
555
|
+
}
|
|
556
|
+
} else {
|
|
557
|
+
wx.hideLoading()
|
|
558
|
+
// 提示升级微信
|
|
559
|
+
this.setData({
|
|
560
|
+
firstContent: '当前微信版本版本过低,请升级后再使用',
|
|
561
|
+
secondContent: '可先长按保存海报再进行分享~',
|
|
562
|
+
isShowSaveTip: true,
|
|
563
|
+
}, ()=>{
|
|
564
|
+
setTimeout(()=>{
|
|
565
|
+
this.setData({
|
|
566
|
+
isShowSaveTip: false
|
|
567
|
+
})
|
|
568
|
+
}, 2000)
|
|
569
|
+
})
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
wx.getSetting({
|
|
573
|
+
success(res) {
|
|
574
|
+
wx.hideLoading()
|
|
575
|
+
console.log(res, res.authSetting['scope.writePhotosAlbum'])
|
|
576
|
+
//判断是否已授权
|
|
577
|
+
if (!res.authSetting['scope.writePhotosAlbum']) {
|
|
578
|
+
wx.authorize({
|
|
579
|
+
scope: 'scope.writePhotosAlbum',
|
|
580
|
+
success() {
|
|
581
|
+
//授权成功
|
|
582
|
+
self.canSavePhoto(type)
|
|
583
|
+
},
|
|
584
|
+
fail() {
|
|
585
|
+
//未授权
|
|
586
|
+
self.setData({
|
|
587
|
+
isShowSettingModal: true
|
|
588
|
+
})
|
|
589
|
+
}
|
|
590
|
+
})
|
|
591
|
+
}else{
|
|
592
|
+
//已授权直接保存图片
|
|
593
|
+
self.canSavePhoto(type)
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
})
|
|
597
|
+
},
|
|
598
|
+
// type: save 点击保存海报 提示有区别
|
|
599
|
+
canSavePhoto(type){
|
|
600
|
+
let imgSrc = this.data.selectItem
|
|
601
|
+
if(!imgSrc) {
|
|
602
|
+
wx.showToast({
|
|
603
|
+
title: '海报未加载完成,请重试'
|
|
604
|
+
})
|
|
605
|
+
wx.hideLoading()
|
|
606
|
+
return
|
|
607
|
+
}
|
|
608
|
+
const that = this
|
|
609
|
+
//图片保存到本地
|
|
610
|
+
wx.saveImageToPhotosAlbum({
|
|
611
|
+
filePath: imgSrc,
|
|
612
|
+
success(data) {
|
|
613
|
+
if(type === 'share') {
|
|
614
|
+
that.setData({
|
|
615
|
+
firstContent: '海报已保存至相册',
|
|
616
|
+
secondContent: '快去朋友圈分享吧~',
|
|
617
|
+
isShowSaveTip: true,
|
|
618
|
+
showPopup: false
|
|
619
|
+
}, ()=>{
|
|
620
|
+
that.triggerEvent('changePosterStatus',false)
|
|
621
|
+
setTimeout(()=>{
|
|
622
|
+
that.setData({
|
|
623
|
+
isShowSaveTip: false
|
|
624
|
+
})
|
|
625
|
+
}, 1000)
|
|
626
|
+
})
|
|
627
|
+
} else {
|
|
628
|
+
that.triggerEvent('changePosterStatus',false)
|
|
629
|
+
that.setData({
|
|
630
|
+
showPopup: false
|
|
631
|
+
})
|
|
632
|
+
wx.showToast({
|
|
633
|
+
title: '保存成功',
|
|
634
|
+
icon: 'success'
|
|
635
|
+
})
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
fail(err) {
|
|
639
|
+
console.log('保存失败');
|
|
640
|
+
console.log(err)
|
|
641
|
+
if (err.errMsg == "saveImageToPhotosAlbum:fail auth deny") {
|
|
642
|
+
//在这种逻辑下这种错误不会出现
|
|
643
|
+
console.log("未授权")
|
|
644
|
+
} else if (err.errMsg == 'saveImageToPhotosAlbum:fail cancel'){
|
|
645
|
+
//用户点击了取消
|
|
646
|
+
console.log('用户点击了取消')
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
complete(res) {
|
|
650
|
+
//结束回调 需要清空判断点击分享按钮的状态
|
|
651
|
+
that.setData({
|
|
652
|
+
isClickShareCircle: false
|
|
653
|
+
})
|
|
654
|
+
}
|
|
655
|
+
})
|
|
656
|
+
},
|
|
335
657
|
}
|
|
336
658
|
})
|
|
@@ -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
|
|
15
|
+
<view class="share-content">
|
|
14
16
|
<view class="header-close">
|
|
15
|
-
<
|
|
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
|
|
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"
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
<
|
|
62
|
-
微信
|
|
63
|
-
</span>
|
|
74
|
+
<div class="desc">分享到朋友圈</div>
|
|
64
75
|
</view>
|
|
65
|
-
<view
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
<
|
|
77
|
-
推荐语
|
|
78
|
-
</span>
|
|
83
|
+
<div class="desc">保存海报</div>
|
|
79
84
|
</view>
|
|
80
85
|
</view>
|
|
81
86
|
</view>
|
|
82
87
|
</van-popup>
|
|
83
|
-
|
|
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:
|
|
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:
|
|
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-
|
|
100
|
+
justify-content: space-around;
|
|
96
101
|
}
|
|
97
102
|
.popUp .share-content .share-methods .operator {
|
|
98
|
-
padding-top:
|
|
99
|
-
display:
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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:
|
|
120
|
-
height:
|
|
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
|
-
|
|
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
|
+
}
|