From 97e120eaee25c58c6d675262f94222f693903bc5 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Tue, 7 Nov 2023 16:19:20 +0800 Subject: [PATCH] 专享礼包列表的OA单的优化 --- pages/giftpack/mygiftpack/mygiftpack.js | 29 +++++++++++++++++++++++++++++ pages/giftpack/mygiftpack/mygiftpack.wxml | 6 +++++- pages/giftpack/mygiftpack/mygiftpack.wxss | 4 ++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/pages/giftpack/mygiftpack/mygiftpack.js b/pages/giftpack/mygiftpack/mygiftpack.js index d61eab4..01b0e44 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.js +++ b/pages/giftpack/mygiftpack/mygiftpack.js @@ -1,4 +1,5 @@ var i = require("../../../utils/util.js") +const ut = require("../../../utils/util.js"); var e = getApp(), a = e.globalData.setting, os = a, @@ -108,6 +109,34 @@ Page({ th.data.curpage++; var arr1 = th.data.wareCard; var arr2 = res.data.data.pageData; + + for (let j = 0; j t_now) + arr2[j].c_state=-1 //未开始 + else + arr2[j].c_state=0 //正常 + } + + var arr3 = [...arr1, ...arr2]; var ismore = 0; if (arr3.length == res.data.data.total) ismore = 1 diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxml b/pages/giftpack/mygiftpack/mygiftpack.wxml index cf605e9..55914d9 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxml +++ b/pages/giftpack/mygiftpack/mygiftpack.wxml @@ -94,7 +94,11 @@ - + + + + + 已退款 diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxss b/pages/giftpack/mygiftpack/mygiftpack.wxss index 245606f..d0e06f4 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxss +++ b/pages/giftpack/mygiftpack/mygiftpack.wxss @@ -251,3 +251,7 @@ page { .After_all .end { margin: 0rpx 15rpx; } + +.overdue{ + background-color: rgb(153,153,153) !important; +} -- libgit2 0.21.4