作者 wumengyu

添加分享

1 @font-face {font-family: "iconfont"; 1 @font-face {font-family: "iconfont";
2 - src: url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.eot?t=1547874546810'); /* IE9 */  
3 - src: url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.eot?t=1547874546810#iefix') format('embedded-opentype'), /* IE6-IE8 */  
4 - url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA4gAAsAAAAAGRAAAA3QAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCGQgqfPJkmATYCJANkCzQABCAFhG0HgjMb/RQzkpJWI7L/ywE3ZEIN/S2hkFA9OXJ3pWW6qMjGMaG4TwcZ+vuuhgIMuMYNimnyTkwfYhsb7GJ/LB0XcmIyfnF/4Q7v++D5fu13nu5+94p4JkITb66lik1nfiQRCcUTJZAuGjpHtOn/7O6BJxBzovzXEK/HwGNKhP+IqBFvPTWlIp72mVU9NSVVIQCg1jU7wYmSJ//z1GNQkIpmkXVQhjWiXYbr/STnK80H/gsgYFNngKTpt/DW7XnH9U91ZFsBK+c4pfnPy5LWSeuBSp1A/iQLukquyVUlBgtNu2C10sd72wMABFf/XPu0QKBu5yZHqOw58bK7H7LJh1wxJf4I6ZVJl32N2S0BuE4toKtQdbLanhC6BvvN9/BVEGkDxiqY/s7bQwFRmkTQyMfYHEws1FBIO+DtVZi1adhIrSJ0e89lLeoGR6hP9TtwbX6/+mWoQOMM9LxTW6MbiAW+qjP/ZkHloG9PAG+XAwP0ACzorHepimMc6TE06pMpPgA6CMirDAVhy7Bkx4WPYKEU4tVr1mWzPDb07evkB9Wm5MbtTLT1dK6ig9WK+I7HX2AckIE5kzZLnhwhx4o15vt/82I4UpSZEuAp4TMB5clT4wBqAMEyEBD9yABh90OD8PqRBcLvhwIx64cFsUDkgfQjDmLXDwPi3I8IiIvBFCYCpwDmA04RLBicECwUnCiYApwYWDw4DqwenBRYM7RzYl3gJME2gxOA/QqOB7uAfpTA5zRB2jLSMYk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isd7qMFEDABA3vP1XeWUPMe84rZ04zk3HIajvwrfqdTjFahvxBjC+M52YZso/9hI/cnwfuSHKKv0kR1niX1Ll+52OREC57Rfi3rXWCEnW1xROB/MXeK/P4oW8Y3KePRx3pfjsayKMuu05HgCYgIEa6EjU9QJ94A7Ur51Ot6O+/12h7bHDDg4BzYcBgM0OAFgvWGgOI8flshqsr564rEqEgQFOiAATPHKpQhGiAQfGIjowIRyxwRtUV+aABdQCAUSxAGAM9GcIAR92Igym8DMiwIeTAEDhTUQDazAgOvARQWxQI4vr5IDBU9559YSBShjPgZU4zWeGHZv+RWZo0Fftpv2PfM8rIIvTZviTHPltXKCfmDwEDdpLCx/ZnVHTCHReKlIhtiF0oyTRvgvGStqlnaVXTxhUzxKM52NZidMHDzutX/9FZmjQRzb5M/aPfM9zQfaEZ5MDcj+pG7TJY5H7ickFIjSItb204IMIalhAQOc/VUUqxOwEXzeSkF3poTTev6udF5Tk2yz9nipXMBqdwUQsnM0hSC71+MnTZ89fvHz1+o19jyVLpCypmsrt3sqg0JlsYzagW9DqhLu1BbpsZxE1XNMHN81qxdgrPt/W5GbssnbQe5lGpfC40LRi6wP/ktUt8I1xxbTird6iU3bINnAFWljeakRhYHGbndJdyc5MiTkOicUgUwzZCJn53FvbJWvHYGSyzK1Pz44Oly+sjjcBOVpaAgAAAA==') format('woff2'),  
5 - url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.woff?t=1547874546810') format('woff'),  
6 - url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.ttf?t=1547874546810') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */  
7 - url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.svg?t=1547874546810#iconfont') format('svg'); /* iOS 4.1- */ 2 + src: url('//at.alicdn.com/t/font_961048_vvr2aibusa.eot?t=1547885028859'); /* IE9 */
  3 + src: url('//at.alicdn.com/t/font_961048_vvr2aibusa.eot?t=1547885028859#iefix') format('embedded-opentype'), /* IE6-IE8 */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/QSBJIb6XSdpbFlJTbYajz7KAnMapXfLTWO/6VH/kHxxt/73SyG18kZOBQA9UIE00Uy0xxpGzado326Za0v7/LdNfdRMW9gH6CEMAAzUWwAea5xggnpuPovaxoMenylkGMIggREIh/TZtPn5jA4UlDMdCIcmZgB5IK7fEDZBJxAgaBEAgDeM0xgBBtjKVKCDa0wNBrgEAPMfsRAwg4aFggERRgKHWE2kIBMiGr15hICJis+KtLAx8sPIu/obbZ2Dj7rdtH/0FZ1Xm+U6Gf9CRt9HNdXBbkMwyngp1KfWPsxzUaWXFHVYuhDK/Wpl8qpdaikaowbfIwR720SJzweSFjbvDqPUr/9GW+fgS+77deA/+oqOKJt/ou5bY/aXxbXuOxdndbBbQUijzFu9FMqnkJiriChlfmkp6rDkWoTKvZV4nqlrLcf3FbeGxcX3QPm9pmvRGUwWG3EwnEuQPKqrrrvptrvue+ixp557MfWQkETaoc4wGVZOag1sNz1bA8fUOzmDuGD7QGXnArwZXaKcMvykPG+nBHVTt0ODfCLfNgLv5RglZoCLcnaDN/4t2j1QL44UmdKgcsDa1Zse9eDF0SAXDYGE+5mO14TYHpEMXiQvtbQxpRNxyvMP+hWdOZgbawl3czeL6dLFOak2AEWNBgAAAA==') format('woff2'),
  5 + url('//at.alicdn.com/t/font_961048_vvr2aibusa.woff?t=1547885028859') format('woff'),
  6 + url('//at.alicdn.com/t/font_961048_vvr2aibusa.ttf?t=1547885028859') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  7 + url('//at.alicdn.com/t/font_961048_vvr2aibusa.svg?t=1547885028859#iconfont') format('svg'); /* iOS 4.1- */
8 } 8 }
9 9
10 .iconfont { 10 .iconfont {
@@ -23,6 +23,10 @@ @@ -23,6 +23,10 @@
23 content: "\e60a"; 23 content: "\e60a";
24 } 24 }
25 25
  26 +.icon-guanbi:before {
  27 + content: "\e664";
  28 +}
  29 +
26 .icon-xuanze:before { 30 .icon-xuanze:before {
27 content: "\e619"; 31 content: "\e619";
28 } 32 }
@@ -110,4 +114,3 @@ @@ -110,4 +114,3 @@
110 .icon-xuanzezhuangtai-:before { 114 .icon-xuanzezhuangtai-:before {
111 content: "\e678"; 115 content: "\e678";
112 } 116 }
113 -  
@@ -4,13 +4,15 @@ @@ -4,13 +4,15 @@
4 <image src="{{item.pic}}" mode="widthFix" data-id='{{index}}' bindload="imageLoad"></image> 4 <image src="{{item.pic}}" mode="widthFix" data-id='{{index}}' bindload="imageLoad"></image>
5 <view class="area"> 5 <view class="area">
6 <text class="name">{{item.title}}</text> 6 <text class="name">{{item.title}}</text>
  7 + <view class="num" wx:if="{{item.join_number<item.min}}">还差{{item.people}}人</view>
  8 + <view class="num" wx:else>还可加入{{item.people}}人</view>
7 </view> 9 </view>
8 <!--<text>2018.4.28—4.30</text>--> 10 <!--<text>2018.4.28—4.30</text>-->
9 <view class="bottom"> 11 <view class="bottom">
10 - <image src="{{item.userPic}}" class="avatar" mode="aspectFill"></image> 12 + <!--<image src="{{item.userPic}}" class="avatar" mode="aspectFill"></image>-->
11 <text>{{item.listTime}}</text> 13 <text>{{item.listTime}}</text>
12 <!--<view>2018.4.28</view>--> 14 <!--<view>2018.4.28</view>-->
13 </view> 15 </view>
14 - <view class="num">距最低人数{{item.people}}人</view> 16 +
15 </view> 17 </view>
16 </view> 18 </view>
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 margin: 16rpx 0; 22 margin: 16rpx 0;
23 } 23 }
24 .name { 24 .name {
25 - /* width: 67%; */ 25 + width: 50%;
26 overflow : hidden; 26 overflow : hidden;
27 display: -webkit-box; 27 display: -webkit-box;
28 -webkit-line-clamp: 1; 28 -webkit-line-clamp: 1;
@@ -22,6 +22,8 @@ Page({ @@ -22,6 +22,8 @@ Page({
22 is_join:false, 22 is_join:false,
23 img_heights: [], //图片宽度 23 img_heights: [], //图片宽度
24 img_width: 750, //默认 24 img_width: 750, //默认
  25 + show_canvas: false,
  26 + can_save:false,
25 }, 27 },
26 //获取图片真实宽度 28 //获取图片真实宽度
27 imageLoad: function (e) { 29 imageLoad: function (e) {
@@ -239,6 +241,7 @@ Page({ @@ -239,6 +241,7 @@ Page({
239 count:res.data.count, 241 count:res.data.count,
240 is_send:res.data.is_send,//能否参加1:不能2:能 242 is_send:res.data.is_send,//能否参加1:不能2:能
241 }); 243 });
  244 + this.getLocalImage();
242 // self.countDown(); 245 // self.countDown();
243 246
244 247
@@ -266,6 +269,7 @@ Page({ @@ -266,6 +269,7 @@ Page({
266 'detail.time': countDownArr, 269 'detail.time': countDownArr,
267 }); 270 });
268 } 271 }
  272 + // this.drawCard();
269 } 273 }
270 // wx.hideLoading() 274 // wx.hideLoading()
271 }) 275 })
@@ -383,6 +387,233 @@ Page({ @@ -383,6 +387,233 @@ Page({
383 console.log('详情options', options); 387 console.log('详情options', options);
384 this.setData({detail_id:+options.id?+options.id:''}); 388 this.setData({detail_id:+options.id?+options.id:''});
385 }, 389 },
  390 + //点击分享
  391 + share() {
  392 + // this.drawCard();
  393 + console.log(this.data.can_save);
  394 + this.setData({can_save: false});
  395 + // wx.showLoading({title:'加载中',mask:true});
  396 + this.drawCard();
  397 + console.log(this.data.can_save);
  398 + // if(this.data.can_save) {
  399 + // wx.hideLoading({});
  400 + this.setData({show_canvas: true});
  401 + // }
  402 + },
  403 + hideCanvasMask() {
  404 + // this.setData({show_canvas: true});
  405 + },
  406 + //关闭分享卡片
  407 + closeCanvas() {
  408 + this.setData({show_canvas: false});
  409 + // wx.navigateBack({delta:1})
  410 + },
  411 + //保存图片到手机相册
  412 + saveToPhone() {
  413 + this.getPower();
  414 + },
  415 + //图片链接转成本地路径
  416 + getLocalImage() {
  417 + const self = this;
  418 + wx.getImageInfo({
  419 + src: self.data.detail.banner[0],
  420 + success(res) {
  421 + console.log('图片链接转成本地路径',res);
  422 + self.setData({local_img:res.path})
  423 + self.drawCard()
  424 + console.log(res.width)
  425 + console.log(res.height)
  426 + }
  427 + })
  428 + },
  429 + drawCard() {
  430 + console.log('开始画');
  431 + const self = this;
  432 + //先创建一个画布
  433 + const ctx = wx.createCanvasContext("canvas");
  434 + //填充背景色
  435 + ctx.fillStyle = '#fff';
  436 + ctx.fillRect(0, 0, 300, 150);
  437 + console.log(self.data.local_img);
  438 + //将图片转化为画布
  439 + ctx.drawImage(self.data.local_img, 0, 0, 330, 150);
  440 + console.log(111);
  441 + // ctx.drawImage("../../../../images/tou.png", 20, 166, 30, 30);//头像
  442 + // ctx.drawImage("../../../../images/code.jpg", 220, 209, 60, 60);//头像
  443 + //用户名字
  444 + ctx.setFontSize(13);
  445 + ctx.setFillStyle('#333333');
  446 + ctx.textAlign = "left";
  447 + console.log(111);
  448 + ctx.fillText(self.data.detail.userName, 69, 187);
  449 + ctx.restore();
  450 + //签到天数
  451 + ctx.setFontSize(17);
  452 + ctx.setFillStyle('#2C82E6');
  453 + ctx.fillText('连续', 25, 229);
  454 + ctx.restore();
  455 + ctx.setFillStyle('#2C82E6');
  456 + ctx.font = 'bold 22px sans-serif';
  457 + ctx.fillText(self.data.count, 63, 229);
  458 + ctx.restore();
  459 + ctx.setFontSize(17);
  460 + ctx.setFillStyle('#2C82E6');
  461 + ctx.font = 'normal 17px sans-serif';
  462 + ctx.fillText('天签到', 80, 229);
  463 + ctx.restore();
  464 +
  465 + const text = self.data.detail.content;
  466 + // ctx.fillText('此处放文案此处放文案此处放文案此处放文案此处放文案此处放文案此处放文案', 25, 252,200);
  467 + // ctx.restore();
  468 + var chr = text.split("");//这个方法是将一个字符串分割成字符串数组
  469 + var temp = "";
  470 + var row = [];
  471 + ctx.setFontSize(13);
  472 + ctx.setFillStyle('#333333');
  473 + for (var a = 0; a < chr.length; a++) {
  474 + if (ctx.measureText(temp).width < 170) {
  475 + temp += chr[a];
  476 + }
  477 + else {
  478 + a--; //这里添加了a-- 是为了防止字符丢失,效果图中有对比
  479 + row.push(temp);
  480 + temp = "";
  481 + }
  482 + }
  483 + row.push(temp);
  484 +
  485 + //如果数组长度大于2 则截取前两个
  486 + if (row.length > 2) {
  487 + var rowCut = row.slice(0, 2);
  488 + var rowPart = rowCut[1];
  489 + var test = "";
  490 + var empty = [];
  491 + for (var a = 0; a < rowPart.length; a++) {
  492 + if (ctx.measureText(test).width < 170) {
  493 + test += rowPart[a];
  494 + }
  495 + else {
  496 + break;
  497 + }
  498 + }
  499 + empty.push(test);
  500 + var group = empty[0] + "...";//这里只显示两行,超出的用...表示
  501 + rowCut.splice(1, 1, group);
  502 + row = rowCut;
  503 + }
  504 + for (var b = 0; b < row.length; b++) {
  505 + ctx.fillText(row[b], 25, 252 + b * 16, 170);
  506 + }
  507 + ctx.restore();
  508 +
  509 + // ctx.drawImage("../../../../images/home-banner.png", 0, 0, 250, 150)
  510 + //成功执行,draw方法中进行回调
  511 + ctx.draw(true, function () {
  512 + // wx.hideLoading();
  513 + console.log("draw callback success");
  514 + self.setData({can_save: true,show_canvas: true});
  515 + console.log(self.data.can_save);
  516 + })
  517 + },
  518 + //获取保存到相册的权限
  519 + getPower() {
  520 + const that = this;
  521 + //保存临时图片
  522 + wx.getSetting({
  523 + success(res) {
  524 + if (!res.authSetting['scope.writePhotosAlbum']) {
  525 + wx.authorize({
  526 + scope: 'scope.writePhotosAlbum',
  527 + success() { //这里是用户同意授权后的回调
  528 + that.savePic();
  529 + },
  530 + fail() { //这里是用户拒绝授权后的回调
  531 + wx.showModal({
  532 + title: '提示',
  533 + content: '若不打开授权,则无法将图片保存在相册中!',
  534 + showCancel: true,
  535 + cancelText: '暂不授权',
  536 + cancelColor: '#000000',
  537 + confirmText: '去授权',
  538 + confirmColor: '#3CC51F',
  539 + success: function (res) {
  540 + if (res.confirm) {
  541 + wx.openSetting({
  542 + //调起客户端小程序设置界面,返回用户设置的操作结果。
  543 + success: function (ret) {
  544 + if (ret.authSetting["scope.writePhotosAlbum"] == true) {
  545 + wx.showToast({
  546 + title: '授权成功',
  547 + icon: 'none',
  548 + duration: 1000
  549 + });
  550 + //再次授权,保存到相册
  551 + that.savePic();
  552 + } else {
  553 + wx.showToast({
  554 + title: '授权失败',
  555 + icon: 'none',
  556 + duration: 1000
  557 + })
  558 + }
  559 + }
  560 + })
  561 + } else {
  562 + wx.showToast({
  563 + title: '授权失败',
  564 + icon: 'none',
  565 + duration: 1000
  566 + })
  567 + // console.log('用户点击取消')
  568 + }
  569 + }
  570 + })
  571 + }
  572 + })
  573 + } else { //用户已经授权过了
  574 + console.log('用户已经授权过了')
  575 + that.savePic();
  576 + }
  577 + }
  578 + });
  579 +
  580 + },
  581 + savePic() {
  582 + if(this.data.can_save) {
  583 + wx.canvasToTempFilePath({
  584 + x: 0,
  585 + y: 0,
  586 + width: 300,
  587 + height: 300,
  588 + destWidth: 300,
  589 + destHeight: 300,
  590 + canvasId: 'canvas',
  591 + fileType: 'jpg',
  592 + quality:1,
  593 + success: function (res) {
  594 + console.log("get tempfilepath(success) is:", res.tempFilePath);
  595 + //将图片保存在系统相册中(应先获取权限,)
  596 + wx.saveImageToPhotosAlbum({
  597 + filePath: res.tempFilePath,
  598 + success(res) {
  599 + wx.showToast({title:'保存成功',icon:'none'});
  600 + console.log("save photo is success")
  601 + },
  602 + fail: function () {
  603 + wx.showToast({title:'保存失败',icon:'none'});
  604 + console.log("save photo is fail")
  605 + }
  606 + })
  607 + },
  608 + fail: function () {
  609 + console.log('get tempfilepath is fail')
  610 + }
  611 + })
  612 + }else {
  613 + wx.showLoading({title:'加载中',icon:'loading',duration:1000})
  614 + }
  615 +
  616 + },
386 onShareAppMessage: function() { 617 onShareAppMessage: function() {
387 let self = this; 618 let self = this;
388 // 设置菜单中的转发按钮触发转发事件时的转发内容 619 // 设置菜单中的转发按钮触发转发事件时的转发内容
@@ -24,11 +24,21 @@ @@ -24,11 +24,21 @@
24 <!--<text class='iconfont icon-shoucang0 star2'></text>--> 24 <!--<text class='iconfont icon-shoucang0 star2'></text>-->
25 <!--<text class="collect_word">收藏</text>--> 25 <!--<text class="collect_word">收藏</text>-->
26 <!--</view>--> 26 <!--</view>-->
27 - <button class="share" open-type="share"> 27 + <view class="share" bindtap="share">
28 <view class="iconfont icon-fenxiang2"></view> 28 <view class="iconfont icon-fenxiang2"></view>
29 <text>分享</text> 29 <text>分享</text>
30 - </button> 30 + </view>
  31 + </view>
  32 + </view>
  33 + <view class='wrap_note canvas-mask' wx:if="{{show_canvas}}" bindtap='hideCanvasMask'>
  34 + <view class="shadow">
  35 + <canvas class='canvas-poster' canvas-id='canvas'></canvas>
  36 + <view class="button-box">
  37 + <text bindtap="saveToPhone" class="save-to-phone">保存图片</text>
  38 + <button class="share-btn" open-type="share">分享小程序</button>
  39 + </view>
31 </view> 40 </view>
  41 + <view class="close-btn" bindtap="closeCanvas"><text class="iconfont icon-guanbi"></text></view>
32 </view> 42 </view>
33 <swiper indicator-dots="{{false}}" current="{{current}}" bindchange="swiperChange" 43 <swiper indicator-dots="{{false}}" current="{{current}}" bindchange="swiperChange"
34 style="height:{{img_heights[current_swiper]}}rpx;" 44 style="height:{{img_heights[current_swiper]}}rpx;"
@@ -43,7 +53,7 @@ @@ -43,7 +53,7 @@
43 </navigator> 53 </navigator>
44 </block> 54 </block>
45 </swiper> 55 </swiper>
46 - <view class="dots"> 56 + <view class="dots" wx:if="{{}}">
47 <block wx:for="{{detail.banner}}" wx:key="index" wx:for-index="idx"> 57 <block wx:for="{{detail.banner}}" wx:key="index" wx:for-index="idx">
48 <view class="dot{{idx == current_swiper ? ' active' : ''}}"></view> 58 <view class="dot{{idx == current_swiper ? ' active' : ''}}"></view>
49 </block> 59 </block>
@@ -581,4 +581,71 @@ swiper { @@ -581,4 +581,71 @@ swiper {
581 left: 0; 581 left: 0;
582 z-index: 10; 582 z-index: 10;
583 background: rgba(0,0,0,0.3); 583 background: rgba(0,0,0,0.3);
  584 +}
  585 +.wrap_note {
  586 + width: 100%;
  587 + height: 100%;
  588 + position: fixed;
  589 + z-index: 20;
  590 + background-color: rgba(255, 255, 255, 0.93);
  591 + display: -webkit-box;
  592 + display: -ms-flexbox;
  593 + display: flex;
  594 + -webkit-box-align: center;
  595 + -ms-flex-align: center;
  596 + align-items: center;
  597 + -webkit-box-pack: center;
  598 + -ms-flex-pack: center;
  599 + justify-content: center;
  600 + top: 0;
  601 +}
  602 +.canvas-mask {
  603 + display: flex;
  604 + flex-direction: column;
  605 +}
  606 +.shadow {
  607 + box-shadow: 1rpx 1rpx 40rpx rgba(101, 101, 101, 0.1);
  608 +}
  609 +.canvas-poster {
  610 + /* position: fixed; */
  611 + width: 600rpx;
  612 + height: 604rpx;
  613 + /* top: 100%; */
  614 + /* left: 100%; */
  615 + /* overflow: hidden; */
  616 +}
  617 +.button-box {
  618 + width: 600rpx;
  619 + display: flex;
  620 + align-items: center;
  621 + justify-content: space-between;
  622 + height: 56rpx;
  623 + border-top: 1rpx solid #E8E8E8;
  624 +}
  625 +.save-to-phone, .share-btn{
  626 + width: 50%;
  627 + line-height: 56rpx;
  628 + color:#999;
  629 + font-size: 24rpx;
  630 + text-align: center;
  631 + padding:0;
  632 + background:#fff;
  633 + border-radius: 0;
  634 +}
  635 +.share-btn::after {
  636 + border:0;
  637 +}
  638 +.save-to-phone {
  639 + border-right: 1rpx solid #E8E8E8;
  640 +}
  641 +.close-btn {
  642 + color: #999999;
  643 + font-size: 60rpx;
  644 + border-radius: 50%;
  645 + background-color: #fff;
  646 + margin-top: 34rpx;
  647 +}
  648 +.close-btn .icon-guanbi {
  649 + font-size: 50rpx;
  650 + color: #999999;
584 } 651 }