sytle:图片

This commit is contained in:
田柯
2025-01-06 13:57:36 +08:00
parent a9d99871a3
commit 7343bf0e3c
21 changed files with 2776 additions and 76 deletions
+23
View File
@@ -0,0 +1,23 @@
{
"hash": "92b13695",
"browserHash": "a62746a0",
"optimized": {
"axios": {
"src": "../../axios/index.js",
"file": "axios.js",
"fileHash": "d3fbe7a1",
"needsInterop": false
},
"uniapp-axios-adapter": {
"src": "../../uniapp-axios-adapter/lib/index.esm.js",
"file": "uniapp-axios-adapter.js",
"fileHash": "2aa8be57",
"needsInterop": false
}
},
"chunks": {
"chunk-GGWXBEBB": {
"file": "chunk-GGWXBEBB.js"
}
}
}
+39
View File
@@ -0,0 +1,39 @@
import {
Axios,
AxiosError,
AxiosHeaders,
Cancel,
CancelToken,
CanceledError,
HttpStatusCode,
VERSION,
all,
axios_default,
formToJSON,
getAdapter,
isAxiosError,
isCancel,
mergeConfig,
spread,
toFormData
} from "./chunk-GGWXBEBB.js";
export {
Axios,
AxiosError,
AxiosHeaders,
Cancel,
CancelToken,
CanceledError,
HttpStatusCode,
VERSION,
all,
axios_default as default,
formToJSON,
getAdapter,
isAxiosError,
isCancel,
mergeConfig,
spread,
toFormData
};
//# sourceMappingURL=axios.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}
+2534
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
{"type":"module"}
+54
View File
@@ -0,0 +1,54 @@
import {
axios_default
} from "./chunk-GGWXBEBB.js";
// ../../../../../Desktop/uni-fans/node_modules/uniapp-axios-adapter/lib/index.esm.js
var getResponse = (res, config) => {
const { statusCode, errMsg } = res;
const response = {
...res,
status: statusCode,
statusText: errMsg,
config,
request: null
};
return response;
};
var uniAdapter = (config) => {
if (!uni) {
throw new Error("please use this in uni-app project!");
}
return new Promise((resolve, reject) => {
const { baseURL, url, headers, data, params } = config;
const uniConfig = {
...config,
url: baseURL + url,
header: headers
};
if (data || params) {
try {
uniConfig.data = JSON.parse(data || params);
} catch (e) {
uniConfig.data = data || params;
}
}
uni.request({
...uniConfig,
success(res) {
const response = getResponse(res, config);
resolve(response);
},
fail(res) {
const response = getResponse(res, config);
reject(response);
}
});
});
};
var UniAdapter = uniAdapter;
axios_default.defaults.adapter = uniAdapter;
export {
UniAdapter,
axios_default as default
};
//# sourceMappingURL=uniapp-axios-adapter.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../uniapp-axios-adapter/lib/index.esm.js"],
"sourcesContent": ["import axios from 'axios';\r\nexport { default } from 'axios';\r\n\r\nconst getResponse = (res, config) => {\r\n const { statusCode, errMsg } = res;\r\n const response = {\r\n ...res,\r\n status: statusCode,\r\n statusText: errMsg,\r\n config,\r\n request: null,\r\n };\r\n\r\n return response;\r\n};\r\n\r\nconst uniAdapter = (config) => {\r\n if (!uni) {\r\n throw new Error(\"please use this in uni-app project!\");\r\n }\r\n return new Promise((resolve, reject) => {\r\n const { baseURL, url, headers, data, params } = config;\r\n const uniConfig = {\r\n ...config,\r\n url: baseURL + url,\r\n header: headers,\r\n };\r\n\r\n if (data || params) {\r\n try {\r\n uniConfig.data = JSON.parse(data || params);\r\n } catch (e) {\r\n uniConfig.data = data || params;\r\n }\r\n }\r\n uni.request({\r\n ...uniConfig,\r\n success(res) {\r\n const response = getResponse(res, config);\r\n resolve(response);\r\n },\r\n fail(res) {\r\n const response = getResponse(res, config);\r\n reject(response);\r\n },\r\n });\r\n });\r\n};\r\n\r\nconst UniAdapter = uniAdapter;\r\n\r\naxios.defaults.adapter = uniAdapter;\r\n\r\nexport { UniAdapter };\r\n"],
"mappings": ";;;;;AAGA,IAAM,cAAc,CAAC,KAAK,WAAW;AACnC,QAAM,EAAE,YAAY,OAAO,IAAI;AAC/B,QAAM,WAAW;AAAA,IACf,GAAG;AAAA,IACH,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ;AAAA,IACA,SAAS;AAAA,EACX;AAEA,SAAO;AACT;AAEA,IAAM,aAAa,CAAC,WAAW;AAC7B,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,qCAAqC;AAAA,EACvD;AACA,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,EAAE,SAAS,KAAK,SAAS,MAAM,OAAO,IAAI;AAChD,UAAM,YAAY;AAAA,MAChB,GAAG;AAAA,MACH,KAAK,UAAU;AAAA,MACf,QAAQ;AAAA,IACV;AAEA,QAAI,QAAQ,QAAQ;AAClB,UAAI;AACF,kBAAU,OAAO,KAAK,MAAM,QAAQ,MAAM;AAAA,MAC5C,SAAS,GAAP;AACA,kBAAU,OAAO,QAAQ;AAAA,MAC3B;AAAA,IACF;AACA,QAAI,QAAQ;AAAA,MACV,GAAG;AAAA,MACH,QAAQ,KAAK;AACX,cAAM,WAAW,YAAY,KAAK,MAAM;AACxC,gBAAQ,QAAQ;AAAA,MAClB;AAAA,MACA,KAAK,KAAK;AACR,cAAM,WAAW,YAAY,KAAK,MAAM;AACxC,eAAO,QAAQ;AAAA,MACjB;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;AAEA,IAAM,aAAa;AAEnB,cAAM,SAAS,UAAU;",
"names": []
}
+6 -2
View File
@@ -62,11 +62,15 @@
"list": [ "list": [
{ {
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"text": "首页" "text": "首页",
"iconPath": "static/home.png",
"selectedIconPath": "static/home-active.png"
}, },
{ {
"pagePath": "pages/my/index", "pagePath": "pages/my/index",
"text": "我的" "text": "我的",
"iconPath": "static/profile.png",
"selectedIconPath": "static/profile-active.png"
} }
] ]
} }
+26 -4
View File
@@ -11,12 +11,18 @@
<!-- 功能按钮区域 --> <!-- 功能按钮区域 -->
<view class="function-area"> <view class="function-area">
<view class="function-btn rent" @click="goToRent"> <view class="function-btn rent" @click="goToRent">
<view class="btn-content">
<image class="btn-icon" src="../../static/scan-icon.png" mode="aspectFit" />
<text class="btn-text">扫码租借</text> <text class="btn-text">扫码租借</text>
</view>
<text class="btn-desc">快速租借风扇</text> <text class="btn-desc">快速租借风扇</text>
</view> </view>
<view class="function-btn return" @click="goToReturn"> <view class="function-btn return" @click="goToReturn">
<view class="btn-content">
<image class="btn-icon" src="../../static/scan-icon.png" mode="aspectFit" />
<text class="btn-text">扫码归还</text> <text class="btn-text">扫码归还</text>
</view>
<text class="btn-desc">轻松完成归还</text> <text class="btn-desc">轻松完成归还</text>
</view> </view>
</view> </view>
@@ -74,7 +80,7 @@
.temp-banner { .temp-banner {
height: 320rpx; height: 320rpx;
background: linear-gradient(135deg, #1976D2, #64B5F6); background: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(100, 181, 246, 0.8));
border-radius: 24rpx; border-radius: 24rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -117,10 +123,22 @@
transform: scale(0.98); transform: scale(0.98);
} }
.btn-content {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 8rpx;
.btn-icon {
width: 36rpx;
height: 36rpx;
margin-right: 8rpx;
}
.btn-text { .btn-text {
font-size: 36rpx; font-size: 36rpx;
font-weight: 500; font-weight: 500;
margin-bottom: 8rpx; }
} }
.btn-desc { .btn-desc {
@@ -130,14 +148,18 @@
&.rent { &.rent {
background: linear-gradient(135deg, #4CAF50, #81C784); background: linear-gradient(135deg, #4CAF50, #81C784);
.btn-text, .btn-desc {
.btn-text,
.btn-desc {
color: #fff; color: #fff;
} }
} }
&.return { &.return {
background: linear-gradient(135deg, #FF9800, #FFB74D); background: linear-gradient(135deg, #FF9800, #FFB74D);
.btn-text, .btn-desc {
.btn-text,
.btn-desc {
color: #fff; color: #fff;
} }
} }
+13 -11
View File
@@ -29,7 +29,7 @@
<view class="function-item" @click="navigateTo('/pages/order/index')"> <view class="function-item" @click="navigateTo('/pages/order/index')">
<view class="item-left"> <view class="item-left">
<view class="icon-wrap order"> <view class="icon-wrap order">
<view class="icon-placeholder"></view> <!-- <view class="icon-placeholder"></view> -->
</view> </view>
<text class="title">租借记录</text> <text class="title">租借记录</text>
</view> </view>
@@ -40,7 +40,7 @@
<view class="function-item" @click="navigateTo('/pages/feedback/index')"> <view class="function-item" @click="navigateTo('/pages/feedback/index')">
<view class="item-left"> <view class="item-left">
<view class="icon-wrap feedback"> <view class="icon-wrap feedback">
<view class="icon-placeholder"></view> <!-- <view class="icon-placeholder"></view> -->
</view> </view>
<text class="title">投诉与建议</text> <text class="title">投诉与建议</text>
</view> </view>
@@ -51,7 +51,7 @@
<view class="function-item" @click="navigateTo('/pages/help/index')"> <view class="function-item" @click="navigateTo('/pages/help/index')">
<view class="item-left"> <view class="item-left">
<view class="icon-wrap help"> <view class="icon-wrap help">
<view class="icon-placeholder"></view> <!-- <view class="icon-placeholder"></view> -->
</view> </view>
<text class="title">帮助中心</text> <text class="title">帮助中心</text>
</view> </view>
@@ -116,7 +116,7 @@ export default {
height: 120rpx; height: 120rpx;
border-radius: 60rpx; border-radius: 60rpx;
overflow: hidden; overflow: hidden;
background: #fff; background: url('../../static/head.png') center/cover no-repeat;
margin-right: 30rpx; margin-right: 30rpx;
border: 4rpx solid rgba(255,255,255,0.3); border: 4rpx solid rgba(255,255,255,0.3);
@@ -233,15 +233,15 @@ export default {
.icon-wrap { .icon-wrap {
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
border-radius: 16rpx;
margin-right: 20rpx; margin-right: 20rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&.order { &.order {
background: #E3F2FD; background: url('../../static/jl.png') center/cover no-repeat;
color: #1976D2; width: 50rpx;
height: 50rpx;
} }
&.deposit { &.deposit {
@@ -250,13 +250,15 @@ export default {
} }
&.feedback { &.feedback {
background: #E8F5E9; background: url('../../static/complaint.png') center/cover no-repeat;
color: #4CAF50; width: 50rpx;
height: 50rpx;
} }
&.help { &.help {
background: #F3E5F5; background: url('../../static/hlep.png') center/cover no-repeat;
color: #9C27B0; width: 50rpx;
height: 50rpx;
} }
.icon-placeholder { .icon-placeholder {
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB