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
48d635b6
Commit
48d635b6
authored
Aug 15, 2024
by
lizhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
【TASK-20240815-02】TASK:语言信息补充完善
parent
4273bf12
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
210 additions
and
78 deletions
+210
-78
activity_detail.vue
src/pages/activity_detail/activity_detail.vue
+25
-16
exchange_detail.vue
src/pages/exchange_detail/exchange_detail.vue
+36
-28
gift.vue
src/pages/integral/components/gift.vue
+3
-3
integral.vue
src/pages/integral/integral.vue
+12
-8
exchange.vue
src/pages/log/exchange.vue
+3
-3
integral.vue
src/pages/log/integral.vue
+1
-1
order_mail.vue
src/pages/order_mail/order_mail.vue
+18
-15
en.js
src/static/lang/en.js
+56
-2
zh.js
src/static/lang/zh.js
+56
-2
No files found.
src/pages/activity_detail/activity_detail.vue
View file @
48d635b6
<
template
>
<
template
>
<view
class=
"activity_detail"
>
<view
class=
"activity_detail"
>
<dHeader
:title=
"
'活动详情'
"
></dHeader>
<dHeader
:title=
"
detail.activity
"
></dHeader>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"img-box"
>
<view
class=
"img-box"
>
<image
<image
class=
"img"
class=
"img"
:src=
"locale === 'zh' ? detail
.coverImageZh : detail
.coverImageEn"
:src=
"locale === 'zh' ? detail
Info.coverImageZh : detailInfo
.coverImageEn"
></image>
></image>
</view>
</view>
<view
class=
"container-main"
>
<view
class=
"container-main"
>
<view
class=
"activity-title"
>
{{
locale
===
'
zh
'
?
detail
.
titleZh
:
detail
.
titleEn
}}
</view>
<view
class=
"activity-title"
>
{{
<view
class=
"activity-remark"
v-if=
"detail.extraRecommend"
>
locale
===
'
zh
'
?
detailInfo
.
titleZh
:
detailInfo
.
titleEn
}}
</view>
<view
class=
"activity-remark"
v-if=
"detailInfo.extraRecommend"
>
{{
{{
locale
===
'
zh
'
locale
===
'
zh
'
?
detail
.
extraRecommend
.
shareContentZh
?
detail
Info
.
extraRecommend
.
shareContentZh
:
detail
.
extraRecommend
.
shareContentEn
:
detail
Info
.
extraRecommend
.
shareContentEn
}}
}}
</view>
</view>
<view
class=
"activity-cell"
>
<view
class=
"activity-cell"
>
<view
class=
"cell-label"
>
积分说明
</view>
<view
class=
"cell-label"
>
{{
detail
.
illustrate
}}
</view>
<view
class=
"cell-content"
>
<view
class=
"cell-content"
>
<image
class=
"cell-image"
src=
"../../static/img/score_b.png"
></image>
<image
class=
"cell-image"
src=
"../../static/img/score_b.png"
></image>
<view
class=
"cell-text"
>
{{
detail
.
getScoreOnce
}}
</view>
<view
class=
"cell-text"
>
{{
detail
Info
.
getScoreOnce
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"activity-cell"
>
<view
class=
"activity-cell"
>
<view
class=
"cell-label"
>
累计最高积分
</view>
<view
class=
"cell-label"
>
{{
detail
.
maxIntegral
}}
</view>
<view
class=
"cell-content"
>
<view
class=
"cell-content"
>
<image
class=
"cell-image"
src=
"../../static/img/score_b.png"
></image>
<image
class=
"cell-image"
src=
"../../static/img/score_b.png"
></image>
<view
class=
"cell-text"
>
{{
detail
.
maxScoreTotal
}}
</view>
<view
class=
"cell-text"
>
{{
detail
Info
.
maxScoreTotal
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"activity-cell"
>
<view
class=
"activity-cell"
>
<view
class=
"cell-label"
>
有效期
</view>
<view
class=
"cell-label"
>
{{
detail
.
date
}}
</view>
<view
class=
"cell-content"
>
{{
getTimeRange
(
detail
.
startTime
,
detail
.
endTime
)
}}
</view>
<view
class=
"cell-content"
>
{{
getTimeRange
(
detailInfo
.
startTime
,
detailInfo
.
endTime
)
}}
</view>
</view>
</view>
<view
class=
"activity-cell"
>
<view
class=
"activity-cell"
>
<view
class=
"cell-label"
>
规则说明
</view>
<view
class=
"cell-label"
>
{{
detail
.
rulesIllustrate
}}
</view>
<view
class=
"cell-content"
>
{{
locale
===
'
zh
'
?
detail
.
descZh
:
detail
.
descEn
}}
</view>
<view
class=
"cell-content"
>
{{
locale
===
'
zh
'
?
detailInfo
.
descZh
:
detailInfo
.
descEn
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -53,7 +59,7 @@ export default {
...
@@ -53,7 +59,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
id
:
null
,
id
:
null
,
detail
:
{}
detail
Info
:
{}
}
}
},
},
onLoad
(
route
)
{
onLoad
(
route
)
{
...
@@ -64,6 +70,9 @@ export default {
...
@@ -64,6 +70,9 @@ export default {
computed
:
{
computed
:
{
locale
()
{
locale
()
{
return
this
.
$lang
.
locale
return
this
.
$lang
.
locale
},
detail
()
{
return
this
.
$lang
.
lang
.
detail
}
}
},
},
methods
:
{
methods
:
{
...
@@ -73,7 +82,7 @@ export default {
...
@@ -73,7 +82,7 @@ export default {
.
post
(
'
/app-api/member/score-rule/get
'
,
{
id
:
this
.
id
})
.
post
(
'
/app-api/member/score-rule/get
'
,
{
id
:
this
.
id
})
.
then
(({
code
,
data
})
=>
{
.
then
(({
code
,
data
})
=>
{
if
(
code
===
0
&&
data
)
{
if
(
code
===
0
&&
data
)
{
this
.
detail
=
data
this
.
detail
Info
=
data
}
}
})
})
},
},
...
...
src/pages/exchange_detail/exchange_detail.vue
View file @
48d635b6
<
template
>
<
template
>
<view
class=
"exchange_detail"
>
<view
class=
"exchange_detail"
>
<dHeader
:title=
"
'兑换详情'
"
></dHeader>
<dHeader
:title=
"
detail.exchangeTitle
"
></dHeader>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"header"
>
<div
class=
"header"
>
<div
class=
"header-image"
>
<div
class=
"header-image"
>
...
@@ -8,72 +8,77 @@
...
@@ -8,72 +8,77 @@
</div>
</div>
<div
class=
"header-content"
>
<div
class=
"header-content"
>
<div
class=
"header-content-title"
>
<div
class=
"header-content-title"
>
{{
locale
===
'
zh
'
?
detail
.
statusZh
:
detail
.
statusEn
}}
{{
locale
===
'
zh
'
?
detail
Info
.
statusZh
:
detailInfo
.
statusEn
}}
</div>
</div>
<div
class=
"header-content-text"
>
<div
class=
"header-content-text"
>
<view
class=
"header-content-small"
>
共计
</view>
{{
detail
.
totalCount
}}
积分
<view
class=
"header-content-small"
>
{{
detail
.
total
}}
</view
>
{{
detailInfo
.
totalCount
}}{{
detail
.
integral
}}
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"nav"
>
<div
class=
"nav"
>
<div
class=
"nav-image"
>
<div
class=
"nav-image"
>
<image
class=
"img"
:src=
"locale === 'zh' ? detail
.imgZh : detail
.imgEn"
></image>
<image
class=
"img"
:src=
"locale === 'zh' ? detail
Info.imgZh : detailInfo
.imgEn"
></image>
</div>
</div>
<div
class=
"nav-content"
>
<div
class=
"nav-content"
>
<div
class=
"nav-content-text"
>
<div
class=
"nav-content-text"
>
{{
locale
===
'
zh
'
?
detail
.
rewardTitleZh
:
detail
.
rewardTitleEn
}}
{{
locale
===
'
zh
'
?
detail
Info
.
rewardTitleZh
:
detailInfo
.
rewardTitleEn
}}
</div>
</div>
<div
class=
"nav-content-tag"
>
<div
class=
"nav-content-tag"
>
<div
class=
"tag-image"
>
<div
class=
"tag-image"
>
<image
class=
"img"
src=
"../../static/img/score_b.png"
></image
<image
class=
"img"
src=
"../../static/img/score_b.png"
></image
>
{{
detail
.
oncePointsRequire
}}
>
{{
detail
Info
.
oncePointsRequire
}}
</div>
</div>
<view
class=
"tag-text"
>
共
{{
detail
.
rewardCount
}}
件
</view>
<view
class=
"tag-text"
>
{{
detail
.
num
(
detailInfo
.
rewardCount
)
}}
</view>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"main"
>
<div
class=
"main"
>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
活动时间
</div>
<div
class=
"cell-label"
>
{{
detail
.
activityTime
}}
</div>
<div
class=
"cell-content"
>
{{
getTimeRange
(
detail
.
startTime
,
detail
.
endTime
)
}}
</div>
<div
class=
"cell-content"
>
{{
getTimeRange
(
detailInfo
.
startTime
,
detailInfo
.
endTime
)
}}
</div>
</div>
</div>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
活动网点
</div>
<div
class=
"cell-label"
>
{{
detail
.
exchangeOutlets
}}
</div>
<div
class=
"cell-content"
>
<div
class=
"cell-content"
>
{{
locale
===
'
zh
'
?
detail
.
nodeTitleZh
:
detail
.
nodeTitleEn
}}
{{
locale
===
'
zh
'
?
detail
Info
.
nodeTitleZh
:
detailInfo
.
nodeTitleEn
}}
</div>
</div>
</div>
</div>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
兑换方式
</div>
<div
class=
"cell-label"
>
{{
detail
.
exchangeType
}}
</div>
<div
class=
"cell-content"
>
<div
class=
"cell-content"
>
{{
locale
===
'
zh
'
?
detail
.
redeemTypeZh
:
detail
.
redeemTypeEn
}}
{{
locale
===
'
zh
'
?
detail
Info
.
redeemTypeZh
:
detailInfo
.
redeemTypeEn
}}
</div>
</div>
</div>
</div>
<template
v-if=
"detail.redeemType != 1"
>
<template
v-if=
"detail
Info
.redeemType != 1"
>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
收货地址
</div>
<div
class=
"cell-label"
>
{{
detail
.
address
}}
</div>
<div
class=
"cell-content"
>
<div
class=
"cell-content"
>
{{
detail
.
recipientName
}}
 
+
{{
detail
.
recipientPhoneNum
}}
,
{{
detail
Info
.
recipientName
}}
 
+
{{
detailInfo
.
recipientPhoneNum
}}
,
{{
detail
.
recipientAddress
}}
{{
detail
Info
.
recipientAddress
}}
<view
class=
"red"
>
地址提交后无法修改,如需修改地址请联系客服
</view>
<view
class=
"red"
>
{{
detail
.
errorMsg
}}
</view>
</div>
</div>
</div>
</div>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
快递单号
</div>
<div
class=
"cell-label"
>
{{
detail
.
courierNum
}}
</div>
<div
class=
"cell-content"
>
{{
detail
.
expressNo
}}
</div>
<div
class=
"cell-content"
>
{{
detail
Info
.
expressNo
}}
</div>
</div>
</div>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
快递公司
</div>
<div
class=
"cell-label"
>
{{
detail
.
courierCompany
}}
</div>
<div
class=
"cell-content"
>
{{
detail
.
courierCompanyName
}}
</div>
<div
class=
"cell-content"
>
{{
detail
Info
.
courierCompanyName
}}
</div>
</div>
</div>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
快递日期
</div>
<div
class=
"cell-label"
>
{{
detail
.
courierTime
}}
</div>
<div
class=
"cell-content"
>
{{
formatDate
(
detail
.
expressDate
)
}}
</div>
<div
class=
"cell-content"
>
{{
formatDate
(
detail
Info
.
expressDate
)
}}
</div>
</div>
</div>
</
template
>
</
template
>
<div
class=
"main-cell"
>
<div
class=
"main-cell"
>
<div
class=
"cell-label"
>
备注
</div>
<div
class=
"cell-label"
>
{{ detail.remark }}
</div>
<div
class=
"cell-content"
>
{{ detail.remark }}
</div>
<div
class=
"cell-content"
>
{{ detail
Info
.remark }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -89,7 +94,7 @@ export default {
...
@@ -89,7 +94,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
id
:
null
,
id
:
null
,
detail
:
{}
detail
Info
:
{}
}
}
},
},
onLoad
(
route
)
{
onLoad
(
route
)
{
...
@@ -100,6 +105,9 @@ export default {
...
@@ -100,6 +105,9 @@ export default {
computed
:
{
computed
:
{
locale
()
{
locale
()
{
return
this
.
$lang
.
locale
return
this
.
$lang
.
locale
},
detail
()
{
return
this
.
$lang
.
lang
.
detail
}
}
},
},
methods
:
{
methods
:
{
...
@@ -111,7 +119,7 @@ export default {
...
@@ -111,7 +119,7 @@ export default {
})
})
.
then
(({
code
,
data
})
=>
{
.
then
(({
code
,
data
})
=>
{
if
(
code
==
0
&&
data
)
{
if
(
code
==
0
&&
data
)
{
this
.
detail
=
data
this
.
detail
Info
=
data
}
}
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
...
...
src/pages/integral/components/gift.vue
View file @
48d635b6
<
template
>
<
template
>
<view
class=
"gift"
>
<view
class=
"gift"
>
<view
class=
"gift-remark"
>
不同网点兑换积分不同
</view>
<view
class=
"gift-remark"
>
{{
$lang
.
lang
.
integral
.
pointsRemark
}}
</view>
<view
class=
"gift-select"
>
<view
class=
"gift-select"
>
<view
class=
"select-list"
>
<view
class=
"select-list"
>
<view
class=
"list-item"
v-for=
"(item, index) in netList"
:key=
"index"
<view
class=
"list-item"
v-for=
"(item, index) in netList"
:key=
"index"
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
@
change=
"bindPickerChange"
@
change=
"bindPickerChange"
@
columnchange=
"bindColumnChange"
@
columnchange=
"bindColumnChange"
>
>
请选择网点
{{
$lang
.
lang
.
integral
.
outlets
}}
<uni-icons
class=
"list-icon"
type=
"right"
color=
"#B3B3B3"
size=
"12"
></uni-icons>
<uni-icons
class=
"list-icon"
type=
"right"
color=
"#B3B3B3"
size=
"12"
></uni-icons>
</picker>
</picker>
</view>
</view>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<view
class=
"tag-text"
>
{{
item
.
pointsRequire
}}
</view>
<view
class=
"tag-text"
>
{{
item
.
pointsRequire
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"foot-tag"
>
剩余
{{
item
.
quantityRemain
}}
份
</view>
<view
class=
"foot-tag"
>
{{
$lang
.
lang
.
integral
.
remainder
(
item
.
quantityRemain
)
}}
</view>
</view>
</view>
<view
class=
"gift-name"
>
{{
locale
===
'
zh
'
?
item
.
titleZh
:
item
.
titleEn
}}
</view>
<view
class=
"gift-name"
>
{{
locale
===
'
zh
'
?
item
.
titleZh
:
item
.
titleEn
}}
</view>
<view
class=
"gift-menu"
>
<view
class=
"gift-menu"
>
...
...
src/pages/integral/integral.vue
View file @
48d635b6
...
@@ -23,19 +23,23 @@
...
@@ -23,19 +23,23 @@
<view
class=
"classification"
>
<view
class=
"classification"
>
<image
class=
"classification-image"
:src=
"levelIcon"
></image>
<image
class=
"classification-image"
:src=
"levelIcon"
></image>
<view
class=
"log-menu"
>
<view
class=
"log-menu"
>
<view
class=
"menu-item"
@
click=
"toLog(0)"
>
积分日志
>
</view>
<view
class=
"menu-item"
@
click=
"toLog(0)"
<view
class=
"menu-item"
@
click=
"toLog(1)"
>
兑换日志
>
</view>
>
{{
$lang
.
lang
.
integral
.
logPoints
}}
 >
</view
>
<view
class=
"menu-item"
@
click=
"toLog(1)"
>
{{
$lang
.
lang
.
integral
.
logExchange
}}
 >
</view
>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"main"
>
<view
class=
"main"
>
<view
class=
"main-nav"
>
<view
class=
"main-nav"
>
<view
class=
"nav-item"
:class=
"
{ 'nav-active1': navIndex === 0 }" @click="navIndex = 0"
<view
class=
"nav-item"
:class=
"
{ 'nav-active1': navIndex === 0 }" @click="navIndex = 0"
>
{{
>兑换礼品
</view
$lang
.
lang
.
integral
.
redeemGifts
>
}}
</view
>
<view
class=
"nav-item"
:class=
"
{ 'nav-active2': navIndex === 1 }" @click="navIndex = 1"
<view
class=
"nav-item"
:class=
"
{ 'nav-active2': navIndex === 1 }" @click="navIndex = 1"
>
{{
>积分活动
</view
$lang
.
lang
.
integral
.
pointsCampaign
>
}}
</view
>
</view>
</view>
<view
class=
"main-content"
>
<view
class=
"main-content"
>
<gift
v-show=
"navIndex === 0"
:userInfo=
"userInfo"
></gift>
<gift
v-show=
"navIndex === 0"
:userInfo=
"userInfo"
></gift>
...
...
src/pages/log/exchange.vue
View file @
48d635b6
<
template
>
<
template
>
<view>
<view>
<dHeader
:title=
"
'兑换日志'
"
></dHeader>
<dHeader
:title=
"
$lang.lang.log.logPoints
"
></dHeader>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"item"
v-for=
"item in list"
:key=
"item.id"
@
click=
"toDetail(item.id)"
>
<view
class=
"item"
v-for=
"item in list"
:key=
"item.id"
@
click=
"toDetail(item.id)"
>
<div
class=
"item-title"
>
兑换礼品
</div>
<div
class=
"item-title"
>
{{
$lang
.
lang
.
log
.
redeemGifts
}}
</div>
<div
class=
"item-box"
>
<div
class=
"item-box"
>
<div
class=
"box-img"
>
<div
class=
"box-img"
>
<image
<image
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
try
{
try
{
const
memberId
=
this
.
$store
.
getters
.
id
const
memberId
=
this
.
$store
.
getters
.
id
const
{
code
,
data
}
=
await
this
.
$request
.
post
(
'
/app-api/reward/redeem/record/list
'
,
{
const
{
code
,
data
}
=
await
this
.
$request
.
post
(
'
/app-api/reward/redeem/record/list
'
,
{
memberId
:
68
memberId
})
})
if
(
code
==
0
&&
data
)
{
if
(
code
==
0
&&
data
)
{
this
.
list
=
data
this
.
list
=
data
...
...
src/pages/log/integral.vue
View file @
48d635b6
<
template
>
<
template
>
<view>
<view>
<dHeader
:title=
"
'积分日志'
"
></dHeader>
<dHeader
:title=
"
$lang.lang.log.logExchange
"
></dHeader>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"item"
v-for=
"(item, index) in list"
:key=
"index"
>
<view
class=
"item"
v-for=
"(item, index) in list"
:key=
"index"
>
<div
class=
"item-title"
>
{{
locale
==
'
zh
'
?
item
.
sourceTypeZh
:
item
.
sourceTypeEn
}}
</div>
<div
class=
"item-title"
>
{{
locale
==
'
zh
'
?
item
.
sourceTypeZh
:
item
.
sourceTypeEn
}}
</div>
...
...
src/pages/order_mail/order_mail.vue
View file @
48d635b6
<
template
>
<
template
>
<view
class=
"mail"
>
<view
class=
"mail"
>
<dHeader
:title=
"
'确定订单'
"
></dHeader>
<dHeader
:title=
"
integral.orderMail
"
></dHeader>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"header"
>
<view
class=
"header"
>
<view
<view
...
@@ -52,18 +52,18 @@
...
@@ -52,18 +52,18 @@
<view
class=
"tag-text"
>
{{
orderInfo
.
pointsRequire
}}
</view>
<view
class=
"tag-text"
>
{{
orderInfo
.
pointsRequire
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"foot-tag"
>
剩余
{{
orderInfo
.
quantityRemain
}}
份
</view>
<view
class=
"foot-tag"
>
{{
integral
.
remainder
(
orderInfo
.
quantityRemain
)
}}
</view>
</view>
</view>
<view
class=
"gift-content"
>
<view
class=
"gift-content"
>
<view
class=
"gift-content-text"
>
{{
<view
class=
"gift-content-text"
>
{{
locale
===
'
zh
'
?
orderInfo
.
titleZh
:
orderInfo
.
titleEn
locale
===
'
zh
'
?
orderInfo
.
titleZh
:
orderInfo
.
titleEn
}}
</view>
}}
</view>
<view
class=
"gift-cell"
>
<view
class=
"gift-cell"
>
<view
class=
"cell-label"
>
兑换方式
</view>
<view
class=
"cell-label"
>
{{
integral
.
redeemType
}}
</view>
<view
class=
"cell-text"
>
{{
handExchangeText
(
orderInfo
.
pickMethodList
)
}}
</view>
<view
class=
"cell-text"
>
{{
handExchangeText
(
orderInfo
.
pickMethodList
)
}}
</view>
</view>
</view>
<view
class=
"gift-cell"
>
<view
class=
"gift-cell"
>
<view
class=
"cell-label"
>
活动时间
</view>
<view
class=
"cell-label"
>
{{
integral
.
activityTime
}}
</view>
<view
class=
"cell-text"
>
2023-10-1至2024-11-01
</view>
<view
class=
"cell-text"
>
2023-10-1至2024-11-01
</view>
</view>
</view>
</view>
</view>
...
@@ -73,9 +73,9 @@
...
@@ -73,9 +73,9 @@
</view>
</view>
</view>
</view>
<view
class=
"main-footer"
>
<view
class=
"main-footer"
>
<input
class=
"inp"
placeholder=
"请输入验证码
"
v-model=
"code"
/>
<input
class=
"inp"
:placeholder=
"integral.codePlaceloader
"
v-model=
"code"
/>
<view
class=
"btn"
@
click=
"handleCode"
>
{{
<view
class=
"btn"
@
click=
"handleCode"
>
{{
codeTime
==
0
?
'
获取验证码
'
:
`${codeTime
}
s后可重新发送`
codeTime
==
0
?
integral
.
code
:
integral
.
codeTimeText
(
codeTime
)
}}
</view>
}}
</view>
</view>
</view>
</view>
</view>
...
@@ -89,16 +89,16 @@
...
@@ -89,16 +89,16 @@
:inputBorder=
"false"
:inputBorder=
"false"
:maxlength=
"100"
:maxlength=
"100"
v-model.trim=
"remark"
v-model.trim=
"remark"
placeholder
=
"
请输入备注
"
:placeholder=
"integral.remark
"
>
>
</uni-easyinput>
</uni-easyinput>
<
view
class
=
"
placeholder
"
>
最多输入
100
字
<
/view
>
<view
class=
"placeholder"
>
{{
integral
.
textLength
}}
</view>
</view>
</view>
<view
class=
"container-text"
>
<view
class=
"container-text"
>
已选
{{
num
}}
件,合计积分:
<
view
class
=
"
container-num
"
>
{{
total
}}
<
/vie
w
{{
integral
.
totalScore
(
num
)
}}
<view
class=
"container-num"
>
{{
total
}}
</view
>
积分
>
{{
integral
.
totalScore1
}}
</view>
</view>
<
view
class
=
"
container-btn
"
@
click
=
"
bindSubmitOrder
"
>
提交订单
<
/view
>
<view
class=
"container-btn"
@
click=
"bindSubmitOrder"
>
{{
integral
.
orderMail
}}
</view>
<uni-popup
ref=
"popup"
type=
"bottom"
border-radius=
"10px 10px 0 0"
background-color=
"#fff"
>
<uni-popup
ref=
"popup"
type=
"bottom"
border-radius=
"10px 10px 0 0"
background-color=
"#fff"
>
<view
class=
"popup-list"
>
<view
class=
"popup-list"
>
<view
<view
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
</view>
</view>
<view
class=
"popup-btn"
@
click=
"toAddressAdd"
>
<view
class=
"popup-btn"
@
click=
"toAddressAdd"
>
<image
class=
"img"
src=
"../../static/img/address_add.png"
></image>
<image
class=
"img"
src=
"../../static/img/address_add.png"
></image>
<
view
class
=
"
text
"
>
新增收货地址
<
/view
>
<view
class=
"text"
>
{{
integral
.
addAddress
}}
</view>
</view>
</view>
</uni-popup>
</uni-popup>
</view>
</view>
...
@@ -178,6 +178,9 @@ export default {
...
@@ -178,6 +178,9 @@ export default {
locale
()
{
locale
()
{
return
this
.
$lang
.
locale
return
this
.
$lang
.
locale
},
},
integral
()
{
return
this
.
$lang
.
lang
.
integral
},
// 计算总积分
// 计算总积分
total
()
{
total
()
{
if
(
this
.
orderInfo
.
pointsRequire
)
{
if
(
this
.
orderInfo
.
pointsRequire
)
{
...
@@ -303,13 +306,13 @@ export default {
...
@@ -303,13 +306,13 @@ export default {
bindSubmitOrder
()
{
bindSubmitOrder
()
{
if
(
!
this
.
code
)
{
if
(
!
this
.
code
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'
请输入验证码
'
,
title
:
this
.
integral
.
codePlaceloader
,
icon
:
'
none
'
icon
:
'
none
'
})
})
return
return
}
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'
加载中
'
title
:
this
.
$lang
.
lang
.
notices
.
loading
})
})
this
.
submitOrder
()
this
.
submitOrder
()
},
},
...
@@ -336,7 +339,7 @@ export default {
...
@@ -336,7 +339,7 @@ export default {
})
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'
积分不足
'
,
title
:
this
.
integral
.
totalScoreError
,
icon
:
'
none
'
icon
:
'
none
'
})
})
}
}
...
...
src/static/lang/en.js
View file @
48d635b6
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
fullAddress
:
'
Please enter the detailed address
'
,
fullAddress
:
'
Please enter the detailed address
'
,
fullAddressLength
:
'
Enter up to 100 words
'
,
fullAddressLength
:
'
Enter up to 100 words
'
,
delAddress
:
'
Are you sure you want to delete the address?
'
,
delAddress
:
'
Are you sure you want to delete the address?
'
,
recommend
:
'
Please enter referral code (optional)
'
recommend
:
'
Please enter referral code (optional)
'
,
},
},
auth
:
{
auth
:
{
auth
:
'
Real-name certification
'
,
auth
:
'
Real-name certification
'
,
...
@@ -392,6 +392,28 @@ export default {
...
@@ -392,6 +392,28 @@ export default {
remark
:
'
remark
'
,
remark
:
'
remark
'
,
confirm
:
'
confirm
'
confirm
:
'
confirm
'
},
},
detail
:
{
activity
:
'
Event Details
'
,
illustrate
:
'
Points Description
'
,
maxIntegral
:
'
Accumulate the highest number of points
'
,
date
:
'
expiration date
'
,
rulesIllustrate
:
"
Rule Description
"
,
total
:
"
total
"
,
integral
:
"
integral
"
,
num
:
(
val
)
=>
{
return
`'total
${
val
}
pieces'`
},
exchangeTitle
:
"
Redemption details
"
,
activityTime
:
"
Event time
"
,
exchangeOutlets
:
'
Redemption outlets
'
,
exchangeType
:
'
Redemption Method
'
,
address
:
'
Delivery address
'
,
courierNum
:
"
The tracking number
"
,
courierCompany
:
"
Courier companies
"
,
courierTime
:
"
The date of delivery
"
,
remark
:
"
remark
"
,
errorMsg
:
"
The address cannot be modified after submission, if you need to modify the address, please contact customer service
"
},
ecash
:
{
ecash
:
{
query
:
'
Exchange Rate Query
'
,
query
:
'
Exchange Rate Query
'
,
china
:
'
China
'
,
china
:
'
China
'
,
...
@@ -465,7 +487,34 @@ export default {
...
@@ -465,7 +487,34 @@ export default {
info
:
'
my integral
'
,
info
:
'
my integral
'
,
headerTitle
:
'
Honorable
'
,
headerTitle
:
'
Honorable
'
,
spend
:
'
redeemed points are
'
,
spend
:
'
redeemed points are
'
,
available
:
'
The available credits are
'
available
:
'
The available credits are
'
,
logPoints
:
'
points log
'
,
logExchange
:
'
exchange log
'
,
redeemGifts
:
'
redeem gifts
'
,
pointsCampaign
:
'
points campaign
'
,
pointsRemark
:
'
Points can be redeemed differently at different outlets
'
,
outlets
:
"
Please select a location
"
,
remainder
:
(
val
)
=>
{
return
`
${
val
}
servings remaining`
},
orderMail
:
'
Confirm the order
'
,
code
:
'
Get a verification code
'
,
codePlaceloader
:
"
Please enter a verification code
"
,
codeError
:
"
The verification code is incorrect
"
,
codeTimeText
:
(
val
)
=>
{
return
`
${
val
}
seconds to get it again`
},
remark
:
'
Please enter a comment
'
,
submitOrder
:
'
Submit your order
'
,
redeemType
:
'
Redemption Method
'
,
activityTime
:
'
Event time
'
,
textLength
:
'
Enter up to 100 words
'
,
totalScore
:
(
num
)
=>
{
return
`selected
${
num
}
pieces, total points:`
},
totalScore1
:
'
integral
'
,
addAddress
:
'
new address for additional shipments
'
,
totalScoreError
:
"
Insufficient points
"
},
},
levite
:
{
levite
:
{
levite
:
'
warehousing notes
'
levite
:
'
warehousing notes
'
...
@@ -514,6 +563,11 @@ export default {
...
@@ -514,6 +563,11 @@ export default {
register
:
'
register
'
,
register
:
'
register
'
,
close
:
'
close
'
close
:
'
close
'
},
},
log
:
{
logPoints
:
'
points log
'
,
logExchange
:
'
exchange log
'
,
redeemGifts
:
'
gifts redeem
'
,
},
msg
:
{
msg
:
{
msg
:
'
message
'
,
msg
:
'
message
'
,
read
:
'
read
'
,
read
:
'
read
'
,
...
...
src/static/lang/zh.js
View file @
48d635b6
...
@@ -135,7 +135,7 @@ export default {
...
@@ -135,7 +135,7 @@ export default {
fullAddress
:
'
请输入详细地址
'
,
fullAddress
:
'
请输入详细地址
'
,
fullAddressLength
:
'
最多输入100字
'
,
fullAddressLength
:
'
最多输入100字
'
,
delAddress
:
'
确定删除地址吗?
'
,
delAddress
:
'
确定删除地址吗?
'
,
recommend
:
'
请输入推荐码(非必填)
'
recommend
:
'
请输入推荐码(非必填)
'
,
},
},
auth
:
{
auth
:
{
auth
:
'
实名认证
'
,
auth
:
'
实名认证
'
,
...
@@ -387,6 +387,28 @@ export default {
...
@@ -387,6 +387,28 @@ export default {
remark
:
'
备注
'
,
remark
:
'
备注
'
,
confirm
:
'
确定
'
confirm
:
'
确定
'
},
},
detail
:
{
activity
:
'
活动详情
'
,
illustrate
:
'
积分说明
'
,
maxIntegral
:
'
累计最高积分
'
,
date
:
'
有效期
'
,
rulesIllustrate
:
"
规则说明
"
,
total
:
"
共计
"
,
integral
:
"
积分
"
,
num
:
(
val
)
=>
{
return
`共
${
val
}
件`
},
exchangeTitle
:
"
兑换详情
"
,
activityTime
:
"
活动时间
"
,
exchangeOutlets
:
'
兑换网点
'
,
exchangeType
:
'
兑换方式
'
,
address
:
'
收货地址
'
,
courierNum
:
"
快递单号
"
,
courierCompany
:
"
快递公司
"
,
courierTime
:
"
快递日期
"
,
remark
:
"
备注
"
,
errorMsg
:
"
地址提交后无法修改,如需修改地址请联系客服
"
},
ecash
:
{
ecash
:
{
query
:
'
汇率查询
'
,
query
:
'
汇率查询
'
,
china
:
'
中国
'
,
china
:
'
中国
'
,
...
@@ -460,7 +482,34 @@ export default {
...
@@ -460,7 +482,34 @@ export default {
info
:
'
我的积分
'
,
info
:
'
我的积分
'
,
headerTitle
:
'
尊贵的
'
,
headerTitle
:
'
尊贵的
'
,
spend
:
'
已兑换积分为
'
,
spend
:
'
已兑换积分为
'
,
available
:
'
可用积分为
'
available
:
'
可用积分为
'
,
logPoints
:
'
积分日志
'
,
logExchange
:
'
兑换日志
'
,
redeemGifts
:
'
兑换礼品
'
,
pointsCampaign
:
'
积分活动
'
,
pointsRemark
:
'
不同网点兑换积分不同
'
,
outlets
:
'
请选择网点
'
,
remainder
:
(
val
)
=>
{
return
`剩余
${
val
}
份`
},
orderMail
:
'
确定订单
'
,
code
:
'
获取验证码
'
,
codePlaceloader
:
"
请输入验证码
"
,
codeError
:
"
验证码错误
"
,
codeTimeText
:
(
val
)
=>
{
return
`
${
val
}
秒后重新获取`
},
remark
:
'
请输入备注
'
,
submitOrder
:
'
提交订单
'
,
redeemType
:
'
兑换方式
'
,
activityTime
:
'
活动时间
'
,
textLength
:
'
最多输入100字
'
,
totalScore
:
(
num
)
=>
{
return
`已选
${
num
}
件,合计积分:`
},
totalScore1
:
'
积分
'
,
addAddress
:
'
新增收货地址
'
,
totalScoreError
:
"
积分不足
"
},
},
levite
:
{
levite
:
{
levite
:
'
入仓须知
'
levite
:
'
入仓须知
'
...
@@ -509,6 +558,11 @@ export default {
...
@@ -509,6 +558,11 @@ export default {
register
:
'
注册
'
,
register
:
'
注册
'
,
close
:
'
关闭
'
close
:
'
关闭
'
},
},
log
:
{
logPoints
:
'
积分日志
'
,
logExchange
:
'
兑换日志
'
,
redeemGifts
:
'
礼品兑换
'
,
},
msg
:
{
msg
:
{
msg
:
'
消息
'
,
msg
:
'
消息
'
,
read
:
'
已读
'
,
read
:
'
已读
'
,
...
...
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