Bläddra i källkod

add index page

stanley-king 4 år sedan
förälder
incheckning
6c0a5983df
2 ändrade filer med 4 tillägg och 7 borttagningar
  1. 2 5
      pages/components/wxbutton/wxbutton.js
  2. 2 2
      pages/components/wxbutton/wxbutton.wxml

+ 2 - 5
pages/components/wxbutton/wxbutton.js

@@ -62,11 +62,8 @@ Component({
                  app.globalData.member_id = datas.member_id
                  app.globalData.hasmobile = datas.hasmobile
              }
-            //  wx.reLaunch({
-            //      url: "pages/home/home"
-
-            //  })
-             app.switchtab("pages/home/home")             
+            
+             app.switchtab('/pages/home/home') 
          })
      }
    }

+ 2 - 2
pages/components/wxbutton/wxbutton.wxml

@@ -1,7 +1,7 @@
 <!--pages/components/wxbutton/wxbutton.wxml-->
 <view wx:if="{{item_data.show_data==='getUserInfo'}}">
-	<button class="btn" open-type="getUserInfo" bindgetuserinfo="onGetUserInfo">
-		<image bindtap="navigator" mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';">
+	<button class="btn" bindtap="navigator" open-type="getUserInfo" bindgetuserinfo="onGetUserInfo">
+		<image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';">
 		</image>
 	</button>
 </view>