Commit 6eceacf5 by 谢中龙

修改字段信息

parent b93dd320
...@@ -36,8 +36,9 @@ wxService.page({ ...@@ -36,8 +36,9 @@ wxService.page({
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
wx.hideLoading() wx.hideLoading()
data.coupon.startTime = data.coupon.startTime.substring(0,10) data.coupon.startTime = data.coupon.startTime.substring(0,16)
data.coupon.endTime = data.coupon.endTime.substring(0,10) data.coupon.endTime = data.coupon.endTime.substring(0,16)
data.couponSetting.notice = JSON.parse(data.couponSetting.notice) data.couponSetting.notice = JSON.parse(data.couponSetting.notice)
for (let i in data.couponSetting.notice){ for (let i in data.couponSetting.notice){
if (data.couponSetting.notice[i].type == 1){ if (data.couponSetting.notice[i].type == 1){
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
</view> </view>
<view class='coupon-info'> <view class='coupon-info'>
<view class='coupon-name fs-28'>{{couponDetail.couponSetting.title}}</view> <view class='coupon-name fs-28'>{{couponDetail.couponSetting.title}}</view>
<view class='coupon-desc fs-28'>{{couponDetail.coupon.startTime}} 至 {{couponDetail.coupon.endTime}}</view> <view class='coupon-desc fs-28'>开始:{{couponDetail.coupon.startTime}}</view>
<view class='coupon-desc fs-28'>过期:{{couponDetail.coupon.endTime}}</view>
</view> </view>
<view class='coupon-code fs-24' bindtap="handelPresentCouponCode">出示券码</view> <view class='coupon-code fs-24' bindtap="handelPresentCouponCode">出示券码</view>
</view> </view>
......
...@@ -129,8 +129,8 @@ wxService.page({ ...@@ -129,8 +129,8 @@ wxService.page({
// 处理时间显示 // 处理时间显示
if(!data.content) return false if(!data.content) return false
data.content.forEach(item=> { data.content.forEach(item=> {
item.startTime = item.startTime item.startTime = item.startTime.substring(0,16);
item.endTime = item.endTime item.endTime = item.endTime.substring(0,16);
}) })
// 可使用 or 已失效 // 可使用 or 已失效
if(statusNum == 1) { if(statusNum == 1) {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</view> </view>
<view class="info-ready-num"> <view class="info-ready-num">
<!-- 已达成次数 总集点数/目标节点 取整 --> <!-- 已达成次数 总集点数/目标节点 取整 -->
达成 {{countObj.totalPoints ? tools.parse(countObj.totalPoints / goal) : 0}} 次 领取奖励 {{countObj.totalPoints ? tools.parse(countObj.totalPoints / goal) : 0}} 次
</view> </view>
</view> </view>
<view class="info-progress border_box"> <view class="info-progress border_box">
......
...@@ -7,9 +7,22 @@ ...@@ -7,9 +7,22 @@
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
"postcss": true, "postcss": true,
"preloadBackgroundData": false,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"autoAudits": false "coverView": true,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.2", "libVersion": "2.8.2",
......
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 to comment