YanaDH 7 lat temu
rodzic
commit
ae47d665da
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      miaomiao/www/js/controllers/home.js

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

xqd
@@ -562,15 +562,15 @@
 
             $scope.share = function (type,$event) {
                 $scope.toshare = true;
-                // var desc = $scope.dream.about;
-                // debugger;
+                var desc = $scope.dream.about.substring(0,100);
+                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 + '在瞄喵发布了一个新的梦想。',
+                            description: $scope.dream.user.nickname + '在瞄喵发布了一个新的梦想。' + '\n' + desc,
                             thumb: $scope.dream.imgs[0].pic,
                             media: {
                                 type: Wechat.Type.WEBPAGE,