From bea9e52d5a1f56d9ca26a30ea121122def824b3d Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Fri, 24 Apr 2026 10:32:34 +0800
Subject: [PATCH] feat: 澜品优选权益
---
util.js | 76 +++++++++++++++++++------------------
1 files changed, 39 insertions(+), 37 deletions(-)
diff --git a/util.js b/util.js
index e28c766..1f9b238 100644
--- a/util.js
+++ b/util.js
@@ -1,5 +1,5 @@
import CryptoJS from './node_modules/crypto-js/crypto-js.js'
-const baseUrl = 'https://tmy.xjzbh.com/api/'
+const baseUrl = 'https://lp1994.lpyx.top/api/'
const cryptKey = '2025Shop2025Shop'
const cryptIv = '2025Shop2025Shop'
@@ -38,7 +38,7 @@
}
const getHeader = () => {
- let token = uni.getStorageSync('lzsc-token')
+ let token = uni.getStorageSync('pig-token')
let header = {
'Accept': 'application/json',
'Content-type': 'application/json',
@@ -208,7 +208,8 @@
}
const checkLogin = (url = '', burl = '') => {
- let token = uni.getStorageSync('lzsc-token') ? uni.getStorageSync('lzsc-token') : null
+ console.log('url', url)
+ let token = uni.getStorageSync('pig-token') ? uni.getStorageSync('pig-token') : null
if(token == null){
uni.showModal({
title: '温馨提示',
@@ -237,7 +238,7 @@
}
const checkGoPages = (url = '', burl = '', isgo = 1) => {
- let token = uni.getStorageSync('lzsc-token') ? uni.getStorageSync('lzsc-token') : null
+ let token = uni.getStorageSync('pig-token') ? uni.getStorageSync('pig-token') : null
console.log('token', token)
if(token == null){
uni.showModal({
@@ -260,39 +261,40 @@
})
return false
} else {
- let userInfo = getUserInfo()
- let goUrl = ''
- if(userInfo.idcard_auth == 0){
- goUrl = '/pages/idcard/idcard'
- } else if(userInfo.face_auth == 0){
- goUrl = '/pages/face/face'
- } else if(userInfo.job_auth == 0){
- goUrl = '/pages/job/job'
- } else if(userInfo.bank_auth == 0){
- goUrl = '/pages/addBank/addBank?backUrl=/pages/face/face'
- }
- console.log('goUrl', goUrl)
- if(goUrl != ''){
- uni.showModal({
- title: '温馨提示',
- content: '根据国家法律法规规定,使用本服务需要完成实名认证,是否前往认证?',
- success: function (res) {
- if (res.confirm) {
- uni.navigateTo({
- url: goUrl
- })
- }
- }
- })
- return false
- }
- if(url != '' && isgo == 1){
- uni.navigateTo({
- url: url
- })
- } else {
- return true
- }
+ return true
+ // let userInfo = getUserInfo()
+ // let goUrl = ''
+ // if(userInfo.idcard_auth == 0){
+ // goUrl = '/pages/idcard/idcard'
+ // } else if(userInfo.face_auth == 0){
+ // goUrl = '/pages/face/face'
+ // } else if(userInfo.job_auth == 0){
+ // goUrl = '/pages/job/job'
+ // } else if(userInfo.bank_auth == 0){
+ // goUrl = '/pages/addBank/addBank?backUrl=/pages/face/face'
+ // }
+ // console.log('goUrl', goUrl)
+ // if(goUrl != ''){
+ // uni.showModal({
+ // title: '温馨提示',
+ // content: '根据国家法律法规规定,使用本服务需要完成实名认证,是否前往认证?',
+ // success: function (res) {
+ // if (res.confirm) {
+ // uni.navigateTo({
+ // url: goUrl
+ // })
+ // }
+ // }
+ // })
+ // return false
+ // }
+ // if(url != '' && isgo == 1){
+ // uni.navigateTo({
+ // url: url
+ // })
+ // } else {
+ // return true
+ // }
}
}
--
Gitblit v1.9.3