Commit 4dd0bebc by 杨北旺

Merge branch 'v1.0.0' of http://192.168.3.233:8090/saas/mini-program/zhwy into v1.0.0

2 parents aeffc918 c01359b8
......@@ -168,26 +168,32 @@ Page({
})
},
sceneGetId(id) {
wx.p.api.equityApi.sceneGetId({ id }).then(res => {
let { code, data, message } = res
if (code == 0) {
this.setData({
merchantId: data?.scene.split('=')[1]
})
} else {
this.showTips(message)
}
})
},
// sceneGetId(id) {
// wx.p.api.equityApi.sceneGetId({ id }).then(res => {
// let { code, data, message } = res
// if (code == 0) {
// this.setData({
// merchantId: data?.scene.split('=')[1]
// })
// } else {
// this.showTips(message)
// }
// })
// },
async onLoad(options) {
let system = wx.getSystemInfoSync()
const authStatus = await wx.p.router.intercept(false)
let appEnter = wx.getEnterOptionsSync()
if (appEnter?.query?.scene) {
this.sceneGetId(decodeURIComponent(appEnter.query.scene).split('=')[1])
}
const merchantId = wx.p.storage.get('merchant_info')
this.setData({
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()
const {
data,
......
......@@ -4,7 +4,6 @@
position: absolute;
left: 0;
top: 0;
// z-index: -1;
.image-class {
background-color: #fff;
......@@ -15,7 +14,6 @@
.img-card {
position: absolute;
bottom: 0;
// left: calc((100vw - 630rpx) /2);
left: 4%;
width: 630rpx;
height: 288rpx;
......@@ -59,6 +57,7 @@
border-radius: 24rpx 24rpx 24rpx 4rpx;
text-align: center;
font-size: 26rpx;
z-index: 2;
}
.btn-defalut {
......
......@@ -4,18 +4,20 @@
<glsx-image src="equity/card.png" class="img-card" />
</view>
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight + 110}}px);" refresher-enabled="{{false}}">
<glsx-image class="card-free" src="equity/card-free.png" />
<view class="equity-box" wx:for="{{imgList}}" wx:key="index">
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
</view>
<view class="card-btn isFullSucreen">
<view class="tips">限时领红包</view>
<button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">登陆</button>
<button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">头像昵称</button>
<view wx:else>
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
<!-- <view class="btn-defalut" bindtap="tofreeReceive">免费领取</view> -->
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
<view style="height: calc(100vh - {{statusBarHeight + navigationBarHeight + 110}}px);">
<glsx-image class="card-free" src="equity/card-free.png" />
<view class="equity-box" wx:for="{{imgList}}" wx:key="index">
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
</view>
<view class="card-btn isFullSucreen">
<view class="tips">限时领红包</view>
<button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">登陆</button>
<button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">头像昵称</button>
<view wx:else>
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
<!-- <view class="btn-defalut" bindtap="tofreeReceive">免费领取</view> -->
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
</view>
</view>
</view>
</scroll-view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!