Commit c01359b8 by chenwq

样式,扫码或点击登录

1 parent 46437ef1
...@@ -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,
......
...@@ -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 {
......
...@@ -4,18 +4,20 @@ ...@@ -4,18 +4,20 @@
<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}}">
<glsx-image class="card-free" src="equity/card-free.png" /> <view style="height: calc(100vh - {{statusBarHeight + navigationBarHeight + 110}}px);">
<view class="equity-box" wx:for="{{imgList}}" wx:key="index"> <glsx-image class="card-free" src="equity/card-free.png" />
<glsx-image class="img-equity" src="equity/card-{{index}}.png" /> <view class="equity-box" wx:for="{{imgList}}" wx:key="index">
</view> <glsx-image class="img-equity" src="equity/card-{{index}}.png" />
<view class="card-btn isFullSucreen"> </view>
<view class="tips">限时领红包</view> <view class="card-btn isFullSucreen">
<button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">登陆</button> <view class="tips">限时领红包</view>
<button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">头像昵称</button> <button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">登陆</button>
<view wx:else> <button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">头像昵称</button>
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view> <view wx:else>
<!-- <view class="btn-defalut" bindtap="tofreeReceive">免费领取</view> --> <view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> --> <!-- <view class="btn-defalut" bindtap="tofreeReceive">免费领取</view> -->
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
</view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!