YanaDH 7 năm trước cách đây
mục cha
commit
df8004e815
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 6 3
      miaomiao/www/js/controllers/home.js

+ 6 - 3
miaomiao/www/js/controllers/home.js

xqd xqd xqd
@@ -562,12 +562,15 @@
 
             $scope.share = function (type,$event) {
                 $scope.toshare = true;
+                // var desc = $scope.dream.about;
+                // debugger;
                 if (type==0) {
                     //分享给朋友
                     Wechat.share({
                         message: {
                             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,
                             media: {
                                 type: Wechat.Type.WEBPAGE,
@@ -581,7 +584,7 @@
                     }, function (reason) {
                         $scope.toshare = false;
                         msg.error('分享失败');
-                        msg.alert(reason);
+                        alert(reason);
                     });
                 }
                 if(type==1){
@@ -603,7 +606,7 @@
                     }, function (reason) {
                         $scope.toshare = false;
                         msg.error('分享失败');
-                        msg.alert(reason);
+                        alert(reason);
                     });
                 }
             };