Commit e2656260c51b7e22025df7d99a0f2100ae01b764
Merge branch 'test' into 'qa'
Test See merge request !688
Showing
12 changed files
with
295 additions
and
160 deletions
components/diy_notice/diy_notice.wxml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | <block wx:if="{{g_filter.has_char(object.wxapp_url,'plugin')>=0}}"> |
4 | 4 | <navigator url="{{object.wxapp_url}}" class="s1_gk_a1 pd_top10" style="background-color: {{object.notice_bgcolor}}"> |
5 | 5 | <view class="big_border"> |
6 | - <image class="image_c" src="/public/static/images/model/notice.png"></image> | |
6 | + <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> | |
7 | 7 | <view class="marquee"> |
8 | 8 | <view class="content"> |
9 | 9 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | <block wx:else> |
19 | 19 | <view data-url="{{object.wxapp_url}}" class="s1_gk_a1 pd_top10" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}"> |
20 | 20 | <view class="big_border"> |
21 | - <image class="image_c" src="/public/static/images/model/notice.png"></image> | |
21 | + <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image> | |
22 | 22 | <view class="marquee"> |
23 | 23 | <view class="content"> |
24 | 24 | <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> | ... | ... |
components/diy_pingd_buy/diy_pingd_buy.wxml
... | ... | @@ -94,7 +94,7 @@ |
94 | 94 | <view class='sp_jgx_p'>¥{{aitem.market_price}}</view> |
95 | 95 | </view> |
96 | 96 | <view class="o1_sj_p" wx:if="{{aitem.end_time>newTime}}"> |
97 | - <image class="time_img" src="/public/static/images/model/time.png"></image> | |
97 | + <image class="time_img" src="{{iurl}}/miniapp/images/time.png"></image> | |
98 | 98 | <block wx:if="{{aitem.djs.day>0 }}">{{aitem.djs.day}}天</block>{{aitem.djs.hou}}时{{aitem.djs.min}}分{{aitem.djs.sec}}秒 |
99 | 99 | </view> |
100 | 100 | ... | ... |
packageA/pages/parseHtml/parseHtml.js
1 | 1 | var WxParse = require('../../../utils/wxParse/wxParse.js'); |
2 | 2 | |
3 | -const app = getApp(); | |
3 | +const app = getApp(); | |
4 | 4 | let self = null; |
5 | 5 | let content_privacy = `<div> |
6 | 6 | <p class="tac font16"><b>隐私政策</b><br /><br /></p> |
... | ... | @@ -235,117 +235,126 @@ let content_use = `<div> |
235 | 235 | |
236 | 236 | Page({ |
237 | 237 | |
238 | - /** | |
239 | - * 页面的初始数据 | |
240 | - */ | |
241 | - data: { | |
242 | - list: null, | |
243 | - isLoading: false, // 检测是否已经发送请求,防止重复发送请求 | |
244 | - noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据 | |
245 | - pageNum: 1, // 当前页数 | |
246 | - }, | |
238 | + /** | |
239 | + * 页面的初始数据 | |
240 | + */ | |
241 | + data: { | |
242 | + list: null, | |
243 | + isLoading: false, // 检测是否已经发送请求,防止重复发送请求 | |
244 | + noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据 | |
245 | + pageNum: 1, // 当前页数 | |
246 | + }, | |
247 | 247 | |
248 | - /** | |
249 | - * 生命周期函数--监听页面加载 | |
250 | - */ | |
251 | - onLoad: function (options) { | |
252 | - self = this; | |
253 | - let title = ''; | |
254 | - let content = ''; | |
255 | - if(options.t == 0) { | |
256 | - title = '用户使用协议'; | |
257 | - content = content_use; | |
258 | - } else if(options.t == 1) { | |
259 | - title = '隐私政策'; | |
260 | - content = content_privacy; | |
261 | - }; | |
262 | - wx.setNavigationBarTitle({ | |
263 | - title: title, | |
264 | - }); | |
248 | + /** | |
249 | + * 生命周期函数--监听页面加载 | |
250 | + */ | |
251 | + onLoad: function (options) { | |
252 | + self = this; | |
253 | + //-- 获取一下基础参数 -- | |
254 | + getApp().getConfig2(function (res) { | |
255 | + if(res.reg_rule){ content_use=res.reg_rule; } | |
256 | + if(res.reg_privacy){ content_privacy=res.reg_privacy; } | |
265 | 257 | |
266 | - WxParse.wxParse('content', 'html', content, self); | |
267 | - | |
268 | - }, | |
258 | + let title = ''; | |
259 | + let content = ''; | |
260 | + if (options.t == 0) { | |
261 | + title = '用户使用协议'; | |
262 | + content = content_use; | |
263 | + } else if (options.t == 1) { | |
264 | + title = '隐私政策'; | |
265 | + content = content_privacy; | |
266 | + } | |
267 | + ; | |
268 | + wx.setNavigationBarTitle({ | |
269 | + title: title, | |
270 | + }); | |
269 | 271 | |
270 | - /** | |
271 | - * 生命周期函数--监听页面初次渲染完成 | |
272 | - */ | |
273 | - onReady: function () { | |
272 | + WxParse.wxParse('content', 'html', content, self); | |
274 | 273 | |
275 | - }, | |
274 | + }, 1) | |
276 | 275 | |
277 | - /** | |
278 | - * 生命周期函数--监听页面显示 | |
279 | - */ | |
280 | - onShow: function () { | |
276 | + }, | |
281 | 277 | |
282 | - }, | |
278 | + /** | |
279 | + * 生命周期函数--监听页面初次渲染完成 | |
280 | + */ | |
281 | + onReady: function () { | |
283 | 282 | |
284 | - /** | |
285 | - * 生命周期函数--监听页面隐藏 | |
286 | - */ | |
287 | - onHide: function () { | |
283 | + }, | |
288 | 284 | |
289 | - }, | |
285 | + /** | |
286 | + * 生命周期函数--监听页面显示 | |
287 | + */ | |
288 | + onShow: function () { | |
290 | 289 | |
291 | - /** | |
292 | - * 生命周期函数--监听页面卸载 | |
293 | - */ | |
294 | - onUnload: function () { | |
290 | + }, | |
295 | 291 | |
296 | - }, | |
292 | + /** | |
293 | + * 生命周期函数--监听页面隐藏 | |
294 | + */ | |
295 | + onHide: function () { | |
297 | 296 | |
298 | - /** | |
299 | - * 页面相关事件处理函数--监听用户下拉动作 | |
300 | - */ | |
301 | - onPullDownRefresh: function () { | |
297 | + }, | |
302 | 298 | |
303 | - }, | |
299 | + /** | |
300 | + * 生命周期函数--监听页面卸载 | |
301 | + */ | |
302 | + onUnload: function () { | |
304 | 303 | |
305 | - /** | |
306 | - * 页面上拉触底事件的处理函数 | |
307 | - */ | |
308 | - onReachBottom: function () { | |
304 | + }, | |
309 | 305 | |
310 | - }, | |
306 | + /** | |
307 | + * 页面相关事件处理函数--监听用户下拉动作 | |
308 | + */ | |
309 | + onPullDownRefresh: function () { | |
311 | 310 | |
312 | - /** | |
313 | - * 用户点击右上角分享 | |
314 | - */ | |
315 | - onShareAppMessage: function () { | |
311 | + }, | |
312 | + | |
313 | + /** | |
314 | + * 页面上拉触底事件的处理函数 | |
315 | + */ | |
316 | + onReachBottom: function () { | |
317 | + | |
318 | + }, | |
319 | + | |
320 | + /** | |
321 | + * 用户点击右上角分享 | |
322 | + */ | |
323 | + onShareAppMessage: function () { | |
324 | + | |
325 | + }, | |
326 | + | |
327 | + /** | |
328 | + * get请求数据 | |
329 | + */ | |
330 | + get(url, data) { | |
331 | + app.request.get(url + '/' + data.store_id, { | |
332 | + success: function (res) { | |
333 | + if (res.data.code == 0) { | |
334 | + console.log('success~~~~~~~~~~~', res); | |
335 | + self.setData({ | |
336 | + content: res.data.data.distriRule, | |
337 | + }); | |
338 | + /** | |
339 | + * WxParse.wxParse(bindName , type, data, target,imagePadding) | |
340 | + * 1.bindName绑定的数据名(必填) | |
341 | + * 2.type可以为html或者md(必填) | |
342 | + * 3.data为传入的具体数据(必填) | |
343 | + * 4.target为Page对象,一般为this(必填) | |
344 | + * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选) | |
345 | + */ | |
346 | + WxParse.wxParse('content', 'html', self.data.content, self); | |
347 | + } else { | |
348 | + wx.showToast({ | |
349 | + title: "网络繁忙,请重试", | |
350 | + icon: 'none', | |
351 | + duration: 2000 | |
352 | + }) | |
353 | + } | |
354 | + }, | |
355 | + fail: function () { | |
356 | + }, | |
357 | + }); | |
358 | + }, | |
316 | 359 | |
317 | - }, | |
318 | - | |
319 | - /** | |
320 | - * get请求数据 | |
321 | - */ | |
322 | - get(url, data) { | |
323 | - app.request.get(url + '/' + data.store_id, { | |
324 | - success: function(res) { | |
325 | - if(res.data.code == 0){ | |
326 | - console.log('success~~~~~~~~~~~',res); | |
327 | - self.setData({ | |
328 | - content: res.data.data.distriRule, | |
329 | - }); | |
330 | - /** | |
331 | - * WxParse.wxParse(bindName , type, data, target,imagePadding) | |
332 | - * 1.bindName绑定的数据名(必填) | |
333 | - * 2.type可以为html或者md(必填) | |
334 | - * 3.data为传入的具体数据(必填) | |
335 | - * 4.target为Page对象,一般为this(必填) | |
336 | - * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选) | |
337 | - */ | |
338 | - WxParse.wxParse('content', 'html', self.data.content, self); | |
339 | - }else{ | |
340 | - wx.showToast({ | |
341 | - title: "网络繁忙,请重试", | |
342 | - icon: 'none', | |
343 | - duration: 2000 | |
344 | - }) | |
345 | - } | |
346 | - }, | |
347 | - fail: function() {}, | |
348 | - }); | |
349 | - }, | |
350 | - | |
351 | 360 | }) |
352 | 361 | \ No newline at end of file | ... | ... |
packageA/pages/profile/profile.wxss
... | ... | @@ -411,7 +411,6 @@ input { |
411 | 411 | background: white; |
412 | 412 | width: 100%; |
413 | 413 | border-radius: 20rpx 20rpx 0 0; |
414 | - height: 72%; | |
415 | 414 | } |
416 | 415 | |
417 | 416 | .popup-top { |
... | ... | @@ -452,7 +451,8 @@ input { |
452 | 451 | |
453 | 452 | .store-list { |
454 | 453 | width: 95%; |
455 | - height: 72%; | |
454 | + min-height: 300rpx; | |
455 | + max-height: 610rpx; | |
456 | 456 | overflow-y: scroll; |
457 | 457 | margin: auto; |
458 | 458 | } |
... | ... | @@ -506,7 +506,7 @@ input { |
506 | 506 | .store-bottom { |
507 | 507 | width: 85%; |
508 | 508 | margin: auto; |
509 | - height: 70rpx; | |
509 | + height: 90rpx; | |
510 | 510 | } |
511 | 511 | |
512 | 512 | .determine { | ... | ... |
packageB/pages/luckactivity/index/index.wxml
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | <block wx:for="{{list.pageData}}"> |
21 | 21 | <view class="tab-item" bindtap="goto" data-id="{{item.id}}" data-title="{{item.act_name}}"> |
22 | 22 | <view class="img-container"> |
23 | - <image wx:if="{{item.imageurl}}" src="{{item.imageurl}}" class="img"></image> | |
23 | + <image wx:if="{{item.imageurl}}" src="{{imghost + item.imageurl}}" class="img"></image> | |
24 | 24 | <text class="iconfont icon-zhuanpan" wx:else></text> |
25 | 25 | </view> |
26 | 26 | <view class="desc-container"> | ... | ... |
packageB/pages/luckactivity/luckinfo/luckinfo.js
... | ... | @@ -109,6 +109,7 @@ Page({ |
109 | 109 | |
110 | 110 | // console.log('luckInfo', res.data.data); |
111 | 111 | let luckInfo = res.data.data; |
112 | + | |
112 | 113 | |
113 | 114 | if(luckInfo && luckInfo.template_type != null && luckInfo.template_type == 1) { //获取模板 |
114 | 115 | let url = `/api/weshop/marketing/marketingLuckTemplate/get/${store_id}/${luckInfo.template_id}`; |
... | ... | @@ -131,6 +132,15 @@ Page({ |
131 | 132 | }; |
132 | 133 | |
133 | 134 | }; |
135 | + | |
136 | + | |
137 | + if(self.data.luckInfo.msgInfo) { | |
138 | + wx.showToast({ | |
139 | + title: self.data.luckInfo.msgInfo, | |
140 | + icon: 'none', | |
141 | + }); | |
142 | + // return; | |
143 | + }; | |
134 | 144 | |
135 | 145 | }, |
136 | 146 | }); |
... | ... | @@ -475,14 +485,15 @@ Page({ |
475 | 485 | return; |
476 | 486 | }; |
477 | 487 | |
478 | - if(this.data.luckInfo.msgInfo) { | |
488 | + if(self.data.luckInfo.msgInfo) { | |
479 | 489 | wx.showToast({ |
480 | - title: this.data.luckInfo.msgInfo, | |
490 | + title: self.data.luckInfo.msgInfo, | |
481 | 491 | icon: 'none', |
482 | 492 | }); |
483 | 493 | return; |
484 | 494 | }; |
485 | 495 | |
496 | + | |
486 | 497 | if(this.data.luckInfo.user_LuckNumDay > 0 || this.data.luckInfo.vip_act_num == 0) { |
487 | 498 | // console.log('start choujiang'); |
488 | 499 | // let start = false; |
... | ... | @@ -619,26 +630,16 @@ Page({ |
619 | 630 | currentLbtype: lbtype, |
620 | 631 | }); |
621 | 632 | |
622 | - let num = this.data.num; | |
623 | - let timer = setInterval(function() { | |
624 | - if(num == 0) { | |
625 | - clearInterval(); | |
626 | - } else { | |
627 | - self.setData({ | |
628 | - num: --num, | |
629 | - }); | |
630 | - } | |
631 | - }, 1000); | |
633 | + | |
632 | 634 | |
633 | 635 | |
634 | 636 | if(no_luck_urltype == 1) { |
635 | 637 | if(this.data.luckInfo.no_luck_weappurl) { |
636 | - // console.log('dfjsoafjoasfjds======>',this.data.luckInfo.no_luck_weappurl); | |
637 | 638 | let num = this.data.num; |
638 | 639 | let url = this.data.luckInfo.no_luck_weappurl; |
639 | 640 | self.timer = setInterval(function() { |
640 | 641 | if(num == 0) { |
641 | - clearInterval(); | |
642 | + clearInterval(self.timer); | |
642 | 643 | app.goto(url); |
643 | 644 | } else { |
644 | 645 | self.setData({ | ... | ... |
packageB/pages/luckactivity/luckinfo/luckinfo.wxml
... | ... | @@ -165,7 +165,7 @@ |
165 | 165 | <view class="bold c-tb fs40">{{luckInfo.no_luck_name}}</view> |
166 | 166 | <view class="pdt10">{{luckInfo.no_luck_remark}}</view> |
167 | 167 | <view class="img-container2"><image src="{{imghost + (luckInfo.no_luck_img ? luckInfo.no_luck_img:'miniapp/images/luckDraw/gift.png')}}" class="img" mode="aspectFit"></image></view> |
168 | - <view class="pdt40 fs26 c9">{{num}}s后自动跳转...</view> | |
168 | + <view class="pdt40 fs26 c9" wx:if="{{luckInfo.no_luck_urltype == 1 && luckInfo.no_luck_weappurl}}">{{num}}s后自动跳转...</view> | |
169 | 169 | </block> |
170 | 170 | <block wx:else> |
171 | 171 | <view class="bold c-tb fs40">恭喜你获得</view> | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -2025,10 +2025,11 @@ Page({ |
2025 | 2025 | } |
2026 | 2026 | var title= th.data.data.goods_name; |
2027 | 2027 | var img=th.data.data.original_img; |
2028 | - if(th.data.prom_type==6 || th.data.prom_type==1){ | |
2029 | - | |
2028 | + if(th.data.prom_type==6 || th.data.prom_type==1 || th.data.prom_type==4){ | |
2030 | 2029 | title=th.data.prom_act.share_title; |
2031 | 2030 | if(!title) title=th.data.prom_act.title; |
2031 | + if(th.data.prom_type==4) title=th.data.prom_act.name; | |
2032 | + | |
2032 | 2033 | if(th.data.prom_act.share_imgurl) |
2033 | 2034 | img=th.data.iurl+th.data.prom_act.share_imgurl; |
2034 | 2035 | } |
... | ... | @@ -4070,9 +4071,10 @@ Page({ |
4070 | 4071 | } |
4071 | 4072 | |
4072 | 4073 | var share_title=th.data.data.goods_name; |
4073 | - if(th.data.prom_type==1 || th.data.prom_type==6){ | |
4074 | + if(th.data.prom_type==1 || th.data.prom_type==6 || th.data.prom_type==4){ | |
4074 | 4075 | share_title=th.data.prom_act.share_title; |
4075 | 4076 | if(!share_title) share_title=th.data.prom_act.title; |
4077 | + if(th.data.prom_type==4) share_title=th.data.prom_act.name; | |
4076 | 4078 | } |
4077 | 4079 | |
4078 | 4080 | //---产品名称--- |
... | ... | @@ -4105,7 +4107,7 @@ Page({ |
4105 | 4107 | }else{ |
4106 | 4108 | context.setFillStyle("black"); |
4107 | 4109 | context.setFontSize(21.3 * unit) |
4108 | - th.draw_Text(context, th.data.data.goods_name, | |
4110 | + th.draw_Text(context, share_title, | |
4109 | 4111 | 38 * unit, 170 * unit, 20 * unit, 300*unit, unit); |
4110 | 4112 | //------ 产品的价格 ----- |
4111 | 4113 | var pri0 = th.data.prom_act.addmoney; |
... | ... | @@ -4396,28 +4398,31 @@ Page({ |
4396 | 4398 | destWidth: 1.2 * 750 * 750 / that.data.screenWidth, |
4397 | 4399 | destHeight: 1.2 * 1217 * 750 / that.data.screenWidth, |
4398 | 4400 | canvasId: 'share', |
4399 | - success: function(res) { | |
4400 | - that.setData({ | |
4401 | - shareImgPath: res.tempFilePath, | |
4402 | - canvasHidden: true | |
4403 | - }) | |
4404 | - if (!res.tempFilePath) { | |
4405 | - wx.showModal({ | |
4406 | - title: '提示', | |
4407 | - content: '图片绘制中,请稍后重试', | |
4408 | - showCancel: false | |
4409 | - }) | |
4410 | - return false; | |
4401 | + success: function (res) { | |
4402 | + | |
4403 | + that.setData({ | |
4404 | + shareImgPath: res.tempFilePath, | |
4405 | + canvasHidden: true | |
4406 | + }) | |
4407 | + | |
4408 | + if (!res.tempFilePath) { | |
4409 | + wx.showModal({ | |
4410 | + title: '提示', | |
4411 | + content: '图片绘制中,请稍后重试', | |
4412 | + showCancel: false | |
4413 | + }) | |
4414 | + return false; | |
4415 | + } | |
4416 | + | |
4417 | + // wx.previewImage({ | |
4418 | + // //将图片预览出来 | |
4419 | + // urls: [that.data.shareImgPath] | |
4420 | + // }); | |
4421 | + that.setData({ | |
4422 | + showPoster: true, | |
4423 | + }); | |
4424 | + wx.hideLoading(); | |
4411 | 4425 | } |
4412 | - // wx.previewImage({ | |
4413 | - // //将图片预览出来 | |
4414 | - // urls: [that.data.shareImgPath] | |
4415 | - // }); | |
4416 | - that.setData({ | |
4417 | - showPoster: true, | |
4418 | - }); | |
4419 | - wx.hideLoading(); | |
4420 | - } | |
4421 | 4426 | }) |
4422 | 4427 | }, 500) |
4423 | 4428 | |
... | ... | @@ -4544,7 +4549,7 @@ Page({ |
4544 | 4549 | |
4545 | 4550 | var img_url=ee.data.data.original_img; |
4546 | 4551 | if((this.data.prom_type==1 || this.data.prom_type==6) && this.data.prom_act.share_imgurl){ |
4547 | - img_url=this.data.iurl+this.data.prom_act.share_imgurl; | |
4552 | + img_url=this.data.iurl+this.data.prom_act.share_imgurl; | |
4548 | 4553 | } |
4549 | 4554 | |
4550 | 4555 | //获取商品是分享图信息 | ... | ... |
pages/team/team_success/team_success.js
... | ... | @@ -394,6 +394,12 @@ Page({ |
394 | 394 | canvasHidden: true, |
395 | 395 | }) |
396 | 396 | |
397 | + if(this.data.share_hidden) { | |
398 | + this.setData({ | |
399 | + share_hidden: false, | |
400 | + }); | |
401 | + }; | |
402 | + | |
397 | 403 | var app = getApp(); |
398 | 404 | var unit = that.data.screenWidth / 750 * 1.35; |
399 | 405 | var scene=th.data.teamgroup.id; |
... | ... | @@ -415,16 +421,17 @@ Page({ |
415 | 421 | var vpath = res.path; |
416 | 422 | var context = wx.createCanvasContext('share'); |
417 | 423 | |
418 | - console.log("saveImageToPhotosAlbum"); | |
419 | - console.log(vpath); | |
420 | 424 | |
421 | 425 | //先画背景 |
422 | 426 | var pg_path = "../../../images/share/share_bg.png"; |
423 | 427 | //-- 如果有自定义海报的时候,判断背景的图片 -- |
424 | 428 | if(th.data.share_b_img){ |
425 | 429 | pg_path=th.data.share_b_img; |
426 | - } | |
427 | - | |
430 | + } | |
431 | + | |
432 | + var share_title=th.data.teamlist.share_title; | |
433 | + if(!share_title) | |
434 | + share_title=th.data.teamlist.title; | |
428 | 435 | context.drawImage(pg_path, 0, 0, 554 * unit, 899 * unit); |
429 | 436 | |
430 | 437 | //-- 是自定义海报的情况下 -- |
... | ... | @@ -468,7 +475,11 @@ Page({ |
468 | 475 | //---产品名称--- |
469 | 476 | context.setFontSize(21.3 * unit); |
470 | 477 | context.setFillStyle("black"); |
471 | - th.draw_Text(context, th.data.goods.goods_name, | |
478 | + | |
479 | + | |
480 | + | |
481 | + | |
482 | + th.draw_Text(context,share_title, | |
472 | 483 | 38 * unit, 180 * unit, 200 * unit, 279 * unit, unit); |
473 | 484 | //------产品的价格------- |
474 | 485 | context.setFontSize(24 * unit) |
... | ... | @@ -501,9 +512,9 @@ Page({ |
501 | 512 | else{ |
502 | 513 | g_ct= th.data.max_num -th.data.ordertx.length; |
503 | 514 | if(g_ct>0){ |
504 | - wz="还差"+g_ct+"人享受最低价,"; | |
515 | + wz="还差"+g_ct+"人享最低优惠,"; | |
505 | 516 | }else{ |
506 | - wz="已享受最低价,"; | |
517 | + wz="已享受最优惠,"; | |
507 | 518 | } |
508 | 519 | } |
509 | 520 | |
... | ... | @@ -649,6 +660,7 @@ Page({ |
649 | 660 | destHeight: 1217 * 750 / that.data.screenWidth, |
650 | 661 | canvasId: 'share', |
651 | 662 | success: function (res) { |
663 | + | |
652 | 664 | that.setData({ |
653 | 665 | shareImgPath: res.tempFilePath, canvasHidden: false, |
654 | 666 | }) |
... | ... | @@ -660,10 +672,16 @@ Page({ |
660 | 672 | }) |
661 | 673 | return false; |
662 | 674 | } |
663 | - wx.previewImage({ | |
664 | - //将图片预览出来 | |
665 | - urls: [that.data.shareImgPath] | |
675 | + | |
676 | + // wx.previewImage({ | |
677 | + // //将图片预览出来 | |
678 | + // urls: [that.data.shareImgPath] | |
679 | + // }); | |
680 | + | |
681 | + that.setData({ | |
682 | + showPoster: true, | |
666 | 683 | }); |
684 | + | |
667 | 685 | wx.hideLoading(); |
668 | 686 | } |
669 | 687 | }) |
... | ... | @@ -807,9 +825,14 @@ Page({ |
807 | 825 | } |
808 | 826 | // console.log('url+++++>>>>>', url, th.data.teamlist.title); |
809 | 827 | |
828 | + var share_title=th.data.teamlist.title; | |
829 | + if(th.data.teamlist.share_title){ | |
830 | + share_title=th.data.teamlist.share_title; | |
831 | + } | |
832 | + | |
810 | 833 | return { |
811 | 834 | path:url, |
812 | - title: th.data.teamlist.title, | |
835 | + title: share_title, | |
813 | 836 | imageUrl: img, |
814 | 837 | } |
815 | 838 | }, |
... | ... | @@ -832,6 +855,13 @@ Page({ |
832 | 855 | }); |
833 | 856 | }, |
834 | 857 | |
858 | + | |
859 | + closePoster() { | |
860 | + this.setData({ | |
861 | + showPoster: false, | |
862 | + }); | |
863 | + }, | |
864 | + | |
835 | 865 | |
836 | 866 | }) |
837 | 867 | ... | ... |
pages/team/team_success/team_success.wxml
... | ... | @@ -322,3 +322,24 @@ |
322 | 322 | |
323 | 323 | <!-- 分享控件,底部弹出 --> |
324 | 324 | <share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share> |
325 | + | |
326 | + | |
327 | +<view wx:if="{{showPoster}}"> | |
328 | + <view class="mask" catchtap="closePoster"></view> | |
329 | + <view class="poster-container"> | |
330 | + <view class="poster-wrapper"> | |
331 | + <view class="poster"> | |
332 | + <!-- <view class="poster" bindtap="previewImage"> --> | |
333 | + <image src="{{shareImgPath}}" class="poster-img" show-menu-by-longpress></image> | |
334 | + <view class="btn-close" catchtap="closePoster"><text class="iconfont icon-close"></text></view> | |
335 | + </view> | |
336 | + <!-- <view class="btn-container"> | |
337 | + <button class="btn-share" open-type="share" bindtap="">微信好友分享</button> | |
338 | + <button class="btn-share" bindtap="savePic">保存到相册</button> | |
339 | + </view> --> | |
340 | + </view> | |
341 | + </view> | |
342 | +</view> | |
343 | + | |
344 | + | |
345 | + | ... | ... |
pages/team/team_success/team_success.wxss
... | ... | @@ -892,5 +892,74 @@ height:40rpx; |
892 | 892 | } |
893 | 893 | .xc-shuoming{ |
894 | 894 | padding-left:10rpx; |
895 | +} | |
896 | + | |
897 | + | |
898 | +.poster-container { | |
899 | + box-sizing: border-box; | |
900 | + position: fixed; | |
901 | + top: 50%; | |
902 | + left: 50%; | |
903 | + transform: translate(-50%, -50%); | |
904 | + width: calc(100% - 120rpx); | |
905 | + z-index: 1000; | |
906 | +} | |
907 | +.mask { | |
908 | + position: fixed; | |
909 | + top: 0; | |
910 | + left: 0; | |
911 | + width: 100%; | |
912 | + height: 100%; | |
913 | + z-index: 999; | |
914 | + background-color: rgba(0,0,0,.4); | |
915 | +} | |
916 | +.poster-wrapper { | |
917 | + width: 100%; | |
918 | +} | |
919 | + | |
920 | +.poster { | |
921 | + box-sizing: border-box; | |
922 | + width: 100%; | |
923 | + height: 1055rpx; | |
924 | + border-radius: 20rpx; | |
925 | + /* box-shadow: 0 8px 12px #666; */ | |
926 | + position: relative; | |
927 | + z-index: 999; | |
928 | + overflow: hidden; | |
929 | +} | |
930 | +.poster-img { | |
931 | + display: block; | |
932 | + width: 100%; | |
933 | + height: 100%; | |
934 | +} | |
935 | +.btn-container { | |
936 | + display: flex; | |
937 | + justify-content: space-around; | |
938 | +} | |
939 | +.btn-share { | |
940 | + display: block; | |
941 | + background-color: #FE6867; | |
942 | + color: white; | |
943 | + border-radius: 8rpx; | |
944 | + line-height: 80rpx; | |
945 | + margin-top: 28rpx; | |
946 | + padding: 0 60rpx; | |
947 | +} | |
948 | + | |
949 | + | |
950 | +.btn-close { | |
951 | + /* background-color: rgba(0,0,0,.5); */ | |
952 | + color: #ccc; | |
953 | + width: 50rpx; | |
954 | + height: 50rpx; | |
955 | + line-height: 50rpx; | |
956 | + text-align: center; | |
957 | + border-radius: 50%; | |
958 | + position: absolute; | |
959 | + right: 20rpx; | |
960 | + top: 20rpx; | |
961 | +} | |
895 | 962 | |
963 | +.icon-close { | |
964 | + font-size: 48rpx; | |
896 | 965 | } |
897 | 966 | \ No newline at end of file | ... | ... |
pages/user/userinfo/userinfo.wxss
... | ... | @@ -408,7 +408,6 @@ input { |
408 | 408 | background: white; |
409 | 409 | width: 100%; |
410 | 410 | border-radius: 20rpx 20rpx 0 0; |
411 | - height: 72%; | |
412 | 411 | } |
413 | 412 | |
414 | 413 | .popup-top { |
... | ... | @@ -449,7 +448,8 @@ input { |
449 | 448 | |
450 | 449 | .store-list { |
451 | 450 | width: 95%; |
452 | - height: 72%; | |
451 | + min-height: 300rpx; | |
452 | + max-height: 610rpx; | |
453 | 453 | overflow-y: scroll; |
454 | 454 | margin: auto; |
455 | 455 | } |
... | ... | @@ -503,7 +503,7 @@ input { |
503 | 503 | .store-bottom { |
504 | 504 | width: 85%; |
505 | 505 | margin: auto; |
506 | - height: 70rpx; | |
506 | + height: 90rpx; | |
507 | 507 | } |
508 | 508 | |
509 | 509 | .determine { | ... | ... |