!1 上传图片

Merge pull request !1 from 田柯/tk
This commit is contained in:
jiang
2025-01-06 05:59:57 +00:00
committed by Gitee
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": [
{
"pagePath": "pages/index/index",
"text": "首页"
"text": "首页",
"iconPath": "static/home.png",
"selectedIconPath": "static/home-active.png"
},
{
"pagePath": "pages/my/index",
"text": "我的"
"text": "我的",
"iconPath": "static/profile.png",
"selectedIconPath": "static/profile-active.png"
}
]
}
+78 -56
View File
@@ -11,13 +11,19 @@
<!-- 功能按钮区域 -->
<view class="function-area">
<view class="function-btn rent" @click="goToRent">
<text class="btn-text">扫码租借</text>
<text class="btn-desc">快速租借风扇</text>
<view class="btn-content">
<image class="btn-icon" src="../../static/scan-icon.png" mode="aspectFit" />
<text class="btn-text">扫码租借</text>
</view>
<text class="btn-desc">快速租借风扇</text>
</view>
<view class="function-btn return" @click="goToReturn">
<text class="btn-text">扫码归还</text>
<text class="btn-desc">轻松完成归还</text>
<view class="btn-content">
<image class="btn-icon" src="../../static/scan-icon.png" mode="aspectFit" />
<text class="btn-text">扫码归还</text>
</view>
<text class="btn-desc">轻松完成归还</text>
</view>
</view>
@@ -73,26 +79,26 @@
padding: 20rpx;
.temp-banner {
height: 320rpx;
background: linear-gradient(135deg, #1976D2, #64B5F6);
border-radius: 24rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
box-shadow: 0 4rpx 20rpx rgba(25, 118, 210, 0.2);
height: 320rpx;
background: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(100, 181, 246, 0.8));
border-radius: 24rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #fff;
box-shadow: 0 4rpx 20rpx rgba(25, 118, 210, 0.2);
.banner-text {
font-size: 48rpx;
font-weight: bold;
margin-bottom: 16rpx;
}
.banner-text {
font-size: 48rpx;
font-weight: bold;
margin-bottom: 16rpx;
}
.banner-subtitle {
font-size: 28rpx;
opacity: 0.9;
}
.banner-subtitle {
font-size: 28rpx;
opacity: 0.9;
}
}
}
@@ -102,45 +108,61 @@
justify-content: space-between;
.function-btn {
width: 320rpx;
height: 180rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #fff;
border-radius: 20rpx;
box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.06);
transition: all 0.3s;
width: 320rpx;
height: 180rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #fff;
border-radius: 20rpx;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
transition: all 0.3s;
&:active {
transform: scale(0.98);
}
&:active {
transform: scale(0.98);
}
.btn-text {
font-size: 36rpx;
font-weight: 500;
margin-bottom: 8rpx;
}
.btn-content {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 8rpx;
.btn-desc {
font-size: 24rpx;
color: #666;
}
.btn-icon {
width: 36rpx;
height: 36rpx;
margin-right: 8rpx;
}
&.rent {
background: linear-gradient(135deg, #4CAF50, #81C784);
.btn-text, .btn-desc {
color: #fff;
}
}
.btn-text {
font-size: 36rpx;
font-weight: 500;
}
}
&.return {
background: linear-gradient(135deg, #FF9800, #FFB74D);
.btn-text, .btn-desc {
color: #fff;
}
}
.btn-desc {
font-size: 24rpx;
color: #666;
}
&.rent {
background: linear-gradient(135deg, #4CAF50, #81C784);
.btn-text,
.btn-desc {
color: #fff;
}
}
&.return {
background: linear-gradient(135deg, #FF9800, #FFB74D);
.btn-text,
.btn-desc {
color: #fff;
}
}
}
}
+13 -11
View File
@@ -29,7 +29,7 @@
<view class="function-item" @click="navigateTo('/pages/order/index')">
<view class="item-left">
<view class="icon-wrap order">
<view class="icon-placeholder"></view>
<!-- <view class="icon-placeholder"></view> -->
</view>
<text class="title">租借记录</text>
</view>
@@ -40,7 +40,7 @@
<view class="function-item" @click="navigateTo('/pages/feedback/index')">
<view class="item-left">
<view class="icon-wrap feedback">
<view class="icon-placeholder"></view>
<!-- <view class="icon-placeholder"></view> -->
</view>
<text class="title">投诉与建议</text>
</view>
@@ -51,7 +51,7 @@
<view class="function-item" @click="navigateTo('/pages/help/index')">
<view class="item-left">
<view class="icon-wrap help">
<view class="icon-placeholder"></view>
<!-- <view class="icon-placeholder"></view> -->
</view>
<text class="title">帮助中心</text>
</view>
@@ -116,7 +116,7 @@ export default {
height: 120rpx;
border-radius: 60rpx;
overflow: hidden;
background: #fff;
background: url('../../static/head.png') center/cover no-repeat;
margin-right: 30rpx;
border: 4rpx solid rgba(255,255,255,0.3);
@@ -233,15 +233,15 @@ export default {
.icon-wrap {
width: 80rpx;
height: 80rpx;
border-radius: 16rpx;
margin-right: 20rpx;
display: flex;
align-items: center;
justify-content: center;
&.order {
background: #E3F2FD;
color: #1976D2;
background: url('../../static/jl.png') center/cover no-repeat;
width: 50rpx;
height: 50rpx;
}
&.deposit {
@@ -250,13 +250,15 @@ export default {
}
&.feedback {
background: #E8F5E9;
color: #4CAF50;
background: url('../../static/complaint.png') center/cover no-repeat;
width: 50rpx;
height: 50rpx;
}
&.help {
background: #F3E5F5;
color: #9C27B0;
background: url('../../static/hlep.png') center/cover no-repeat;
width: 50rpx;
height: 50rpx;
}
.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