Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
05649a8d
Commit
05649a8d
authored
Mar 17, 2025
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~~
parent
e7b35207
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
218 additions
and
99 deletions
+218
-99
App.vue
App.vue
+1
-0
pages.json
pages.json
+15
-8
pages/index/index.vue
pages/index/index.vue
+11
-0
pages/login/login.vue
pages/login/login.vue
+34
-17
pages/register/register.vue
pages/register/register.vue
+54
-0
pages/user/reseller/reseller.vue
pages/user/reseller/reseller.vue
+9
-0
uni.scss
uni.scss
+3
-0
utils/request.js
utils/request.js
+45
-36
utils/requestTow.js
utils/requestTow.js
+46
-38
No files found.
App.vue
View file @
05649a8d
...
...
@@ -6,6 +6,7 @@
import
permision
from
"
@/utils/permission.js
"
;
//App平台的授权判断封装js
export
default
{
onLaunch
:
function
()
{
uni
.
setStorageSync
(
"
tourist
"
,
0
);
//是否是游客模式 0 否 1 是
if
(
platform
==
'
ios
'
){
bgAudioMannager
.
title
=
'
您已进入鹿马商家助手...
'
;
bgAudioMannager
.
singer
=
'
小马将为你进行实时播报语音
'
;
...
...
pages.json
View file @
05649a8d
{
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/login/login"
,
"style"
:
{
"navigationBarTitleText"
:
"鹿马商家管理系统-登录"
}
},
{
"path"
:
"pages/register/register"
,
"style"
:
{
"navigationBarTitleText"
:
"注册"
}
},
{
"path"
:
"pages/index/index"
,
"style"
:
{
"enablePullDownRefresh"
:
true
,
"navigationBarTitleText"
:
"首页"
}
},
{
"path"
:
"pages/yjWithdraw/yjWithdraw"
,
"style"
:
{
...
...
@@ -27,14 +42,6 @@
}
},
{
"path"
:
"pages/index/index"
,
"style"
:
{
"enablePullDownRefresh"
:
true
,
"navigationBarTitleText"
:
"首页"
}
},
{
"path"
:
"pages/notice/notice"
,
"style"
:
{
...
...
pages/index/index.vue
View file @
05649a8d
...
...
@@ -364,6 +364,10 @@
<Welcome
ref=
"Welcome"
></Welcome>
<!-- 欢迎回来 -->
<yomol-upgrade
ref=
"yomolUpgrade"
></yomol-upgrade>
<view
class=
"submitbtn OutTourist"
@
tap=
"OutTourist"
>
退出游客模式
</view>
</view>
</
template
>
...
...
@@ -448,6 +452,13 @@
},
methods
:
{
//退出游客模式
OutTourist
(){
uni
.
setStorageSync
(
"
tourist
"
,
0
);
//是否是游客模式 0 否 1 是
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
},
//手动开启语音播报
open_order_tis
(){
//#ifdef APP-PLUS
...
...
pages/login/login.vue
View file @
05649a8d
...
...
@@ -20,6 +20,7 @@
<checkbox
class=
"checkbox"
color=
"#ff6900"
value=
"cb"
:checked=
"ischecked"
/>
<text>
记住密码
</text>
</checkbox-group>
</view>
<view
@
click=
"getregister"
>
我要注册
</view>
<view
@
click=
"change_sta"
>
忘记密码?
</view>
</view>
<view
class=
"con_04"
style=
"margin-top: 0px;"
>
...
...
@@ -30,11 +31,15 @@
</view>
</view>
<view
class=
"con_04"
style=
"margin-top: 30px;"
>
<view
class=
"con_04_1"
@
tap=
"tourist"
>
游客模式
</view>
</view>
<!-- #ifdef H5 -->
<view
class=
"con_04"
style=
"margin-top: 30px;"
>
<
!--
<
view
class=
"con_04"
style=
"margin-top: 30px;"
>
<view
class=
"con_04_1 "
@
tap=
"logindemo()"
>
测试登录
</view>
</view>
</view>
-->
<!-- #endif -->
</view>
...
...
@@ -65,16 +70,12 @@
<view
class=
"con_04_1 con_04_3"
@
click=
"back"
>
返回登录
</view>
<view
class=
"con_04_1 con_04_2"
@
click=
"edit_psd"
>
提交
</view>
</view>
</view>
<showxieyi
ref=
"showxieyi"
@
isclickty=
"isclickty"
></showxieyi>
<!-- 使用协议 -->
<view
class=
"dingyuesm"
>
<view
class=
"xieyitagbox flex ali-c flexc"
>
<view
class=
"flex ali-c"
>
...
...
@@ -137,13 +138,10 @@
//自动登录
this
.
login
();
}
},
onLoad
()
{
//处理 协议 按钮
let
istongyi
=
uni
.
getStorageSync
(
'
istongyi
'
);
if
(
istongyi
){
...
...
@@ -162,7 +160,24 @@
}
},
methods
:
{
methods
:
{
//游客模式
tourist
(){
if
(
this
.
isAgree
==
false
){
this
.
$api
.
msg
(
"
您需要先同意用户协议和隐私策略
"
);
return
false
;
}
uni
.
setStorageSync
(
"
tourist
"
,
1
);
//是否是游客模式 0 否 1 是
uni
.
switchTab
({
url
:
"
/pages/index/index
"
})
},
//怎么注册
getregister
(){
uni
.
navigateTo
({
url
:
"
/pages/register/register
"
})
},
//单选框
radioChange
(
e
){
this
.
isAgree
=
!
this
.
isAgree
;
...
...
@@ -205,9 +220,11 @@
}
},
//测试登录方法 h5使用
logindemo
(){
this
.
username
=
"
18979561614
"
;
this
.
password
=
"
123456
"
;
logindemo
(){
//18979561614
this
.
username
=
"
18770001107
"
;
this
.
password
=
"
123321
"
;
this
.
isAgree
=
true
;
this
.
login
();
},
async
login
(){
...
...
pages/register/register.vue
0 → 100644
View file @
05649a8d
<
template
>
<view
class=
"register"
>
<!-- 注册指引 -->
<view
class=
"rztext"
>
商家入驻申请需通过「鹿马108」APP或小程序提交。请您下载或打开「鹿马108」,选择「我要合作」选项,填写入驻表单并提交审核。提交前请阅读《隐私政策》了解信息处理规则。
</view>
<view
class=
"yd_img_view"
>
<image
class=
"yd_img"
v-for=
"(item,index) in yd_imglist"
:key=
"index"
:src=
"staticUrl+item"
mode=
"widthFix"
></image>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
yd_imglist
:[
'
2025/03/17/67d7be5bdb7e3.png
'
,
"
2025/03/17/67d7be96048e7.png
"
,
"
2025/03/17/67d7bea9a93c7.png
"
,
"
2025/03/17/67d7bebf8c81d.png
"
,
"
2025/03/17/67d7becc144c6.png
"
]
}
},
computed
:{
staticUrl
(){
return
this
.
$store
.
state
.
staticUrl
}
},
onLoad
()
{
},
methods
:{
}
}
</
script
>
<
style
lang=
"scss"
>
page
{
padding
:
20rpx
;
}
.rztext
{
color
:
#000000
;
font-size
:
32rpx
;
text-indent
:
21pt
;
}
.yd_img_view
{
text-align
:
center
;
.yd_img
{
margin
:
10rpx
0
;
width
:
700rpx
;
}
}
</
style
>
\ No newline at end of file
pages/user/reseller/reseller.vue
View file @
05649a8d
...
...
@@ -94,6 +94,8 @@
</view>
</eModal>
<!-- 绑定手机号 -->
<view
class=
"submitbtn OutTourist"
@
tap=
"OutTourist"
>
退出游客模式
</view>
</view>
</
template
>
...
...
@@ -137,6 +139,13 @@
this
.
initimlogin
();
},
methods
:
{
//退出游客模式
OutTourist
(){
uni
.
setStorageSync
(
"
tourist
"
,
0
);
//是否是游客模式 0 否 1 是
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
},
//初始化一下 如果没登录 那就重新登录一下IM
initimlogin
(){
this
.
$store
.
dispatch
(
"
InItImlogin
"
);
...
...
uni.scss
View file @
05649a8d
...
...
@@ -239,6 +239,9 @@ $uni-color-error: #dd524d;
.submitbtn.active
{
background
:
#FF6900
;
}
.OutTourist
{
border-radius
:
70rpx
;
}
//按钮样式
...
...
utils/request.js
View file @
05649a8d
...
...
@@ -48,25 +48,28 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
if
(
api
==
'
store/newsRemind
'
){
//直接返回
return
false
;
}
let
tourist
=
uni
.
getStorageSync
(
"
tourist
"
);
if
(
tourist
!=
1
){
//非游客模式才会提示 未登录 前往授权登录
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您还没有登录授权,是否先登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您还没有登录授权,是否先登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
}
return
false
;
...
...
@@ -132,25 +135,31 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
store
.
commit
(
"
changetoken
"
,
""
);
//清除
uni
.
setStorageSync
(
"
token
"
,
""
);
//清除
let
tourist
=
uni
.
getStorageSync
(
"
tourist
"
);
if
(
tourist
!=
1
){
//非游客模式才会提示 未登录 前往授权登录
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您的登录信息已过期,是否去登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
}
else
{
reslove
({},
{});
}
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您的登录信息已过期,是否去登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
reslove
(
res
.
data
,
res
);
...
...
utils/requestTow.js
View file @
05649a8d
...
...
@@ -34,24 +34,27 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
// #ifdef APP-PLUS
// #endif
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您还没有登录授权,是否先登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
let
tourist
=
uni
.
getStorageSync
(
"
tourist
"
);
if
(
tourist
!=
1
){
//非游客模式才会提示 未登录 前往授权登录
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您还没有登录授权,是否先登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
}
return
false
;
...
...
@@ -110,27 +113,32 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
store
.
commit
(
"
changetoken
"
,
""
);
//清除
uni
.
setStorageSync
(
"
token
"
,
""
);
//清除
let
tourist
=
uni
.
getStorageSync
(
"
tourist
"
);
if
(
tourist
!=
1
){
//非游客模式才会提示 未登录 前往授权登录
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您的登录信息已过期,是否去登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
}
else
{
reslove
({},
{});
}
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
您的登录信息已过期,是否去登录授权?
'
,
confirmText
:
"
去授权
"
,
cancelText
:
"
先逛逛
"
,
confirmColor
:
"
#ff6900
"
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
uni
.
hideLoading
();
uni
.
navigateTo
({
url
:
'
/pages/login/login?zd=1&isfanhui=1
'
});
uni
.
hideLoading
();
}
else
if
(
res
.
cancel
)
{
uni
.
hideLoading
();
}
}
});
reslove
(
res
.
data
,
res
);
}
else
if
([
410000
,
410001
,
410002
].
indexOf
(
res
.
data
.
code
)
!==
-
1
)
{
...
...
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