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;
......
...@@ -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!