杂务:整理文档并收口 YumiNail 修复
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const couponApi = require('../../api/coupon')
|
||||
const auth = require('../../utils/auth')
|
||||
const navigation = require('../../utils/navigation')
|
||||
const theme = require('../../utils/theme')
|
||||
|
||||
function getBenefitText(coupon) {
|
||||
if (Number(coupon.couponType) === 1) {
|
||||
@@ -14,7 +15,7 @@ function getBenefitText(coupon) {
|
||||
* Call guide: page data drives the WXML template, and each method is called by user events or lifecycle callbacks.
|
||||
*/
|
||||
Page({
|
||||
data: {
|
||||
data: Object.assign(theme.pageThemeData(getApp().globalData.shopTheme), {
|
||||
loading: false,
|
||||
isLoggedIn: false,
|
||||
coupons: [],
|
||||
@@ -26,7 +27,7 @@ Page({
|
||||
{ value: 'used', label: '已使用' },
|
||||
{ value: 'expired', label: '已过期' }
|
||||
]
|
||||
},
|
||||
}),
|
||||
|
||||
/**
|
||||
* `onShow` page method. Use this from WXML event bindings or lifecycle hooks.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<navigation-bar title="我的优惠券" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="我的优惠券" showBack="{{true}}" fallbackPath="/pages/profile/index" color="#2d2430" background="{{navThemeBackground || '#FFF7F9'}}"></navigation-bar>
|
||||
|
||||
<view class="page-shell coupons-page">
|
||||
<view class="page-shell coupons-page" style="{{themeVars}}">
|
||||
<view class="page-content">
|
||||
<view wx:if="{{!isLoggedIn}}" class="page-card empty-card">
|
||||
<text class="empty-title">登录后查看优惠券</text>
|
||||
|
||||
@@ -17,14 +17,16 @@
|
||||
height: 60rpx;
|
||||
padding: 0 24rpx;
|
||||
border-radius: 999rpx;
|
||||
background: rgba(255, 255, 255, 0.78);
|
||||
background: var(--theme-card-bg);
|
||||
border: 1rpx solid var(--theme-border);
|
||||
color: #8d7a84;
|
||||
font-size: 24rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.coupon-filter-chip.active {
|
||||
background: linear-gradient(135deg, #ff8cb0 0%, #c6597d 100%);
|
||||
background: var(--theme-gradient);
|
||||
border-color: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@@ -34,7 +36,7 @@
|
||||
|
||||
.coupon-card {
|
||||
padding: 26rpx 28rpx;
|
||||
background: linear-gradient(135deg, #fff8fa 0%, #fff1f5 100%);
|
||||
background: var(--theme-gradient-soft);
|
||||
}
|
||||
|
||||
.coupon-top {
|
||||
@@ -65,7 +67,7 @@
|
||||
padding: 0 18rpx;
|
||||
border-radius: 999rpx;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
color: #c6597d;
|
||||
color: var(--theme-primary);
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -74,7 +76,7 @@
|
||||
margin-top: 26rpx;
|
||||
font-size: 42rpx;
|
||||
font-weight: 800;
|
||||
color: #d5536f;
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.coupon-period {
|
||||
|
||||
Reference in New Issue
Block a user