作者 wumengyu

添加分享

@font-face {font-family: "iconfont";
src: url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.eot?t=1547874546810'); /* IE9 */
src: url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.eot?t=1547874546810#iefix') format('embedded-opentype'), /* IE6-IE8 */
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/QqOB7uAfpTA5zRB2jLSMYkEABVcZggwDOwT+Dtoxb0KqnOVEUWoQsDg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vwrfqdTjFahvxBjC+M52YZso/9hI/cnwfuSHKKv0kR1niX1Ll+52OREC57Rfi3rXWCEnW1xROB/MXeK/P4oW8Y3KePRx3pfjsayKMuu05HgCYgIEa6EjU9QJ94A7Ur51Ot6O+/12h7bHDDg4BzYcBgM0OAFgvWGgOI8flshqsr564rEqEgQFOiAATPHKpQhGiAQfGIjowIRyxwRtUV+aABdQCAUSxAGAM9GcIAR92Igym8DMiwIeTAEDhTUQDazAgOvARQWxQI4vr5IDBU9559YSBShjPgZU4zWeGHZv+RWZo0Fftpv2PfM8rIIvTZviTHPltXKCfmDwEDdpLCx/ZnVHTCHReKlIhtiF0oyTRvgvGStqlnaVXTxhUzxKM52NZidMHDzutX/9FZmjQRzb5M/aPfM9zQfaEZ5MDcj+pG7TJY5H7ickFIjSItb204IMIalhAQOc/VUUqxOwEXzeSkF3poTTev6udF5Tk2yz9nipXMBqdwUQsnM0hSC71+MnTZ89fvHz1+o19jyVLpCypmsrt3sqg0JlsYzagW9DqhLu1BbpsZxE1XNMHN81qxdgrPt/W5GbssnbQe5lGpfC40LRi6wP/ktUt8I1xxbTird6iU3bINnAFWljeakRhYHGbndJdyc5MiTkOicUgUwzZCJn53FvbJWvHYGSyzK1Pz44Oly+sjjcBOVpaAgAAAA==') format('woff2'),
url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.woff?t=1547874546810') format('woff'),
url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.ttf?t=1547874546810') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('//at.alicdn.com/t/font_961048_jhdqmcwglhh.svg?t=1547874546810#iconfont') format('svg'); /* iOS 4.1- */
src: url('//at.alicdn.com/t/font_961048_vvr2aibusa.eot?t=1547885028859'); /* IE9 */
src: url('//at.alicdn.com/t/font_961048_vvr2aibusa.eot?t=1547885028859#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA50AAsAAAAAGewAAA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UIE00Uy0xxpGzado326Za0v7/LdNfdRMW9gH6CEMAAzUWwAea5xggnpuPovaxoMenylkGMIggREIh/TZtPn5jA4UlDMdCIcmZgB5IK7fEDZBJxAgaBEAgDeM0xgBBtjKVKCDa0wNBrgEAPMfsRAwg4aFggERRgKHWE2kIBMiGr15hICJis+KtLAx8sPIu/obbZ2Dj7rdtH/0FZ1Xm+U6Gf9CRt9HNdXBbkMwyngp1KfWPsxzUaWXFHVYuhDK/Wpl8qpdaikaowbfIwR720SJzweSFjbvDqPUr/9GW+fgS+77deA/+oqOKJt/ou5bY/aXxbXuOxdndbBbQUijzFu9FMqnkJiriChlfmkp6rDkWoTKvZV4nqlrLcf3FbeGxcX3QPm9pmvRGUwWG3EwnEuQPKqrrrvptrvue+ixp557MfWQkETaoc4wGVZOag1sNz1bA8fUOzmDuGD7QGXnArwZXaKcMvykPG+nBHVTt0ODfCLfNgLv5RglZoCLcnaDN/4t2j1QL44UmdKgcsDa1Zse9eDF0SAXDYGE+5mO14TYHpEMXiQvtbQxpRNxyvMP+hWdOZgbawl3czeL6dLFOak2AEWNBgAAAA==') format('woff2'),
url('//at.alicdn.com/t/font_961048_vvr2aibusa.woff?t=1547885028859') format('woff'),
url('//at.alicdn.com/t/font_961048_vvr2aibusa.ttf?t=1547885028859') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('//at.alicdn.com/t/font_961048_vvr2aibusa.svg?t=1547885028859#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
... ... @@ -23,6 +23,10 @@
content: "\e60a";
}
.icon-guanbi:before {
content: "\e664";
}
.icon-xuanze:before {
content: "\e619";
}
... ... @@ -110,4 +114,3 @@
.icon-xuanzezhuangtai-:before {
content: "\e678";
}
... ...
... ... @@ -4,13 +4,15 @@
<image src="{{item.pic}}" mode="widthFix" data-id='{{index}}' bindload="imageLoad"></image>
<view class="area">
<text class="name">{{item.title}}</text>
<view class="num" wx:if="{{item.join_number<item.min}}">还差{{item.people}}人</view>
<view class="num" wx:else>还可加入{{item.people}}人</view>
</view>
<!--<text>2018.4.28—4.30</text>-->
<view class="bottom">
<image src="{{item.userPic}}" class="avatar" mode="aspectFill"></image>
<!--<image src="{{item.userPic}}" class="avatar" mode="aspectFill"></image>-->
<text>{{item.listTime}}</text>
<!--<view>2018.4.28</view>-->
</view>
<view class="num">距最低人数{{item.people}}人</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -22,7 +22,7 @@
margin: 16rpx 0;
}
.name {
/* width: 67%; */
width: 50%;
overflow : hidden;
display: -webkit-box;
-webkit-line-clamp: 1;
... ...
... ... @@ -22,6 +22,8 @@ Page({
is_join:false,
img_heights: [], //图片宽度
img_width: 750, //默认
show_canvas: false,
can_save:false,
},
//获取图片真实宽度
imageLoad: function (e) {
... ... @@ -239,6 +241,7 @@ Page({
count:res.data.count,
is_send:res.data.is_send,//能否参加1:不能2:能
});
this.getLocalImage();
// self.countDown();
... ... @@ -266,6 +269,7 @@ Page({
'detail.time': countDownArr,
});
}
// this.drawCard();
}
// wx.hideLoading()
})
... ... @@ -383,6 +387,233 @@ Page({
console.log('详情options', options);
this.setData({detail_id:+options.id?+options.id:''});
},
//点击分享
share() {
// this.drawCard();
console.log(this.data.can_save);
this.setData({can_save: false});
// wx.showLoading({title:'加载中',mask:true});
this.drawCard();
console.log(this.data.can_save);
// if(this.data.can_save) {
// wx.hideLoading({});
this.setData({show_canvas: true});
// }
},
hideCanvasMask() {
// this.setData({show_canvas: true});
},
//关闭分享卡片
closeCanvas() {
this.setData({show_canvas: false});
// wx.navigateBack({delta:1})
},
//保存图片到手机相册
saveToPhone() {
this.getPower();
},
//图片链接转成本地路径
getLocalImage() {
const self = this;
wx.getImageInfo({
src: self.data.detail.banner[0],
success(res) {
console.log('图片链接转成本地路径',res);
self.setData({local_img:res.path})
self.drawCard()
console.log(res.width)
console.log(res.height)
}
})
},
drawCard() {
console.log('开始画');
const self = this;
//先创建一个画布
const ctx = wx.createCanvasContext("canvas");
//填充背景色
ctx.fillStyle = '#fff';
ctx.fillRect(0, 0, 300, 150);
console.log(self.data.local_img);
//将图片转化为画布
ctx.drawImage(self.data.local_img, 0, 0, 330, 150);
console.log(111);
// ctx.drawImage("../../../../images/tou.png", 20, 166, 30, 30);//头像
// ctx.drawImage("../../../../images/code.jpg", 220, 209, 60, 60);//头像
//用户名字
ctx.setFontSize(13);
ctx.setFillStyle('#333333');
ctx.textAlign = "left";
console.log(111);
ctx.fillText(self.data.detail.userName, 69, 187);
ctx.restore();
//签到天数
ctx.setFontSize(17);
ctx.setFillStyle('#2C82E6');
ctx.fillText('连续', 25, 229);
ctx.restore();
ctx.setFillStyle('#2C82E6');
ctx.font = 'bold 22px sans-serif';
ctx.fillText(self.data.count, 63, 229);
ctx.restore();
ctx.setFontSize(17);
ctx.setFillStyle('#2C82E6');
ctx.font = 'normal 17px sans-serif';
ctx.fillText('天签到', 80, 229);
ctx.restore();
const text = self.data.detail.content;
// ctx.fillText('此处放文案此处放文案此处放文案此处放文案此处放文案此处放文案此处放文案', 25, 252,200);
// ctx.restore();
var chr = text.split("");//这个方法是将一个字符串分割成字符串数组
var temp = "";
var row = [];
ctx.setFontSize(13);
ctx.setFillStyle('#333333');
for (var a = 0; a < chr.length; a++) {
if (ctx.measureText(temp).width < 170) {
temp += chr[a];
}
else {
a--; //这里添加了a-- 是为了防止字符丢失,效果图中有对比
row.push(temp);
temp = "";
}
}
row.push(temp);
//如果数组长度大于2 则截取前两个
if (row.length > 2) {
var rowCut = row.slice(0, 2);
var rowPart = rowCut[1];
var test = "";
var empty = [];
for (var a = 0; a < rowPart.length; a++) {
if (ctx.measureText(test).width < 170) {
test += rowPart[a];
}
else {
break;
}
}
empty.push(test);
var group = empty[0] + "...";//这里只显示两行,超出的用...表示
rowCut.splice(1, 1, group);
row = rowCut;
}
for (var b = 0; b < row.length; b++) {
ctx.fillText(row[b], 25, 252 + b * 16, 170);
}
ctx.restore();
// ctx.drawImage("../../../../images/home-banner.png", 0, 0, 250, 150)
//成功执行,draw方法中进行回调
ctx.draw(true, function () {
// wx.hideLoading();
console.log("draw callback success");
self.setData({can_save: true,show_canvas: true});
console.log(self.data.can_save);
})
},
//获取保存到相册的权限
getPower() {
const that = this;
//保存临时图片
wx.getSetting({
success(res) {
if (!res.authSetting['scope.writePhotosAlbum']) {
wx.authorize({
scope: 'scope.writePhotosAlbum',
success() { //这里是用户同意授权后的回调
that.savePic();
},
fail() { //这里是用户拒绝授权后的回调
wx.showModal({
title: '提示',
content: '若不打开授权,则无法将图片保存在相册中!',
showCancel: true,
cancelText: '暂不授权',
cancelColor: '#000000',
confirmText: '去授权',
confirmColor: '#3CC51F',
success: function (res) {
if (res.confirm) {
wx.openSetting({
//调起客户端小程序设置界面,返回用户设置的操作结果。
success: function (ret) {
if (ret.authSetting["scope.writePhotosAlbum"] == true) {
wx.showToast({
title: '授权成功',
icon: 'none',
duration: 1000
});
//再次授权,保存到相册
that.savePic();
} else {
wx.showToast({
title: '授权失败',
icon: 'none',
duration: 1000
})
}
}
})
} else {
wx.showToast({
title: '授权失败',
icon: 'none',
duration: 1000
})
// console.log('用户点击取消')
}
}
})
}
})
} else { //用户已经授权过了
console.log('用户已经授权过了')
that.savePic();
}
}
});
},
savePic() {
if(this.data.can_save) {
wx.canvasToTempFilePath({
x: 0,
y: 0,
width: 300,
height: 300,
destWidth: 300,
destHeight: 300,
canvasId: 'canvas',
fileType: 'jpg',
quality:1,
success: function (res) {
console.log("get tempfilepath(success) is:", res.tempFilePath);
//将图片保存在系统相册中(应先获取权限,)
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success(res) {
wx.showToast({title:'保存成功',icon:'none'});
console.log("save photo is success")
},
fail: function () {
wx.showToast({title:'保存失败',icon:'none'});
console.log("save photo is fail")
}
})
},
fail: function () {
console.log('get tempfilepath is fail')
}
})
}else {
wx.showLoading({title:'加载中',icon:'loading',duration:1000})
}
},
onShareAppMessage: function() {
let self = this;
// 设置菜单中的转发按钮触发转发事件时的转发内容
... ...
... ... @@ -24,12 +24,22 @@
<!--<text class='iconfont icon-shoucang0 star2'></text>-->
<!--<text class="collect_word">收藏</text>-->
<!--</view>-->
<button class="share" open-type="share">
<view class="share" bindtap="share">
<view class="iconfont icon-fenxiang2"></view>
<text>分享</text>
</button>
</view>
</view>
</view>
<view class='wrap_note canvas-mask' wx:if="{{show_canvas}}" bindtap='hideCanvasMask'>
<view class="shadow">
<canvas class='canvas-poster' canvas-id='canvas'></canvas>
<view class="button-box">
<text bindtap="saveToPhone" class="save-to-phone">保存图片</text>
<button class="share-btn" open-type="share">分享小程序</button>
</view>
</view>
<view class="close-btn" bindtap="closeCanvas"><text class="iconfont icon-guanbi"></text></view>
</view>
<swiper indicator-dots="{{false}}" current="{{current}}" bindchange="swiperChange"
style="height:{{img_heights[current_swiper]}}rpx;"
autoplay="{{true}}" interval="3000" duration="1000">
... ... @@ -43,7 +53,7 @@
</navigator>
</block>
</swiper>
<view class="dots">
<view class="dots" wx:if="{{}}">
<block wx:for="{{detail.banner}}" wx:key="index" wx:for-index="idx">
<view class="dot{{idx == current_swiper ? ' active' : ''}}"></view>
</block>
... ...
... ... @@ -582,3 +582,70 @@ swiper {
z-index: 10;
background: rgba(0,0,0,0.3);
}
.wrap_note {
width: 100%;
height: 100%;
position: fixed;
z-index: 20;
background-color: rgba(255, 255, 255, 0.93);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
top: 0;
}
.canvas-mask {
display: flex;
flex-direction: column;
}
.shadow {
box-shadow: 1rpx 1rpx 40rpx rgba(101, 101, 101, 0.1);
}
.canvas-poster {
/* position: fixed; */
width: 600rpx;
height: 604rpx;
/* top: 100%; */
/* left: 100%; */
/* overflow: hidden; */
}
.button-box {
width: 600rpx;
display: flex;
align-items: center;
justify-content: space-between;
height: 56rpx;
border-top: 1rpx solid #E8E8E8;
}
.save-to-phone, .share-btn{
width: 50%;
line-height: 56rpx;
color:#999;
font-size: 24rpx;
text-align: center;
padding:0;
background:#fff;
border-radius: 0;
}
.share-btn::after {
border:0;
}
.save-to-phone {
border-right: 1rpx solid #E8E8E8;
}
.close-btn {
color: #999999;
font-size: 60rpx;
border-radius: 50%;
background-color: #fff;
margin-top: 34rpx;
}
.close-btn .icon-guanbi {
font-size: 50rpx;
color: #999999;
}
\ No newline at end of file
... ...