Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-customer-new-master
Commits
6fee78ba
Commit
6fee78ba
authored
Oct 23, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release' into release
parents
f9b13669
e6ed71ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
9 deletions
+32
-9
order_mail.vue
src/pages/order_mail/order_mail.vue
+24
-8
index.js
src/store/index.js
+8
-1
No files found.
src/pages/order_mail/order_mail.vue
View file @
6fee78ba
...
...
@@ -78,7 +78,7 @@
<
/view
>
<
/view
>
<
view
class
=
"
main-footer
"
>
<
view
class
=
"
mobile
"
>
{{
$store
.
state
.
userInfo
.
mobile
}}
<
/view
>
<
view
class
=
"
mobile
"
>
{{
mobile
}}
<
/view
>
<
input
class
=
"
inp
"
:
placeholder
=
"
integral.codePlaceloader
"
v
-
model
=
"
code
"
/>
<
view
class
=
"
btn
"
@
click
=
"
handleCode
"
>
{{
codeTime
==
0
?
integral
.
code
:
integral
.
codeTimeText
(
codeTime
)
...
...
@@ -164,9 +164,7 @@
<
/view
>
<
view
>
{{
$lang
.
lang
.
integral
.
exchangeType
}}
{{
locale
===
'
zh
'
?
handleExchangeSelected
().
labelZh
:
handleExchangeSelected
().
labelEn
}}
{{
handleExchangeSelected
()
}}
<
/view
>
<
view
v
-
if
=
"
current != 1 && addressId
"
>
{{
$lang
.
lang
.
integral
.
deliveryAddress
}}
...
...
@@ -211,7 +209,8 @@ export default {
// 验证码
code
:
''
,
// 验证码倒计时
codeTime
:
0
codeTime
:
0
,
mobile
:
''
}
}
,
onLoad
(
route
)
{
...
...
@@ -223,6 +222,7 @@ export default {
}
,
onShow
()
{
this
.
getAddress
()
this
.
getUserInfo
()
}
,
computed
:
{
locale
()
{
...
...
@@ -240,6 +240,14 @@ export default {
}
}
,
methods
:
{
async
getUserInfo
()
{
try
{
const
{
code
,
data
}
=
await
this
.
$request
.
get
(
'
/app-api/member/user/get
'
)
if
(
code
===
0
&&
data
)
{
this
.
mobile
=
data
.
mobile
}
}
catch
(
err
)
{
}
}
,
// 送货类型切换
menuChange
(
i
)
{
this
.
current
=
i
...
...
@@ -355,9 +363,17 @@ export default {
}
,
//获取选中的兑换类型
handleExchangeSelected
()
{
if
(
this
.
orderInfo
?.
pickMethodList
?.
length
>
0
)
{
if
(
this
.
locale
===
'
zh
'
)
{
return
this
.
orderInfo
.
pickMethodList
.
filter
((
element
)
=>
{
return
this
.
current
==
element
.
value
}
)[
0
]
}
)[
0
].
labelZh
}
else
{
return
this
.
orderInfo
.
pickMethodList
.
filter
((
element
)
=>
{
return
this
.
current
==
element
.
value
}
)[
0
].
labelEn
}
}
}
,
// 提交订单
bindSubmitOrder
()
{
...
...
src/store/index.js
View file @
6fee78ba
...
...
@@ -3,6 +3,7 @@ import Vuex from 'vuex'
import
http
from
'
@/utils/request
'
import
user
from
'
./modules/user
'
import
storage
from
'
../utils/storage
'
Vue
.
use
(
Vuex
)
let
userInfo
=
null
...
...
@@ -17,13 +18,16 @@ try {
const
store
=
new
Vuex
.
Store
({
state
:
{
userInfo
:
userInfo
||
null
,
mobile
:
uni
.
getStorageSync
(
'
mobile
'
),
config
:
null
},
mutations
:
{
logout
(
state
)
{
console
.
log
(
'
logout
'
)
state
.
userInfo
=
null
uni
.
removeStorageSync
(
'
userInfo
'
)
uni
.
removeStorageSync
(
'
token
'
)
uni
.
removeStorageSync
(
'
mobile
'
)
storage
.
clean
()
// uni.switchTab({
// url: '/pages/tabbar/user/user.vue'
...
...
@@ -33,6 +37,8 @@ const store = new Vuex.Store({
state
.
userInfo
=
userInfo
console
.
log
(
'
userInfo.data
'
,
userInfo
)
uni
.
setStorageSync
(
'
userInfo
'
,
JSON
.
stringify
(
userInfo
))
uni
.
setStorageSync
(
'
mobile
'
,
userInfo
.
mobile
)
console
.
log
(
'
mobile
'
,
uni
.
getStorageSync
(
'
mobile
'
))
uni
.
setStorageSync
(
'
token
'
,
userInfo
.
api_token
)
},
setConfig
(
state
,
config
)
{
...
...
@@ -54,7 +60,8 @@ const store = new Vuex.Store({
},
getters
:
{
id
:
(
state
)
=>
state
.
user
.
id
,
areaCode
:
(
state
)
=>
state
.
user
.
areaCode
areaCode
:
(
state
)
=>
state
.
user
.
areaCode
,
mobile
:
(
state
)
=>
state
.
mobile
},
modules
:
{
user
...
...
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