Silent 6 years ago
parent
commit
327ad00809
2 changed files with 4 additions and 2 deletions
  1. 2 1
      app/Http/Controllers/WeChat/ApiController.php
  2. 2 1
      wechat/pages/bind-phone/index.js

+ 2 - 1
app/Http/Controllers/WeChat/ApiController.php

xqd
@@ -172,7 +172,8 @@ class ApiController extends Controller
             'city' => $we_chat_user->city,
             'province' => $we_chat_user->province,
             'country' => $we_chat_user->country,
-            'avatar_url' => $we_chat_user->avatar_url
+            'avatar_url' => $we_chat_user->avatar_url,
+            'remark' => '已绑定'
         ]);
         if(empty($res)) {
             return response()->json(['status' => 'fail', 'info' => '数据更新失败']);

+ 2 - 1
wechat/pages/bind-phone/index.js

xqd xqd xqd
@@ -20,6 +20,7 @@ Page({
   formSubmit: e => {
     if(!e.detail.value.phone) {
       wx.showToast({
+        icon: 'none',
         title: '手机号不能为空',
       })
     } else {
@@ -31,7 +32,6 @@ Page({
           'phone': e.detail.value.phone
         },
         success: res => {
-          console.log(res)
           if (res.data.status == 'success') {
             wx.setStorageSync('pt_student', res.data.data)
             wx.switchTab({
@@ -39,6 +39,7 @@ Page({
             })
           } else if (res.data.status == 'fail') {
             wx.showToast({
+              icon: 'none',
               title: res.data.info,
             })
           }