Commit 7ee03e30 by 李伟康

提交

1 parent 85fd6264
...@@ -122,3 +122,10 @@ ...@@ -122,3 +122,10 @@
opacity: 1; opacity: 1;
} }
} }
.safe-area {
display: block;
width: 100%;
height: 0;
opacity: 0;
}
\ No newline at end of file \ No newline at end of file
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
</view> </view>
</view> </view>
</block> </block>
<view class="safe-area isFullSucreen"></view>
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -22,11 +22,13 @@ Page({ ...@@ -22,11 +22,13 @@ Page({
if (loadOver) { if (loadOver) {
return return
} }
wx.p.wxApi.showLoading()
wx.p.api.equityApi.lasteCommodity(pageParam).then(res => { wx.p.api.equityApi.lasteCommodity(pageParam).then(res => {
if (!res) { if (!res) {
this.setData({ this.setData({
loadOver: true loadOver: true
}) })
wx.hideLoading()
return return
} }
let tempArr = [] let tempArr = []
...@@ -58,6 +60,7 @@ Page({ ...@@ -58,6 +60,7 @@ Page({
loadingMore: false, loadingMore: false,
loadOver: false loadOver: false
}) })
wx.hideLoading()
}) })
}, },
......
<view class="charge-container-page"> <view class="charge-container-page isFullSucreen">
<block wx:for="{{commodityList}}" wx:key="index"> <block wx:for="{{commodityList}}" wx:key="index">
<commodityItem chargeInfo="{{item}}"/> <commodityItem chargeInfo="{{item}}"/>
</block> </block>
......
...@@ -4,7 +4,8 @@ page{ ...@@ -4,7 +4,8 @@ page{
background: white; background: white;
} }
.detail_container{ .detail_container{
padding-bottom: 100rpx; padding-bottom: calc(100rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(100rpx + var(--envSafeAreaInsetBottom));
} }
.account_area { .account_area {
...@@ -220,7 +221,7 @@ page{ ...@@ -220,7 +221,7 @@ page{
background-color: #fff; background-color: #fff;
/* padding: 10rpx 30rpx; */ /* padding: 10rpx 30rpx; */
padding: 0 32rpx 0 90rpx; padding: 0 32rpx 0 90rpx;
height: 100rpx; min-height: 100rpx;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
......
page { page {
background: white; background: white;
} }
.commodity-detail-container{
.goods_scroll_wrapper { padding-bottom: calc(100rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(100rpx + var(--envSafeAreaInsetBottom));
}
.goods_scroll_wrapper {
padding: 46rpx 0 40rpx 40rpx; padding: 46rpx 0 40rpx 40rpx;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
.scroll_element { .scroll_element {
width: 288rpx; width: 288rpx;
height: 380rpx; height: 380rpx;
border-radius: 16rpx; border-radius: 16rpx;
...@@ -19,27 +22,27 @@ page { ...@@ -19,27 +22,27 @@ page {
display: inline-block; display: inline-block;
position: relative; position: relative;
vertical-align: top; vertical-align: top;
} }
.image_icon_wrapper { .image_icon_wrapper {
position: relative; position: relative;
} }
.image_icon { .image_icon {
width: 288rpx; width: 288rpx;
height: 178rpx; height: 178rpx;
border-radius: 16rpx 16rpx 0 0; border-radius: 16rpx 16rpx 0 0;
} }
.image_vip { .image_vip {
position: absolute; position: absolute;
right: 0rpx; right: 0rpx;
top: 0rpx; top: 0rpx;
width: 120rpx; width: 120rpx;
height: 28rpx; height: 28rpx;
} }
.vip_text { .vip_text {
position: absolute; position: absolute;
right: 16rpx; right: 16rpx;
top: 0rpx; top: 0rpx;
...@@ -47,9 +50,9 @@ page { ...@@ -47,9 +50,9 @@ page {
font-size: 20rpx; font-size: 20rpx;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #FFFFFF;
} }
.element_title { .element_title {
box-sizing: border-box; box-sizing: border-box;
padding: 18rpx 14rpx 0 18rpx; padding: 18rpx 14rpx 0 18rpx;
min-height: 88rpx; min-height: 88rpx;
...@@ -65,9 +68,9 @@ page { ...@@ -65,9 +68,9 @@ page {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
line-clamp: 2; line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.element_sale_price { .element_sale_price {
box-sizing: border-box; box-sizing: border-box;
padding: 10rpx 0 0 18rpx; padding: 10rpx 0 0 18rpx;
display: flex; display: flex;
...@@ -76,16 +79,16 @@ page { ...@@ -76,16 +79,16 @@ page {
color: #999999; color: #999999;
line-height: 56rpx; line-height: 56rpx;
/* align-items: flex-end; */ /* align-items: flex-end; */
} }
.price_min_icon { .price_min_icon {
font-size: 24rpx; font-size: 24rpx;
font-weight: 400; font-weight: 400;
line-height: 60rpx; line-height: 60rpx;
margin-right: 6rpx; margin-right: 6rpx;
} }
.element_o_price { .element_o_price {
font-size: 24rpx; font-size: 24rpx;
font-weight: 400; font-weight: 400;
line-height: 34rpx; line-height: 34rpx;
...@@ -96,29 +99,29 @@ page { ...@@ -96,29 +99,29 @@ page {
position: absolute; position: absolute;
left: 18rpx; left: 18rpx;
bottom: 4rpx; bottom: 4rpx;
} }
.scroll_element_active { .scroll_element_active {
box-shadow: 0px 4rpx 8rpx 0px #ffebe6; box-shadow: 0px 4rpx 8rpx 0px #ffebe6;
border: 2rpx solid #8A303A; border: 2rpx solid #8A303A;
} }
.selected { .selected {
color: #8A303A; color: #8A303A;
} }
.selected1 { .selected1 {
color: #282829; color: #282829;
font-size: 500; font-size: 500;
} }
.flex_cc { .flex_cc {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.more_btn { .more_btn {
width: 80rpx; width: 80rpx;
height: 348rpx; height: 348rpx;
background: rgba(228, 228, 228, 0.95); background: rgba(228, 228, 228, 0.95);
...@@ -131,45 +134,46 @@ page { ...@@ -131,45 +134,46 @@ page {
color: #666666; color: #666666;
line-height: 40rpx; line-height: 40rpx;
flex-direction: column; flex-direction: column;
} }
.roate { .roate {
width: 0; width: 0;
height: 0; height: 0;
border-right: 10rpx solid transparent; border-right: 10rpx solid transparent;
border-left: 10rpx solid transparent; border-left: 10rpx solid transparent;
border-top: 10rpx solid #666666; border-top: 10rpx solid #666666;
margin-top: 20rpx; margin-top: 20rpx;
} }
.goods_desc_wrapper { .goods_desc_wrapper {
box-sizing: border-box; box-sizing: border-box;
padding: 0 40rpx; padding: 0 40rpx;
} }
.line_wrapper { .line_wrapper {
border-bottom: 2rpx solid #DEDEDE; border-bottom: 2rpx solid #DEDEDE;
padding: 28rpx 0; padding: 28rpx 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.line_label { .line_label {
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #282829; color: #282829;
line-height: 40rpx; line-height: 40rpx;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.line_label > .logo{
.line_label>.logo {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
margin-right: 8rpx; margin-right: 8rpx;
} }
.line_tip { .line_tip {
font-size: 24rpx; font-size: 24rpx;
font-weight: 400; font-weight: 400;
color: #717171; color: #717171;
...@@ -178,94 +182,97 @@ page { ...@@ -178,94 +182,97 @@ page {
text-overflow: ellipsis; text-overflow: ellipsis;
margin-left: 16rpx; margin-left: 16rpx;
width: 350rpx; width: 350rpx;
} }
.line_con { .line_con {
font-size: 24rpx; font-size: 24rpx;
font-weight: 400; font-weight: 400;
color: #656566; color: #656566;
} }
.line_con > .logo {
.line_con>.logo {
width: 16rpx; width: 16rpx;
height: 24rpx; height: 24rpx;
margin-left: 8rpx; margin-left: 8rpx;
} }
.line_icon { .line_icon {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
margin-left: 10rpx; margin-left: 10rpx;
} }
.class1 { .class1 {
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
} }
.class2 { .class2 {
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
color: #8A303A; color: #8A303A;
} }
.class3 { .class3 {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
} }
.class4 { .class4 {
color: #8A303A; color: #8A303A;
font-weight: 500; font-weight: 500;
} }
.class5{
.class5 {
font-weight: 400; font-weight: 400;
color: #8A303A; color: #8A303A;
} }
.class6{
.class6 {
font-weight: 600; font-weight: 600;
font-size: 40rpx; font-size: 40rpx;
color: #8A303A; color: #8A303A;
} }
.rich_title { .rich_title {
margin-top: 30rpx; margin-top: 30rpx;
padding-left: 40rpx; padding-left: 40rpx;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 18rpx; margin-bottom: 18rpx;
} }
.title_icon { .title_icon {
width: 6rpx; width: 6rpx;
height: 32rpx; height: 32rpx;
background: #8A303A; background: #8A303A;
} }
.title_text { .title_text {
font-size: 32rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
color: #282829; color: #282829;
margin-left: 16rpx; margin-left: 16rpx;
} }
.rich_wrapper { .rich_wrapper {
padding: 0 40rpx; padding: 0 40rpx;
} }
.rich_text { .rich_text {
font-size: 28rpx; font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #282829 !important; color: #282829 !important;
line-height: 44rpx; line-height: 44rpx;
background: white !important; background: white !important;
} }
.fixed_btn { .fixed_btn {
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
...@@ -277,9 +284,9 @@ page { ...@@ -277,9 +284,9 @@ page {
background: white; background: white;
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx 0 90rpx; padding: 0 32rpx 0 90rpx;
} }
.buy_btn { .buy_btn {
width: 468rpx; width: 468rpx;
height: 80rpx; height: 80rpx;
background: #8A303A; background: #8A303A;
...@@ -287,40 +294,40 @@ page { ...@@ -287,40 +294,40 @@ page {
font-size: 28rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
color: #FFFFFF; color: #FFFFFF;
} }
.icon_text { .icon_text {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.card_icon { .card_icon {
width: 52rpx; width: 52rpx;
height: 52rpx; height: 52rpx;
} }
.card_text { .card_text {
font-size: 24rpx; font-size: 24rpx;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
line-height: 34rpx; line-height: 34rpx;
} }
.disableBtn { .disableBtn {
background-color: #999 !important; background-color: #999 !important;
} }
.noStorck { .noStorck {
padding: 28rpx 0; padding: 28rpx 0;
font-size: 32rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
color: #8A303A; color: #8A303A;
background: rgba(252, 91, 50, 0.2); background: rgba(252, 91, 50, 0.2);
} }
.overlay { .overlay {
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
...@@ -330,37 +337,37 @@ page { ...@@ -330,37 +337,37 @@ page {
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, .7); background-color: rgba(0, 0, 0, .7);
z-index: 999; z-index: 999;
} }
.overlay_boxs { .overlay_boxs {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
} }
.box_body { .box_body {
width: 72%; width: 72%;
height: 612rpx; height: 612rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.boxs_icon { .boxs_icon {
width: 288rpx; width: 288rpx;
height: 60rpx; height: 60rpx;
margin: 0 auto; margin: 0 auto;
} }
.boxs_content { .boxs_content {
border-radius: 8rpx; border-radius: 8rpx;
height: 438rpx; height: 438rpx;
position: relative; position: relative;
width: 100%; width: 100%;
} }
.box_title { .box_title {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 0; top: 0;
...@@ -372,9 +379,9 @@ page { ...@@ -372,9 +379,9 @@ page {
z-index: 1; z-index: 1;
text-align: center; text-align: center;
line-height: 56rpx; line-height: 56rpx;
} }
.box_title_text::before { .box_title_text::before {
content: ""; content: "";
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -383,15 +390,15 @@ page { ...@@ -383,15 +390,15 @@ page {
width: 62rpx; width: 62rpx;
height: 2rpx; height: 2rpx;
background: #683800; background: #683800;
} }
.box_title_text { .box_title_text {
color: #683800; color: #683800;
font-size: 28rpx; font-size: 28rpx;
position: relative; position: relative;
} }
.box_title_text::after { .box_title_text::after {
content: ""; content: "";
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -400,9 +407,9 @@ page { ...@@ -400,9 +407,9 @@ page {
width: 62rpx; width: 62rpx;
height: 2rpx; height: 2rpx;
background: #683800; background: #683800;
} }
.box_container { .box_container {
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
...@@ -411,30 +418,33 @@ page { ...@@ -411,30 +418,33 @@ page {
background: #ffffff; background: #ffffff;
width: 100%; width: 100%;
border-radius: 8px; border-radius: 8px;
} }
.box_content_text { .box_content_text {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx; padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx; font-size: 28rpx;
color: #606060; color: #606060;
line-height: 56rpx; line-height: 56rpx;
} }
.info_diff{
.info_diff {
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
text-align: center; text-align: center;
text-align: center; text-align: center;
} }
.info_open_btn{
.info_open_btn {
color: #19c34e; color: #19c34e;
font-size: 24rpx; font-size: 24rpx;
text-decoration: underline; text-decoration: underline;
margin-top: 6rpx; margin-top: 6rpx;
text-align: center; text-align: center;
} }
.box_btn_groups {
.box_btn_groups {
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
...@@ -443,17 +453,17 @@ page { ...@@ -443,17 +453,17 @@ page {
height: 88rpx; height: 88rpx;
display: flex; display: flex;
border-top: 2px solid #e5e5e5; border-top: 2px solid #e5e5e5;
} }
.btn_wrap { .btn_wrap {
text-align: center; text-align: center;
line-height: 88rpx; line-height: 88rpx;
color: #333333; color: #333333;
font-size: 28rpx; font-size: 28rpx;
width: 50%; width: 50%;
} }
.dr_line { .dr_line {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 0; top: 0;
...@@ -461,13 +471,13 @@ page { ...@@ -461,13 +471,13 @@ page {
width: 1px; width: 1px;
transform: translate(-50%, 0); transform: translate(-50%, 0);
background: #e5e5e5; background: #e5e5e5;
} }
.spc_text { .spc_text {
color: #8A303A; color: #8A303A;
} }
.bottom_modal { .bottom_modal {
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
...@@ -477,12 +487,11 @@ page { ...@@ -477,12 +487,11 @@ page {
background: white; background: white;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.bottom_title_wrapper { .bottom_title_wrapper {
position: absolute; position: sticky;
left: 0; left: 0;
right: 0;
top: 0; top: 0;
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
...@@ -493,40 +502,44 @@ page { ...@@ -493,40 +502,44 @@ page {
padding: 0 40rpx; padding: 0 40rpx;
background: white; background: white;
z-index: 1000; z-index: 1000;
} }
.title_label { .title_label {
font-size: 32rpx; font-size: 32rpx;
color: #282829; color: #282829;
} }
.bottom_scoll_wrap { .bottom_scoll_wrap {
width: 100%; width: 100%;
height: calc(100% - 19rpx); height: calc(100% - 19rpx);
overflow: hidden; overflow: hidden;
overflow-y: scroll; overflow-y: scroll;
box-sizing: border-box; box-sizing: border-box;
padding: 20rpx; padding: 20rpx 0 20rpx 10rpx;
} display: flex;
flex-wrap: wrap;
gap: 10rpx;
justify-content: space-between;
}
.bottem_item_width { .bottem_item_width {
width: 224rpx; width: 224rpx;
} }
.bottem_item_title_height { .bottem_item_title_height {
height: 98rpx; height: 98rpx;
} }
.check_icon_sty { .check_icon_sty {
width: 36rpx; width: 36rpx;
height: 36rpx; height: 36rpx;
position: absolute; position: absolute;
right: 20rpx; right: 20rpx;
bottom: 20rpx; bottom: 20rpx;
} }
.check_icon_sty_max { .check_icon_sty_max {
position: absolute; position: absolute;
right: 20rpx; right: 20rpx;
bottom: 45rpx; bottom: 45rpx;
}
\ No newline at end of file \ No newline at end of file
}
\ No newline at end of file \ No newline at end of file
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
<rich-text nodes="{{richText}}" bind:tap="toClickRich"></rich-text> <rich-text nodes="{{richText}}" bind:tap="toClickRich"></rich-text>
</view> </view>
</view> </view>
<view style="height:254rpx"></view>
<view class="fixed_btn isFullSucreen"> <view class="fixed_btn isFullSucreen">
<view class="icon_text" bind:tap="toMyCoupons"> <view class="icon_text" bind:tap="toMyCoupons">
<glsx-image webp class="card_icon" webp src="equity/card-icon.png" /> <glsx-image webp class="card_icon" webp src="equity/card-icon.png" />
...@@ -127,10 +126,9 @@ ...@@ -127,10 +126,9 @@
<view class="title_label">更多商品</view> <view class="title_label">更多商品</view>
<view class="title_close title_label" bind:tap="closeBottomModal">X</view> <view class="title_close title_label" bind:tap="closeBottomModal">X</view>
</view> </view>
<view style="height:88rpx"></view> <view class="bottom_scoll_wrap isFullSucreen">
<view class="bottom_scoll_wrap">
<block wx:for="{{goodsList}}"> <block wx:for="{{goodsList}}">
<view style="margin-bottom:20rpx" class="scroll_element bottem_item_width {{currentIndex==index?'scroll_element_active':''}}" bind:tap="selectGoodsItem" data-index="{{index}}" data-item="{{item}}"> <view class="scroll_element bottem_item_width {{currentIndex==index?'scroll_element_active':''}}" bind:tap="selectGoodsItem" data-index="{{index}}" data-item="{{item}}">
<view class="image_icon_wrapper"> <view class="image_icon_wrapper">
<image webp mode="widthFix" class="image_icon bottem_item_width" src="{{item.goodsImage}}" /> <image webp mode="widthFix" class="image_icon bottem_item_width" src="{{item.goodsImage}}" />
<glsx-image wx:if="{{!item.noMemberPrice}}" mode="widthFix" class="image_vip" webp src="equity/vip_icon_spc.png" /> <glsx-image wx:if="{{!item.noMemberPrice}}" mode="widthFix" class="image_vip" webp src="equity/vip_icon_spc.png" />
...@@ -150,9 +148,8 @@ ...@@ -150,9 +148,8 @@
</view> </view>
</view> </view>
<block wx:if="{{showAuth}}"> <block wx:if="{{showAuth}}">
<authorize scopeType="userLocation" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" <authorize scopeType="userLocation" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
show="{{showAuth}}"></authorize>
</block> </block>
<!-- <block wx:if="{{showComponent&&!isGH}}"> <!-- <block wx:if="{{showComponent&&!isGH}}">
<coupons-list bind:getCoupons="getCouponsItem" couponsId="{{query.couponId}}" show="{{showCoupons}}" goodsId="{{curentGoodsItem.id}}"></coupons-list> <coupons-list bind:getCoupons="getCouponsItem" couponsId="{{query.couponId}}" show="{{showCoupons}}" goodsId="{{curentGoodsItem.id}}"></coupons-list>
</block> --> </block> -->
\ No newline at end of file \ No newline at end of file
...@@ -44,11 +44,13 @@ Page({ ...@@ -44,11 +44,13 @@ Page({
if (loadOver) { if (loadOver) {
return return
} }
wx.p.wxApi.showLoading()
wx.p.api.equityApi.lasteCommodity(para).then(res => { wx.p.api.equityApi.lasteCommodity(para).then(res => {
if (!res) { if (!res) {
this.setData({ this.setData({
loadOver: true loadOver: true
}) })
wx.hideLoading()
return return
} }
let tempArr = [] let tempArr = []
...@@ -65,6 +67,7 @@ Page({ ...@@ -65,6 +67,7 @@ Page({
loadingMore: false, loadingMore: false,
loadOver: false loadOver: false
}) })
wx.hideLoading()
}) })
}, },
// 重新收起获取定位 // 重新收起获取定位
......
<view class="commodity-list-container"> <view class="commodity-list-container isFullSucreen">
<view wx:if="{{unauthorized}}" class="reLocation_wrap flex_cc"> <view wx:if="{{unauthorized}}" class="reLocation_wrap flex_cc">
<image webp class="loca_icon" webp src="{{IMGURL}}equity/location_icon.png?v={{img_version}}" /> <glsx-image webp class="loca_icon" webp src="equity/location_icon.png" />
<view bind:tap="relocation" class="loca_text">定位一下,发现附近优惠</view> <view bind:tap="relocation" class="loca_text">定位一下,发现附近优惠</view>
</view> </view>
<block wx:for="{{commodityList}}" wx:key="index"> <block wx:for="{{commodityList}}" wx:key="index">
......
...@@ -5,6 +5,8 @@ page{ ...@@ -5,6 +5,8 @@ page{
box-sizing: border-box; box-sizing: border-box;
padding: 33rpx 0; padding: 33rpx 0;
position: relative; position: relative;
padding-bottom: calc(162rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(162rpx + var(--envSafeAreaInsetBottom));
} }
.top_widget { .top_widget {
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
<glsx-image webp mode="widthFix" webp class="desc_icon" src="{{IMGURKBASE}}scrm_opening_vip.png" /> <glsx-image webp mode="widthFix" webp class="desc_icon" src="{{IMGURKBASE}}scrm_opening_vip.png" />
</view> </view>
<!-- <glsx-image webp class="device_icon" bind:tap="toActive" mode="widthFix" webp src="equity/scrm_device_bg_new.png" /> --> <!-- <glsx-image webp class="device_icon" bind:tap="toActive" mode="widthFix" webp src="equity/scrm_device_bg_new.png" /> -->
<view style="height:220rpx"></view> <view class="fixed_wrapper isFullSucreen">
<view class="fixed_wrapper">
<view class="btn_wrap"> <view class="btn_wrap">
<view wx:if="{{!isOpen&&memberInfo.goodPrice}}" class="btn_element btn_element_active" catchtap="openMemberFn">¥{{memberInfo.goodPrice}} 立即开通</view> <view wx:if="{{!isOpen&&memberInfo.goodPrice}}" class="btn_element btn_element_active" catchtap="openMemberFn">¥{{memberInfo.goodPrice}} 立即开通</view>
<view wx:else class="btn_element">{{ isOpen ? "已开通" : "暂不支持付费购买" }}</view> <view wx:else class="btn_element">{{ isOpen ? "已开通" : "暂不支持付费购买" }}</view>
......
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 0 32rpx; padding: 0 32rpx;
} padding-bottom: calc(128rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(128rpx + var(--envSafeAreaInsetBottom));
}
.top_wrapper { .top_wrapper {
width: 100%; width: 100%;
height: 160rpx; height: 160rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/equity/scrm_package_bg.png"); background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/equity/scrm_package_bg.png");
...@@ -17,37 +19,37 @@ ...@@ -17,37 +19,37 @@
align-items: center; align-items: center;
font-size: 36rpx; font-size: 36rpx;
color: #fff; color: #fff;
} }
.title_widget { .title_widget {
width: 100%; width: 100%;
color: #282829; color: #282829;
font-size: 36rpx; font-size: 36rpx;
margin: 32rpx 0 24rpx 0; margin: 32rpx 0 24rpx 0;
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
} }
.title_num { .title_num {
color: #C57463; color: #C57463;
margin: 0 10rpx; margin: 0 10rpx;
} }
.package_content_wrapper { .package_content_wrapper {
box-sizing: border-box; box-sizing: border-box;
background: #fff; background: #fff;
border-radius: 8rpx; border-radius: 8rpx;
width: 100%; width: 100%;
padding: 24rpx; padding: 24rpx;
} }
.package_element { .package_element {
position: relative; position: relative;
height: 82rpx; height: 82rpx;
margin-bottom: 48rpx; margin-bottom: 48rpx;
} }
.ele_top { .ele_top {
width: 70%; width: 70%;
color: #282829; color: #282829;
font-size: 28rpx; font-size: 28rpx;
...@@ -55,42 +57,42 @@ ...@@ -55,42 +57,42 @@
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.ele_right { .ele_right {
color: #282829; color: #282829;
font-size: 24rpx; font-size: 24rpx;
position: absolute; position: absolute;
right: 0; right: 0;
top: 4rpx; top: 4rpx;
font-weight: 500; font-weight: 500;
} }
.ele_left { .ele_left {
color: #b1b1b3; color: #b1b1b3;
font-size: 24rpx; font-size: 24rpx;
position: absolute; position: absolute;
left: 40rpx; left: 40rpx;
bottom: 0; bottom: 0;
} }
.ele_bottom { .ele_bottom {
color: #b1b1b3; color: #b1b1b3;
font-size: 24rpx; font-size: 24rpx;
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0;
} }
.content_tip { .content_tip {
color: #656566; color: #656566;
font-size: 22rpx; font-size: 22rpx;
box-sizing: border-box; box-sizing: border-box;
padding-left: 24rpx; padding-left: 24rpx;
word-wrap: break-word; word-wrap: break-word;
} }
.fixed-button-wrap { .fixed-button-wrap {
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
...@@ -100,9 +102,9 @@ ...@@ -100,9 +102,9 @@
padding: 0 32rpx; padding: 0 32rpx;
padding-bottom: 40rpx; padding-bottom: 40rpx;
padding-top: 20rpx; padding-top: 20rpx;
} }
.button-item { .button-item {
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
background: #892F3B; background: #892F3B;
...@@ -113,12 +115,13 @@ ...@@ -113,12 +115,13 @@
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
} }
.grey-btn{
.grey-btn {
background: #ccc; background: #ccc;
} }
.auth-button { .auth-button {
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
...@@ -126,30 +129,30 @@ ...@@ -126,30 +129,30 @@
top: 0; top: 0;
opacity: 0; opacity: 0;
z-index: 102; z-index: 102;
} }
.price_total_title { .price_total_title {
font-size: 36rpx; font-size: 36rpx;
font-weight: 500; font-weight: 500;
color: #282829; color: #282829;
margin: 32rpx 0 24rpx 0; margin: 32rpx 0 24rpx 0;
text-align: center; text-align: center;
} }
.statistical_wrapper { .statistical_wrapper {
/* margin: 0 32rpx; */ /* margin: 0 32rpx; */
box-sizing: border-box; box-sizing: border-box;
padding: 32rpx 24rpx; padding: 32rpx 24rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 16rpx; border-radius: 16rpx;
} }
.price_line_item { .price_line_item {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.line_label { .line_label {
font-size: 24rpx; font-size: 24rpx;
font-weight: 500; font-weight: 500;
color: #282829; color: #282829;
...@@ -158,18 +161,18 @@ ...@@ -158,18 +161,18 @@
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.line_num { .line_num {
width: 20%; width: 20%;
font-size: 24rpx; font-size: 24rpx;
font-weight: 500; font-weight: 500;
color: #656566; color: #656566;
line-height: 34rpx; line-height: 34rpx;
text-align: center; text-align: center;
} }
.line_price { .line_price {
width: 40%; width: 40%;
font-size: 24rpx; font-size: 24rpx;
font-weight: 500; font-weight: 500;
...@@ -179,21 +182,21 @@ ...@@ -179,21 +182,21 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
.total_desc { .total_desc {
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #282829; color: #282829;
line-height: 40rpx; line-height: 40rpx;
text-align: center; text-align: center;
margin-bottom: 22rpx; margin-bottom: 22rpx;
} }
.price_text { .price_text {
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
color: #FC5B32; color: #FC5B32;
line-height: 44rpx; line-height: 44rpx;
margin: 0 10rpx; margin: 0 10rpx;
}
\ No newline at end of file \ No newline at end of file
}
\ No newline at end of file \ No newline at end of file
...@@ -52,5 +52,4 @@ ...@@ -52,5 +52,4 @@
</view> </view>
<view wx:if="{{!packageInfo.isPayFlag&&!showAuthBtn}}" class="button-item grey-btn">非指定用户不可购买</view> <view wx:if="{{!packageInfo.isPayFlag&&!showAuthBtn}}" class="button-item grey-btn">非指定用户不可购买</view>
</view> </view>
<view style="height: 164rpx"></view>
</view> </view>
\ No newline at end of file \ No newline at end of file
<view class="package-detail-container"> <view class="package-detail-container">
<view wx:if="{{orderStatus>3}}" class="afterSale_wrapper"> <view wx:if="{{orderStatus>3}}" class="afterSale_wrapper">
<view wx:if="{{orderStatus==4}}" class="after_title flex_cc"> <view wx:if="{{orderStatus==4}}" class="after_title flex_cc">
<image webp class="sale_icon" src="{{IMGURL}}equity/return_icon.png?v={{img_version}}" /> <glsx-image webp class="sale_icon" src="equity/return_icon.png" />
<view class="sale_text">退款中</view> <view class="sale_text">退款中</view>
</view> </view>
<view wx:if="{{orderStatus==5}}" class="after_title flex_cc"> <view wx:if="{{orderStatus==5}}" class="after_title flex_cc">
<image webp class="sale_icon" src="{{IMGURL}}equity/return_fail.png?v={{img_version}}" /> <glsx-image webp class="sale_icon" src="equity/return_fail.png" />
<view class="sale_text">退款失败</view> <view class="sale_text">退款失败</view>
</view> </view>
<view wx:if="{{orderStatus==6}}" class="after_title flex_cc"> <view wx:if="{{orderStatus==6}}" class="after_title flex_cc">
<image webp class="sale_icon" src="{{IMGURL}}equity/return_success.png?v={{img_version}}" /> <glsx-image webp class="sale_icon" src="equity/return_success.png" />
<view class="sale_text">已退款</view> <view class="sale_text">已退款</view>
</view> </view>
<view wx:if="{{orderStatus==4}}" class="return_message"> <view wx:if="{{orderStatus==4}}" class="return_message">
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<view style="height:32rpx"></view> <view style="height:32rpx"></view>
<view class="wrapper"> <view class="wrapper">
<!-- <view class="image_icon_text" bind:tap="openMap"> <!-- <view class="image_icon_text" bind:tap="openMap">
<image webp class="image_icon" src="{{IMGURL}}equity/scrm_location_icon.png?v={{img_version}}" /> <glsx-image webp class="image_icon" src="equity/scrm_location_icon.png" />
<view class="image_text">导航</view> <view class="image_text">导航</view>
</view> --> </view> -->
<view class="row_wrap flex_sc"> <view class="row_wrap flex_sc">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="nothing-box"> <view class="nothing-box">
<view class="nothing"> <view class="nothing">
<view class="icon"> <view class="icon">
<image webp src="{{IMGURL}}mall/shoppingcart.png?v={{img_version}}" /> <glsx-image webp src="mall/shoppingcart.png" />
</view> </view>
购物车还是空的 购物车还是空的
<view class="btn text-center" bindtap="jump">随便看看</view> <view class="btn text-center" bindtap="jump">随便看看</view>
......
<view class="success_page"> <view class="success_page">
<!-- <image webp class="success_icon" src="../../../../images/coupons/success.png" /> --> <!-- <image webp class="success_icon" src="../../../../images/coupons/success.png" /> -->
<image webp class="success_icon" src="{{IMGURL}}coupons/success.png?v={{img_version}}" /> <glsx-image webp class="success_icon" src="coupons/success.png" />
<view class="success_text">您的优惠礼券领取成功!</view> <view class="success_text">您的优惠礼券领取成功!</view>
<view class="success_count">{{count}}秒后自动跳转到首页</view> <view class="success_count">{{count}}秒后自动跳转到首页</view>
<view class="success_btn_wrap btn_pos"> <view class="success_btn_wrap btn_pos">
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}"> <view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}">
{{afterType[item.value]}} {{afterType[item.value]}}
<view class="icon"> <view class="icon">
<image webp src="{{IMGURL}}mine/active.png?v={{img_version}}"></image> <glsx-image webp src="mine/active.png"></glsx-image>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="topCtn" bindtap="goAgreement"> <view class="topCtn" bindtap="goAgreement">
<view class="text">隐私政策</view> <view class="text">隐私政策</view>
<view> <view>
<image webp mode="widthFix" class="setting-icon" src="{{IMGURL}}index/setting-icon.png?v={{img_version}}"></image> <glsx-image webp mode="widthFix" class="setting-icon" src="home/setting-icon.png"></glsx-image>
</view> </view>
</view> </view>
<view class="default-btn x-center" bindtap="logout">退出登录</view> <view class="default-btn x-center" bindtap="logout">退出登录</view>
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
</block> </block>
</view> </view>
<view wx:if="{{unauthorized}}" class="reLocation_wrap flex_cc"> <view wx:if="{{unauthorized}}" class="reLocation_wrap flex_cc">
<glsx-image webp class="loca_icon" webp src="location_icon.png" /> <glsx-image webp class="loca_icon" webp src="equity/location_icon.png" />
<view bind:tap="relocation" class="loca_text">定位一下,发现附近优惠</view> <view bind:tap="relocation" class="loca_text">定位一下,发现附近优惠</view>
</view> </view>
</view> </view>
......
...@@ -15,9 +15,39 @@ Page({ ...@@ -15,9 +15,39 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad(options) {
this.getChannelsLiveInfo()
this.getActivityList() this.getActivityList()
}, },
async getChannelsLiveInfo() {
const {
finderUserName
} = await wx.p.api.systemApi.getMockData()
wx.getChannelsLiveInfo({
finderUserName,
success(liveInfo) {
console.log(liveInfo, '视频号直播')
if (liveInfo.status == 3) {
wx.getChannelsLiveNoticeInfo({
finderUserName,
success(liveNoticeInfo) {
console.log(liveNoticeInfo, '视频号预告')
this.setData({
liveNoticeInfo
})
},
fail(err) {
console.log(err)
}
})
} else {
this.setData({
liveInfo
})
}
}
})
},
getActivityList() { getActivityList() {
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
let total = 0 let total = 0
......
...@@ -80,3 +80,4 @@ ...@@ -80,3 +80,4 @@
</block> </block>
<!-- 客服 --> <!-- 客服 -->
<customer model:show="{{widgetStatus}}" customerlist="{{customerlist}}"></customer> <customer model:show="{{widgetStatus}}" customerlist="{{customerlist}}"></customer>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!