|
@@ -562,12 +562,15 @@
|
|
|
|
|
|
$scope.share = function (type,$event) {
|
|
$scope.share = function (type,$event) {
|
|
$scope.toshare = true;
|
|
$scope.toshare = true;
|
|
|
|
+ // var desc = $scope.dream.about;
|
|
|
|
+ // debugger;
|
|
if (type==0) {
|
|
if (type==0) {
|
|
//分享给朋友
|
|
//分享给朋友
|
|
Wechat.share({
|
|
Wechat.share({
|
|
message: {
|
|
message: {
|
|
title: $scope.dream.name,
|
|
title: $scope.dream.name,
|
|
- description: $scope.dream.user.nickname + '在瞄喵发布了一个新的梦想。' + '\n' + $scope.dream.about,
|
|
|
|
|
|
+ // description: $scope.dream.user.nickname + '在瞄喵发布了一个新的梦想。' + '\n' + $scope.dream.about,
|
|
|
|
+ description: $scope.dream.user.nickname + '在瞄喵发布了一个新的梦想。',
|
|
thumb: $scope.dream.imgs[0].pic,
|
|
thumb: $scope.dream.imgs[0].pic,
|
|
media: {
|
|
media: {
|
|
type: Wechat.Type.WEBPAGE,
|
|
type: Wechat.Type.WEBPAGE,
|
|
@@ -581,7 +584,7 @@
|
|
}, function (reason) {
|
|
}, function (reason) {
|
|
$scope.toshare = false;
|
|
$scope.toshare = false;
|
|
msg.error('分享失败');
|
|
msg.error('分享失败');
|
|
- msg.alert(reason);
|
|
|
|
|
|
+ alert(reason);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
if(type==1){
|
|
if(type==1){
|
|
@@ -603,7 +606,7 @@
|
|
}, function (reason) {
|
|
}, function (reason) {
|
|
$scope.toshare = false;
|
|
$scope.toshare = false;
|
|
msg.error('分享失败');
|
|
msg.error('分享失败');
|
|
- msg.alert(reason);
|
|
|
|
|
|
+ alert(reason);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|