Mike 7 سال پیش
والد
کامیت
d808199b53
2فایلهای تغییر یافته به همراه11 افزوده شده و 1 حذف شده
  1. 10 0
      miaomiao/www/js/controllers/home.js
  2. 1 1
      miaomiao/www/templates/home/dream-detail.html

+ 10 - 0
miaomiao/www/js/controllers/home.js

xqd
@@ -253,6 +253,16 @@
                     });
                 }, 50000);
 
+                $scope.isTest = true;
+                userService.isTest().then(function(res){
+                    if(res.data.data){
+                        $scope.isTest = true;
+                    }
+                    else{
+                        $scope.isTest = false;
+                    }
+                })
+
             });
             $scope.$on('$ionicView.afterLeave', function () {
                 clearInterval(timerID);

+ 1 - 1
miaomiao/www/templates/home/dream-detail.html

xqd
@@ -108,7 +108,7 @@
                             </div>
                         </div>
                     </div>
-                    <div class="item" style="padding:0 5px; border-top: 1px solid #E6E6E6;">
+                    <div class="item" style="padding:0 5px; border-top: 1px solid #E6E6E6;" ng-show="!isTest">
                         <div class="row">
                             <div class="col" style="text-align:left">
                                 <h2>{{dream.coin}}</h2>