Commit 7ee03e30 by 李伟康

提交

1 parent 85fd6264
......@@ -122,3 +122,10 @@
opacity: 1;
}
}
.safe-area {
display: block;
width: 100%;
height: 0;
opacity: 0;
}
\ No newline at end of file
......@@ -25,6 +25,7 @@
</view>
</view>
</block>
<view class="safe-area isFullSucreen"></view>
</scroll-view>
</view>
</view>
\ No newline at end of file
......@@ -22,11 +22,13 @@ Page({
if (loadOver) {
return
}
wx.p.wxApi.showLoading()
wx.p.api.equityApi.lasteCommodity(pageParam).then(res => {
if (!res) {
this.setData({
loadOver: true
})
wx.hideLoading()
return
}
let tempArr = []
......@@ -58,6 +60,7 @@ Page({
loadingMore: false,
loadOver: false
})
wx.hideLoading()
})
},
......
<view class="charge-container-page">
<view class="charge-container-page isFullSucreen">
<block wx:for="{{commodityList}}" wx:key="index">
<commodityItem chargeInfo="{{item}}"/>
</block>
......
......@@ -4,7 +4,8 @@ page{
background: white;
}
.detail_container{
padding-bottom: 100rpx;
padding-bottom: calc(100rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(100rpx + var(--envSafeAreaInsetBottom));
}
.account_area {
......@@ -220,7 +221,7 @@ page{
background-color: #fff;
/* padding: 10rpx 30rpx; */
padding: 0 32rpx 0 90rpx;
height: 100rpx;
min-height: 100rpx;
left: 0;
right: 0;
bottom: 0;
......
page {
background: white;
}
.goods_scroll_wrapper {
}
.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 {
.scroll_element {
width: 288rpx;
height: 380rpx;
border-radius: 16rpx;
......@@ -19,27 +22,27 @@ page {
display: inline-block;
position: relative;
vertical-align: top;
}
}
.image_icon_wrapper {
.image_icon_wrapper {
position: relative;
}
}
.image_icon {
.image_icon {
width: 288rpx;
height: 178rpx;
border-radius: 16rpx 16rpx 0 0;
}
}
.image_vip {
.image_vip {
position: absolute;
right: 0rpx;
top: 0rpx;
width: 120rpx;
height: 28rpx;
}
}
.vip_text {
.vip_text {
position: absolute;
right: 16rpx;
top: 0rpx;
......@@ -47,9 +50,9 @@ page {
font-size: 20rpx;
font-weight: 500;
color: #FFFFFF;
}
}
.element_title {
.element_title {
box-sizing: border-box;
padding: 18rpx 14rpx 0 18rpx;
min-height: 88rpx;
......@@ -65,9 +68,9 @@ page {
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
}
.element_sale_price {
.element_sale_price {
box-sizing: border-box;
padding: 10rpx 0 0 18rpx;
display: flex;
......@@ -76,16 +79,16 @@ page {
color: #999999;
line-height: 56rpx;
/* align-items: flex-end; */
}
}
.price_min_icon {
.price_min_icon {
font-size: 24rpx;
font-weight: 400;
line-height: 60rpx;
margin-right: 6rpx;
}
}
.element_o_price {
.element_o_price {
font-size: 24rpx;
font-weight: 400;
line-height: 34rpx;
......@@ -96,29 +99,29 @@ page {
position: absolute;
left: 18rpx;
bottom: 4rpx;
}
}
.scroll_element_active {
.scroll_element_active {
box-shadow: 0px 4rpx 8rpx 0px #ffebe6;
border: 2rpx solid #8A303A;
}
}
.selected {
.selected {
color: #8A303A;
}
}
.selected1 {
.selected1 {
color: #282829;
font-size: 500;
}
}
.flex_cc {
.flex_cc {
display: flex;
align-items: center;
justify-content: center;
}
}
.more_btn {
.more_btn {
width: 80rpx;
height: 348rpx;
background: rgba(228, 228, 228, 0.95);
......@@ -131,45 +134,46 @@ page {
color: #666666;
line-height: 40rpx;
flex-direction: column;
}
}
.roate {
.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 {
.goods_desc_wrapper {
box-sizing: border-box;
padding: 0 40rpx;
}
}
.line_wrapper {
.line_wrapper {
border-bottom: 2rpx solid #DEDEDE;
padding: 28rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
}
}
.line_label {
.line_label {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
display: flex;
align-items: center;
}
.line_label > .logo{
}
.line_label>.logo {
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
}
}
.line_tip {
.line_tip {
font-size: 24rpx;
font-weight: 400;
color: #717171;
......@@ -178,94 +182,97 @@ page {
text-overflow: ellipsis;
margin-left: 16rpx;
width: 350rpx;
}
}
.line_con {
.line_con {
font-size: 24rpx;
font-weight: 400;
color: #656566;
}
.line_con > .logo {
}
.line_con>.logo {
width: 16rpx;
height: 24rpx;
margin-left: 8rpx;
}
}
.line_icon {
.line_icon {
width: 40rpx;
height: 40rpx;
margin-left: 10rpx;
}
}
.class1 {
.class1 {
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
}
.class2 {
.class2 {
font-size: 28rpx;
font-weight: 400;
color: #8A303A;
}
}
.class3 {
.class3 {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
}
.class4 {
.class4 {
color: #8A303A;
font-weight: 500;
}
.class5{
}
.class5 {
font-weight: 400;
color: #8A303A;
}
.class6{
}
.class6 {
font-weight: 600;
font-size: 40rpx;
color: #8A303A;
}
}
.rich_title {
.rich_title {
margin-top: 30rpx;
padding-left: 40rpx;
display: flex;
align-items: center;
margin-bottom: 18rpx;
}
}
.title_icon {
.title_icon {
width: 6rpx;
height: 32rpx;
background: #8A303A;
}
}
.title_text {
.title_text {
font-size: 32rpx;
font-weight: 600;
color: #282829;
margin-left: 16rpx;
}
}
.rich_wrapper {
.rich_wrapper {
padding: 0 40rpx;
}
}
.rich_text {
.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 {
.fixed_btn {
position: fixed;
left: 0;
right: 0;
......@@ -277,9 +284,9 @@ page {
background: white;
box-sizing: border-box;
padding: 0 32rpx 0 90rpx;
}
}
.buy_btn {
.buy_btn {
width: 468rpx;
height: 80rpx;
background: #8A303A;
......@@ -287,40 +294,40 @@ page {
font-size: 28rpx;
font-weight: 600;
color: #FFFFFF;
}
}
.icon_text {
.icon_text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
.card_icon {
.card_icon {
width: 52rpx;
height: 52rpx;
}
}
.card_text {
.card_text {
font-size: 24rpx;
font-weight: 400;
color: #666666;
line-height: 34rpx;
}
}
.disableBtn {
.disableBtn {
background-color: #999 !important;
}
}
.noStorck {
.noStorck {
padding: 28rpx 0;
font-size: 32rpx;
font-weight: 600;
color: #8A303A;
background: rgba(252, 91, 50, 0.2);
}
}
.overlay {
.overlay {
position: fixed;
left: 0;
right: 0;
......@@ -330,37 +337,37 @@ page {
height: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999;
}
}
.overlay_boxs {
.overlay_boxs {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
}
.box_body {
.box_body {
width: 72%;
height: 612rpx;
display: flex;
flex-direction: column;
align-items: center;
}
}
.boxs_icon {
.boxs_icon {
width: 288rpx;
height: 60rpx;
margin: 0 auto;
}
}
.boxs_content {
.boxs_content {
border-radius: 8rpx;
height: 438rpx;
position: relative;
width: 100%;
}
}
.box_title {
.box_title {
position: absolute;
left: 50%;
top: 0;
......@@ -372,9 +379,9 @@ page {
z-index: 1;
text-align: center;
line-height: 56rpx;
}
}
.box_title_text::before {
.box_title_text::before {
content: "";
position: absolute;
top: 50%;
......@@ -383,15 +390,15 @@ page {
width: 62rpx;
height: 2rpx;
background: #683800;
}
}
.box_title_text {
.box_title_text {
color: #683800;
font-size: 28rpx;
position: relative;
}
}
.box_title_text::after {
.box_title_text::after {
content: "";
position: absolute;
top: 50%;
......@@ -400,9 +407,9 @@ page {
width: 62rpx;
height: 2rpx;
background: #683800;
}
}
.box_container {
.box_container {
position: absolute;
left: 0;
right: 0;
......@@ -411,30 +418,33 @@ page {
background: #ffffff;
width: 100%;
border-radius: 8px;
}
}
.box_content_text {
.box_content_text {
width: 100%;
box-sizing: border-box;
padding: 68rpx 48rpx 40rpx 48rpx;
font-size: 28rpx;
color: #606060;
line-height: 56rpx;
}
.info_diff{
}
.info_diff {
color: #333;
font-size: 28rpx;
text-align: center;
text-align: center;
}
.info_open_btn{
}
.info_open_btn {
color: #19c34e;
font-size: 24rpx;
text-decoration: underline;
margin-top: 6rpx;
text-align: center;
}
.box_btn_groups {
}
.box_btn_groups {
position: absolute;
left: 0;
right: 0;
......@@ -443,17 +453,17 @@ page {
height: 88rpx;
display: flex;
border-top: 2px solid #e5e5e5;
}
}
.btn_wrap {
.btn_wrap {
text-align: center;
line-height: 88rpx;
color: #333333;
font-size: 28rpx;
width: 50%;
}
}
.dr_line {
.dr_line {
position: absolute;
left: 50%;
top: 0;
......@@ -461,13 +471,13 @@ page {
width: 1px;
transform: translate(-50%, 0);
background: #e5e5e5;
}
}
.spc_text {
.spc_text {
color: #8A303A;
}
}
.bottom_modal {
.bottom_modal {
position: absolute;
left: 0;
right: 0;
......@@ -477,12 +487,11 @@ page {
background: white;
display: flex;
flex-direction: column;
}
}
.bottom_title_wrapper {
position: absolute;
.bottom_title_wrapper {
position: sticky;
left: 0;
right: 0;
top: 0;
width: 100%;
height: 88rpx;
......@@ -493,40 +502,44 @@ page {
padding: 0 40rpx;
background: white;
z-index: 1000;
}
}
.title_label {
.title_label {
font-size: 32rpx;
color: #282829;
}
}
.bottom_scoll_wrap {
.bottom_scoll_wrap {
width: 100%;
height: calc(100% - 19rpx);
overflow: hidden;
overflow-y: scroll;
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;
}
}
.bottem_item_title_height {
.bottem_item_title_height {
height: 98rpx;
}
}
.check_icon_sty {
.check_icon_sty {
width: 36rpx;
height: 36rpx;
position: absolute;
right: 20rpx;
bottom: 20rpx;
}
}
.check_icon_sty_max {
.check_icon_sty_max {
position: absolute;
right: 20rpx;
bottom: 45rpx;
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -82,7 +82,6 @@
<rich-text nodes="{{richText}}" bind:tap="toClickRich"></rich-text>
</view>
</view>
<view style="height:254rpx"></view>
<view class="fixed_btn isFullSucreen">
<view class="icon_text" bind:tap="toMyCoupons">
<glsx-image webp class="card_icon" webp src="equity/card-icon.png" />
......@@ -127,10 +126,9 @@
<view class="title_label">更多商品</view>
<view class="title_close title_label" bind:tap="closeBottomModal">X</view>
</view>
<view style="height:88rpx"></view>
<view class="bottom_scoll_wrap">
<view class="bottom_scoll_wrap isFullSucreen">
<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">
<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" />
......@@ -150,9 +148,8 @@
</view>
</view>
<block wx:if="{{showAuth}}">
<authorize scopeType="userLocation" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess"
show="{{showAuth}}"></authorize>
<authorize scopeType="userLocation" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</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>
</block> -->
\ No newline at end of file
......@@ -44,11 +44,13 @@ Page({
if (loadOver) {
return
}
wx.p.wxApi.showLoading()
wx.p.api.equityApi.lasteCommodity(para).then(res => {
if (!res) {
this.setData({
loadOver: true
})
wx.hideLoading()
return
}
let tempArr = []
......@@ -65,6 +67,7 @@ Page({
loadingMore: 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">
<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>
<block wx:for="{{commodityList}}" wx:key="index">
......
......@@ -5,6 +5,8 @@ page{
box-sizing: border-box;
padding: 33rpx 0;
position: relative;
padding-bottom: calc(162rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(162rpx + var(--envSafeAreaInsetBottom));
}
.top_widget {
......
......@@ -11,8 +11,7 @@
<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 style="height:220rpx"></view>
<view class="fixed_wrapper">
<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>
......
......@@ -4,9 +4,11 @@
width: 100%;
box-sizing: border-box;
padding: 0 32rpx;
}
padding-bottom: calc(128rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(128rpx + var(--envSafeAreaInsetBottom));
}
.top_wrapper {
.top_wrapper {
width: 100%;
height: 160rpx;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/glsx/equity/scrm_package_bg.png");
......@@ -17,37 +19,37 @@
align-items: center;
font-size: 36rpx;
color: #fff;
}
}
.title_widget {
.title_widget {
width: 100%;
color: #282829;
font-size: 36rpx;
margin: 32rpx 0 24rpx 0;
text-align: center;
font-weight: 500;
}
}
.title_num {
.title_num {
color: #C57463;
margin: 0 10rpx;
}
}
.package_content_wrapper {
.package_content_wrapper {
box-sizing: border-box;
background: #fff;
border-radius: 8rpx;
width: 100%;
padding: 24rpx;
}
}
.package_element {
.package_element {
position: relative;
height: 82rpx;
margin-bottom: 48rpx;
}
}
.ele_top {
.ele_top {
width: 70%;
color: #282829;
font-size: 28rpx;
......@@ -55,42 +57,42 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.ele_right {
.ele_right {
color: #282829;
font-size: 24rpx;
position: absolute;
right: 0;
top: 4rpx;
font-weight: 500;
}
}
.ele_left {
.ele_left {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
left: 40rpx;
bottom: 0;
}
}
.ele_bottom {
.ele_bottom {
color: #b1b1b3;
font-size: 24rpx;
position: absolute;
right: 0;
bottom: 0;
}
}
.content_tip {
.content_tip {
color: #656566;
font-size: 22rpx;
box-sizing: border-box;
padding-left: 24rpx;
word-wrap: break-word;
}
}
.fixed-button-wrap {
.fixed-button-wrap {
position: fixed;
left: 0;
right: 0;
......@@ -100,9 +102,9 @@
padding: 0 32rpx;
padding-bottom: 40rpx;
padding-top: 20rpx;
}
}
.button-item {
.button-item {
width: 100%;
height: 88rpx;
background: #892F3B;
......@@ -113,12 +115,13 @@
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
}
.grey-btn{
}
.grey-btn {
background: #ccc;
}
}
.auth-button {
.auth-button {
position: absolute;
left: 0;
right: 0;
......@@ -126,30 +129,30 @@
top: 0;
opacity: 0;
z-index: 102;
}
}
.price_total_title {
.price_total_title {
font-size: 36rpx;
font-weight: 500;
color: #282829;
margin: 32rpx 0 24rpx 0;
text-align: center;
}
}
.statistical_wrapper {
.statistical_wrapper {
/* margin: 0 32rpx; */
box-sizing: border-box;
padding: 32rpx 24rpx;
background: #FFFFFF;
border-radius: 16rpx;
}
}
.price_line_item {
.price_line_item {
display: flex;
align-items: center;
}
}
.line_label {
.line_label {
font-size: 24rpx;
font-weight: 500;
color: #282829;
......@@ -158,18 +161,18 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.line_num {
.line_num {
width: 20%;
font-size: 24rpx;
font-weight: 500;
color: #656566;
line-height: 34rpx;
text-align: center;
}
}
.line_price {
.line_price {
width: 40%;
font-size: 24rpx;
font-weight: 500;
......@@ -179,21 +182,21 @@
display: flex;
align-items: center;
justify-content: flex-end;
}
}
.total_desc {
.total_desc {
font-size: 28rpx;
font-weight: 500;
color: #282829;
line-height: 40rpx;
text-align: center;
margin-bottom: 22rpx;
}
}
.price_text {
.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 @@
</view>
<view wx:if="{{!packageInfo.isPayFlag&&!showAuthBtn}}" class="button-item grey-btn">非指定用户不可购买</view>
</view>
<view style="height: 164rpx"></view>
</view>
\ No newline at end of file
<view class="package-detail-container">
<view wx:if="{{orderStatus>3}}" class="afterSale_wrapper">
<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>
<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>
<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>
<view wx:if="{{orderStatus==4}}" class="return_message">
......@@ -43,7 +43,7 @@
<view style="height:32rpx"></view>
<view class="wrapper">
<!-- <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> -->
<view class="row_wrap flex_sc">
......
......@@ -4,7 +4,7 @@
<view class="nothing-box">
<view class="nothing">
<view class="icon">
<image webp src="{{IMGURL}}mall/shoppingcart.png?v={{img_version}}" />
<glsx-image webp src="mall/shoppingcart.png" />
</view>
购物车还是空的
<view class="btn text-center" bindtap="jump">随便看看</view>
......
<view class="success_page">
<!-- <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_count">{{count}}秒后自动跳转到首页</view>
<view class="success_btn_wrap btn_pos">
......
......@@ -5,7 +5,7 @@
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}">
{{afterType[item.value]}}
<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>
</block>
......
......@@ -3,7 +3,7 @@
<view class="topCtn" bindtap="goAgreement">
<view class="text">隐私政策</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 class="default-btn x-center" bindtap="logout">退出登录</view>
......
......@@ -241,7 +241,7 @@
</block>
</view>
<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>
</view>
......
......@@ -15,9 +15,39 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad(options) {
this.getChannelsLiveInfo()
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() {
wx.p.wxApi.showLoading()
let total = 0
......
......@@ -80,3 +80,4 @@
</block>
<!-- 客服 -->
<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!