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 4dd0bebc
authored
Oct 08, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.0' of
http://192.168.3.233:8090/saas/mini-program/zhwy
into v1.0.0
2 parents
aeffc918
c01359b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
18 deletions
packageEquity/pages/freecard/freecard.js
packageEquity/pages/freecard/freecard.scss
packageEquity/pages/freecard/freecard.wxml
packageEquity/pages/freecard/freecard.js
View file @
4dd0beb
...
@@ -168,26 +168,32 @@ Page({
...
@@ -168,26 +168,32 @@ Page({
})
})
},
},
sceneGetId
(
id
)
{
//
sceneGetId(id) {
wx
.
p
.
api
.
equityApi
.
sceneGetId
({
id
}).
then
(
res
=>
{
//
wx.p.api.equityApi.sceneGetId({ id }).then(res => {
let
{
code
,
data
,
message
}
=
res
//
let { code, data, message } = res
if
(
code
==
0
)
{
//
if (code == 0) {
this
.
setData
({
//
this.setData({
merchantId
:
data
?.
scene
.
split
(
'='
)[
1
]
//
merchantId: data?.scene.split('=')[1]
})
//
})
}
else
{
//
} else {
this
.
showTips
(
message
)
//
this.showTips(message)
}
//
}
})
//
})
},
//
},
async
onLoad
(
options
)
{
async
onLoad
(
options
)
{
let
system
=
wx
.
getSystemInfoSync
()
let
system
=
wx
.
getSystemInfoSync
()
const
authStatus
=
await
wx
.
p
.
router
.
intercept
(
false
)
const
authStatus
=
await
wx
.
p
.
router
.
intercept
(
false
)
let
appEnter
=
wx
.
getEnterOptionsSync
()
const
merchantId
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
if
(
appEnter
?.
query
?.
scene
)
{
this
.
setData
({
this
.
sceneGetId
(
decodeURIComponent
(
appEnter
.
query
.
scene
).
split
(
'='
)[
1
])
merchantId
}
})
// let appEnter = wx.getEnterOptionsSync()
// console.log(appEnter, 'appEnter--')
// if (appEnter?.query?.scene) {
// console.log(appEnter?.query?.scene, 'appEnter?.query?.scene---')
// this.sceneGetId(decodeURIComponent(appEnter.query.scene).split('=')[1])
// }
wx
.
p
.
wxApi
.
showLoading
()
wx
.
p
.
wxApi
.
showLoading
()
const
{
const
{
data
,
data
,
...
...
packageEquity/pages/freecard/freecard.scss
View file @
4dd0beb
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
// z-index: -1;
.image-class
{
.image-class
{
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -15,7 +14,6 @@
...
@@ -15,7 +14,6 @@
.img-card
{
.img-card
{
position
:
absolute
;
position
:
absolute
;
bottom
:
0
;
bottom
:
0
;
// left: calc((100vw - 630rpx) /2);
left
:
4%
;
left
:
4%
;
width
:
630rpx
;
width
:
630rpx
;
height
:
288rpx
;
height
:
288rpx
;
...
@@ -59,6 +57,7 @@
...
@@ -59,6 +57,7 @@
border-radius
:
24rpx
24rpx
24rpx
4rpx
;
border-radius
:
24rpx
24rpx
24rpx
4rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
26rpx
;
font-size
:
26rpx
;
z-index
:
2
;
}
}
.btn-defalut
{
.btn-defalut
{
...
...
packageEquity/pages/freecard/freecard.wxml
View file @
4dd0beb
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<glsx-image src="equity/card.png" class="img-card" />
<glsx-image src="equity/card.png" class="img-card" />
</view>
</view>
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight + 110}}px);" refresher-enabled="{{false}}">
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight + 110}}px);" refresher-enabled="{{false}}">
<view style="height: calc(100vh - {{statusBarHeight + navigationBarHeight + 110}}px);">
<glsx-image class="card-free" src="equity/card-free.png" />
<glsx-image class="card-free" src="equity/card-free.png" />
<view class="equity-box" wx:for="{{imgList}}" wx:key="index">
<view class="equity-box" wx:for="{{imgList}}" wx:key="index">
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
...
@@ -18,5 +19,6 @@
...
@@ -18,5 +19,6 @@
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
<!-- <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