已支付订单列表:where.payStatus = 1;
This commit is contained in:
+71
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const api_booking_userCard_index = require("../../../../api/booking/userCard/index.js");
|
||||
const _sfc_main = {
|
||||
name: "ws-user-order",
|
||||
emits: ["done"],
|
||||
props: {
|
||||
isLogin: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
data: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
onLoad() {
|
||||
this.reload();
|
||||
},
|
||||
methods: {
|
||||
reload() {
|
||||
api_booking_userCard_index.pageUserCard(where).then((res) => {
|
||||
console.log("res: ", res);
|
||||
});
|
||||
},
|
||||
navTo(item) {
|
||||
console.log("item: ", item);
|
||||
if (!this.isLogin) {
|
||||
this.$refs.login.open("bottom");
|
||||
return false;
|
||||
} else {
|
||||
common_vendor.index.navigateTo({
|
||||
url: item
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_w_gap = common_vendor.resolveComponent("w-gap");
|
||||
const _easycom_uni_card2 = common_vendor.resolveComponent("uni-card");
|
||||
(_component_w_gap + _easycom_uni_card2)();
|
||||
}
|
||||
const _easycom_uni_card = () => "../../../uni-card/components/uni-card/uni-card.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_card();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t($props.data.userId ? $props.data.balance : "0.00"),
|
||||
b: common_vendor.o(($event) => $options.navTo(`/package/user/balance-log`)),
|
||||
c: common_vendor.t($props.data.userId ? $props.data.points : 0),
|
||||
d: common_vendor.o(($event) => $options.navTo(`/package/user/integral`)),
|
||||
e: common_vendor.t($props.data.userId ? $props.data.cards : 0),
|
||||
f: common_vendor.o(($event) => $options.navTo(`/package/user/card`)),
|
||||
g: common_vendor.t($props.data.userId ? $props.data.coupon : 0),
|
||||
h: common_vendor.o(($event) => $options.navTo(`/package/user/coupon`)),
|
||||
i: common_vendor.p({
|
||||
height: "5"
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
border: false,
|
||||
padding: 0
|
||||
})
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/gxwebsoft/APP/gxtyzx-uniapp-cli/src/uni_modules/ws-my-asset/components/ws-my-asset/ws-my-asset.vue"]]);
|
||||
wx.createComponent(Component);
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-card": "../../../uni-card/components/uni-card/uni-card"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<uni-card wx:if="{{j}}" u-s="{{['d']}}" u-i="8f0d2eba-0" bind:__l="__l" u-p="{{j}}"><view class="user-asset web-cell"><view class="web-cell-content web-text-center" bindtap="{{b}}"><text class="web-text-heading">{{a}}</text><text class="web-text-secondary">余额</text></view><view class="web-cell-content web-text-center" bindtap="{{d}}"><text class="web-text-heading">{{c}}</text><text class="web-text-secondary">积分</text></view><view class="web-cell-content web-text-center" bindtap="{{f}}"><text class="web-text-heading">{{e}}</text><text class="web-text-secondary">会员卡</text></view><view class="web-cell-content web-text-center" bindtap="{{h}}"><text class="web-text-heading">{{g}}</text><text class="web-text-secondary">优惠券</text></view></view><w-gap wx:if="{{i}}" u-i="8f0d2eba-1,8f0d2eba-0" bind:__l="__l" u-p="{{i}}"></w-gap></uni-card>
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.user-asset {
|
||||
padding: 16px 0;
|
||||
}
|
||||
.user-asset .web-text-heading {
|
||||
font-size: 40rpx;
|
||||
font-weight: 400;
|
||||
line-height: 2rem;
|
||||
}
|
||||
.user-asset .web-cell-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.user-asset .web-text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 单元格 */
|
||||
.web-cell {
|
||||
display: flex;
|
||||
}
|
||||
.web-cell:not(.web-cell-align-top) {
|
||||
align-items: center;
|
||||
}
|
||||
.web-cell.web-cell-align-bottom {
|
||||
align-items: flex-end;
|
||||
}
|
||||
.web-cell > .web-cell-content {
|
||||
flex: 1;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
Reference in New Issue
Block a user