Explorar el Código

店长专区换为养生专区

junyuanz hace 4 años
padre
commit
c2324fb6bf
Se han modificado 3 ficheros con 14 adiciones y 4 borrados
  1. 5 0
      pages/home/home.js
  2. 7 2
      pages/home/home.wxml
  3. 2 2
      pages/projects/projects.js

+ 5 - 0
pages/home/home.js

@@ -479,6 +479,11 @@ Page ({
       })
 //  }
   },
+  toyszq () {
+      wx.reLaunch({
+        url: '/pages/projects/projects?currentTab=3'
+      })
+  },
   todz () {
   	if(this.data.userinfo.rank < 2){
   		wx.navigateTo({

+ 7 - 2
pages/home/home.wxml

@@ -34,12 +34,17 @@
         <view class="item-name">直播</view>
       </view>
       
-      <view bindtap="todz">
+      <!-- <view bindtap="todz">
       	<image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/navigation_icons/shop_apply.png" class="item-index"  wx:if="{{userinfo.rank < 2}}"/>
         <view class="item-name" wx:if="{{userinfo.rank < 2}}">申请店长</view>
         <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/navigation_icons/shop_zone.png" class="item-index"  wx:if="{{userinfo.rank >= 2}}"/>
         <view class="item-name" wx:if="{{userinfo.rank >= 2}}">店长专区</view>
-      </view>
+      </view> -->
+	  
+	  <view bindtap="toyszq">
+	    <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/navigation_icons/yszq.png" class="item-index" />
+	    <view class="item-name">养生专区</view>
+	  </view>
       
       <view bindtap="toabout">
         <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/navigation_icons/about.png" class="item-index" />

+ 2 - 2
pages/projects/projects.js

@@ -13,11 +13,11 @@ Page({
     balance: 0,
     todaysend: Date.parse(new Date()) / 1000
   },
-  onLoad: function () {
+  onLoad: function (options) {
     this.getBalanceInfo()
     this.setData({
       vershow: getApp().globalData.vershow,
-      currentTab: 0
+      currentTab:options.currentTab ? options.currentTab : 0
       // currentTab: getApp().globalData.isshow
     })
     if (getApp().globalData.isupdate == true) {