Przeglądaj źródła

代理相关修改2

junyuanz 4 lat temu
rodzic
commit
9cf865b922

+ 1 - 1
packageUser/pages/user/invite/invite.js

@@ -34,7 +34,7 @@ Page({
   },
   onLoad: function (options) {
     wx_id = getApp().globalData.wx_id
-    this.getinfo()
+    // this.getinfo()
     this.updatemonth()
     this.getCode()
     this.getList()

+ 6 - 6
packageUser/pages/user/invite/invite.wxml

@@ -104,9 +104,9 @@
           <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/right.png" class="list-rightimg" />
           <view class="list-person">{{item.ne_invitee_count}}人</view>
         </view>
-		<view class="list-price proxy-button" wx:if="{{wx_user.rank>=1}}" bindtap="toproxy" data-userid="{{item.id}}">
-			<text wx:if="{{item.status == 0}}">申请</text>
-			<text wx:if="{{item.status == 1}}">审核中</text>
+		<view class="list-price proxy-button" wx:if="{{wx_user.rank>=1}}">
+			<text wx:if="{{item.status == 0}}" bindtap="toproxy" data-userid="{{item.id}}">申请</text>
+			<text wx:if="{{item.status == 1}}" bindtap="toproxy" data-userid="{{item.id}}">审核中</text>
 			<text wx:if="{{item.status == 2}}" style="color: red;">是</text>
 		</view>
         <view class="clear"></view>
@@ -133,9 +133,9 @@
           <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/right.png" class="list-rightimg" />
           <view class="list-person">{{item.ne_invitee_count}}人</view>
         </view>
-		<view class="list-price proxy-button" wx:if="{{wx_user.rank>=1}}" bindtap="toproxy" data-userid="{{item.id}}">
-			<text wx:if="{{item.status == 0}}">申请</text>
-			<text wx:if="{{item.status == 1}}">审核中</text>
+		<view class="list-price proxy-button" wx:if="{{wx_user.rank>=1}}">
+			<text wx:if="{{item.status == 0}}"  bindtap="toproxy" data-userid="{{item.id}}">申请</text>
+			<text wx:if="{{item.status == 1}}"  bindtap="toproxy" data-userid="{{item.id}}">审核中</text>
 			<text wx:if="{{item.status == 2}}" style="color: red;">是</text>
 		</view>
         <view class="clear"></view>

+ 4 - 0
packageUser/pages/user/proxyReview/proxyReview.wxml

@@ -9,6 +9,10 @@
 		{{agentinfo.mobile}}
 	</view>
 	<view class="review-txt">
+		<text>申请代理</text>
+		<image class="list-head" src="{{agentinfo.intro_head}}" wx:if="{{agentinfo.intro_head}}"></image>{{agentinfo.intro_nick_name}}
+	</view>
+	<view class="review-txt">
 		<text>申请会员</text>
 		<image class="list-head" src="{{agentinfo.head}}" wx:if="{{agentinfo.head}}"></image>{{agentinfo.nickname}}
 	</view>

+ 2 - 1
pages/user/all/all.wxml

@@ -15,6 +15,7 @@
     <view class="user-title" wx:if="{{userInfo != 'nologin'}}"><text>NO.{{info.wx_user.id}}</text><text wx:if="{{info.user.tel}}"> | TEL : {{info.user.tel}}</text></view>
     <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 1}}">(身份:代理)</span>
     <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 2}}">(身份:店长)</span>
+    <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 3}}">(身份:区域代理)</span>
     
     <!--<view wx:if="{{userInfo != 'nologin' && !bindTel}}">
       <view class="user-title">
@@ -152,7 +153,7 @@
         <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
       </view>
       -->
-      <view class="user-line" bindtap="toProxy" >
+      <view class="user-line" bindtap="toProxy" wx:if="{{userInfo.rank == 3}}">
         <view class="user-line__title">我的代理</view>
         <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
       </view>