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
34046dae
Commit
34046dae
authored
Sep 13, 2024
by
chenwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fenxiang
parent
5eb1bd53
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
411 additions
and
134 deletions
+411
-134
App.vue
src/App.vue
+6
-3
pages.json
src/pages.json
+6
-0
index.vue
src/pages/activityShare/index.vue
+157
-0
points.vue
src/pages/integral/components/points.vue
+65
-13
login.vue
src/pages/login/login.vue
+1
-0
register.vue
src/pages/register/register.vue
+56
-0
en.js
src/static/lang/en.js
+35
-35
integral.js
src/static/lang/en/integral.js
+25
-24
zh.js
src/static/lang/zh.js
+35
-35
integral.js
src/static/lang/zh/integral.js
+25
-24
No files found.
src/App.vue
View file @
34046dae
...
...
@@ -4,10 +4,13 @@
let
Authorization
=
uni
.
getStorageSync
(
'
Authorization
'
)
if
((
!
Authorization
||
Authorization
==
''
)){
if
(
this
.
$route
.
path
!=
'
/pages/register/register
'
&&
this
.
$route
.
path
!=
'
/pages/activityShare/index
'
){
uni
.
redirectTo
({
url
:
'
./pages/login/login
'
})
}
}
if
(
Authorization
&&
!
this
.
$store
.
state
.
userInfo
){
this
.
$store
.
dispatch
(
'
updateUserInfo
'
)
}
...
...
src/pages.json
View file @
34046dae
...
...
@@ -303,6 +303,12 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/activityShare/index"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
],
"globalStyle"
:
{
...
...
src/pages/activityShare/index.vue
0 → 100644
View file @
34046dae
<
template
>
<view
class=
"activity_detail"
>
<view
class=
"detail"
>
<dHeader
:title=
"language=='zh'?'活动详情':'activity Detasil'"
></dHeader>
<view
class=
"title"
>
{{
language
==
'
zh
'
?
detailInfo
.
titleZh
:
detailInfo
.
titleEn
}}
</view>
<view
class=
"container"
>
<img
class=
"coverImg"
:src=
"language=='zh' ?detailInfo.coverImageZh:detailInfo.coverImageEn"
alt=
""
srcset=
""
>
<view
class=
"activityDesc"
v-html=
"language=='zh' ?detailInfo.extraShare.activityDescZh:detailInfo.extraShare.activityDescEn"
></view>
</view>
</view>
</view>
</
template
>
<
script
>
import
dHeader
from
"
../../components/dHeader/index.vue
"
export
default
{
components
:
{
dHeader
},
data
()
{
return
{
id
:
null
,
memberCode
:
""
,
detailInfo
:
{
extraShare
:{
activityDescZh
:
''
}
},
language
:
"
zh
"
}
},
onLoad
(
route
)
{
console
.
log
(
route
)
this
.
id
=
route
.
id
this
.
memberCode
=
route
.
memberId
this
.
getDetail
()
},
computed
:
{
locale
()
{
return
this
.
$lang
.
locale
},
detail
()
{
return
this
.
$lang
.
lang
.
detail
}
},
methods
:
{
// 获取详情
getDetail
()
{
this
.
$request
.
post
(
"
/app-api/member/score-rule/get
"
,
{
id
:
this
.
id
})
.
then
(({
code
,
data
})
=>
{
if
(
code
===
0
&&
data
)
{
this
.
detailInfo
=
data
this
.
handleTriggerShare
()
}
})
},
handleTriggerShare
(){
this
.
$request
.
get
(
"
/app-api/member/score-rule/trigger/share
"
,
{
userId
:
this
.
memberCode
,
ruleId
:
this
.
id
})
.
then
(({
code
,
data
})
=>
{
if
(
code
===
0
&&
data
)
{
this
.
detailInfo
=
data
}
})
}
// 时间范围返回
}
}
</
script
>
<
style
lang=
"scss"
>
.activityDesc
{
padding
:
20upx
;
}
.activity_detail
{
max-width
:
750upx
;
.title
{
padding
:
20upx
;
font-size
:
16px
;
font-weight
:
600
;
}
.coverImg
{
width
:
100%
;
}
}
page
{
/* #ifdef H5 */
padding-top
:
140upx
;
/* #endif */
/* #ifdef APP-PLUS */
padding-top
:
calc
(
var
(
--
status-bar-height
)
+
100upx
);
/* #endif */
background-color
:
#d4e5fe
;
}
.container
{
// padding: 20upx;
// background-color: #fff;
// border-radius: 20upx;
}
.img-box
{
width
:
100%
;
height
:
400upx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
.img
{
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
}
}
.container-main
{
padding
:
12upx
;
}
.activity-title
{
font-size
:
28upx
;
height
:
84upx
;
display
:
flex
;
align-items
:
center
;
color
:
var
(
--
c2
);
}
.activity-remark
{
font-size
:
24upx
;
color
:
#7f7f7f
;
}
.activity-cell
{
margin-top
:
20upx
;
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
}
.cell-label
{
font-size
:
24upx
;
color
:
#7f7f7f
;
}
.cell-content
{
display
:
flex
;
align-items
:
center
;
flex-wrap
:
wrap
;
font-size
:
24upx
;
color
:
#7f7f7f
;
}
.cell-image
{
width
:
24upx
;
height
:
24upx
;
}
.cell-text
{
margin-left
:
6upx
;
font-weight
:
600
;
font-size
:
26upx
;
color
:
#000
;
}
</
style
>
src/pages/integral/components/points.vue
View file @
34046dae
<
template
>
<view
class=
"int"
>
<view
class=
"int-content"
v-for=
"item in activityList"
:key=
"item.id"
@
click=
"toDetail(item.id)
"
class=
"contentBox
"
>
<view
class=
"int-content"
@
click=
"toDetail(item.id)"
>
<view
class=
"int-content-left"
>
<view
class=
"content-tag"
>
<view
class=
"tag-text"
>
{{
locale
===
'
zh
'
?
item
.
typeZh
:
item
.
typeEn
}}
</view>
...
...
@@ -20,6 +20,10 @@
<view
class=
"content-text"
>
{{
locale
===
'
zh
'
?
item
.
descZh
:
item
.
descEn
}}
</view>
</view>
</view>
<view
v-if=
"item.type == 3||item.type == 4"
class=
"btn"
@
click=
"handleCopyBtn(item, $event)"
>
{{
$lang
.
lang
.
integral
.
copy
}}
</view>
</view>
</view>
</
template
>
...
...
@@ -39,6 +43,41 @@ export default {
}
},
methods
:
{
getCopyText
(
item
)
{
if
(
item
.
type
==
3
)
{
return
`
${
this
.
locale
===
'
zh
'
?
item
.
extraRecommend
.
shareContentZh
:
item
.
extraRecommend
.
shareContentEn
}
${
item
.
recommendUrl
}
`
}
else
if
(
item
.
type
==
4
)
{
return
`
${
this
.
locale
===
'
zh
'
?
item
.
titleZh
:
item
.
titleEn
}
${
item
.
extraShare
.
activityUrl
}
?id=
${
item
.
id
}
&memberId=
${
this
.
$store
.
getters
.
id
}
&language=
${
this
.
locale
}
`
}
},
handleCopyBtn
(
item
,
e
){
this
.
$request
.
post
(
'
/app-api/member/score-rule/share-record/create
'
,
{
memberId
:
this
.
$store
.
getters
.
id
,
ruleId
:
item
.
id
})
.
then
(({
code
,
data
})
=>
{
if
(
code
==
0
&&
data
)
{
const
str
=
this
.
getCopyText
(
item
)
uni
.
setClipboardData
({
data
:
str
,
success
:()
=>
{
uni
.
showToast
({
title
:
this
.
$lang
.
lang
.
notices
.
copySuccess
,
icon
:
"
none
"
,
})
}
})
// uni.navigateTo({
// url: '/pages/activityShare/index?id=' + item.id + '&memberId=' + this.$store.getters.id+ '&language='+this.locale
// })
}
})
},
toDetail
(
id
)
{
uni
.
navigateTo
({
url
:
'
/pages/activity_detail/activity_detail?id=
'
+
id
...
...
@@ -47,7 +86,7 @@ export default {
// 获取活动列表
getActivityList
()
{
this
.
$request
.
post
(
'
/app-api/member/score-rule/list
'
,
{
platform
:
2
})
.
post
(
'
/app-api/member/score-rule/list
'
,
{
platform
:
2
,
memberId
:
this
.
$store
.
getters
.
id
})
.
then
(({
code
,
data
})
=>
{
// console.log(res)
if
(
code
==
0
&&
data
)
{
...
...
@@ -60,6 +99,19 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.contentBox
{
position
:
relative
;
.btn
{
position
:
absolute
;
right
:
6px
;
bottom
:
10upx
;
padding
:
2upx
12px
;
border-radius
:
100px
;
font-size
:
20upx
;
border
:
1px
solid
#5382fe
;
color
:
#5382fe
;
}
}
.int
{
padding
:
30upx
0
;
height
:
inherit
;
...
...
src/pages/login/login.vue
View file @
34046dae
...
...
@@ -161,6 +161,7 @@ export default {
areaData
:
[],
areaName
:
[],
loginType
:
1
,
closePopup
:
true
,
leviteInfo
:
''
,
mobile
:
''
,
password
:
''
,
...
...
src/pages/register/register.vue
View file @
34046dae
<
template
>
<view
class=
"main"
>
<!-- #ifdef H5 -->
<view
class=
"downloadBox"
v-if=
"closePopup"
>
<image
class=
"logoImg"
src=
"/static/img/logo.76c4d986.png"
></image>
<view
class=
"textAlert"
>
捷道国际货运APP
</view>
<view
class=
"downloadBtn"
@
click=
"handleDownload"
>
立即下载
</view>
<view
class=
"closeBtn-l"
@
click=
"closePopup= false"
>
X
</view>
</view>
<!-- #endif -->
<view
class=
"login-top"
>
<image
src=
"../../static/img/back.png"
...
...
@@ -126,6 +136,7 @@ export default {
},
data
()
{
return
{
closePopup
:
true
,
areaIndex
:
0
,
mobile
:
""
,
password
:
""
,
...
...
@@ -140,8 +151,18 @@ export default {
},
onLoad
()
{
this
.
Country
();
this
.
referralCode
=
this
.
$route
.
query
.
code
},
methods
:
{
handleDownload
(){
if
(
uni
.
getSystemInfoSync
().
platform
===
'
android
'
)
{
console
.
log
(
'
运行Android上
'
)
window
.
open
(
'
https://www.pgyer.com/qHcSOD1F
'
,
"
_blank
"
)
}
else
{
window
.
open
(
'
https://apps.apple.com/cn/app/e-c-logistics/id6466407990
'
,
"
_blank
"
)
console
.
log
(
'
运行iOS上
'
)
}
},
showUser
()
{
this
.
$refs
.
userment
.
open
();
},
...
...
@@ -289,4 +310,39 @@ export default {
</
script
>
<
style
>
@import
url(../../static/css/register.css)
;
.downloadBox
{
height
:
100
upx
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
background
:
#373333
c7
;
padding
:
10
upx
54
upx
;
display
:
flex
;
z-index
:
10
;
align-items
:
center
;
}
.textAlert
{
padding
:
0
40
upx
;
color
:
#fff
;
}
.logoImg
{
height
:
60
upx
;
width
:
60
upx
;
}
.downloadBtn
{
background
:
#5BA8DC
;
padding
:
4
upx
20
upx
;
color
:
#fff
;
font-size
:
36
upx
;
border-radius
:
100px
;
}
.closeBtn-l
{
color
:
#fff
;
font-size
:
24
upx
;
padding
:
8px
;
top
:
0px
;
position
:
absolute
;
right
:
70px
;
}
</
style
>
src/static/lang/en.js
View file @
34046dae
...
...
@@ -31,38 +31,38 @@ import finsh from './en/finsh.js'
import
orderInfo
from
'
./en/orderInfo.js
'
import
price
from
'
./en/price.js
'
import
site
from
'
./en/site.js
'
export
default
{
notices
,
auth
,
addressInfo
,
boxException
,
changeTel
,
companyInfo
,
complaint
,
complaintAdd
,
consult
,
coupon
,
create
,
docException
,
detail
,
ecash
,
editEmail
,
editPsd
,
exception
,
forget
,
help
,
index
,
integral
,
levite
,
light
,
login
,
log
,
msg
,
myInfo
,
notice
,
order
,
finsh
,
orderInfo
,
price
,
site
,
export
default
{
notices
,
auth
,
addressInfo
,
boxException
,
changeTel
,
companyInfo
,
complaint
,
complaintAdd
,
consult
,
coupon
,
create
,
docException
,
detail
,
ecash
,
editEmail
,
editPsd
,
exception
,
forget
,
help
,
index
,
integral
,
levite
,
light
,
login
,
log
,
msg
,
myInfo
,
notice
,
order
,
finsh
,
orderInfo
,
price
,
site
,
}
src/static/lang/en/integral.js
View file @
34046dae
export
default
{
"
info
"
:
"
my integral
"
,
"
headerTitle
"
:
"
Honorable
"
,
"
spend
"
:
"
redeemed points 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
"
,
"
orderMail
"
:
"
Confirm the order
"
,
"
code
"
:
"
Get a verification code
"
,
"
codePlaceloader
"
:
"
Please enter a verification code
"
,
"
codeError
"
:
"
The verification code is incorrect
"
,
"
remark
"
:
"
Please enter a comment
"
,
"
submitOrder
"
:
"
Submit your order
"
,
"
redeemType
"
:
"
Redemption Method
"
,
"
activityTime
"
:
"
Event time
"
,
"
textLength
"
:
"
Enter up to 100 words
"
,
"
totalScore1
"
:
"
integral
"
,
"
addAddress
"
:
"
new address for additional shipments
"
,
"
totalScoreError
"
:
"
Insufficient points
"
,
"
to
"
:
"
to
"
copy
:
'
copy
'
,
info
:
'
my integral
'
,
headerTitle
:
'
Honorable
'
,
spend
:
'
redeemed points 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
'
,
orderMail
:
'
Confirm the order
'
,
code
:
'
Get a verification code
'
,
codePlaceloader
:
'
Please enter a verification code
'
,
codeError
:
'
The verification code is incorrect
'
,
remark
:
'
Please enter a comment
'
,
submitOrder
:
'
Submit your order
'
,
redeemType
:
'
Redemption Method
'
,
activityTime
:
'
Event time
'
,
textLength
:
'
Enter up to 100 words
'
,
totalScore1
:
'
integral
'
,
addAddress
:
'
new address for additional shipments
'
,
totalScoreError
:
'
Insufficient points
'
,
to
:
'
to
'
,
}
src/static/lang/zh.js
View file @
34046dae
...
...
@@ -31,38 +31,38 @@ import finsh from './zh/finsh.js'
import
orderInfo
from
'
./zh/orderInfo.js
'
import
price
from
'
./zh/price.js
'
import
site
from
'
./zh/site.js
'
export
default
{
notices
,
auth
,
addressInfo
,
boxException
,
changeTel
,
companyInfo
,
complaint
,
complaintAdd
,
consult
,
coupon
,
create
,
docException
,
detail
,
ecash
,
editEmail
,
editPsd
,
exception
,
forget
,
help
,
index
,
integral
,
levite
,
light
,
login
,
log
,
msg
,
myInfo
,
notice
,
order
,
finsh
,
orderInfo
,
price
,
site
,
export
default
{
notices
,
auth
,
addressInfo
,
boxException
,
changeTel
,
companyInfo
,
complaint
,
complaintAdd
,
consult
,
coupon
,
create
,
docException
,
detail
,
ecash
,
editEmail
,
editPsd
,
exception
,
forget
,
help
,
index
,
integral
,
levite
,
light
,
login
,
log
,
msg
,
myInfo
,
notice
,
order
,
finsh
,
orderInfo
,
price
,
site
,
}
src/static/lang/zh/integral.js
View file @
34046dae
export
default
{
"
info
"
:
"
我的积分
"
,
"
headerTitle
"
:
"
尊贵的
"
,
"
spend
"
:
"
已兑换积分为
"
,
"
available
"
:
"
可用积分为
"
,
"
logPoints
"
:
"
积分日志
"
,
"
logExchange
"
:
"
兑换日志
"
,
"
redeemGifts
"
:
"
兑换礼品
"
,
"
pointsCampaign
"
:
"
积分活动
"
,
"
pointsRemark
"
:
"
不同网点兑换积分不同
"
,
"
outlets
"
:
"
请选择网点
"
,
"
orderMail
"
:
"
确定订单
"
,
"
code
"
:
"
获取验证码
"
,
"
codePlaceloader
"
:
"
请输入验证码
"
,
"
codeError
"
:
"
验证码错误
"
,
"
remark
"
:
"
请输入备注
"
,
"
submitOrder
"
:
"
提交订单
"
,
"
redeemType
"
:
"
兑换方式
"
,
"
activityTime
"
:
"
活动时间
"
,
"
textLength
"
:
"
最多输入100字
"
,
"
totalScore1
"
:
"
积分
"
,
"
addAddress
"
:
"
新增收货地址
"
,
"
totalScoreError
"
:
"
积分不足
"
,
"
to
"
:
"
至
"
copy
:
'
复制
'
,
info
:
'
我的积分
'
,
headerTitle
:
'
尊贵的
'
,
spend
:
'
已兑换积分为
'
,
available
:
'
可用积分为
'
,
logPoints
:
'
积分日志
'
,
logExchange
:
'
兑换日志
'
,
redeemGifts
:
'
兑换礼品
'
,
pointsCampaign
:
'
积分活动
'
,
pointsRemark
:
'
不同网点兑换积分不同
'
,
outlets
:
'
请选择网点
'
,
orderMail
:
'
确定订单
'
,
code
:
'
获取验证码
'
,
codePlaceloader
:
'
请输入验证码
'
,
codeError
:
'
验证码错误
'
,
remark
:
'
请输入备注
'
,
submitOrder
:
'
提交订单
'
,
redeemType
:
'
兑换方式
'
,
activityTime
:
'
活动时间
'
,
textLength
:
'
最多输入100字
'
,
totalScore1
:
'
积分
'
,
addAddress
:
'
新增收货地址
'
,
totalScoreError
:
'
积分不足
'
,
to
:
'
至
'
,
}
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