Commit 304b26a4 by 严立

LL - 电影时间

parent 5ef04455
......@@ -114,7 +114,7 @@
</view>
<swiper indicator-dots="true">
<!-- 儿童营地文创店 -->
<swiper-item>
<!-- <swiper-item>
<view class="shop-banner row con-c">
<image src="{{resourcesBase + 'commodity/home/shop-4.png'}}"></image>
<button class="row con-c align-c" data-id="{{3}}" bindtap="onBuyOriginality"></button>
......@@ -127,7 +127,7 @@
</view>
</block>
</view>
</swiper-item>
</swiper-item> -->
<!-- 海错图文创店 -->
<swiper-item>
......
......@@ -95,6 +95,12 @@
</block>
</block>
<block wx:if="{{commodityList.length === 0}}">
<view class="nothing-tip row con-c align-c">
<image src="./image/tip.png"></image>
</view>
</block>
<!-- 购物车按钮 -->
<view id="cart" class="cart row con-c align-c" bindtap="onShoppingCart">
<!-- 添加动画圆点 -->
......
......@@ -407,3 +407,13 @@ image {
border-radius: 50%;
background: #86c5e1;
}
.nothing-tip {
padding-top: 480rpx;
flex-grow: 1;
}
.nothing-tip image {
width: 174rpx;
height: 114rpx;
}
\ No newline at end of file
......@@ -266,9 +266,9 @@ Page({
// 电影
if (Number(funcOrderInfo.commodityType) === -2) {
let funcDate = funcOrderInfo.expireTime.match(/[0-9]+-[0-9]+-[0-9]+/)[0]
let funcTime = funcOrderInfo.expireTime.match(/[0-9]+:[0-9]+/, 'g')
console.log(funcDate)
console.log(funcTime)
let funcTime = funcOrderInfo.expireTime.match(/[0-9]+:[0-9]+/g)
funcOrderInfo.expireTime = App.modular.miment(funcDate).format('MM月DD日 ') + funcTime[0] + ' - ' + funcTime[1]
}
......
......@@ -462,6 +462,8 @@ Page({
quantityTipNumber: funcDate[0][0].residue,
quantityMax: funcDate[0][0].residue < 3 ? funcDate[0][0].residue : 3,
quantityMin: 1,
buyContentCover: funcResponse.cover
})
// 如果存在场次 id 则重新设置场次信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment