Merge branch 'dev' into 'master'

uniapp【修复】:修复安卓版本未登陆情况下,登录页无法二次跳转

See merge request jianweie/coreshoppro!122
This commit is contained in:
花城
2025-08-07 03:33:56 +00:00
7 changed files with 50 additions and 43 deletions

View File

@@ -1,16 +1,16 @@
// 不同的环境变量配置
const development = {
requestBaseUrl: 'https://api.test.pro.coreshop.cn',
requestBaseUrl: 'https://api.pro.demo.coreshop.cn',
appid: '',
}
const test = {
requestBaseUrl: 'https://api.test.pro.coreshop.cn',
requestBaseUrl: 'https://api.pro.demo.coreshop.cn',
appid: '',
}
const production = {
requestBaseUrl: 'https://api.test.pro.coreshop.cn',
requestBaseUrl: 'https://api.pro.demo.coreshop.cn',
appid: '',
}

View File

@@ -16,7 +16,8 @@ export interface ShopConfigType {
indexPopupWindowImageUrl ?: string;
invoiceSwitch ?: number;
isAllowUserSecondBind ?: number;
orderAutoSignTime ?: number;
orderAutoEvalTime ?: number;
/** 余额提现 */
isAllowWithdrawCash ?: number;
isOpenAgent ?: number;

View File

@@ -1,6 +1,6 @@
import { defineStore } from 'pinia';
import { UserToken } from '@/core/consts';
import { handleShowToast } from '@/core/utils';
import { handleShowToast, handleRouteNavigateTo } from '@/core/utils';
import { queryUserInfo } from '@/core/api';
import type { UserLoginStoreType, Response, UserInfoType } from '@/core/models';
import { useUserInfoStore } from './userInfo';
@@ -15,7 +15,14 @@ export const useLoginStore = defineStore('useLoginStore', {
/** 检查是否登录 */
checkLogin(callBack : () => void) {
if (!uni.getStorageSync(UserToken)) {
// #ifdef MP-ALIPAY || MP-WEIXIN
this.setShowLoginModalTogglePop(true);
// #endif
// #ifndef MP-WEIXIN || MP-ALIPAY
handleRouteNavigateTo(`/pages/login/login?backUrl=${'/pages/member/member'}`)
// #endif
} else {
callBack();
}

View File

@@ -50,7 +50,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wx3f290252193d7627",
"appid" : "wx6a73f5a508da7af2",
"setting" : {
"urlCheck" : false,
"checkSiteMap" : false,

View File

@@ -114,7 +114,7 @@
if (state.orderId && isGoodsOrder()) {
handleRouteRedirectTo(`/pages/subpackage/member/order/detail/detail?orderId=${state.orderId}`);
} else if (state.paymentInfo.type === PaymentTypeEnum.recharge) {
handleRouteRedirectTo(`/pages/subpackage/member/balance/detail/detail`);
handleRouteRedirectTo(`/pages/subpackage/member/balance/balance-detail/index`);
} else if (state.paymentInfo.type === PaymentTypeEnum.formPay || state.paymentInfo.type === PaymentTypeEnum.formOrder) {
handleRouteSwitchTab()
} else if (state.paymentInfo.type === PaymentTypeEnum.serviceOrder) {

View File

@@ -27,7 +27,7 @@
</view>
<view class="explain">
<view class="tit">务必在收到商品后再确认收货</view>
<view class="desc">发货20天后将自动确认收货</view>
<view class="desc">发货{{shopConfigStore?.config?.orderAutoSignTime}}天后将自动确认收货</view>
</view>
</view>
<view class="steps-status" v-if="state.orderStatus == OrderAllStatusTypeEnum.aLL_PENDING_RECEIPT">
@@ -36,7 +36,7 @@
<view class="desc">请您对此次购物体检进行评价</view>
</view>
<view class="explain">
<view class="tit">收货30天后将自动评价</view>
<view class="tit">收货{{shopConfigStore?.config?.orderAutoEvalTime}}天后将自动评价</view>
</view>
</view>
<view class="steps-status" v-if="state.orderStatus == OrderAllStatusTypeEnum.aLL_PENDING_EVALUATE">

View File

@@ -1,11 +1,10 @@
<template>
<coreshop-page title="我的订单" mode="left">
<coreshop-page title="我的订单1" mode="left">
<view class="layout-order-box">
<view class="tab-box">
<uv-tabs :list="state.tabList" :activeStyle="{ 'color': '#D33123' }" lineColor="#D33123" :lineWidth="40"
:scrollable="false" :current="state.tabsCurrent" keyName="title" @click="handleChangeTab"></uv-tabs>
</view>
<view class="order-list-box">
<view class="order-box">
<view v-if="state.orderList.length > 0">