添加新文件
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
selectType: 0,
|
||||
// 0:待使用,1:已使用,2:已过期
|
||||
tabList: [
|
||||
{
|
||||
id: 0,
|
||||
name: "全部"
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
name: "优惠卷"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "平台"
|
||||
}
|
||||
],
|
||||
selTab: 0
|
||||
//
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
checkType(tab) {
|
||||
this.selectType = tab;
|
||||
},
|
||||
jumpTab(item) {
|
||||
this.selTab = item.id;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $data.selectType === 0
|
||||
}, $data.selectType === 0 ? {} : {}, {
|
||||
b: common_vendor.n($data.selectType === 0 ? "tab_item tab_item_sel" : "tab_item"),
|
||||
c: common_vendor.o(($event) => $options.checkType(0)),
|
||||
d: $data.selectType === 1
|
||||
}, $data.selectType === 1 ? {} : {}, {
|
||||
e: common_vendor.n($data.selectType === 1 ? "tab_item tab_item_sel" : "tab_item"),
|
||||
f: common_vendor.o(($event) => $options.checkType(1)),
|
||||
g: $data.selectType === 2
|
||||
}, $data.selectType === 2 ? {} : {}, {
|
||||
h: common_vendor.n($data.selectType === 2 ? "tab_item tab_item_sel" : "tab_item"),
|
||||
i: common_vendor.o(($event) => $options.checkType(2)),
|
||||
j: common_vendor.f($data.tabList, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
b: item.id,
|
||||
c: common_vendor.n($data.selTab === item.id ? "tab_item tab_item_sel" : "tab_item"),
|
||||
d: common_vendor.o(($event) => $options.jumpTab(item), item.id)
|
||||
};
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_coupon/mine_coupon.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "优惠卷",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="mine_coupon"><view class="tab_header"><view class="{{b}}" bindtap="{{c}}"><view>待使用</view><view wx:if="{{a}}" class="tab_item_but"></view></view><view class="{{e}}" bindtap="{{f}}"><view>已使用</view><view wx:if="{{d}}" class="tab_item_but"></view></view><view class="{{h}}" bindtap="{{i}}"><view>已过期</view><view wx:if="{{g}}" class="tab_item_but"></view></view></view><view class="tab_content"><view class="tab_list"><view wx:for="{{j}}" wx:for-item="item" wx:key="b" class="{{item.c}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="tab_list_content"><view class="tab_list_content_item"><view class="left_"><view class="title">玩具乐器部分商品</view><view class="time">2025.03.01-2025.04.31</view></view><view class="right_"><view class="amount_"><text>¥</text><text style="font-size:70rpx">20</text></view><view class="max_out">满¥59使用</view><view class="use_but">立即使用</view></view></view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user