1
0

2 Коммитууд b8ba3f96fd ... 45a8d94cb9

Эзэн SHA1 Мессеж Огноо
  warrior 45a8d94cb9 Merge branch 'master' of http://git.fmode.cn:3000/0235561/pbf-wxapp 6 өдөр өмнө
  warrior 95b7f9e22c 优化登录逻辑 6 өдөр өмнө

+ 2 - 1
nova-pbf/components/home/index.js

@@ -218,8 +218,9 @@ Component({
       
       const currentUser = Parse.User.current();
       console.log('📱 当前用户:', currentUser);
+      const isAuth = login.loginNow()
       
-      if (!currentUser) {
+      if (!currentUser || !isAuth) {
         console.error('❌ 当前没有登录用户!');
         wx.showToast({
           title: '请先登录',

+ 1 - 1
nova-pbf/pages/index/index.js

@@ -15,7 +15,7 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: async function (options) {
-    login.loginNow()
+    // login.loginNow()
     
     // ✅ 立即加载并设置店铺名称作为页面标题
     await this.loadAndSetStoreTitle()

+ 2 - 16
nova-pbf/pages/index/index.wxml

@@ -11,7 +11,7 @@
 </view>
 
 	<home id="comp{{id}}" />
-<van-tabbar
+<!-- <van-tabbar
  class="custom-tabbar" active="{{ active }}" bind:change="onChange" active-color="{{tabbarList.activeColor || '#000000'}}" inactive-color="#fff" z-index="99">
 	<block wx:for="{{tabbarList.list}}" wx:key="index">
 		<van-tabbar-item wx:if="{{item.open}}" name="{{index}}">
@@ -20,18 +20,4 @@
 			<view slot="icon">{{item.text}}</view>
 		</van-tabbar-item>
 	</block>
-</van-tabbar>
-
-<!-- 签到弹框 -->
-<view class="model" wx:if="{{showModel}}">
-	<view class="signIn">
-		<view class="title">首周签到有礼</view>
-		<view class="subhead">签到领乐宝</view>
-		<view class="qianDao" bind:tap="signIn">
-			{{isSignIn ? '今日已签' : '签到'}}
-		</view>
-	</view>
-  <van-icon name="close" style="margin-top:10rpx;color: white;" size="80rpx" bind:tap="onClick" />
-</view>
-<!-- 签到成功 -->
-<van-toast id="van-toast" />
+</van-tabbar> -->

+ 2 - 2
project.private.config.json

@@ -1,8 +1,8 @@
 {
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
   "setting": {
-    "compileHotReLoad": true,
-    "urlCheck": false,
+    "compileHotReLoad": false,
+    "urlCheck": true,
     "preloadBackgroundData": false
   },
   "game": {