Mike 7 年 前
コミット
e7947b3553

+ 19 - 0
miaomiao/www/css/style.css

xqd
@@ -708,4 +708,23 @@ a:visited,a:link{
   animation: bounce ease-in 1;
   -webkit-animation-duration: 1000ms;
   animation-duration: 1000ms;
+}
+.popup-body{
+    color: #333;
+}
+.button.button-positive{
+    background-color: #00C3DA;
+}
+.button.button-balanced.active, .button.button-positive.activated{
+    background-color: #00C3DA;
+}
+.bar.bar-balanced{    
+    border-color: #019293;
+    background-color: #00C3DA;
+    background-image: linear-gradient(0deg, #019293, #019293 50%, transparent 50%);
+    color: #fff;}
+.button.button-balanced {
+    border-color: transparent;
+    background-color: #00C3DA;
+    color: #fff;
 }

+ 29 - 23
miaomiao/www/js/controllers/home.js

xqd xqd xqd
@@ -121,7 +121,6 @@
         , function ($scope, $state,$ionicModal, storage , msg, common, config, homeService, $ionicTabsDelegate, $stateParams, $ionicModal, $timeout, $ionicScrollDelegate, $interval) {
         var id = $stateParams.id;
         var top3user = '';
-
             $scope.chosedIndex = 0;
             $scope.clickAvatar = function(index){
                 $scope.chosedIndex = index;
@@ -176,17 +175,21 @@
                 msg.hide();
             });
         };
-            $ionicModal.fromTemplateUrl('supportExplain.html', {
-                scope: $scope
-            }).then(function(modal) {
-                $scope.supportmodal = modal;
-            });
-            $scope.openSupportmodal = function() {
-                $scope.supportmodal.show();
-            };
-            $scope.closeSupportmodal = function() {
-                $scope.supportmodal.hide();
-            };
+
+        $scope.openSupport = function () {
+            msg.alert("支持乘数","支持乘数支持乘数支持乘数支持乘数");
+        };
+        // $ionicModal.fromTemplateUrl('supportExplain.html', {
+        //     scope: $scope
+        // }).then(function(modal) {
+        //     $scope.supportmodal = modal;
+        // });
+        // $scope.openSupportmodal = function() {
+        //     $scope.supportmodal.show();
+        // };
+        // $scope.closeSupportmodal = function() {
+        //     $scope.supportmodal.hide();
+        // };
         $scope.multi = {
             a: '',
             b: '',
@@ -464,17 +467,20 @@
                     msg.hide();
                 });
             };
-            $ionicModal.fromTemplateUrl('supportExplain.html', {
-                scope: $scope
-            }).then(function(modal) {
-                $scope.supportmodal = modal;
-            });
-            $scope.openSupportmodal = function() {
-                $scope.supportmodal.show();
-            };
-            $scope.closeSupportmodal = function() {
-                $scope.supportmodal.hide();
-            };
+            // $ionicModal.fromTemplateUrl('supportExplain.html', {
+            //     scope: $scope
+            // }).then(function(modal) {
+            //     $scope.supportmodal = modal;
+            // });
+            // $scope.openSupportmodal = function() {
+            //     $scope.supportmodal.show();
+            // };
+            // $scope.closeSupportmodal = function() {
+            //     $scope.supportmodal.hide();
+            // };
+        $scope.openSupport = function () {
+            msg.alert("支持乘数","支持乘数支持乘数支持乘数支持乘数");
+        };
             $scope.multi = {
                 a: '',
                 b: '',

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

xqd xqd xqd
@@ -97,7 +97,7 @@
                 <div class="item" style="padding-right: 0; padding-left: 0">
                     <div class="row">
                         <div class="col">
-                            <button ng-click="openSupportmodal()" class="button button-outline button-calm" style="width:100%; border-radius:30px; white-space:normal;line-height:20px; border: 1px solid #00C3DA">支持乘数×{{multi.result}}</button>
+                            <button ng-click="openSupport()" class="button button-outline button-calm" style="width:100%; border-radius:30px; white-space:normal;line-height:20px; border: 1px solid #00C3DA">支持乘数×{{multi.result}}</button>
                         </div>
                         <div class="col">
                             <button class="button button-calm" style="width:100%; border-radius:30px; font-size: 20px;" ng-click="support($event)">支持</button>
@@ -405,7 +405,7 @@
             </div>
         </div>
     </div>
-        <script id="supportExplain.html" type="text/ng-template">
+    <!-- <script id="supportExplain.html" type="text/ng-template">
             <div class="modal">
                 <ion-header-bar class="bar-calm bar bar-header has-tabs-top">
                     <h1 class="title">说明</h1>
@@ -415,5 +415,5 @@
                     1.测试文本
                 </ion-content>
             </div>
-    </script>
+    </script> -->
 </ion-view>