Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4485ed61
authored
Oct 07, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
7c210060
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
214 additions
and
40 deletions
app.json
components/MoneySavingTips/MoneySavingTips.js
packageEquity/pages/freecard/freecard.wxml
packageEquity/pages/gCoupons/index.js
packageEquity/pages/gCoupons/index.json
packageEquity/pages/gCoupons/index.scss
packageEquity/pages/gCoupons/index.wxml
packageEquity/pages/road/index/index.wxml
packageIndex/pages/carLife/index.js
packageIndex/pages/carLife/index.wxml
packageIndex/pages/homeLife/index.js
packageIndex/pages/homeLife/index.wxml
packageMall/pages/detail/detail.wxml
packageMall/pages/getCoupon/getCoupon.wxml
packageMine/pages/vehicleInfo/index/index.wxml
packagePlugin/pages/index/index.js
pages/Login/Login.js
pages/Login/Login.wxml
pages/tab/equity/index.js
pages/tab/equity/index.wxml
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/mall/index.wxml
pages/tab/mine/index.wxml
app.json
View file @
4485ed6
...
@@ -115,7 +115,18 @@
...
@@ -115,7 +115,18 @@
"pages/index/index"
"pages/index/index"
],
],
"plugins"
:
{
"plugins"
:
{
"ticketPlugin"
:
{
"version"
:
"2.0.2"
,
"provider"
:
"wxd5b8312c3a09901a"
},
"express-plugin"
:
{
"version"
:
"1.2.0"
,
"provider"
:
"wx1b1f66316b427c74"
},
"collectionPlugin"
:
{
"version"
:
"1.2.0"
,
"provider"
:
"wx5e90fdd843841356"
}
}
}
},
},
{
{
...
@@ -153,7 +164,6 @@
...
@@ -153,7 +164,6 @@
"authorize"
:
"/components/Authorize/Authorize"
,
"authorize"
:
"/components/Authorize/Authorize"
,
"popup"
:
"/components/Popup/Popup"
,
"popup"
:
"/components/Popup/Popup"
,
"goods-action"
:
"/components/GoodsAction/GoodsAction"
,
"goods-action"
:
"/components/GoodsAction/GoodsAction"
,
"glsx-privacy"
:
"glsx-applet-component/GlsxPrivacy/index"
,
"stepper"
:
"/components/Stepper/Stepper"
"stepper"
:
"/components/Stepper/Stepper"
},
},
"style"
:
"v2"
,
"style"
:
"v2"
,
...
@@ -167,5 +177,5 @@
...
@@ -167,5 +177,5 @@
}
}
},
},
"plugins"
:
{},
"plugins"
:
{},
"__usePrivacyCheck__"
:
tru
e
"__usePrivacyCheck__"
:
fals
e
}
}
\ No newline at end of file
\ No newline at end of file
components/MoneySavingTips/MoneySavingTips.js
View file @
4485ed6
...
@@ -10,7 +10,7 @@ Component({
...
@@ -10,7 +10,7 @@ Component({
selectStrategy
(
e
)
{
selectStrategy
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
const
{
id
}
=
e
.
currentTarget
.
dataset
const
{
id
}
=
e
.
currentTarget
.
dataset
this
.
triggerEvent
(
'selectStrategy'
,
{
id
,
notIntercept
:
true
})
this
.
triggerEvent
(
'selectStrategy'
,
{
id
})
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/freecard/freecard.wxml
View file @
4485ed6
...
@@ -19,4 +19,4 @@
...
@@ -19,4 +19,4 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/gCoupons/index.js
View file @
4485ed6
// packageEquity/pages/gCoupons/index.js
import
{
IMG_URL
}
from
'~/config'
;
Page
({
Page
({
data
:
{
data
:
{
IMGURL
:
IMG_URL
,
handleStatus
:
0
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getEquityCouponsDetail
(
10785
)
if
(
options
.
id
){
this
.
getEquityCouponsDetail
(
options
.
id
)
}
},
},
// 查询优惠券详情
// 查询优惠券详情
getEquityCouponsDetail
(
id
){
getEquityCouponsDetail
(
id
){
...
@@ -21,10 +24,12 @@ Page({
...
@@ -21,10 +24,12 @@ Page({
})
})
},
},
// 领取
// 领取
toGet
(){
async
toGet
(){
const
{
const
{
detailInfo
detailInfo
}
=
this
.
data
}
=
this
.
data
const
authStatus
=
await
wx
.
p
.
router
.
intercept
()
if
(
authStatus
)
return
wx
.
p
.
wxApi
.
showLoading
()
wx
.
p
.
wxApi
.
showLoading
()
wx
.
p
.
api
.
couponsApi
.
getEquityCoupons
({
couponId
:
this
.
couponId
,
merchantId
:
detailInfo
.
merchantId
}).
then
(
res
=>
{
wx
.
p
.
api
.
couponsApi
.
getEquityCoupons
({
couponId
:
this
.
couponId
,
merchantId
:
detailInfo
.
merchantId
}).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
...
...
packageEquity/pages/gCoupons/index.json
View file @
4485ed6
{
{
"
usingComponents"
:
{}
"
navigationBarTitleText"
:
"领取优惠券"
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/gCoupons/index.scss
View file @
4485ed6
.container
{
width
:
100%
;
height
:
100vh
;
}
.main_box
{
width
:
100%
;
height
:
660rpx
;
position
:
absolute
;
left
:
50%
;
bottom
:
306rpx
;
transform
:
translateX
(
-50%
);
.title
{
position
:
absolute
;
left
:
50%
;
top
:
90rpx
;
transform
:
translateX
(
-50%
);
.price
{
font-weight
:
600
;
font-size
:
80rpx
;
color
:
#E5552B
;
}
.unit
{
margin
:
0
8rpx
;
}
.unit
,
.tip
{
font-weight
:
600
;
font-size
:
28rpx
;
color
:
#E5552B
;
}
}
.info_box
{
display
:
flex
;
align-items
:
center
;
position
:
absolute
;
left
:
50%
;
top
:
218rpx
;
transform
:
translateX
(
-60%
);
.cover
{
width
:
80rpx
;
height
:
80rpx
;
border-radius
:
50%
;
}
.right
{
padding-left
:
20rpx
;
.name
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#D83C14
;
}
.desc
{
font-weight
:
600
;
font-size
:
30rpx
;
color
:
#7E3F10
;
}
}
}
.btn
{
width
:
50%
;
height
:
120rpx
;
position
:
absolute
;
left
:
50%
;
bottom
:
100rpx
;
transform
:
translateX
(
-50%
);
}
}
.footer_rule_box
{
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
position
:
absolute
;
left
:
50%
;
bottom
:
140rpx
;
transform
:
translateX
(
-50%
);
.
title
:
:
before
{
content
:
""
;
position
:
absolute
;
top
:
50%
;
left
:
-70%
;
transform
:
translate
(
0
,
-50%
);
width
:
18rpx
;
height
:
2rpx
;
background
:
#CD4E22
;
}
.title
{
font-weight
:
500
;
font-size
:
30rpx
;
color
:
#CD4E22
;
position
:
relative
;
margin-bottom
:
8rpx
;
}
.
title
:
:
after
{
content
:
""
;
position
:
absolute
;
top
:
50%
;
right
:
-70%
;
transform
:
translate
(
0
,
-50%
);
width
:
18rpx
;
height
:
2rpx
;
background
:
#CD4E22
;
}
.line
{
font-weight
:
400
;
font-size
:
26rpx
;
color
:
#CD4E22
;
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/gCoupons/index.wxml
View file @
4485ed6
<button bind:tap="toGet">领取</button>
\ No newline at end of file
\ No newline at end of file
<view style="background: url({{IMGURL}}equity/{{handleStatus==1?'lq_get_bg':'lq__wait_bg'}}.png);background-size: 100% 100%;" class="container">
<!-- <glsx-image webp src="equity/wait_lq_bg.png" class="banner"></glsx-image> -->
<view class="main_box">
<view wx:if="{{detailInfo.denomination}}" class="title">
<text class="price">{{detailInfo.denomination || ''}}</text>
<text class="unit">元</text>
<text class="tip">无门槛</text>
</view>
<view class="info_box">
<view class="cover">
<image class="cover" src="{{detailInfo.goodsImage}}" />
</view>
<view class="right">
<view class="name">{{detailInfo.brandName}}</view>
<view class="desc">{{detailInfo.goodsName}}</view>
</view>
</view>
<view class="btn" bind:tap="toGet"></view>
</view>
<view class="footer_rule_box">
<view class="title">规则</view>
<view class="box">
<view class="line">1. 同一用户每张优惠券仅能领取1次,每次1张</view>
<view class="line">2. 优惠券数量有限,领完即止</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/road/index/index.wxml
View file @
4485ed6
...
@@ -29,4 +29,4 @@
...
@@ -29,4 +29,4 @@
<authorize scopeType="userLocation" bindsuccess="authSuccess" bindfail="authFail" show="{{showAuth}}" bindcancel="authCancel">
<authorize scopeType="userLocation" bindsuccess="authSuccess" bindfail="authFail" show="{{showAuth}}" bindcancel="authCancel">
</authorize>
</authorize>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/carLife/index.js
View file @
4485ed6
...
@@ -104,7 +104,7 @@ Page({
...
@@ -104,7 +104,7 @@ Page({
}
}
}
}
})
})
}
else
if
(
env
==
'test'
)
{
}
else
if
(
env
==
'test'
||
env
==
'beta'
)
{
equityList
.
forEach
(
el
=>
{
equityList
.
forEach
(
el
=>
{
if
(
el
.
goodsCategory
==
'智能出行'
)
{
if
(
el
.
goodsCategory
==
'智能出行'
)
{
if
(
el
.
equityGoodsGroupDescDtos
)
{
if
(
el
.
equityGoodsGroupDescDtos
)
{
...
...
packageIndex/pages/carLife/index.wxml
View file @
4485ed6
<view class="carlife-box">
<view class="carlife-box">
<glsx-image webp src="home/carlife_bg.png" class="carlife-img"></glsx-image>
<glsx-image webp src="home/carlife_bg.png" class="carlife-img"></glsx-image>
<view class="title-box">
<block wx:if="{{tripMenu.length}}">
<main-title title="省心出行"></main-title>
<view class="title-box">
</view>
<main-title title="省心出行"></main-title>
<menu-box boxType="{{0}}" menuList="{{tripMenu}}"></menu-box>
</view>
<menu-box boxType="{{0}}" menuList="{{tripMenu}}"></menu-box>
</block>
<block wx:if="{{utilList.length}}">
<block wx:if="{{utilList.length}}">
<view class="title-box">
<view class="title-box">
<main-title title="养车服务"></main-title>
<main-title title="养车服务"></main-title>
...
...
packageIndex/pages/homeLife/index.js
View file @
4485ed6
...
@@ -98,7 +98,7 @@ Page({
...
@@ -98,7 +98,7 @@ Page({
})
})
}
}
})
})
}
else
if
(
env
==
'test'
)
{
}
else
if
(
env
==
'test'
||
env
==
'beta'
)
{
let
all
=
[]
let
all
=
[]
equityList
.
forEach
(
el
=>
{
equityList
.
forEach
(
el
=>
{
if
(
el
.
equityGoodsGroupDescDtos
)
{
if
(
el
.
equityGoodsGroupDescDtos
)
{
...
...
packageIndex/pages/homeLife/index.wxml
View file @
4485ed6
<view class="homelife-box">
<view class="homelife-box">
<glsx-image webp src="home/homelife_bg.png" class="homelife-img"></glsx-image>
<glsx-image webp src="home/homelife_bg.png" class="homelife-img"></glsx-image>
<view class="title-box">
<block wx:if="{{recreationMenu.length}}">
<main-title title="娱乐推荐"></main-title>
<view class="title-box">
</view>
<main-title title="娱乐推荐"></main-title>
<menu-box menuList="{{recreationMenu}}"></menu-box>
</view>
<view class="title-box">
<menu-box menuList="{{recreationMenu}}"></menu-box>
<main-title title="美食推荐"></main-title>
</block>
</view>
<block wx:if="{{foodMenu.length}}">
<menu-box menuList="{{foodMenu}}"></menu-box>
<view class="title-box">
<main-title title="美食推荐"></main-title>
</view>
<menu-box menuList="{{foodMenu}}"></menu-box>
</block>
<!-- <view class="title-box classify-title-box">
<!-- <view class="title-box classify-title-box">
<view class="{{titleActive === index? 'classify-title-active':'classify-title'}}" wx:for="{{classifyTitleList}}" data-index="{{index}}" bind:tap="switchTitle">
<view class="{{titleActive === index? 'classify-title-active':'classify-title'}}" wx:for="{{classifyTitleList}}" data-index="{{index}}" bind:tap="switchTitle">
{{item}}
{{item}}
...
...
packageMall/pages/detail/detail.wxml
View file @
4485ed6
...
@@ -275,4 +275,4 @@
...
@@ -275,4 +275,4 @@
</view>
</view>
</view>
</view>
<login show="{{showLogin}}"></login>
<login show="{{showLogin}}"></login>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
packageMall/pages/getCoupon/getCoupon.wxml
View file @
4485ed6
...
@@ -35,4 +35,4 @@
...
@@ -35,4 +35,4 @@
<view class="btn" bindtap="goPage">确定</view>
<view class="btn" bindtap="goPage">确定</view>
</view>
</view>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
packageMine/pages/vehicleInfo/index/index.wxml
View file @
4485ed6
...
@@ -52,4 +52,4 @@
...
@@ -52,4 +52,4 @@
</view>
</view>
<view class="default-btn" bindtap="confirm">{{isEdit?'保存':'添加'}}</view>
<view class="default-btn" bindtap="confirm">{{isEdit?'保存':'添加'}}</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
packagePlugin/pages/index/index.js
View file @
4485ed6
...
@@ -29,19 +29,19 @@ Page({
...
@@ -29,19 +29,19 @@ Page({
const
shareCode
=
'5759S2m7h'
const
shareCode
=
'5759S2m7h'
switch
(
id
)
{
switch
(
id
)
{
case
1
:
case
1
:
url
=
`plugin://collectionPlugin/sbkHome?shareCode=
${
shareCode
}
`
url
=
`plugin://collectionPlugin/sbkHome?shareCode=
${
shareCode
}
&extra=wuye
`
break
;
break
;
case
2
:
case
2
:
url
=
`plugin://collectionPlugin/sbkHome?shareCode=
${
shareCode
}
`
url
=
`plugin://collectionPlugin/sbkHome?shareCode=
${
shareCode
}
&extra=wuye
`
break
;
break
;
case
3
:
case
3
:
url
=
`plugin://collectionPlugin/naixueHome?shareCode=
${
shareCode
}
`
url
=
`plugin://collectionPlugin/naixueHome?shareCode=
${
shareCode
}
&extra=wuye
`
break
;
break
;
case
4
:
case
4
:
url
=
`plugin://ticketPlugin/home?shareCode=
${
shareCode
}
&reLocation=true`
url
=
`plugin://ticketPlugin/home?shareCode=
${
shareCode
}
&reLocation=true
&extra=wuye
`
break
;
break
;
case
5
:
case
5
:
url
=
`plugin://express-plugin/home?shareCode=
${
shareCode
}
`
url
=
`plugin://express-plugin/home?shareCode=
${
shareCode
}
&extra=wuye
`
break
;
break
;
default
:
default
:
...
...
pages/Login/Login.js
View file @
4485ed6
...
@@ -139,6 +139,7 @@ Page({
...
@@ -139,6 +139,7 @@ Page({
isAgree
isAgree
}
=
this
.
data
}
=
this
.
data
try
{
try
{
console
.
log
(
detail
);
if
(
detail
.
errMsg
&&
[
'authorized'
,
'deny'
].
findIndex
(
e
=>
detail
.
errMsg
.
toLowerCase
().
includes
(
e
))
!=
-
1
)
return
if
(
detail
.
errMsg
&&
[
'authorized'
,
'deny'
].
findIndex
(
e
=>
detail
.
errMsg
.
toLowerCase
().
includes
(
e
))
!=
-
1
)
return
if
(
!
detail
?.
code
)
throw
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
if
(
!
detail
?.
code
)
throw
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
if
(
!
isAgree
)
throw
'请同意以下用户协议'
if
(
!
isAgree
)
throw
'请同意以下用户协议'
...
...
pages/Login/Login.wxml
View file @
4485ed6
...
@@ -65,4 +65,4 @@
...
@@ -65,4 +65,4 @@
</view>
</view>
</view>
</view>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
pages/tab/equity/index.js
View file @
4485ed6
...
@@ -194,7 +194,7 @@ Page({
...
@@ -194,7 +194,7 @@ Page({
})
})
}
}
})
})
}
else
if
(
env
==
'test'
)
{
}
else
if
(
env
==
'test'
||
env
==
'beta'
)
{
let
all
=
[]
let
all
=
[]
equityList
.
forEach
(
el
=>
{
equityList
.
forEach
(
el
=>
{
if
(
el
.
equityGoodsGroupDescDtos
)
{
if
(
el
.
equityGoodsGroupDescDtos
)
{
...
...
pages/tab/equity/index.wxml
View file @
4485ed6
...
@@ -41,4 +41,4 @@
...
@@ -41,4 +41,4 @@
</view>
</view>
</view>
</view>
<authorize id="authorize" scopeType="userLocation" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<authorize id="authorize" scopeType="userLocation" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.js
View file @
4485ed6
...
@@ -63,6 +63,7 @@ Page({
...
@@ -63,6 +63,7 @@ Page({
const
{
id
}
=
e
.
detail
;
const
{
id
}
=
e
.
detail
;
wx
.
p
.
router
.
go
(
"/packageStrategy/pages/strategyDetail/index"
,
{
wx
.
p
.
router
.
go
(
"/packageStrategy/pages/strategyDetail/index"
,
{
id
,
id
,
notIntercept
:
true
});
});
},
},
...
...
pages/tab/index/index.wxml
View file @
4485ed6
...
@@ -58,4 +58,4 @@
...
@@ -58,4 +58,4 @@
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view>
</view>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
pages/tab/mall/index.wxml
View file @
4485ed6
...
@@ -9,4 +9,4 @@
...
@@ -9,4 +9,4 @@
</view>
</view>
<carOwner id="currentChannel_6" bindshowShoppingCar="showShoppingCarFn" merchantid="{{merchantId}}" channelID="{{currentChannel.id}}"></carOwner>
<carOwner id="currentChannel_6" bindshowShoppingCar="showShoppingCarFn" merchantid="{{merchantId}}" channelID="{{currentChannel.id}}"></carOwner>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/index.wxml
View file @
4485ed6
...
@@ -148,4 +148,4 @@
...
@@ -148,4 +148,4 @@
<glsx-image bindtap="handleChangeVal" data-attr="isMemberShow" data-val="{{false}}" class="member-close" src="mine/icon-member-close.png"></glsx-image>
<glsx-image bindtap="handleChangeVal" data-attr="isMemberShow" data-val="{{false}}" class="member-close" src="mine/icon-member-close.png"></glsx-image>
</view>
</view>
</view>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment