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

View File

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

View File

@@ -0,0 +1 @@
"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)=>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)=>({a:common_vendor.t(item.id),b:common_vendor.t(item.createTime),c:"8dc35874-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=common_vendor._export_sfc(_sfc_main,[["__scopeId","data-v-8dc35874"]]);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 @@
view.data-v-0ecd3070{line-height:60rpx}.uni-list.data-v-0ecd3070{background-color:#fff;position:relative;width:100%;display:flex;flex-direction:column}.uni-list-cell.data-v-0ecd3070{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.uni-list-cell-left.data-v-0ecd3070{white-space:nowrap;font-size:28rpx;padding:0 30rpx}.uni-list-cell-db.data-v-0ecd3070,.uni-list-cell-right.data-v-0ecd3070{flex:1}.uni-input-group.data-v-0ecd3070{position:relative;padding:0;border:0;background-color:#fff}

View File

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

View File

@@ -0,0 +1 @@
"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=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((()=>getDate("start")));let endDate=common_vendor.computed((()=>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)=>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=common_vendor._export_sfc(_sfc_main,[["__scopeId","data-v-0ecd3070"]]);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 @@
.xkl-com-bg.data-v-f87b2b56{min-height:100vh}

View File

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

View File

@@ -0,0 +1 @@
"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)=>({a:common_vendor.f(common_vendor.unref(dataList),((i,k0,i0)=>({a:common_vendor.t(i.title),b:"f87b2b56-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=common_vendor._export_sfc(_sfc_main,[["__scopeId","data-v-f87b2b56"]]);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 @@
"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)=>({a:common_vendor.f(common_vendor.unref(dataList),((item,index,i0)=>({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": {}
}