diff --git a/enum/commonEnum.js b/enum/commonEnum.js
index e0de32c..5375fda 100644
--- a/enum/commonEnum.js
+++ b/enum/commonEnum.js
@@ -2,7 +2,14 @@ export const commonEnum = {
LOGIN_SRC:'https://api.ccttiot.com/image-1754981670820.png',
HOME_ACTIVE:'https://api.ccttiot.com/image-1754981895711.png',
HOME:'https://api.ccttiot.com/image-1754981938495.png',
- // https://api.ccttiot.com/image-1754981988082.png'
-
+ RENT:'https://api.ccttiot.com/image-1754981988082.png',
+ RENT_ACTIVE:' https://api.ccttiot.com/image-1754986634575.png',
+ PERSONAL_CENTER:"https://api.ccttiot.com/image-1754986718771.png",
+ PERSONAL_CENTER_ACTIVE:"https://api.ccttiot.com/image-1754986763842.png",
+ LOCATION:'https://api.ccttiot.com/image-1754986786418.png',
+ ANNOUNCEMENT:"https://api.ccttiot.com/image-1754986879805.png",
+ TEMP1:"https://api.ccttiot.com/image-1754987048988.png",
+ TEMP2:"https://api.ccttiot.com/image-1754987114695.png",
+ TEMP3:"https://api.ccttiot.com/image-1754987141539.png"
};
export default commonEnum;
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 3864993..5affbbe 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,26 +1,12 @@
-
-
- 9:41
-
- 📶
- 📶
- 🔋
-
-
-
@@ -99,9 +85,11 @@
-\r\n","import MiniProgramPage from 'D:/work/HBuilderProjects/HomeLease/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;AAqGA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA,MACP,oBAAoB;AAAA,MACpB,YAAY;AAAA,QACV;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,UACN,UAAU;AAAA,UACV,OAAO;AAAA,QACR;AAAA,QACD;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,UACN,UAAU;AAAA,UACV,OAAO;AAAA,QACT;AAAA,MACD;AAAA,MACD,eAAe;AAAA,QACb;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,QAAQ;AAAA,UACR,WAAW;AAAA,UACX,SAAS;AAAA,UACT,OAAO;AAAA,QACR;AAAA,QACD;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,QAAQ;AAAA,UACR,WAAW;AAAA,UACX,SAAS;AAAA,UACT,OAAO;AAAA,QACT;AAAA,MACF;AAAA,IACF;AAAA,EACD;AAAA,EACD,SAAS;AAEP,SAAK,oBAAmB;AAAA,EACzB;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,sBAAsB;AACpB,kBAAY,MAAM;AAChB,aAAK,sBAAsB,KAAK,qBAAqB,KAAK,KAAK,WAAW;AAAA,MAC3E,GAAE,GAAI;AAAA,IACR;AAAA;AAAA,IAGD,WAAW,OAAO;AAChB,WAAK,qBAAqB;AAAA,IAC3B;AAAA;AAAA,IAGD,QAAQ,WAAW;AACjBA,oBAAAA,MAAI,UAAU;AAAA,QACZ,OAAO,OAAO,UAAU,IAAI;AAAA,QAC5B,MAAM;AAAA,MACR,CAAC;AAAA,IACF;AAAA;AAAA,IAGD,iBAAiB,WAAW;AAC1BA,oBAAAA,MAAI,UAAU;AAAA,QACZ,OAAO,KAAK,UAAU,IAAI;AAAA,QAC1B,MAAM;AAAA,MACR,CAAC;AAAA,IACF;AAAA;AAAA,IAGD,WAAW,OAAO;AAChB,YAAM,WAAW,CAAC,MAAM,QAAQ,MAAM;AACtCA,oBAAAA,MAAI,UAAU;AAAA,QACZ,OAAO,MAAM,SAAS,KAAK,CAAC;AAAA,QAC5B,MAAM;AAAA,MACR,CAAC;AAAA,IACH;AAAA,EACF;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvLA,GAAG,WAAW,eAAe;"}
\ No newline at end of file
+{"version":3,"file":"index.js","sources":["pages/index/index.vue","C:/Users/Administrator/Downloads/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["\r\n \r\n \r\n \r\n\r\n \r\n \r\n 📢\r\n 暂无更多公告! 暂无更多公告! 暂无更多公告!\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n 🔥\r\n {{banner.name}}\r\n {{banner.desc}}\r\n \r\n \r\n \r\n \r\n {{banner.features}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n 我的租赁设备\r\n \r\n \r\n \r\n \r\n \r\n \r\n 租赁时间: {{equipment.startTime}}\r\n 到期时间: {{equipment.endTime}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {{index === 0 ? '🏠' : index === 1 ? '➕' : '😊'}}\r\n {{nav}}\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import MiniProgramPage from 'D:/work/HBuilderProjects/HomeLease/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["commonEnum","uni"],"mappings":";;;AAwFA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,YAAaA,gBAAU;AAAA,MACvB,OAAO;AAAA,MACP,oBAAoB;AAAA,MACpB,YAAY;AAAA,QACV;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,UACN,UAAU;AAAA,UACV,OAAO;AAAA,QACR;AAAA,QACD;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,UACN,UAAU;AAAA,UACV,OAAO;AAAA,QACT;AAAA,MACD;AAAA,MACD,eAAe;AAAA,QACb;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,QAAQ;AAAA,UACR,WAAW;AAAA,UACX,SAAS;AAAA,UACT,OAAO;AAAA,QACR;AAAA,QACD;AAAA,UACE,IAAI;AAAA,UACJ,MAAM;AAAA,UACN,QAAQ;AAAA,UACR,WAAW;AAAA,UACX,SAAS;AAAA,UACT,OAAO;AAAA,QACT;AAAA,MACF;AAAA,IACF;AAAA,EACD;AAAA,EACD,SAAS;AAEP,SAAK,oBAAmB;AAAA,EACzB;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,sBAAsB;AACpB,kBAAY,MAAM;AAChB,aAAK,sBAAsB,KAAK,qBAAqB,KAAK,KAAK,WAAW;AAAA,MAC3E,GAAE,GAAI;AAAA,IACR;AAAA;AAAA,IAGD,WAAW,OAAO;AAChB,WAAK,qBAAqB;AAAA,IAC3B;AAAA;AAAA,IAGD,QAAQ,WAAW;AACjBC,oBAAAA,MAAI,UAAU;AAAA,QACZ,OAAO,OAAO,UAAU,IAAI;AAAA,QAC5B,MAAM;AAAA,MACR,CAAC;AAAA,IACF;AAAA;AAAA,IAGD,iBAAiB,WAAW;AAC1BA,oBAAAA,MAAI,UAAU;AAAA,QACZ,OAAO,KAAK,UAAU,IAAI;AAAA,QAC1B,MAAM;AAAA,MACR,CAAC;AAAA,IACF;AAAA;AAAA,IAGD,WAAW,OAAO;AAChB,YAAM,WAAW,CAAC,MAAM,QAAQ,MAAM;AACtCA,oBAAAA,MAAI,UAAU;AAAA,QACZ,OAAO,MAAM,SAAS,KAAK,CAAC;AAAA,QAC5B,MAAM;AAAA,MACR,CAAC;AAAA,IACH;AAAA,EACF;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3KA,GAAG,WAAW,eAAe;"}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/enum/commonEnum.js b/unpackage/dist/dev/mp-weixin/enum/commonEnum.js
index 2028696..25d2363 100644
--- a/unpackage/dist/dev/mp-weixin/enum/commonEnum.js
+++ b/unpackage/dist/dev/mp-weixin/enum/commonEnum.js
@@ -2,8 +2,16 @@
const commonEnum = {
LOGIN_SRC: "https://api.ccttiot.com/image-1754981670820.png",
HOME_ACTIVE: "https://api.ccttiot.com/image-1754981895711.png",
- HOME: "https://api.ccttiot.com/image-1754981938495.png"
- // https://api.ccttiot.com/image-1754981988082.png'
+ HOME: "https://api.ccttiot.com/image-1754981938495.png",
+ RENT: "https://api.ccttiot.com/image-1754981988082.png",
+ RENT_ACTIVE: " https://api.ccttiot.com/image-1754986634575.png",
+ PERSONAL_CENTER: "https://api.ccttiot.com/image-1754986718771.png",
+ PERSONAL_CENTER_ACTIVE: "https://api.ccttiot.com/image-1754986763842.png",
+ LOCATION: "https://api.ccttiot.com/image-1754986786418.png",
+ ANNOUNCEMENT: "https://api.ccttiot.com/image-1754986879805.png",
+ TEMP1: "https://api.ccttiot.com/image-1754987048988.png",
+ TEMP2: "https://api.ccttiot.com/image-1754987114695.png",
+ TEMP3: "https://api.ccttiot.com/image-1754987141539.png"
};
exports.commonEnum = commonEnum;
//# sourceMappingURL=../../.sourcemap/mp-weixin/enum/commonEnum.js.map
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.js b/unpackage/dist/dev/mp-weixin/pages/index/index.js
index 095814f..499620a 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.js
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.js
@@ -1,8 +1,10 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
+const enum_commonEnum = require("../../enum/commonEnum.js");
const _sfc_main = {
data() {
return {
+ commonEnum: enum_commonEnum.commonEnum,
title: "设备租赁",
currentBannerIndex: 0,
bannerList: [
@@ -81,7 +83,8 @@ const _sfc_main = {
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
- a: common_vendor.f($data.bannerList, (banner, index, i0) => {
+ a: $data.commonEnum.LOCATION,
+ b: common_vendor.f($data.bannerList, (banner, index, i0) => {
return {
a: common_vendor.t(banner.name),
b: common_vendor.t(banner.desc),
@@ -91,14 +94,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: $data.currentBannerIndex === index
};
}),
- b: common_vendor.f($data.bannerList, (banner, index, i0) => {
+ c: common_vendor.f($data.bannerList, (banner, index, i0) => {
return {
a: index,
b: $data.currentBannerIndex === index ? 1 : "",
c: common_vendor.o(($event) => $options.onDotClick(index), index)
};
}),
- c: common_vendor.f($data.equipmentList, (equipment, k0, i0) => {
+ d: common_vendor.f($data.equipmentList, (equipment, k0, i0) => {
return {
a: equipment.image,
b: common_vendor.t(equipment.name),
@@ -111,7 +114,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
i: common_vendor.o(($event) => $options.onEquipmentClick(equipment), equipment.id)
};
}),
- d: common_vendor.f(["首页", "申请租赁", "个人中心"], (nav, index, i0) => {
+ e: common_vendor.f(["首页", "申请租赁", "个人中心"], (nav, index, i0) => {
return {
a: common_vendor.t(index === 0 ? "🏠" : index === 1 ? "➕" : "😊"),
b: common_vendor.t(nav),
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.wxml b/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
index 3d20d5d..8f86589 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
@@ -1 +1 @@
-9:41📶📶🔋📢暂无更多公告! 暂无更多公告! 暂无更多公告!🔥{{banner.a}}{{banner.b}}{{banner.d}}我的租赁设备租赁时间: {{equipment.e}}到期时间: {{equipment.f}}{{nav.a}}{{nav.b}}
\ No newline at end of file
+📢暂无更多公告! 暂无更多公告! 暂无更多公告!🔥{{banner.a}}{{banner.b}}{{banner.d}}我的租赁设备租赁时间: {{equipment.e}}到期时间: {{equipment.f}}{{nav.a}}{{nav.b}}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
index c5b55bc..6647e98 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
@@ -1,8 +1,33 @@
-
+/**
+ * 这里是uni-app内置的常用样式变量
+ *
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
+ *
+ */
+/**
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
+ *
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
+ */
+/* 颜色变量 */
+/* 行为相关颜色 */
+/* 文字基本颜色 */
+/* 背景颜色 */
+/* 边框颜色 */
+/* 尺寸变量 */
+/* 文字尺寸 */
+/* 图片尺寸 */
+/* Border Radius */
+/* 水平间距 */
+/* 垂直间距 */
+/* 透明度 */
+/* 文章场景相关 */
.home-container.data-v-1cf27b2a {
background-color: #f5f5f5;
min-height: 100vh;
- padding-bottom: 120rpx; /* 为底部导航留出空间 */
+ padding-bottom: 120rpx;
+ /* 为底部导航留出空间 */
max-width: 750rpx;
margin: 0 auto;
}
@@ -24,35 +49,31 @@
/* 头部信息 */
.header.data-v-1cf27b2a {
- background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
- padding: 20rpx 30rpx;
+ background: linear-gradient(135deg, #FFDDCA 0%, #FFDDCA 100%);
+ padding: 106rpx 30rpx 20rpx 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
-.location-info.data-v-1cf27b2a {
+.header .location-info.data-v-1cf27b2a {
display: flex;
align-items: center;
gap: 10rpx;
flex: 1;
}
-.company-name.data-v-1cf27b2a {
- font-size: 28rpx;
- color: #333;
+.header .location-info .location.data-v-1cf27b2a {
+ width: 27rpx;
+ height: 31rpx;
+}
+.header .location-info .company-name.data-v-1cf27b2a {
+ color: #3D3D3D;
+ font-size: 16px;
font-weight: 500;
}
-.arrow.data-v-1cf27b2a {
+.header .location-info .arrow.data-v-1cf27b2a {
font-size: 24rpx;
color: #666;
}
-.header-actions.data-v-1cf27b2a {
- display: flex;
- gap: 20rpx;
-}
-.action-icon.data-v-1cf27b2a {
- font-size: 32rpx;
- color: #333;
-}
/* 公告栏 */
.announcement-bar.data-v-1cf27b2a {
@@ -63,23 +84,24 @@
gap: 15rpx;
overflow: hidden;
}
-.speaker-icon.data-v-1cf27b2a {
+.announcement-bar .speaker-icon.data-v-1cf27b2a {
font-size: 24rpx;
color: #333;
}
-.announcement-text.data-v-1cf27b2a {
+.announcement-bar .announcement-text.data-v-1cf27b2a {
font-size: 24rpx;
color: #333;
white-space: nowrap;
animation: scroll-text-1cf27b2a 20s linear infinite;
}
@keyframes scroll-text-1cf27b2a {
-0% { transform: translateX(100%);
+0% {
+ transform: translateX(100%);
}
-100% { transform: translateX(-100%);
+100% {
+ transform: translateX(-100%);
}
}
-
/* 轮播图 */
.banner-section.data-v-1cf27b2a {
padding: 30rpx;
@@ -272,4 +294,4 @@
.nav-item.active .nav-icon.data-v-1cf27b2a,
.nav-item.active .nav-text.data-v-1cf27b2a {
color: #ff9a9e;
-}
+}
\ No newline at end of file