Commit 7ee03e30 by 李伟康

提交

1 parent 85fd6264
...@@ -121,4 +121,11 @@ ...@@ -121,4 +121,11 @@
100% { 100% {
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
<view class="allEquity-container"> <view class="allEquity-container">
<view style="height:{{cHeight}}px" class="left_wrap"> <view style="height:{{cHeight}}px" class="left_wrap">
<block wx:for="{{equityList}}" wx:key="index"> <block wx:for="{{equityList}}" wx:key="index">
<view bind:tap="slectLeftItem" data-index="{{index}}" class="selecTab flex_cc {{curIndex==index?'actvie_class':''}}"> <view bind:tap="slectLeftItem" data-index="{{index}}" class="selecTab flex_cc {{curIndex==index?'actvie_class':''}}">
<text>{{item.goodsCategory}}</text> <text>{{item.goodsCategory}}</text>
<view wx:if="{{curIndex==index}}" class="active_line"></view> <view wx:if="{{curIndex==index}}" class="active_line"></view>
</view>
</block>
</view>
<view style="height:{{cHeight}}px" class="right_wrap">
<scroll-view scroll-y="{{true}}" scroll-with-animation scroll-into-view="{{to}}" bindscroll="scrollViewFn" style="height:{{cHeight}}px">
<block wx:for="{{equityList}}" wx:key="index">
<view id="to-{{index}}" class="scroll_item_wrap">
<view class="scroll_title">{{item.goodsCategory}}</view>
<view class="scroll_content">
<view wx:for="{{item.equityGoodsGroupDescDtos}}" wx:for-item="childItem" wx:for-index="indexs" wx:key="indexs" class="element" data-item="{{childItem}}" bind:tap="toNewPage">
<image webp class="element_icon" mode="widthFix" src="{{childItem.equityIcon}}" />
<view class="element_label common_element_text">
{{childItem.equityName}}
</view>
<view class="element_tip common_element_text">
{{childItem.equityDesc}}
</view>
</view> </view>
</block> </view>
</view> </view>
<view style="height:{{cHeight}}px" class="right_wrap"> </block>
<scroll-view scroll-y="{{true}}" scroll-with-animation scroll-into-view="{{to}}" bindscroll="scrollViewFn" style="height:{{cHeight}}px"> <view class="safe-area isFullSucreen"></view>
<block wx:for="{{equityList}}" wx:key="index"> </scroll-view>
<view id="to-{{index}}" class="scroll_item_wrap"> </view>
<view class="scroll_title">{{item.goodsCategory}}</view>
<view class="scroll_content">
<view wx:for="{{item.equityGoodsGroupDescDtos}}" wx:for-item="childItem" wx:for-index="indexs" wx:key="indexs" class="element" data-item="{{childItem}}" bind:tap="toNewPage">
<image webp class="element_icon" mode="widthFix" src="{{childItem.equityIcon}}" />
<view class="element_label common_element_text">
{{childItem.equityName}}
</view>
<view class="element_tip common_element_text">
{{childItem.equityDesc}}
</view>
</view>
</view>
</view>
</block>
</scroll-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;
}
.goods_scroll_wrapper {
padding: 46rpx 0 40rpx 40rpx;
position: relative;
overflow: hidden;
white-space: nowrap;
}
.scroll_element {
width: 288rpx;
height: 380rpx;
border-radius: 16rpx;
border: 2rpx solid #FFFFFF;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
margin-right: 10rpx;
display: inline-block;
position: relative;
vertical-align: top;
}
.image_icon_wrapper {
position: relative;
}
.image_icon {
width: 288rpx;
height: 178rpx;
border-radius: 16rpx 16rpx 0 0;
}
.image_vip {
position: absolute;
right: 0rpx;
top: 0rpx;
width: 120rpx;
height: 28rpx;
}
.vip_text {
position: absolute;
right: 16rpx;
top: 0rpx;
z-index: 3;
font-size: 20rpx;
font-weight: 500;
color: #FFFFFF;
}
.element_title {
box-sizing: border-box;
padding: 18rpx 14rpx 0 18rpx;
min-height: 88rpx;
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
white-space: pre-wrap;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.element_sale_price {
box-sizing: border-box;
padding: 10rpx 0 0 18rpx;
display: flex;
font-size: 40rpx;
font-weight: 600;
color: #999999;
line-height: 56rpx;
/* align-items: flex-end; */
}
.price_min_icon {
font-size: 24rpx;
font-weight: 400;
line-height: 60rpx;
margin-right: 6rpx;
}
.element_o_price {
font-size: 24rpx;
font-weight: 400;
line-height: 34rpx;
text-decoration: line-through;
box-sizing: border-box;
/* padding: 0 0 0 18rpx; */
color: #999999;
position: absolute;
left: 18rpx;
bottom: 4rpx;
}
.scroll_element_active {
box-shadow: 0px 4rpx 8rpx 0px #ffebe6;
border: 2rpx solid #8A303A;
}
.selected {
color: #8A303A;
}
.selected1 {
color: #282829;
font-size: 500;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
.more_btn {
width: 80rpx;
height: 348rpx;
background: rgba(228, 228, 228, 0.95);
border-radius: 12rpx;
position: absolute;
right: 0;
top: 56rpx;
font-size: 28rpx;
font-weight: 600;
color: #666666;
line-height: 40rpx;
flex-direction: column;
}
.roate {
width: 0;
height: 0;
border-right: 10rpx solid transparent;
border-left: 10rpx solid transparent;
border-top: 10rpx solid #666666;
margin-top: 20rpx;
}
.goods_desc_wrapper {
box-sizing: border-box;
padding: 0 40rpx;
}
.line_wrapper {
border-bottom: 2rpx solid #DEDEDE;
padding: 28rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.line_label {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
display: flex;
align-items: center;
}
.line_label > .logo{
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
.line_tip {
font-size: 24rpx;
font-weight: 400;
color: #717171;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-left: 16rpx;
width: 350rpx;
}
.line_con {
font-size: 24rpx;
font-weight: 400;
color: #656566;
}
.line_con > .logo {
width: 16rpx;
height: 24rpx;
margin-left: 8rpx;
}
.line_icon {
width: 40rpx;
height: 40rpx;
margin-left: 10rpx;
}
.class1 {
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class2 {
font-size: 28rpx;
font-weight: 400;
color: #8A303A;
}
.class3 {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class4 {
color: #8A303A;
font-weight: 500;
}
.class5{
font-weight: 400;
color: #8A303A;
}
.class6{
font-weight: 600;
font-size: 40rpx;
color: #8A303A;
}
.rich_title {
margin-top: 30rpx;
padding-left: 40rpx;
display: flex;
align-items: center;
margin-bottom: 18rpx;
}
.title_icon {
width: 6rpx;
height: 32rpx;
background: #8A303A;
}
.title_text {
font-size: 32rpx;
font-weight: 600;
color: #282829;
margin-left: 16rpx;
}
.rich_wrapper {
padding: 0 40rpx;
}
.rich_text {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #282829 !important;
line-height: 44rpx;
background: white !important;
}
.fixed_btn {
position: fixed;
left: 0;
right: 0;
bottom: 0;
min-height: 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
background: white;
box-sizing: border-box;
padding: 0 32rpx 0 90rpx;
}
.buy_btn {
width: 468rpx;
height: 80rpx;
background: #8A303A;
border-radius: 200rpx;
font-size: 28rpx;
font-weight: 600;
color: #FFFFFF;
}
.icon_text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.card_icon {
width: 52rpx;
height: 52rpx;
}
.card_text {
font-size: 24rpx;
font-weight: 400;
color: #666666;
line-height: 34rpx;
}
.disableBtn {
background-color: #999 !important;
}
.noStorck {
padding: 28rpx 0;
font-size: 32rpx;
font-weight: 600;
color: #8A303A;
background: rgba(252, 91, 50, 0.2);
}
.overlay {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999;
}
.overlay_boxs {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.box_body {
width: 72%;
height: 612rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.boxs_icon {
width: 288rpx;
height: 60rpx;
margin: 0 auto;
}
.boxs_content {
border-radius: 8rpx;
height: 438rpx;
position: relative;
width: 100%;
}
.box_title {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 56rpx;
width: 320rpx;
background-image: linear-gradient(142deg, #ffead1 0%, #e6bb8a 100%);
border-radius: 36rpx;
z-index: 1;
text-align: center;
line-height: 56rpx;
}
.box_title_text::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_title_text {
color: #683800;
font-size: 28rpx;
position: relative;
}
.box_title_text::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 410rpx;
background: #ffffff;
width: 100%;
border-radius: 8px;
}
.box_content_text {
width: 100%;
box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx;
color: #606060;
line-height: 56rpx;
}
.info_diff{
color: #333;
font-size: 28rpx;
text-align: center;
text-align: center;
}
.info_open_btn{
color: #19c34e;
font-size: 24rpx;
text-decoration: underline;
margin-top: 6rpx;
text-align: center;
}
.box_btn_groups {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 88rpx;
display: flex;
border-top: 2px solid #e5e5e5;
}
.btn_wrap {
text-align: center;
line-height: 88rpx;
color: #333333;
font-size: 28rpx;
width: 50%;
}
.dr_line {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
transform: translate(-50%, 0);
background: #e5e5e5;
}
.spc_text {
color: #8A303A;
}
.bottom_modal {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 80%;
background: white;
display: flex;
flex-direction: column;
}
.bottom_title_wrapper {
position: absolute;
left: 0;
right: 0;
top: 0;
width: 100%;
height: 88rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
background: white;
z-index: 1000;
}
.title_label {
font-size: 32rpx;
color: #282829;
}
.bottom_scoll_wrap {
width: 100%;
height: calc(100% - 19rpx);
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
padding: 20rpx;
}
.bottem_item_width {
width: 224rpx;
}
.bottem_item_title_height {
height: 98rpx;
}
.check_icon_sty {
width: 36rpx;
height: 36rpx;
position: absolute;
right: 20rpx;
bottom: 20rpx;
}
.check_icon_sty_max {
position: absolute;
right: 20rpx;
bottom: 45rpx;
}
\ No newline at end of file \ No newline at end of file
background: white;
}
.commodity-detail-container{
padding-bottom: calc(100rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(100rpx + var(--envSafeAreaInsetBottom));
}
.goods_scroll_wrapper {
padding: 46rpx 0 40rpx 40rpx;
position: relative;
overflow: hidden;
white-space: nowrap;
}
.scroll_element {
width: 288rpx;
height: 380rpx;
border-radius: 16rpx;
border: 2rpx solid #FFFFFF;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
margin-right: 10rpx;
display: inline-block;
position: relative;
vertical-align: top;
}
.image_icon_wrapper {
position: relative;
}
.image_icon {
width: 288rpx;
height: 178rpx;
border-radius: 16rpx 16rpx 0 0;
}
.image_vip {
position: absolute;
right: 0rpx;
top: 0rpx;
width: 120rpx;
height: 28rpx;
}
.vip_text {
position: absolute;
right: 16rpx;
top: 0rpx;
z-index: 3;
font-size: 20rpx;
font-weight: 500;
color: #FFFFFF;
}
.element_title {
box-sizing: border-box;
padding: 18rpx 14rpx 0 18rpx;
min-height: 88rpx;
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
white-space: pre-wrap;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.element_sale_price {
box-sizing: border-box;
padding: 10rpx 0 0 18rpx;
display: flex;
font-size: 40rpx;
font-weight: 600;
color: #999999;
line-height: 56rpx;
/* align-items: flex-end; */
}
.price_min_icon {
font-size: 24rpx;
font-weight: 400;
line-height: 60rpx;
margin-right: 6rpx;
}
.element_o_price {
font-size: 24rpx;
font-weight: 400;
line-height: 34rpx;
text-decoration: line-through;
box-sizing: border-box;
/* padding: 0 0 0 18rpx; */
color: #999999;
position: absolute;
left: 18rpx;
bottom: 4rpx;
}
.scroll_element_active {
box-shadow: 0px 4rpx 8rpx 0px #ffebe6;
border: 2rpx solid #8A303A;
}
.selected {
color: #8A303A;
}
.selected1 {
color: #282829;
font-size: 500;
}
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
.more_btn {
width: 80rpx;
height: 348rpx;
background: rgba(228, 228, 228, 0.95);
border-radius: 12rpx;
position: absolute;
right: 0;
top: 56rpx;
font-size: 28rpx;
font-weight: 600;
color: #666666;
line-height: 40rpx;
flex-direction: column;
}
.roate {
width: 0;
height: 0;
border-right: 10rpx solid transparent;
border-left: 10rpx solid transparent;
border-top: 10rpx solid #666666;
margin-top: 20rpx;
}
.goods_desc_wrapper {
box-sizing: border-box;
padding: 0 40rpx;
}
.line_wrapper {
border-bottom: 2rpx solid #DEDEDE;
padding: 28rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.line_label {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
display: flex;
align-items: center;
}
.line_label>.logo {
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
.line_tip {
font-size: 24rpx;
font-weight: 400;
color: #717171;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-left: 16rpx;
width: 350rpx;
}
.line_con {
font-size: 24rpx;
font-weight: 400;
color: #656566;
}
.line_con>.logo {
width: 16rpx;
height: 24rpx;
margin-left: 8rpx;
}
.line_icon {
width: 40rpx;
height: 40rpx;
margin-left: 10rpx;
}
.class1 {
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class2 {
font-size: 28rpx;
font-weight: 400;
color: #8A303A;
}
.class3 {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.class4 {
color: #8A303A;
font-weight: 500;
}
.class5 {
font-weight: 400;
color: #8A303A;
}
.class6 {
font-weight: 600;
font-size: 40rpx;
color: #8A303A;
}
.rich_title {
margin-top: 30rpx;
padding-left: 40rpx;
display: flex;
align-items: center;
margin-bottom: 18rpx;
}
.title_icon {
width: 6rpx;
height: 32rpx;
background: #8A303A;
}
.title_text {
font-size: 32rpx;
font-weight: 600;
color: #282829;
margin-left: 16rpx;
}
.rich_wrapper {
padding: 0 40rpx;
}
.rich_text {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #282829 !important;
line-height: 44rpx;
background: white !important;
}
.fixed_btn {
position: fixed;
left: 0;
right: 0;
bottom: 0;
min-height: 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
background: white;
box-sizing: border-box;
padding: 0 32rpx 0 90rpx;
}
.buy_btn {
width: 468rpx;
height: 80rpx;
background: #8A303A;
border-radius: 200rpx;
font-size: 28rpx;
font-weight: 600;
color: #FFFFFF;
}
.icon_text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.card_icon {
width: 52rpx;
height: 52rpx;
}
.card_text {
font-size: 24rpx;
font-weight: 400;
color: #666666;
line-height: 34rpx;
}
.disableBtn {
background-color: #999 !important;
}
.noStorck {
padding: 28rpx 0;
font-size: 32rpx;
font-weight: 600;
color: #8A303A;
background: rgba(252, 91, 50, 0.2);
}
.overlay {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999;
}
.overlay_boxs {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.box_body {
width: 72%;
height: 612rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.boxs_icon {
width: 288rpx;
height: 60rpx;
margin: 0 auto;
}
.boxs_content {
border-radius: 8rpx;
height: 438rpx;
position: relative;
width: 100%;
}
.box_title {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
height: 56rpx;
width: 320rpx;
background-image: linear-gradient(142deg, #ffead1 0%, #e6bb8a 100%);
border-radius: 36rpx;
z-index: 1;
text-align: center;
line-height: 56rpx;
}
.box_title_text::before {
content: "";
position: absolute;
top: 50%;
left: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_title_text {
color: #683800;
font-size: 28rpx;
position: relative;
}
.box_title_text::after {
content: "";
position: absolute;
top: 50%;
right: -70%;
transform: translate(0, -50%);
width: 62rpx;
height: 2rpx;
background: #683800;
}
.box_container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 410rpx;
background: #ffffff;
width: 100%;
border-radius: 8px;
}
.box_content_text {
width: 100%;
box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx;
color: #606060;
line-height: 56rpx;
}
.info_diff {
color: #333;
font-size: 28rpx;
text-align: center;
text-align: center;
}
.info_open_btn {
color: #19c34e;
font-size: 24rpx;
text-decoration: underline;
margin-top: 6rpx;
text-align: center;
}
.box_btn_groups {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 88rpx;
display: flex;
border-top: 2px solid #e5e5e5;
}
.btn_wrap {
text-align: center;
line-height: 88rpx;
color: #333333;
font-size: 28rpx;
width: 50%;
}
.dr_line {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
transform: translate(-50%, 0);
background: #e5e5e5;
}
.spc_text {
color: #8A303A;
}
.bottom_modal {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 80%;
background: white;
display: flex;
flex-direction: column;
}
.bottom_title_wrapper {
position: sticky;
left: 0;
top: 0;
width: 100%;
height: 88rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 40rpx;
background: white;
z-index: 1000;
}
.title_label {
font-size: 32rpx;
color: #282829;
}
.bottom_scoll_wrap {
width: 100%;
height: calc(100% - 19rpx);
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
padding: 20rpx 0 20rpx 10rpx;
display: flex;
flex-wrap: wrap;
gap: 10rpx;
justify-content: space-between;
}
.bottem_item_width {
width: 224rpx;
}
.bottem_item_title_height {
height: 98rpx;
}
.check_icon_sty {
width: 36rpx;
height: 36rpx;
position: absolute;
right: 20rpx;
bottom: 20rpx;
}
.check_icon_sty_max {
position: absolute;
right: 20rpx;
bottom: 45rpx;
}
\ No newline at end of file \ No newline at end of file
<view class="commodity-detail-container"> <view class="commodity-detail-container">
<view class="goods_scroll_wrapper"> <view class="goods_scroll_wrapper">
<scroll-view scroll-x enhanced="{{true}}" show-scrollbar="{{false}}" scroll-with-animation scroll-into-view="{{to}}" style="height:426rpx"> <scroll-view scroll-x enhanced="{{true}}" show-scrollbar="{{false}}" scroll-with-animation scroll-into-view="{{to}}" style="height:426rpx">
<block wx:for="{{goodsList}}" wx:key="index"> <block wx:for="{{goodsList}}" wx:key="index">
<view id="to-{{index}}" class="scroll_element {{currentIndex==index?'scroll_element_active':''}}" bind:tap="selectGoodsItem" data-index="{{index}}" data-item="{{item}}"> <view id="to-{{index}}" class="scroll_element {{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 class="image_icon" src="{{item.goodsImage}}" /> <image webp class="image_icon" src="{{item.goodsImage}}" />
<glsx-image wx:if="{{!item.noMemberPrice&&!isGameUse}}" mode="widthFix" class="image_vip" webp src="equity/vip_icon_spc.png" /> <glsx-image wx:if="{{!item.noMemberPrice&&!isGameUse}}" mode="widthFix" class="image_vip" webp src="equity/vip_icon_spc.png" />
<!-- <view wx:if="{{!item.noMemberPrice}}" class="vip_text">会员专属</view> --> <!-- <view wx:if="{{!item.noMemberPrice}}" class="vip_text">会员专属</view> -->
</view> </view>
<view class="element_title {{currentIndex==index?'selected1':''}}">{{item.productName}}</view> <view class="element_title {{currentIndex==index?'selected1':''}}">{{item.productName}}</view>
<view class="element_sale_price {{currentIndex==index?'selected':''}}"> <view class="element_sale_price {{currentIndex==index?'selected':''}}">
<view class="price_min_icon">¥</view> <view class="price_min_icon">¥</view>
<view>{{isOpen || !item.noMemberPrice?item.salesPrice:item.noMemberPrice}}</view> <view>{{isOpen || !item.noMemberPrice?item.salesPrice:item.noMemberPrice}}</view>
</view> </view>
<view class="element_o_price">官方价¥{{item.lineationPrice}}</view> <view class="element_o_price">官方价¥{{item.lineationPrice}}</view>
<glsx-image wx:if="{{currentIndex==index}}" class="check_icon_sty" webp src="equity/checked_icon.png" /> <glsx-image wx:if="{{currentIndex==index}}" class="check_icon_sty" webp src="equity/checked_icon.png" />
</view>
</block>
</scroll-view>
<view wx:if="{{goodsList.length>3}}" class="more_btn flex_cc" bind:tap="openBottomModal">
<text>更</text>
<text>多</text>
<text class="roate"></text>
</view> </view>
</block>
</scroll-view>
<view wx:if="{{goodsList.length>3}}" class="more_btn flex_cc" bind:tap="openBottomModal">
<text>更</text>
<text>多</text>
<text class="roate"></text>
</view> </view>
<view wx:if="{{!isHaveInventory}}" class="noStorck flex_cc">已抢光</view> </view>
<view class="goods_desc_wrapper"> <view wx:if="{{!isHaveInventory}}" class="noStorck flex_cc">已抢光</view>
<view class="line_wrapper"> <view class="goods_desc_wrapper">
<view class="line_label"> <view class="line_wrapper">
<text style="width:124rpx">附近门店</text> <view class="line_label">
<view wx:if="{{addressInfo.localAddress}}" class="line_tip">{{addressInfo.localAddress}}</view> <text style="width:124rpx">附近门店</text>
</view> <view wx:if="{{addressInfo.localAddress}}" class="line_tip">{{addressInfo.localAddress}}</view>
<view class="line_con flex_cc" bind:tap="openMap"> </view>
<text wx:if="{{addressInfo.latitude}}">{{addressInfo.localAddressDistance || ''}}km</text> <view class="line_con flex_cc" bind:tap="openMap">
<text wx:else>重新定位</text> <text wx:if="{{addressInfo.latitude}}">{{addressInfo.localAddressDistance || ''}}km</text>
<glsx-image webp class="line_icon" webp src="equity/scrm_loca_icon_new.png" /> <text wx:else>重新定位</text>
</view> <glsx-image webp class="line_icon" webp src="equity/scrm_loca_icon_new.png" />
</view> </view>
<view class="line_wrapper"> </view>
<view class="line_label">质保期至</view> <view class="line_wrapper">
<view class="line_con class1">{{curentGoodsItem.warrantyDate}}</view> <view class="line_label">质保期至</view>
</view> <view class="line_con class1">{{curentGoodsItem.warrantyDate}}</view>
<view wx:if="{{curentGoodsItem.validityPeriod}}" class="line_wrapper"> </view>
<view class="line_label">卡券有效期</view> <view wx:if="{{curentGoodsItem.validityPeriod}}" class="line_wrapper">
<view class="line_con class2">兑换到账户内有效期{{ curentGoodsItem.validityPeriod }}天</view> <view class="line_label">卡券有效期</view>
</view> <view class="line_con class2">兑换到账户内有效期{{ curentGoodsItem.validityPeriod }}天</view>
<view class="line_wrapper"> </view>
<view class="line_label">商品金额</view> <view class="line_wrapper">
<view class="line_con class3"> <view class="line_label">商品金额</view>
<text class="price_min_icon">¥</text> <view class="line_con class3">
<view>{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}}</view> <text class="price_min_icon">¥</text>
</view> <view>{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}}</view>
</view> </view>
<!-- <view wx:if="{{isGameUse}}" class="line_wrapper"> </view>
<!-- <view wx:if="{{isGameUse}}" class="line_wrapper">
<view class="line_label"> <view class="line_label">
<glsx-image class="logo" webp src="glsx/equity/comodity_use_logo.png"></glsx-image> <glsx-image class="logo" webp src="glsx/equity/comodity_use_logo.png"></glsx-image>
优惠券 优惠券
...@@ -65,94 +65,91 @@ ...@@ -65,94 +65,91 @@
<glsx-image wx:if="{{!isGH}}" class="logo" webp src="glsx/mine/arrow.png"></glsx-image> <glsx-image wx:if="{{!isGH}}" class="logo" webp src="glsx/mine/arrow.png"></glsx-image>
</view> </view>
</view> --> </view> -->
<view class="line_wrapper"> <view class="line_wrapper">
<view class="line_label">应付金额</view> <view class="line_label">应付金额</view>
<view class="line_con class3 class4 {{isGameUse?'class6':''}}"> <view class="line_con class3 class4 {{isGameUse?'class6':''}}">
<text class="price_min_icon">¥</text> <text class="price_min_icon">¥</text>
<view>{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}}</view> <view>{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}}</view>
</view> </view>
</view>
</view> </view>
<view class="goods_rich_text"> </view>
<view class="rich_title"> <view class="goods_rich_text">
<view class="title_icon"></view> <view class="rich_title">
<view class="title_text">使用须知</view> <view class="title_icon"></view>
</view> <view class="title_text">使用须知</view>
<view wx:if="{{richText}}" class="rich_wrapper">
<rich-text nodes="{{richText}}" bind:tap="toClickRich"></rich-text>
</view>
</view> </view>
<view style="height:254rpx"></view> <view wx:if="{{richText}}" class="rich_wrapper">
<view class="fixed_btn isFullSucreen"> <rich-text nodes="{{richText}}" bind:tap="toClickRich"></rich-text>
<view class="icon_text" bind:tap="toMyCoupons"> </view>
<glsx-image webp class="card_icon" webp src="equity/card-icon.png" /> </view>
<view class="card_text">我的订单</view> <view class="fixed_btn isFullSucreen">
</view> <view class="icon_text" bind:tap="toMyCoupons">
<view class="buy_btn flex_cc {{isHaveInventory?'':'disableBtn'}}" bind:tap="toBuyItem">{{isHaveInventory?'立即购买':'该商品已售罄'}}<text wx:if="{{isHaveInventory}}">(¥{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}})</text></view> <glsx-image webp class="card_icon" webp src="equity/card-icon.png" />
<view class="card_text">我的订单</view>
</view> </view>
<view wx:if="{{showModal}}" class="overlay"> <view class="buy_btn flex_cc {{isHaveInventory?'':'disableBtn'}}" bind:tap="toBuyItem">{{isHaveInventory?'立即购买':'该商品已售罄'}}<text wx:if="{{isHaveInventory}}">(¥{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}})</text></view>
<view class="overlay_boxs"> </view>
<view class="box_body" style="height:{{!isOpen?'700':'612'}}rpx"> <view wx:if="{{showModal}}" class="overlay">
<glsx-image webp class="boxs_icon" webp src="equity/scrm_modal_top_icon.png" /> <view class="overlay_boxs">
<view class="boxs_content" style="height:{{!isOpen&&curentGoodsItem.noMemberPrice?'564':'438'}}rpx"> <view class="box_body" style="height:{{!isOpen?'700':'612'}}rpx">
<view class="box_title"><text class="box_title_text">温馨提示</text></view> <glsx-image webp class="boxs_icon" webp src="equity/scrm_modal_top_icon.png" />
<view class="box_container" style="height:{{!isOpen&&curentGoodsItem.noMemberPrice?'536':'410'}}rpx"> <view class="boxs_content" style="height:{{!isOpen&&curentGoodsItem.noMemberPrice?'564':'438'}}rpx">
<view wx:if="{{isOpen || curentGoodsItem.noMemberPrice}}" class="box_content_text"> <view class="box_title"><text class="box_title_text">温馨提示</text></view>
卡券<text class="spc_text">【{{curentGoodsItem.productName}}】</text> <view class="box_container" style="height:{{!isOpen&&curentGoodsItem.noMemberPrice?'536':'410'}}rpx">
有效期为<text class="spc_text">{{curentGoodsItem.warrantyPeriod || 0}}</text> <view wx:if="{{isOpen || curentGoodsItem.noMemberPrice}}" class="box_content_text">
小时,为避免过期导致卡券失效,请于<text class="spc_text">{{curentGoodsItem.warrantyPeriod || 0}}</text> 卡券<text class="spc_text">【{{curentGoodsItem.productName}}】</text>
小时内兑换使用,如介意请勿拍哦 有效期为<text class="spc_text">{{curentGoodsItem.warrantyPeriod || 0}}</text>
</view> 小时,为避免过期导致卡券失效,请于<text class="spc_text">{{curentGoodsItem.warrantyPeriod || 0}}</text>
<view wx:if="{{!isOpen&&!curentGoodsItem.noMemberPrice}}" class="box_content_text"> 小时内兑换使用,如介意请勿拍哦
卡券<text class="spc_text">【{{curentGoodsItem.productName}}】</text>为会员专属商品,您可在成为会员后发起购买
</view>
<view wx:if="{{!isOpen && diffPrice&&curentGoodsItem.noMemberPrice}}" class="info_diff">
开通会员本商品可再减 <text class="spc_text">{{diffPrice}}元</text>
</view>
<view wx:if="{{!isOpen && diffPrice&&curentGoodsItem.noMemberPrice}}" class="info_open_btn" catchtap="toMemberPage">点我开通</view>
<view class="box_btn_groups">
<view class="btn_wrap" catchtap="modalOnCancel">取消</view>
<view wx:if="{{!isOpen&&!curentGoodsItem.noMemberPrice}}" class="btn_wrap spc_text" catchtap="toMemberPage">开通会员</view>
<view wx:else class="btn_wrap spc_text" catchtap="comfirmBuyItem">确定购买</view>
<view class="dr_line"></view>
</view>
</view>
</view>
</view> </view>
<view wx:if="{{!isOpen&&!curentGoodsItem.noMemberPrice}}" class="box_content_text">
卡券<text class="spc_text">【{{curentGoodsItem.productName}}】</text>为会员专属商品,您可在成为会员后发起购买
</view>
<view wx:if="{{!isOpen && diffPrice&&curentGoodsItem.noMemberPrice}}" class="info_diff">
开通会员本商品可再减 <text class="spc_text">{{diffPrice}}元</text>
</view>
<view wx:if="{{!isOpen && diffPrice&&curentGoodsItem.noMemberPrice}}" class="info_open_btn" catchtap="toMemberPage">点我开通</view>
<view class="box_btn_groups">
<view class="btn_wrap" catchtap="modalOnCancel">取消</view>
<view wx:if="{{!isOpen&&!curentGoodsItem.noMemberPrice}}" class="btn_wrap spc_text" catchtap="toMemberPage">开通会员</view>
<view wx:else class="btn_wrap spc_text" catchtap="comfirmBuyItem">确定购买</view>
<view class="dr_line"></view>
</view>
</view>
</view> </view>
</view>
</view> </view>
<view wx:if="{{showBottomModal}}" class="overlay"> </view>
<view class="bottom_modal"> <view wx:if="{{showBottomModal}}" class="overlay">
<view class="bottom_title_wrapper"> <view class="bottom_modal">
<view class="title_label">更多商品</view> <view class="bottom_title_wrapper">
<view class="title_close title_label" bind:tap="closeBottomModal">X</view> <view class="title_label">更多商品</view>
<view class="title_close title_label" bind:tap="closeBottomModal">X</view>
</view>
<view class="bottom_scoll_wrap isFullSucreen">
<block wx:for="{{goodsList}}">
<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">
<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" />
<!-- <view wx:if="{{!item.noMemberPrice}}" class="vip_text">会员专属</view> -->
</view> </view>
<view style="height:88rpx"></view> <view class="element_title bottem_item_title_height {{currentIndex==index?'selected1':''}}">{{item.productName}}</view>
<view class="bottom_scoll_wrap"> <view class="element_sale_price {{currentIndex==index?'selected':''}}">
<block wx:for="{{goodsList}}"> <view class="price_min_icon">¥</view>
<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>{{isOpen || !item.noMemberPrice?item.salesPrice:item.noMemberPrice}}</view>
<view class="image_icon_wrapper">
<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" />
<!-- <view wx:if="{{!item.noMemberPrice}}" class="vip_text">会员专属</view> -->
</view>
<view class="element_title bottem_item_title_height {{currentIndex==index?'selected1':''}}">{{item.productName}}</view>
<view class="element_sale_price {{currentIndex==index?'selected':''}}">
<view class="price_min_icon">¥</view>
<view>{{isOpen || !item.noMemberPrice?item.salesPrice:item.noMemberPrice}}</view>
</view>
<view class="element_o_price">官方价¥{{item.lineationPrice}}</view>
<glsx-image wx:if="{{currentIndex==index}}" class="check_icon_sty" webp src="equity/checked_icon.png" />
</view>
</block>
</view> </view>
</view> <view class="element_o_price">官方价¥{{item.lineationPrice}}</view>
<glsx-image wx:if="{{currentIndex==index}}" class="check_icon_sty" webp src="equity/checked_icon.png" />
</view>
</block>
</view>
</view> </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 {
......
<view class="open-container-page"> <view class="open-container-page">
<view class="top_widget"> <view class="top_widget">
<glsx-image webp class="top_icon_bg" webp src="{{IMGURKBASE}}pt_vip_bg.png" /> <glsx-image webp class="top_icon_bg" webp src="{{IMGURKBASE}}pt_vip_bg.png" />
<view class="card_title">{{memberInfo.equityName}}</view> <view class="card_title">{{memberInfo.equityName}}</view>
<!-- <glsx-image webp mode="widthFix" class="top_icon_bg" webp src="equity/scrm_index_bg.png" /> <!-- <glsx-image webp mode="widthFix" class="top_icon_bg" webp src="equity/scrm_index_bg.png" />
<view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view> <view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view>
<view class="card_title">{{memberInfo.equityName}}</view> <view class="card_title">{{memberInfo.equityName}}</view>
<view class="card_title_1">尊享100+专属权益</view> --> <view class="card_title_1">尊享100+专属权益</view> -->
</view>
<view class="mid_desc_bg">
<glsx-image webp mode="widthFix" webp class="desc_icon" src="{{IMGURKBASE}}scrm_opening_vip.png" />
</view>
<!-- <glsx-image webp class="device_icon" bind:tap="toActive" mode="widthFix" webp src="equity/scrm_device_bg_new.png" /> -->
<view class="fixed_wrapper isFullSucreen">
<view class="btn_wrap">
<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> </view>
<view class="mid_desc_bg"> <view class="card_desc">
<glsx-image webp mode="widthFix" webp class="desc_icon" src="{{IMGURKBASE}}scrm_opening_vip.png" /> <view class="desc_tip"> 开通权益代表接受</view>
<view class="desc_tip_a" catchtap="toLook"> 《权益服务协议》</view>
</view> </view>
<!-- <glsx-image webp class="device_icon" bind:tap="toActive" mode="widthFix" webp src="equity/scrm_device_bg_new.png" /> --> </view>
<view style="height:220rpx"></view> <view wx:if="{{openingStatus}}" class="overlay">
<view class="fixed_wrapper"> <view class="loading_wrapper">
<view class="btn_wrap"> <view class="new_open_loading">
<view wx:if="{{!isOpen&&memberInfo.goodPrice}}" class="btn_element btn_element_active" catchtap="openMemberFn">¥{{memberInfo.goodPrice}} 立即开通</view> <glsx-image webp class="loading_icon" src="equity/scrm_opening_loading.png" />
<view wx:else class="btn_element">{{ isOpen ? "已开通" : "暂不支持付费购买" }}</view> <view class="loading_title">支付成功</view>
</view> <view class="loading_title_max">正在开卡中...</view>
<view class="card_desc"> <view class="loading_icon_status">
<view class="desc_tip"> 开通权益代表接受</view> <glsx-image webp class="loading_icon_gif" webp src="equity/loading_icon.gif" />
<view class="desc_tip_a" catchtap="toLook"> 《权益服务协议》</view>
</view>
</view>
<view wx:if="{{openingStatus}}" class="overlay">
<view class="loading_wrapper">
<view class="new_open_loading">
<glsx-image webp class="loading_icon" src="equity/scrm_opening_loading.png" />
<view class="loading_title">支付成功</view>
<view class="loading_title_max">正在开卡中...</view>
<view class="loading_icon_status">
<glsx-image webp class="loading_icon_gif" webp src="equity/loading_icon.gif" />
</view>
</view>
</view> </view>
</view>
</view> </view>
</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/package/package.wxss */ /* packageEquity/pages/package/package.wxss */
.package-container { .package-container {
width: 100%;
box-sizing: border-box;
padding: 0 32rpx;
}
.top_wrapper {
width: 100%;
height: 160rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/equity/scrm_package_bg.png");
background-size: 100% 160rpx;
box-sizing: border-box;
padding-left: 128rpx;
display: flex;
align-items: center;
font-size: 36rpx;
color: #fff;
}
.title_widget {
width: 100%;
color: #282829;
font-size: 36rpx;
margin: 32rpx 0 24rpx 0;
text-align: center;
font-weight: 500;
}
.title_num {
color: #C57463;
margin: 0 10rpx;
}
.package_content_wrapper {
box-sizing: border-box;
background: #fff;
border-radius: 8rpx;
width: 100%;
padding: 24rpx;
}
.package_element {
position: relative;
height: 82rpx;
margin-bottom: 48rpx;
}
.ele_top {
width: 70%;
color: #282829;
font-size: 28rpx;
font-weight: 500;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ele_right {
color: #282829;
font-size: 24rpx;
position: absolute;
right: 0;
top: 4rpx;
font-weight: 500;
}
.ele_left {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
left: 40rpx;
bottom: 0;
}
.ele_bottom {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
right: 0;
bottom: 0;
}
.content_tip {
color: #656566;
font-size: 22rpx;
box-sizing: border-box;
padding-left: 24rpx;
word-wrap: break-word;
}
.fixed-button-wrap {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #F5F5F5;
box-sizing: border-box;
padding: 0 32rpx;
padding-bottom: 40rpx;
padding-top: 20rpx;
}
.button-item {
width: 100%;
height: 88rpx;
background: #892F3B;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
}
.grey-btn{
background: #ccc;
}
.auth-button {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
opacity: 0;
z-index: 102;
}
.price_total_title {
font-size: 36rpx;
font-weight: 500;
color: #282829;
margin: 32rpx 0 24rpx 0;
text-align: center;
}
.statistical_wrapper {
/* margin: 0 32rpx; */
box-sizing: border-box;
padding: 32rpx 24rpx;
background: #FFFFFF;
border-radius: 16rpx;
}
.price_line_item {
display: flex;
align-items: center;
}
.line_label {
font-size: 24rpx;
font-weight: 500;
color: #282829;
line-height: 34rpx;
width: 40%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.line_num {
width: 20%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: center;
}
.line_price {
width: 40%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: right;
display: flex;
align-items: center;
justify-content: flex-end;
}
.total_desc {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
text-align: center;
margin-bottom: 22rpx;
}
.price_text {
font-size: 32rpx;
font-weight: 500;
color: #FC5B32;
line-height: 44rpx;
margin: 0 10rpx;
}
\ No newline at end of file \ No newline at end of file
width: 100%;
box-sizing: border-box;
padding: 0 32rpx;
padding-bottom: calc(128rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(128rpx + var(--envSafeAreaInsetBottom));
}
.top_wrapper {
width: 100%;
height: 160rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/equity/scrm_package_bg.png");
background-size: 100% 160rpx;
box-sizing: border-box;
padding-left: 128rpx;
display: flex;
align-items: center;
font-size: 36rpx;
color: #fff;
}
.title_widget {
width: 100%;
color: #282829;
font-size: 36rpx;
margin: 32rpx 0 24rpx 0;
text-align: center;
font-weight: 500;
}
.title_num {
color: #C57463;
margin: 0 10rpx;
}
.package_content_wrapper {
box-sizing: border-box;
background: #fff;
border-radius: 8rpx;
width: 100%;
padding: 24rpx;
}
.package_element {
position: relative;
height: 82rpx;
margin-bottom: 48rpx;
}
.ele_top {
width: 70%;
color: #282829;
font-size: 28rpx;
font-weight: 500;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ele_right {
color: #282829;
font-size: 24rpx;
position: absolute;
right: 0;
top: 4rpx;
font-weight: 500;
}
.ele_left {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
left: 40rpx;
bottom: 0;
}
.ele_bottom {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
right: 0;
bottom: 0;
}
.content_tip {
color: #656566;
font-size: 22rpx;
box-sizing: border-box;
padding-left: 24rpx;
word-wrap: break-word;
}
.fixed-button-wrap {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #F5F5F5;
box-sizing: border-box;
padding: 0 32rpx;
padding-bottom: 40rpx;
padding-top: 20rpx;
}
.button-item {
width: 100%;
height: 88rpx;
background: #892F3B;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
}
.grey-btn {
background: #ccc;
}
.auth-button {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
opacity: 0;
z-index: 102;
}
.price_total_title {
font-size: 36rpx;
font-weight: 500;
color: #282829;
margin: 32rpx 0 24rpx 0;
text-align: center;
}
.statistical_wrapper {
/* margin: 0 32rpx; */
box-sizing: border-box;
padding: 32rpx 24rpx;
background: #FFFFFF;
border-radius: 16rpx;
}
.price_line_item {
display: flex;
align-items: center;
}
.line_label {
font-size: 24rpx;
font-weight: 500;
color: #282829;
line-height: 34rpx;
width: 40%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.line_num {
width: 20%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: center;
}
.line_price {
width: 40%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: right;
display: flex;
align-items: center;
justify-content: flex-end;
}
.total_desc {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
text-align: center;
margin-bottom: 22rpx;
}
.price_text {
font-size: 32rpx;
font-weight: 500;
color: #FC5B32;
line-height: 44rpx;
margin: 0 10rpx;
}
\ 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
......
...@@ -79,4 +79,5 @@ ...@@ -79,4 +79,5 @@
</view> </view>
</block> </block>
<!-- 客服 --> <!-- 客服 -->
<customer model:show="{{widgetStatus}}" customerlist="{{customerlist}}"></customer>
\ No newline at end of file \ No newline at end of file
<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!