sytle:图片
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"type":"module"}
|
||||||
@@ -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
|
||||||
@@ -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": []
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,13 +11,19 @@
|
|||||||
<!-- 功能按钮区域 -->
|
<!-- 功能按钮区域 -->
|
||||||
<view class="function-area">
|
<view class="function-area">
|
||||||
<view class="function-btn rent" @click="goToRent">
|
<view class="function-btn rent" @click="goToRent">
|
||||||
<text class="btn-text">扫码租借</text>
|
<view class="btn-content">
|
||||||
<text class="btn-desc">快速租借风扇</text>
|
<image class="btn-icon" src="../../static/scan-icon.png" mode="aspectFit" />
|
||||||
|
<text class="btn-text">扫码租借</text>
|
||||||
|
</view>
|
||||||
|
<text class="btn-desc">快速租借风扇</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="function-btn return" @click="goToReturn">
|
<view class="function-btn return" @click="goToReturn">
|
||||||
<text class="btn-text">扫码归还</text>
|
<view class="btn-content">
|
||||||
<text class="btn-desc">轻松完成归还</text>
|
<image class="btn-icon" src="../../static/scan-icon.png" mode="aspectFit" />
|
||||||
|
<text class="btn-text">扫码归还</text>
|
||||||
|
</view>
|
||||||
|
<text class="btn-desc">轻松完成归还</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -73,26 +79,26 @@
|
|||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
|
||||||
.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;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
box-shadow: 0 4rpx 20rpx rgba(25, 118, 210, 0.2);
|
box-shadow: 0 4rpx 20rpx rgba(25, 118, 210, 0.2);
|
||||||
|
|
||||||
.banner-text {
|
.banner-text {
|
||||||
font-size: 48rpx;
|
font-size: 48rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 16rpx;
|
margin-bottom: 16rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner-subtitle {
|
.banner-subtitle {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,45 +108,61 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.function-btn {
|
.function-btn {
|
||||||
width: 320rpx;
|
width: 320rpx;
|
||||||
height: 180rpx;
|
height: 180rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.06);
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
|
||||||
transition: all 0.3s;
|
transition: all 0.3s;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.98);
|
transform: scale(0.98);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-text {
|
.btn-content {
|
||||||
font-size: 36rpx;
|
display: flex;
|
||||||
font-weight: 500;
|
align-items: center;
|
||||||
margin-bottom: 8rpx;
|
justify-content: center;
|
||||||
}
|
margin-bottom: 8rpx;
|
||||||
|
|
||||||
.btn-desc {
|
.btn-icon {
|
||||||
font-size: 24rpx;
|
width: 36rpx;
|
||||||
color: #666;
|
height: 36rpx;
|
||||||
}
|
margin-right: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
&.rent {
|
.btn-text {
|
||||||
background: linear-gradient(135deg, #4CAF50, #81C784);
|
font-size: 36rpx;
|
||||||
.btn-text, .btn-desc {
|
font-weight: 500;
|
||||||
color: #fff;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&.return {
|
.btn-desc {
|
||||||
background: linear-gradient(135deg, #FF9800, #FFB74D);
|
font-size: 24rpx;
|
||||||
.btn-text, .btn-desc {
|
color: #666;
|
||||||
color: #fff;
|
}
|
||||||
}
|
|
||||||
}
|
&.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
|
After Width: | Height: | Size: 175 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 3.1 KiB |