xiaoxin 2 年 前
コミット
a5a31f79b4

+ 1 - 0
pages/index/index.vue

@@ -9,6 +9,7 @@ import { myRequest } from '@/utils/api.js'
 onLoad(() => {
 onLoad(() => {
 	uni.login({
 	uni.login({
 		success: (res) => {
 		success: (res) => {
+			// console.log(res.code)
 			vertify(res.code)
 			vertify(res.code)
 		}
 		}
 	})
 	})

+ 5 - 2
pages/login/login.vue

@@ -25,6 +25,7 @@
 import { ref, computed } from 'vue'
 import { ref, computed } from 'vue'
 import { onLoad } from '@dcloudio/uni-app'
 import { onLoad } from '@dcloudio/uni-app'
 import { myRequest } from '@/utils/api.js'
 import { myRequest } from '@/utils/api.js'
+import { decryptDes } from '@/utils/des.js'
 
 
 // 手机号码
 // 手机号码
 const phone = ref('')
 const phone = ref('')
@@ -113,10 +114,12 @@ const getBind = async (wxcode) => {
 		}
 		}
 	})
 	})
 	// console.log(res)
 	// console.log(res)
+	const result = JSON.parse(decryptDes(res.data))
 
 
 	// 1 代表家长  2 代表学生  3 代表老师
 	// 1 代表家长  2 代表学生  3 代表老师
-	uni.setStorageSync('token', res.data.token)
-	uni.setStorageSync('userInfo', res.data.user)
+	uni.setStorageSync('token', result.token)
+	uni.setStorageSync('userInfo', result.user)
+	uni.setStorageSync('userhead', result.userhead)
 	uni.navigateTo({
 	uni.navigateTo({
 		url: '/pages/home/home'
 		url: '/pages/home/home'
 	})
 	})

ファイルの差分が大きいため隠しています
+ 225 - 485
unpackage/dist/dev/mp-weixin/common/vendor.js


+ 2 - 1
unpackage/dist/dev/mp-weixin/components/headerInput.js

@@ -11,7 +11,8 @@ if (!Math) {
 const _sfc_main = {
 const _sfc_main = {
   __name: "headerInput",
   __name: "headerInput",
   emits: ["changeInputValue"],
   emits: ["changeInputValue"],
-  setup(__props, { emit: $emit }) {
+  setup(__props, { emit: __emit }) {
+    const $emit = __emit;
     const timer = common_vendor.ref(null);
     const timer = common_vendor.ref(null);
     const handleInput = (e) => {
     const handleInput = (e) => {
       if (timer.value) {
       if (timer.value) {

+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesReservation/register/register.js

@@ -324,7 +324,7 @@ const _sfc_main = {
       } : {}, {
       } : {}, {
         I: authValue.value,
         I: authValue.value,
         J: common_vendor.o(handleAuth),
         J: common_vendor.o(handleAuth),
-        K: common_vendor.unref(btnFlag) ? 1 : "",
+        K: btnFlag.value ? 1 : "",
         L: common_vendor.o(handleSubmit)
         L: common_vendor.o(handleSubmit)
       });
       });
     };
     };