lhl 4 年之前
父節點
當前提交
82c0a0eb8a
共有 2 個文件被更改,包括 7 次插入5 次删除
  1. 2 2
      pages/public/register.vue
  2. 5 3
      pages/user/user.vue

+ 2 - 2
pages/public/register.vue

@@ -17,8 +17,8 @@
 				<view class="login_img"><image src="/static/icon/img04.png"></image></view>
 				<view class="login_name"><input class="uni-input" type="password" v-model="repassword" focus placeholder="请重复输入密码" /></view>
 			</view>
-			<!-- <view class="login_input flex" style="display: none;"> -->
-				<view class="login_input flex">
+			<view class="login_input flex" style="display: none;">
+				<!-- <view class="login_input flex"> -->
 				<view class="login_img"><image src="/static/icon/img07.png"></image></view>
 				<view class="login_name"><input class="uni-input" type="text" v-model="invitation" focus placeholder="请输入邀请码" /></view>
 			</view>

+ 5 - 3
pages/user/user.vue

@@ -33,11 +33,13 @@
 				</view> -->
 			</view>
 			<template v-if="userInfo.level >= 1">
-				<view class="show-time">
-					<view>会员到期: {{userInfo.valid_time}}</view>
+				<view class="show-time" >
+					<view v-if="userInfo.valid_time != 0">会员到期: {{userInfo.valid_time}}</view>
+					<view v-if="userInfo.valid_time == 0">会员已到期</view>
 				</view>
 				<view class="show-time flex">
-					<view>分红到期: {{userInfo.commission_time}}</view>
+					<view v-if="userInfo.commission_time != 0">分红到期: {{userInfo.commission_time}}</view>
+					<view v-if="userInfo.commission_time == 0">分红已到期</view>
 					<view class="show-btn" @click="longTime">续期</view>
 				</view>
 			</template>