刘远航 пре 4 година
родитељ
комит
7499b2101a
2 измењених фајлова са 16 додато и 5 уклоњено
  1. 13 3
      pages/login/login.vue
  2. 3 2
      pages/service/more.vue

+ 13 - 3
pages/login/login.vue

xqd xqd
@@ -69,10 +69,20 @@
 				<view style="width: 50%;text-align: center;">
 					<text style="text-decoration:underline ; color: #666666;" @click="ispwd">{{ispwdlogin?'验证码':'账号密码'}}登录</text>
 				</view>
-
 			</view>
-
 		</view>
+		<u-popup v-model="show" mode="center" :mask-close-able="false" border-radius="16">
+		   <view style="width: 500rpx;height: 400rpx;position: relative;" class="flex flex-direction align-center justify-center">
+		    <view class="text-xl text-bold" style="position: absolute;top:30rpx">
+		     提示
+		    </view>
+		    <view class="text-gray margin-top-sm text-lg">
+		     请授权手机号方便注册!
+		    </view>
+		    <button open-type="getPhoneNumber" style="width: 100%;font-size: 32rpx;position: absolute;bottom: 0;"
+		     @getphonenumber="getPhoneNumber">确认授权</button>
+		   </view>
+		  </u-popup>
 	</view>
 </template>
 
@@ -385,7 +395,7 @@
 
 
 			getPhoneNumber: async function(e) {
-				let res = await this.$request.post("api/v2/common/getPhoneNumber", {
+				let res = await this.$request.post("common/getPhoneNumber", {
 					iv: e.detail.iv,
 					encryptedData: e.detail.encryptedData,
 					session_key: this.session_key,

+ 3 - 2
pages/service/more.vue

xqd xqd
@@ -792,8 +792,9 @@
 				});
 				let oks, dh1, dh2, dh3, tw1, tw2, tw3;
 
+				console.log(e.list.phone)
 				// 电话
-				if (e.list.phone != null) {
+				if (e.list.phone.length != 0) {
 					dh1 = this.dh.timeList1;
 					dh2 = this.dh.timeList2;
 					dh3 = this.dh.timeList3;
@@ -824,7 +825,7 @@
 				}
 
 				// 图文资讯渲染
-				if(e.list.chat!=null){
+				if(e.list.chat.length!=0){
 					tw1=this.tw.timeList1;
 					tw2=this.tw.timeList2;
 					tw3=this.tw.timeList3;