Commit a8dfa1e0 by 杨北旺

修改样式

1 parent 8a9144fc
...@@ -37,6 +37,7 @@ Page({ ...@@ -37,6 +37,7 @@ Page({
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 => {
wx.hideLoading(); wx.hideLoading();
if (res) { if (res) {
wx.p.wxApi.showToast('优惠券领取成功!')
this.setData({ this.setData({
handleStatus: 1 handleStatus: 1
}) })
......
.container {
width: 100%;
height: 100vh;
}
.container{
padding-top: 482rpx;
padding-bottom: 140rpx;
}
.main_box { .main_box {
width: 100%; width: 100%;
height: 660rpx; height: 664rpx;
position: absolute; position: relative;
left: 50%;
bottom: 306rpx;
transform: translateX(-50%);
.title { .title {
position: absolute; position: absolute;
...@@ -81,10 +78,7 @@ ...@@ -81,10 +78,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
position: absolute; margin-top: 30rpx;
left: 50%;
bottom: 140rpx;
transform: translateX(-50%);
.title::before { .title::before {
......
<view style="background: url({{IMGURL}}equity/{{handleStatus==1?'lq_get_bg':'lq__wait_bg'}}.png);background-size: 100% 100%;" class="container"> <view style="background: url({{IMGURL}}equity/coupons/lq_bg_max.png);background-size: 100% 100%;" class="container">
<!-- <glsx-image webp src="equity/wait_lq_bg.png" class="banner"></glsx-image> --> <view style="background: url({{IMGURL}}equity/coupons/{{handleStatus==1?'lq_g_bg':'lq_w_bag'}}.png);background-size: 100% 100%;" class="main_box">
<view class="main_box">
<view wx:if="{{detailInfo.denomination}}" class="title"> <view wx:if="{{detailInfo.denomination}}" class="title">
<text class="price">{{detailInfo.denomination || ''}}</text> <text class="price">{{detailInfo.denomination || ''}}</text>
<text class="unit">元</text> <text class="unit">元</text>
......
...@@ -106,7 +106,6 @@ Page({ ...@@ -106,7 +106,6 @@ Page({
}) })
} else if (env == 'test' || env == 'beta') { } else if (env == 'test' || env == 'beta') {
equityList.forEach(el => { equityList.forEach(el => {
if (el.goodsCategory == '智能出行') {
if (el.equityGoodsGroupDescDtos) { if (el.equityGoodsGroupDescDtos) {
el.equityGoodsGroupDescDtos.forEach(item => { el.equityGoodsGroupDescDtos.forEach(item => {
tripMenu.push({ tripMenu.push({
...@@ -116,7 +115,6 @@ Page({ ...@@ -116,7 +115,6 @@ Page({
}) })
}) })
} }
}
}) })
} }
this.setData({ this.setData({
......
...@@ -23,7 +23,6 @@ Page({ ...@@ -23,7 +23,6 @@ Page({
}, },
async toJump(e) { async toJump(e) {
const flag = await this.checkLogin() const flag = await this.checkLogin()
console.log(flag);
if (flag) return if (flag) return
const { id } = e.currentTarget.dataset const { id } = e.currentTarget.dataset
let url = '' let url = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!