first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:09:02 +08:00
commit dac42e3b0c
3512 changed files with 181637 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
view.data-v-c0c3deb4 {
line-height: 60rpx;
}
.uni-list.data-v-c0c3deb4 {
background-color: #ffffff;
position: relative;
width: 100%;
display: flex;
flex-direction: column;
}
.uni-list-cell.data-v-c0c3deb4 {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.uni-list-cell-left.data-v-c0c3deb4 {
white-space: nowrap;
font-size: 28rpx;
padding: 0 30rpx;
}
.uni-list-cell-db.data-v-c0c3deb4,
.uni-list-cell-right.data-v-c0c3deb4 {
flex: 1;
}
.uni-input-group.data-v-c0c3deb4 {
position: relative;
padding: 0;
border: 0;
background-color: #fff;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-c0c3deb4"><view class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><mp-html class="data-v-c0c3deb4" u-i="c0c3deb4-0" onVI="__l" u-p="{{a}}"></mp-html></view><view a:if="{{b}}" class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx;margin-top:30rpx"><view class="data-v-c0c3deb4">锁定中充电桩</view><view class="data-v-c0c3deb4" style="height:20rpx"></view><view a:if="{{c}}" class="data-v-c0c3deb4"><view a:for="{{d}}" a:for-item="item" a:key="d" class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="color:#909399;font-size:28rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-c0c3deb4">设备ID{{item.a}}</view><view class="data-v-c0c3deb4">{{item.b}}</view></view><view class="data-v-c0c3deb4" style="height:10rpx"></view><u-line class="data-v-c0c3deb4" u-i="{{item.c}}" onVI="__l"></u-line><view class="data-v-c0c3deb4" style="height:10rpx"></view></view></view><view class="data-v-c0c3deb4" style="height:20rpx"></view><view a:if="{{e}}" class="data-v-c0c3deb4"><view class="data-v-c0c3deb4" style="color:#909399">当前数量{{f}}</view></view></view><view class="data-v-c0c3deb4" style="height:20rpx"></view><view class="data-v-c0c3deb4" style="background-color:#ffffff;padding:30rpx;border-radius:10rpx"><view class="data-v-c0c3deb4">当前状态</view><view class="data-v-c0c3deb4" style="height:10rpx"></view><view class="data-v-c0c3deb4">参与时间:{{g}}个月</view><view class="data-v-c0c3deb4" style="height:10rpx"></view><view class="data-v-c0c3deb4">有效期:{{h}}-{{i}}</view></view></view><view class="data-v-c0c3deb4" style="height:100rpx"></view></view></view>

View File

@@ -0,0 +1,62 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
const _easycom_u_line2 = common_vendor.resolveComponent("u-line");
(_easycom_mp_html2 + _easycom_u_line2)();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
const _easycom_u_line = () => "../../uni_modules/uview-plus/components/u-line/u-line.js";
if (!Math) {
(_easycom_mp_html + _easycom_u_line)();
}
const _sfc_main = {
__name: "detail513",
setup(__props) {
let info = common_vendor.ref({});
let type = common_vendor.ref("");
common_vendor.onLoad(async (options) => {
type.value = options.type;
var _res;
if (options.type == 2) {
_res = await api_api.activityUserInfo({ id: options.id });
} else {
_res = await api_api.activityInfo({ id: options.id });
}
if (_res.information) {
_res.information = JSON.parse(_res.information);
}
info.value = _res;
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
content: common_vendor.unref(info).detail
}),
b: common_vendor.unref(type) == 2
}, common_vendor.unref(type) == 2 ? common_vendor.e({
c: common_vendor.unref(info).deviceList
}, common_vendor.unref(info).deviceList ? {
d: common_vendor.f(common_vendor.unref(info).deviceList, (item, index, i0) => {
return {
a: common_vendor.t(item.id),
b: common_vendor.t(item.createTime),
c: "c0c3deb4-1-" + i0,
d: index
};
})
} : {}, {
e: common_vendor.unref(info).deviceList
}, common_vendor.unref(info).deviceList ? {
f: common_vendor.t(common_vendor.unref(info).deviceList.length)
} : {}, {
g: common_vendor.t(common_vendor.unref(info).freezeDate),
h: common_vendor.t(common_vendor.unref(info).confirmDate),
i: common_vendor.t(common_vendor.unref(info).expirationDate)
}) : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c0c3deb4"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "活动",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html",
"u-line": "../../uni_modules/uview-plus/components/u-line/u-line"
}
}

View File

@@ -0,0 +1,33 @@
view.data-v-393d6d4d {
line-height: 60rpx;
}
.uni-list.data-v-393d6d4d {
background-color: #ffffff;
position: relative;
width: 100%;
display: flex;
flex-direction: column;
}
.uni-list-cell.data-v-393d6d4d {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.uni-list-cell-left.data-v-393d6d4d {
white-space: nowrap;
font-size: 28rpx;
padding: 0 30rpx;
}
.uni-list-cell-db.data-v-393d6d4d,
.uni-list-cell-right.data-v-393d6d4d {
flex: 1;
}
.uni-input-group.data-v-393d6d4d {
position: relative;
padding: 0;
border: 0;
background-color: #fff;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-393d6d4d"><view class="data-v-393d6d4d"><view class="data-v-393d6d4d" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx"><mp-html class="data-v-393d6d4d" u-i="393d6d4d-0" onVI="__l" u-p="{{a}}"></mp-html></view><view a:if="{{b}}" class="data-v-393d6d4d" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx;margin-top:30rpx"><view class="data-v-393d6d4d">赠送充电桩</view><view class="data-v-393d6d4d" style="height:20rpx"></view><view class="data-v-393d6d4d" style="color:#909399;font-size:28rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-393d6d4d">设备ID{{c}}</view><view class="data-v-393d6d4d">{{d}}</view></view></view><view a:if="{{e}}" class="data-v-393d6d4d"><view a:if="{{f}}" class="data-v-393d6d4d" style="background-color:#ffffff;border-radius:12rpx;padding:30rpx;display:flex;align-items:center;margin-top:30rpx"><view class="data-v-393d6d4d" style="margin-right:25rpx">下单日期</view><view class="data-v-393d6d4d" style="flex:1"><picker class="data-v-393d6d4d" mode="date" start="{{h}}" end="{{i}}" value="{{j}}" onChange="{{k}}"><view class="uni-input data-v-393d6d4d">{{g}}</view></picker></view></view><view class="data-v-393d6d4d" style="margin-top:30rpx"><up-button class="data-v-393d6d4d" u-s="{{['d']}}" onClick="{{l}}" u-i="393d6d4d-1" onVI="__l" u-p="{{m}}">认领</up-button></view></view><view class="data-v-393d6d4d" style="height:100rpx"></view></view></view>

View File

@@ -0,0 +1,94 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_mp_html2 + _easycom_up_button2)();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_mp_html + _easycom_up_button)();
}
const _sfc_main = {
__name: "detail813",
setup(__props) {
let info = common_vendor.ref({});
let type = common_vendor.ref("");
common_vendor.onLoad(async (options) => {
type.value = options.type;
var _res;
if (options.type == 2) {
_res = await api_api.activityUserInfo({ id: options.id });
} else {
_res = await api_api.activityInfo({ id: options.id });
}
info.value = _res;
});
const getDate = (type2) => {
const date2 = /* @__PURE__ */ new Date();
let year = date2.getFullYear();
let month = date2.getMonth() + 1;
let day = date2.getDate();
if (type2 === "start") {
year = year - 60;
} else if (type2 === "end") {
year = year + 2;
}
month = month > 9 ? month : "0" + month;
day = day > 9 ? day : "0" + day;
return `${year}-${month}-${day}`;
};
const bindDateChange = (e) => {
date.value = e.detail.value;
};
let startDate = common_vendor.computed(() => {
return getDate("start");
});
let endDate = common_vendor.computed(() => {
return getDate("end");
});
const currentDate = getDate({
format: true
});
let date = common_vendor.ref(currentDate);
let getActCreate = () => {
api_api.activityUserConfirm({
id: info.value.id,
orderDate: date.value
}).then((res) => {
common_vendor.index.showToast({ title: "认领成功", icon: "none" });
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
content: common_vendor.unref(info).detail
}),
b: common_vendor.unref(type) == 2
}, common_vendor.unref(type) == 2 ? {
c: common_vendor.t(common_vendor.unref(info).deviceId),
d: common_vendor.t(common_vendor.unref(info).createTime)
} : {}, {
e: common_vendor.unref(type) != 2
}, common_vendor.unref(type) != 2 ? common_vendor.e({
f: !_ctx.ac
}, !_ctx.ac ? {
g: common_vendor.t(common_vendor.unref(date)),
h: common_vendor.unref(startDate),
i: common_vendor.unref(endDate),
j: common_vendor.unref(date),
k: common_vendor.o(bindDateChange)
} : {}, {
l: common_vendor.o(common_vendor.unref(getActCreate)),
m: common_vendor.p({
color: "#4874e5",
type: "primary"
})
}) : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-393d6d4d"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"defaultTitle": "活动",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1,3 @@
.xkl-com-bg.data-v-2c61ebca {
min-height: 100vh;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-2c61ebca"><view class="data-v-2c61ebca" style="background-color:#ffffff;border-radius:12rpx;padding:20rpx;display:flex;align-items:center;justify-content:space-between"><view class="data-v-2c61ebca">活动列表</view><navigator class="data-v-2c61ebca" url="/pages/activity/shop/index" style="color:#2b85e4">我的参与</navigator></view><view class="data-v-2c61ebca" style="height:20rpx"></view><navigator a:for="{{a}}" a:for-item="i" a:key="e" class="data-v-2c61ebca" url="{{i.f}}" style="background-color:#ffffff;border-radius:12rpx;padding:20rpx;margin-bottom:20rpx"><view class="data-v-2c61ebca"><view class="data-v-2c61ebca">{{i.a}}</view></view><up-divider class="data-v-2c61ebca" u-i="{{i.b}}" onVI="__l"></up-divider><view class="data-v-2c61ebca">活动时间:{{i.c}}-{{i.d}}</view></navigator></view>

View File

@@ -0,0 +1,39 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
const uni_modules_uviewPlus_libs_function_index = require("../../uni_modules/uview-plus/libs/function/index.js");
if (!Array) {
const _easycom_up_divider2 = common_vendor.resolveComponent("up-divider");
_easycom_up_divider2();
}
const _easycom_up_divider = () => "../../uni_modules/uview-plus/components/u-divider/u-divider.js";
if (!Math) {
_easycom_up_divider();
}
const _sfc_main = {
__name: "index",
setup(__props) {
let dataList = common_vendor.ref([]);
common_vendor.onLoad(async () => {
let _res = await api_api.activityList();
dataList.value = _res;
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
return {
a: common_vendor.t(i.title),
b: "2c61ebca-0-" + i0,
c: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(i.startTime).getTime(), "yyyy-mm-dd")),
d: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(i.endTime).getTime(), "yyyy-mm-dd")),
e: i,
f: `/pages/activity/detail${i.type == 1 ? "8" : "5"}13?id=${i.id}`
};
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2c61ebca"]]);
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "活动中心",
"usingComponents": {
"up-divider": "../../uni_modules/uview-plus/components/u-divider/u-divider"
}
}

View File

@@ -0,0 +1 @@
<view class="p30"><view><view a:for="{{a}}" a:for-item="item" a:key="c" onTap="{{item.d}}" style="background-color:#ffffff;border-radius:12rpx;padding:20rpx;margin-bottom:20rpx"><view>{{item.a}}</view><view style="height:10rpx"></view><view>活动参与时间:{{item.b}}</view></view></view></view>

View File

@@ -0,0 +1,33 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const api_api = require("../../../api/api.js");
require("../../../uni_modules/uview-plus/index.js");
const uni_modules_uviewPlus_libs_function_index = require("../../../uni_modules/uview-plus/libs/function/index.js");
const _sfc_main = {
__name: "index",
setup(__props) {
let dataList = common_vendor.ref([]);
common_vendor.onLoad(async () => {
let _res = await api_api.activityUserList();
dataList.value = _res;
});
const toUrl = (e) => {
common_vendor.index.navigateTo({
url: e
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(item.createTime).getTime(), "yyyy-mm-dd")),
c: index,
d: common_vendor.o(($event) => toUrl(`/pages/activity/detail${item.type == 1 ? "8" : "5"}13?id=${item.id}&type=2`))
};
})
};
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,4 @@
{
"defaultTitle": "参与记录",
"usingComponents": {}
}