Commit c598e4e9 by 李伟康

修复

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