fixed 完善优惠券

This commit is contained in:
lwh 2023-08-01 17:20:56 +08:00
parent d6710e5a11
commit a22aa80b8a
5 changed files with 36 additions and 12 deletions

View File

@ -13,13 +13,13 @@ Page({
onLoad(query) {
const id = parseInt(query.id);
this.id = id;
this.getGoodsList(id);
this.getCouponDetail(id);
},
getGoodsList(id) {
fetchCouponDetail(id).then(({ detail }) => {
getCouponDetail(id) {
fetchCouponDetail(id).then((res) => {
this.setData({
detail,
detail: res
});
});
},

View File

@ -40,6 +40,6 @@
</t-cell-group>
<!-- 查看可用商品 -->
<view class="button-wrap">
<t-button shape="round" block bindtap="navGoodListHandle"> 查看可用商品 </t-button>
<t-button wx:if="{{detail.status == 1}}" shape="round" block bindtap="navGoodListHandle"> 查看可用商品 </t-button>
</view>
</view>

View File

@ -18,16 +18,16 @@ page {
}
.tabs-external__inner .tabs-external__track {
background: #fa4126 !important;
/* background: #fa4126 !important; */
}
.tabs-external__inner .tabs-external__item {
color: #666;
/* color: #666; */
}
.tabs-external__inner .tabs-external__active {
font-size: 28rpx;
color: #fa4126 !important;
/* color: #fa4126 !important; */
}
.tabs-external__inner.order-nav .order-nav-item .bottom-line {

View File

@ -19,4 +19,23 @@ export function fetchCouponList(parm) {
}
});
});
}
/** 优惠券详情 */
export function fetchCouponDetail(id) {
return new Promise((resolve, reject) => {
request({
url: `CustomerCouponApi/getCustomerCouponDetails`,
data: {CustomerCouponId: id},
method: 'GET',
success: function (res) {
let data = res.data;
resolve(data);
},
fail: function (error) {
reject(error);
}
});
});
}

View File

@ -1,5 +1,5 @@
/* 主题定制 */
.root-bg-color{
.root-bg-color {
background-color: #1989fa;
}
@ -42,6 +42,11 @@
--td-checkbox-icon-checked-color: #1989fa;
}
.t-tabs {
--td-tab-item-active-color: #1989fa;
--td-tab-track-color: #1989fa;
}
.dialog__button-confirm {
color: #1989fa !important;
}
@ -50,14 +55,14 @@
color: #aeb3b7 !important;
}
.mt-25{
.mt-25 {
margin-top: 25rpx;
}
.mb-25{
.mb-25 {
margin-bottom: 25rpx;
}
.mb-30{
.mb-30 {
margin-bottom: 30rpx;
}