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
4d18d576
Commit
4d18d576
authored
Sep 22, 2025
by
lg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 通用注册页
parent
a69b0551
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
91 additions
and
10 deletions
+91
-10
request.js
api/request.js
+2
-2
pages.json
pages.json
+10
-4
index.vue
pages/activity/index.vue
+24
-2
register.vue
pages/activity/register.vue
+52
-0
user.js
stores/user.js
+1
-1
Integral.vue
views/Integral.vue
+2
-1
No files found.
api/request.js
View file @
4d18d576
...
@@ -16,8 +16,8 @@ const {
...
@@ -16,8 +16,8 @@ const {
// request.js
// request.js
// 通常可以吧 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"
;
//测试环境
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.json
View file @
4d18d576
...
@@ -34,6 +34,13 @@
...
@@ -34,6 +34,13 @@
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
"path"
:
"pages/activity/register"
,
"style"
:
{
"navigationBarTitleText"
:
"注册"
,
"navigationStyle"
:
"custom"
}
},
{
{
"path"
:
"pages/search/search"
,
"path"
:
"pages/search/search"
,
"style"
:
{
"style"
:
{
...
@@ -205,10 +212,9 @@
...
@@ -205,10 +212,9 @@
}
}
},
},
{
{
"path"
:
"pages/middlePage/middlePage"
,
"path"
:
"pages/middlePage/middlePage"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
}
}
],
],
...
...
pages/activity/index.vue
View file @
4d18d576
...
@@ -3,13 +3,20 @@
...
@@ -3,13 +3,20 @@
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
{
ref
,
watch
,
nextTick
}
from
"vue"
;
import
{
onLoad
,
onShareAppMessage
,
onShareTimeline
}
from
"@dcloudio/uni-app"
;
import
{
onLoad
,
onSh
ow
,
onSh
areAppMessage
,
onShareTimeline
}
from
"@dcloudio/uni-app"
;
import
{
useGlobalStore
}
from
"../../stores/global"
;
import
{
useGlobalStore
}
from
"../../stores/global"
;
import
{
useUserStore
}
from
"../../stores/user"
;
const
userStore
=
useUserStore
();
const
globalStore
=
useGlobalStore
()
const
globalStore
=
useGlobalStore
()
function
getRegistered
(){
return
userStore
?.
userInfo
?.
memberId
!=
"not_login"
}
const
src
=
ref
(
""
);
const
src
=
ref
(
""
);
const
registered
=
ref
(
getRegistered
())
const
urlMap
=
{
const
urlMap
=
{
'main'
:
'http://192.168.10.108:8001/#/page'
,
'main'
:
'http://192.168.10.108:8001/#/page'
,
...
@@ -17,6 +24,21 @@ const urlMap = {
...
@@ -17,6 +24,21 @@ const urlMap = {
const
shareData
=
ref
(
null
)
const
shareData
=
ref
(
null
)
onShow
(()
=>
{
registered
.
value
=
getRegistered
()
})
watch
(()
=>
registered
.
value
,
(
newVal
)
=>
{
if
(
newVal
)
{
const
oldSrc
=
src
.
value
src
.
value
=
''
nextTick
(()
=>
{
src
.
value
=
oldSrc
})
}
})
onLoad
((
options
)
=>
{
onLoad
((
options
)
=>
{
console
.
log
(
'页面参数:'
,
options
)
console
.
log
(
'页面参数:'
,
options
)
...
...
pages/activity/register.vue
0 → 100644
View file @
4d18d576
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
RegisterLayer
from
"../../components/RegisterLayer.vue"
;
import
{
useUserStore
}
from
"../../stores/user"
;
const
userStore
=
useUserStore
();
const
showRegisterLayer
=
ref
(
false
);
function
onRegisterConfirm
(
data
)
{
console
.
log
(
'注册确认:'
,
data
);
showRegisterLayer
.
value
=
false
;
uni
.
navigateBack
({
delta
:
1
})
}
async
function
getRealtimePhoneNumber
(
e
)
{
console
.
log
(
"获取手机号码"
,
e
);
uni
.
navigateBack
({
delta
:
1
})
return
if
(
e
.
detail
.
errMsg
!==
"getPhoneNumber:ok"
)
{
uni
.
showToast
({
title
:
"请授权使用手机号"
,
icon
:
"none"
,
});
return
;
}
await
userStore
.
phoneCallback
(
e
.
detail
,
()
=>
{
showRegisterLayer
.
value
=
true
;
});
}
</
script
>
<
template
>
<button
type=
"primary"
class=
"phone-button"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getRealtimePhoneNumber"
>
注册
</button>
<RegisterLayer
v-model=
"showRegisterLayer"
@
confirm=
"onRegisterConfirm"
/>
</
template
>
<
style
scoped
>
.phone-button
{
margin-top
:
100px
;
width
:
90%
;
}
</
style
>
\ No newline at end of file
stores/user.js
View file @
4d18d576
...
@@ -79,7 +79,7 @@ export const useUserStore = defineStore("userInfo", {
...
@@ -79,7 +79,7 @@ export const useUserStore = defineStore("userInfo", {
if
(
res
.
errMsg
===
"login:ok"
)
{
if
(
res
.
errMsg
===
"login:ok"
)
{
// 用户手机授权F
// 用户手机授权F
const
{
const
{
data
:
babyExistence
data
:
{
babyExistence
}
}
=
await
fetchAutoPhone
({
}
=
await
fetchAutoPhone
({
phoneEncryptedData
:
data
.
encryptedData
,
phoneEncryptedData
:
data
.
encryptedData
,
phoneIv
:
data
.
iv
,
phoneIv
:
data
.
iv
,
...
...
views/Integral.vue
View file @
4d18d576
...
@@ -641,8 +641,9 @@ import MonthGift from '../components/pointRightsCom/monthGift.vue';
...
@@ -641,8 +641,9 @@ import MonthGift from '../components/pointRightsCom/monthGift.vue';
import YearGift from '../components/pointRightsCom/yearGift.vue';
import YearGift from '../components/pointRightsCom/yearGift.vue';
import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
//todo 测试入口 待删除
function clickTest(){
function clickTest(){
navigateTo('/pages/
webview/webview?url=' + encodeURIComponent('http://localhost:8001/#/page?id=49
'))
navigateTo('/pages/
activity/index?type=main¶ms=' + encodeURIComponent('id=32
'))
}
}
// 进度条图片加载错误处理
// 进度条图片加载错误处理
...
...
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