wxml:
<view class="col-class zan-col zan-col-8"><button open-type='share' data-title="{ {articleinfo.title}}" data-id="{ {articleinfo.article_id}}" data-share="{ {articleinfo.share}}"><image src="../../resource/images/share.png" style="width:25px;height:20px;"></image> { {articleinfo.share}}</button></view>
onShareAppMessage: function (res) {
var that = this,title='',id='',flag=0,share=0;
console.log(res);
//button按钮分享
if (res.from === 'button') {
title = res.target.dataset.title;
id = res.target.dataset.id;
share = parseInt(res.targe