Commit c598e4e9 by 李伟康

修复

1 parent aef08587
...@@ -58,7 +58,7 @@ class Request { ...@@ -58,7 +58,7 @@ class Request {
merchantId merchantId
} = wx.p.storage.get('merchant_info') } = wx.p.storage.get('merchant_info')
header.merchantId = wx.$merchant_id || merchantId || defaultMerchantId header.merchantId = wx.$merchant_id || merchantId || defaultMerchantId
let projectName = this.getRopProject(params.method) let projectName = params.projectName
if (!projectName) projectName = this.getRopProject(params.method) if (!projectName) projectName = this.getRopProject(params.method)
const path = pathEnum[projectName] const path = pathEnum[projectName]
params = this.getData(params) params = this.getData(params)
......
import { iosTimeFormat } from "~/utils/format";
module.exports = Behavior({ module.exports = Behavior({
methods: { methods: {
countDown({ countDown({
...@@ -12,8 +13,8 @@ module.exports = Behavior({ ...@@ -12,8 +13,8 @@ module.exports = Behavior({
let activityStatus = this.data[name][key] // activityStatus 1:未开始,2进行中,3已结束 let activityStatus = this.data[name][key] // activityStatus 1:未开始,2进行中,3已结束
const addZero = i => i < 10 ? `0${i}` : `${i}`, const addZero = i => i < 10 ? `0${i}` : `${i}`,
[activityStartTime, activityEndTime] = timer, [activityStartTime, activityEndTime] = timer,
start = wx.$util.iosTimeFormat(activityStartTime), start = iosTimeFormat(activityStartTime),
end = wx.$util.iosTimeFormat(activityEndTime) end = iosTimeFormat(activityEndTime)
if ((new Date().getTime() > new Date(end).getTime()) || activityStatus == 3) { if ((new Date().getTime() > new Date(end).getTime()) || activityStatus == 3) {
this.setData({ this.setData({
timeFlag: true, timeFlag: true,
......
{ {
"usingComponents": {} "usingComponents": {},
"navigationBarTitleText": "全部服务"
} }
\ No newline at end of file \ No newline at end of file
...@@ -72,7 +72,7 @@ page{ ...@@ -72,7 +72,7 @@ page{
.member_type_item { .member_type_item {
height: 80rpx; height: 80rpx;
width: 188rpx; min-width: 188rpx;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -80,6 +80,7 @@ page{ ...@@ -80,6 +80,7 @@ page{
font-size: 28rpx; font-size: 28rpx;
color: #B1B1B3; color: #B1B1B3;
background-color: #F2F2F2; background-color: #F2F2F2;
padding: 0 20rpx;
} }
.activeNav{ .activeNav{
......
...@@ -48,9 +48,9 @@ Page({ ...@@ -48,9 +48,9 @@ Page({
}) })
.then(data => { .then(data => {
console.log(data) console.log(data)
let lists = this.unique([...list, ...data.list]) // let lists = this.unique([...list, ...data.list])
this.setData({ this.setData({
list: lists, list: data.list,
total total
}) })
wx.hideLoading() wx.hideLoading()
...@@ -124,17 +124,18 @@ Page({ ...@@ -124,17 +124,18 @@ Page({
useMemberType, useMemberType,
detailInfo detailInfo
} = options } = options
console.log(userCouponId)
wx.p.wxApi.showLoading('加载中...') wx.p.wxApi.showLoading('加载中...')
this.setData({ if (userCouponId) {
useMemberType, console.log(userCouponId)
detailInfo this.setData({
}) useMemberType,
wx.p.api.couponsApi detailInfo
.getWWCoupon({
userCouponId
}) })
.then(res => {
wx.p.api.couponsApi.getWWCoupon({
userCouponId
}).then(res => {
wx.hideLoading() wx.hideLoading()
wx.nextTick(() => { wx.nextTick(() => {
this.setCouponData(res) this.setCouponData(res)
...@@ -145,6 +146,7 @@ Page({ ...@@ -145,6 +146,7 @@ Page({
verificationCode: code verificationCode: code
}) })
}) })
}
if (options && options.couponId) { if (options && options.couponId) {
console.log(options) console.log(options)
wx.p.wxApi.showLoading('加载中...') wx.p.wxApi.showLoading('加载中...')
...@@ -171,7 +173,6 @@ Page({ ...@@ -171,7 +173,6 @@ Page({
this.setData({ this.setData({
detailInfo: couponInfo detailInfo: couponInfo
}) })
// wx.hideLoading()
wx.p.api.couponsApi.getCouponInfo(options).then(res => { wx.p.api.couponsApi.getCouponInfo(options).then(res => {
this.setCouponData(res) this.setCouponData(res)
this.setData({ this.setData({
...@@ -188,9 +189,9 @@ Page({ ...@@ -188,9 +189,9 @@ Page({
} else { } else {
if (callBack) callBack(couponInfo) if (callBack) callBack(couponInfo)
} }
wx.hideLoading()
}) })
}) })
wx.hideLoading()
}, },
setCouponData(res) { setCouponData(res) {
if (res.receiveStartTime) res.receiveStartTime = new Date(res.receiveStartTime).format('yyyy.MM.dd hh:mm:ss') if (res.receiveStartTime) res.receiveStartTime = new Date(res.receiveStartTime).format('yyyy.MM.dd hh:mm:ss')
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
.layout{ .layout{
padding-bottom: calc(140rpx + var(--constantSafeAreaInsetBottom)); padding-bottom: calc(140rpx + var(--constantSafeAreaInsetBottom));
padding-bottom: calc(140rpx + var(--envSafeAreaInsetBottom)); padding-bottom: calc(140rpx + var(--envSafeAreaInsetBottom));
animation: show-box-opacity .5s forwards;
} }
.navigation-bar { .navigation-bar {
position: fixed; position: fixed;
...@@ -43,10 +44,10 @@ ...@@ -43,10 +44,10 @@
.navigation .back { .navigation .back {
width: 64rpx; width: 64rpx;
height: 64rpx; height: 64rpx;
background: rgba(255, 255, 255, 0.5); background: #F9F7F7;
border-radius: var(--margin); border-radius: var(--margin);
position: absolute; position: absolute;
left: 20rpx; left: 10rpx;
} }
.navigation .back .icon { .navigation .back .icon {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!