Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
7cc71a7c
Commit
7cc71a7c
authored
Nov 04, 2025
by
spc
Browse files
Options
Browse Files
Download
Plain Diff
fixed
parents
14d6e99a
9b243cbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
request.js
api/request.js
+2
-2
index.vue
pages/activity/index.vue
+12
-10
No files found.
api/request.js
View file @
7cc71a7c
...
@@ -17,8 +17,8 @@ const {
...
@@ -17,8 +17,8 @@ const {
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.230.108:7777/pmall";
// const baseUrl = "http://172.16.230.108:7777/pmall";
// const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
// const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
//
const baseUrl = "https://momclub-test.feihe.com/pmall";
const
baseUrl
=
"https://momclub-test.feihe.com/pmall"
;
let
baseUrl
=
"https://momclub.feihe.com/pmall"
;
//生产环境
//
let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
// const baseUrl = "https://feihe.m.duibatest.com.cn/pmall"
// const baseUrl = "https://feihe.m.duibatest.com.cn/pmall"
...
...
pages/activity/index.vue
View file @
7cc71a7c
...
@@ -3,11 +3,12 @@
...
@@ -3,11 +3,12 @@
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
,
watch
,
nextTick
}
from
"vue"
;
import
{
ref
,
watch
,
nextTick
,
computed
}
from
"vue"
;
import
{
onLoad
,
onShow
,
onShareAppMessage
,
onShareTimeline
}
from
"@dcloudio/uni-app"
;
import
{
onLoad
,
onShow
,
onShareAppMessage
,
onShareTimeline
}
from
"@dcloudio/uni-app"
;
import
{
useGlobalStore
}
from
"../../stores/global"
;
import
{
useGlobalStore
}
from
"@/stores/global"
;
import
{
useUserStore
}
from
"../../stores/user"
;
import
{
useUserStore
}
from
"@/stores/user"
;
import
{
jump
,
JumpType
}
from
"../../utils"
;
import
{
jump
,
JumpType
}
from
"@/utils"
;
import
{
baseUrl
as
requestBaseUrl
}
from
"@/api/request"
;
const
userStore
=
useUserStore
();
const
userStore
=
useUserStore
();
const
globalStore
=
useGlobalStore
()
const
globalStore
=
useGlobalStore
()
...
@@ -21,14 +22,15 @@ const src = ref("")
...
@@ -21,14 +22,15 @@ const src = ref("")
const
registered
=
ref
(
undefined
)
const
registered
=
ref
(
undefined
)
const
urlMap
=
{
const
urlMap
=
{
//'main': 'http://192.168.0.5:8001/#/page',
'main'
:
'/h5/#/page'
,
'main'
:
'https://momclub.feihe.com/h5/#/page'
,
//'main': 'https://momclub-test.feihe.com/h5/#/page',
//'main': 'https://momclub-uat.feihe.com/h5/#/page',
};
};
const
shareData
=
ref
(
null
)
const
shareData
=
ref
(
null
)
const
baseUrl
=
computed
(()
=>
{
return
requestBaseUrl
.
substring
(
0
,
requestBaseUrl
.
indexOf
(
'/'
,
'http'
.
length
+
4
))
})
const
handleBack
=
()
=>
{
const
handleBack
=
()
=>
{
try
{
try
{
uni
.
navigateBack
({
uni
.
navigateBack
({
...
@@ -51,7 +53,7 @@ const handleBack = () => {
...
@@ -51,7 +53,7 @@ const handleBack = () => {
async
function
ensureAutoLogin
()
{
async
function
ensureAutoLogin
()
{
//debugger
//debugger
//if (!globalStore.cuk) {
//if (!globalStore.cuk) {
await
userStore
.
normalAutoLogin
()
await
userStore
.
normalAutoLogin
()
//}
//}
}
}
...
@@ -108,7 +110,7 @@ function initOk() {
...
@@ -108,7 +110,7 @@ function initOk() {
if
(
options
.
type
)
{
if
(
options
.
type
)
{
const
type
=
options
.
type
;
const
type
=
options
.
type
;
url
=
urlMap
[
type
];
url
=
baseUrl
.
value
+
urlMap
[
type
];
}
else
if
(
options
.
url
)
{
}
else
if
(
options
.
url
)
{
url
=
decodeURIComponent
(
options
.
url
)
url
=
decodeURIComponent
(
options
.
url
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment