已支付订单列表:where.payStatus = 1;
This commit is contained in:
+170
@@ -0,0 +1,170 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_booking_course_index = require("../../api/booking/course/index.js");
|
||||
const api_booking_item_index = require("../../api/booking/item/index.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
// 骨架屏
|
||||
hideTools: true,
|
||||
// 项目列表
|
||||
itemList: []
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.reload();
|
||||
},
|
||||
methods: {
|
||||
reload() {
|
||||
const app = this;
|
||||
Promise.all([app.getCourseList(), app.getItemList()]).then((res) => {
|
||||
console.log("res: ", res);
|
||||
app.list = res[0];
|
||||
app.itemList = res[1];
|
||||
});
|
||||
},
|
||||
getCourseList() {
|
||||
return new Promise((resolve, reject) => {
|
||||
api_booking_course_index.pageCourse({}).then((result) => {
|
||||
resolve(result.list);
|
||||
}).catch(reject);
|
||||
});
|
||||
},
|
||||
getItemList() {
|
||||
return new Promise((resolve, reject) => {
|
||||
api_booking_item_index.listItem({}).then((result) => {
|
||||
resolve(result);
|
||||
}).catch(reject);
|
||||
});
|
||||
},
|
||||
onItem(e) {
|
||||
const { index } = e.detail;
|
||||
this.openUrl(`/package/match/list?categoryId=` + this.itemList[index].id);
|
||||
},
|
||||
openUrl(url) {
|
||||
common_vendor.index.navigateTo({
|
||||
url
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uv_cell2 = common_vendor.resolveComponent("uv-cell");
|
||||
const _easycom_uv_button2 = common_vendor.resolveComponent("uv-button");
|
||||
const _easycom_uv_cell_group2 = common_vendor.resolveComponent("uv-cell-group");
|
||||
const _easycom_uni_card2 = common_vendor.resolveComponent("uni-card");
|
||||
const _easycom_uv_skeleton2 = common_vendor.resolveComponent("uv-skeleton");
|
||||
const _easycom_uv_gap2 = common_vendor.resolveComponent("uv-gap");
|
||||
(_easycom_uv_cell2 + _easycom_uv_button2 + _easycom_uv_cell_group2 + _easycom_uni_card2 + _easycom_uv_skeleton2 + _easycom_uv_gap2)();
|
||||
}
|
||||
const _easycom_uv_cell = () => "../../uni_modules/uv-cell/components/uv-cell/uv-cell.js";
|
||||
const _easycom_uv_button = () => "../../uni_modules/uv-button/components/uv-button/uv-button.js";
|
||||
const _easycom_uv_cell_group = () => "../../uni_modules/uv-cell/components/uv-cell-group/uv-cell-group.js";
|
||||
const _easycom_uni_card = () => "../../uni_modules/uni-card/components/uni-card/uni-card.js";
|
||||
const _easycom_uv_skeleton = () => "../../uni_modules/uv-skeleton/components/uv-skeleton/uv-skeleton.js";
|
||||
const _easycom_uv_gap = () => "../../uni_modules/uv-gap/components/uv-gap/uv-gap.js";
|
||||
if (!Math) {
|
||||
(_easycom_uv_cell + _easycom_uv_button + _easycom_uv_cell_group + _easycom_uni_card + _easycom_uv_skeleton + _easycom_uv_gap)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $data.list.length > 0
|
||||
}, $data.list.length > 0 ? {
|
||||
b: common_vendor.f($data.list, (item, index, i0) => {
|
||||
return {
|
||||
a: "0391ec96-2-" + i0 + "," + ("0391ec96-1-" + i0),
|
||||
b: "0391ec96-4-" + i0 + "," + ("0391ec96-3-" + i0),
|
||||
c: "0391ec96-5-" + i0 + "," + ("0391ec96-3-" + i0),
|
||||
d: "0391ec96-3-" + i0 + "," + ("0391ec96-1-" + i0),
|
||||
e: "0391ec96-1-" + i0 + "," + ("0391ec96-0-" + i0),
|
||||
f: index,
|
||||
g: "0391ec96-0-" + i0
|
||||
};
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
label: `负责游泳跳水馆、包括游泳馆的日常经营管理工作`,
|
||||
border: false,
|
||||
cellStyle: {
|
||||
padding: "10px 5px"
|
||||
}
|
||||
}),
|
||||
d: common_vendor.p({
|
||||
type: "info",
|
||||
icon: "phone",
|
||||
shape: "circle",
|
||||
size: "small",
|
||||
text: "电话咨询"
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
type: "info",
|
||||
icon: "edit-pen",
|
||||
shape: "circle",
|
||||
size: "small",
|
||||
text: "合作留言"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
title: "电话咨询",
|
||||
border: false,
|
||||
cellStyle: {
|
||||
padding: "10px 5px"
|
||||
}
|
||||
}),
|
||||
g: common_vendor.p({
|
||||
customStyle: {
|
||||
backgroundColor: "#ffffff"
|
||||
},
|
||||
border: false
|
||||
}),
|
||||
h: common_vendor.p({
|
||||
title: "游泳健身活动俱乐部",
|
||||
border: false,
|
||||
["is-shadow"]: false,
|
||||
padding: 0
|
||||
})
|
||||
} : {
|
||||
i: common_vendor.p({
|
||||
rows: "2",
|
||||
avatar: true,
|
||||
loading: $data.hideTools,
|
||||
title: false
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
height: "16"
|
||||
}),
|
||||
k: common_vendor.p({
|
||||
rows: "2",
|
||||
avatar: true,
|
||||
loading: $data.hideTools,
|
||||
title: false
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
height: "16"
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
rows: "2",
|
||||
avatar: true,
|
||||
loading: $data.hideTools,
|
||||
title: false
|
||||
}),
|
||||
n: common_vendor.p({
|
||||
height: "16"
|
||||
}),
|
||||
o: common_vendor.p({
|
||||
rows: "2",
|
||||
avatar: true,
|
||||
loading: $data.hideTools,
|
||||
title: false
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
height: "16"
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
border: false,
|
||||
["is-shadow"]: false,
|
||||
padding: "12px 4px"
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0391ec96"], ["__file", "/Users/gxwebsoft/APP/gxtyzx-uniapp-cli/src/package/cooperate/index.vue"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "商务合作",
|
||||
"usingComponents": {
|
||||
"uv-cell": "../../uni_modules/uv-cell/components/uv-cell/uv-cell",
|
||||
"uv-button": "../../uni_modules/uv-button/components/uv-button/uv-button",
|
||||
"uv-cell-group": "../../uni_modules/uv-cell/components/uv-cell-group/uv-cell-group",
|
||||
"uni-card": "../../uni_modules/uni-card/components/uni-card/uni-card",
|
||||
"uv-skeleton": "../../uni_modules/uv-skeleton/components/uv-skeleton/uv-skeleton",
|
||||
"uv-gap": "../../uni_modules/uv-gap/components/uv-gap/uv-gap"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="data-v-0391ec96"><view class="card-title web-text-heading data-v-0391ec96">商务合作</view><block wx:if="{{a}}"><uni-card wx:for="{{b}}" wx:for-item="item" wx:key="f" class="data-v-0391ec96" u-s="{{['d']}}" u-i="{{item.g}}" bind:__l="__l" u-p="{{h}}"><uv-cell-group wx:if="{{g}}" class="data-v-0391ec96" u-s="{{['d']}}" u-i="{{item.e}}" bind:__l="__l" u-p="{{g}}"><uv-cell wx:if="{{c}}" class="data-v-0391ec96" u-s="{{['label']}}" u-i="{{item.a}}" bind:__l="__l" u-p="{{c}}"><view class="text-gray-500 data-v-0391ec96" slot="label">负责游泳跳水馆、包括游泳馆的日常经营管理工作</view></uv-cell><uv-cell wx:if="{{f}}" class="data-v-0391ec96" u-s="{{['title']}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{f}}"><view class="flex justify-end data-v-0391ec96" slot="title"><view class="ml-3 data-v-0391ec96"><uv-button wx:if="{{d}}" class="data-v-0391ec96" u-i="{{item.b}}" bind:__l="__l" u-p="{{d}}"></uv-button></view><view class="ml-3 data-v-0391ec96"><uv-button wx:if="{{e}}" class="data-v-0391ec96" u-i="{{item.c}}" bind:__l="__l" u-p="{{e}}"></uv-button></view></view></uv-cell></uv-cell-group></uni-card></block><block wx:else><uni-card wx:if="{{q}}" class="data-v-0391ec96" u-s="{{['d']}}" u-i="0391ec96-6" bind:__l="__l" u-p="{{q}}"><uv-skeleton wx:if="{{i}}" class="data-v-0391ec96" u-i="0391ec96-7,0391ec96-6" bind:__l="__l" u-p="{{i}}"></uv-skeleton><uv-gap wx:if="{{j}}" class="data-v-0391ec96" u-i="0391ec96-8,0391ec96-6" bind:__l="__l" u-p="{{j}}"></uv-gap><uv-skeleton wx:if="{{k}}" class="data-v-0391ec96" u-i="0391ec96-9,0391ec96-6" bind:__l="__l" u-p="{{k}}"></uv-skeleton><uv-gap wx:if="{{l}}" class="data-v-0391ec96" u-i="0391ec96-10,0391ec96-6" bind:__l="__l" u-p="{{l}}"></uv-gap><uv-skeleton wx:if="{{m}}" class="data-v-0391ec96" u-i="0391ec96-11,0391ec96-6" bind:__l="__l" u-p="{{m}}"></uv-skeleton><uv-gap wx:if="{{n}}" class="data-v-0391ec96" u-i="0391ec96-12,0391ec96-6" bind:__l="__l" u-p="{{n}}"></uv-gap><uv-skeleton wx:if="{{o}}" class="data-v-0391ec96" u-i="0391ec96-13,0391ec96-6" bind:__l="__l" u-p="{{o}}"></uv-skeleton><uv-gap wx:if="{{p}}" class="data-v-0391ec96" u-i="0391ec96-14,0391ec96-6" bind:__l="__l" u-p="{{p}}"></uv-gap></uni-card></block></view>
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.card-title.data-v-0391ec96 {
|
||||
width: 700rpx;
|
||||
margin: 12rpx auto;
|
||||
font-size: 34rpx;
|
||||
font-weight: 500;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
.match-list.data-v-0391ec96 {
|
||||
width: 700rpx;
|
||||
margin: auto !important;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.match-list .match-item.data-v-0391ec96 {
|
||||
width: 700rpx;
|
||||
margin: 16rpx 0;
|
||||
border-radius: 16rpx;
|
||||
overflow: hidden;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.match-list .match-item .match-info.data-v-0391ec96 {
|
||||
padding: 10rpx 16rpx;
|
||||
line-height: 35rpx;
|
||||
}
|
||||
.match-list .match-item .price-bar.data-v-0391ec96 {
|
||||
padding: 0 16rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.item-list.data-v-0391ec96 {
|
||||
width: 720rpx;
|
||||
margin: auto;
|
||||
}
|
||||
.merchant-card-title.data-v-0391ec96 {
|
||||
width: 700rpx;
|
||||
margin: 12rpx auto;
|
||||
font-size: 40rpx;
|
||||
font-weight: 500;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
.card-body.data-v-0391ec96 {
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
}
|
||||
.card-body .merchant-card.data-v-0391ec96 {
|
||||
margin: 12rpx auto;
|
||||
border-radius: 10rpx;
|
||||
border-color: slategrey;
|
||||
border-radius: 16rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.card-body .merchant-card .merchant-image.data-v-0391ec96 {
|
||||
width: 45vw;
|
||||
border-radius: 16rpx 16rpx 0 0;
|
||||
}
|
||||
.card-body .merchant-card .merchant-name.data-v-0391ec96 {
|
||||
padding: 10rpx;
|
||||
overflow: hidden;
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.card-body .merchant-card .merchant-desc.data-v-0391ec96 {
|
||||
width: 400rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in New Issue
Block a user