diff --git a/src/components/mytabbar/mytabbar.scss b/src/components/mytabbar/mytabbar.scss
new file mode 100644
index 0000000..cc092dc
--- /dev/null
+++ b/src/components/mytabbar/mytabbar.scss
@@ -0,0 +1,39 @@
+/* 主要颜色 */
+$base: #00aa7f; // 基础颜色
+.page-total{
+ position: fixed;
+ left: 0;
+ bottom: 0;
+ width: 100%;
+ // height: 100rpx;
+ }
+ .tab-list{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ height: 120rpx;
+ padding-bottom: 10px;
+ background-color: #FFFFFF;
+ .list{
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ width: 20%;
+ height: 120rpx;
+ image{
+ width: 48rpx;
+ height: 48rpx;
+ background-color: white;
+ }
+ text{
+ color: #333333;
+ font-size: 24rpx;
+ margin-top: 10rpx;
+ }
+ .action{
+ color: $base;
+ }
+ }
+ }
\ No newline at end of file
diff --git a/src/components/mytabbar/mytabbar.vue b/src/components/mytabbar/mytabbar.vue
new file mode 100644
index 0000000..6888fa7
--- /dev/null
+++ b/src/components/mytabbar/mytabbar.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
diff --git a/src/components/mytabbar/mytabbar2.vue b/src/components/mytabbar/mytabbar2.vue
new file mode 100644
index 0000000..acb9b1d
--- /dev/null
+++ b/src/components/mytabbar/mytabbar2.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
diff --git a/src/homePages/reservation/index.vue b/src/homePages/reservation/index.vue
index cb0ba4f..77dcc2f 100644
--- a/src/homePages/reservation/index.vue
+++ b/src/homePages/reservation/index.vue
@@ -69,7 +69,7 @@
>
暂未绑定车辆
- 去绑定
+
@@ -125,12 +125,15 @@
/>
-
+
+
+
+
@@ -166,8 +169,8 @@
\ No newline at end of file
diff --git a/src/minePages/paySuccess/index.vue b/src/minePages/paySuccess/index.vue
index b4b1969..ea199d1 100644
--- a/src/minePages/paySuccess/index.vue
+++ b/src/minePages/paySuccess/index.vue
@@ -19,7 +19,7 @@
订单金额
- ¥{{order.amount}}
+ ¥{{order.amount/100}}
车牌号
diff --git a/src/minePages/payment/index.vue b/src/minePages/payment/index.vue
index e31948e..057bc0e 100644
--- a/src/minePages/payment/index.vue
+++ b/src/minePages/payment/index.vue
@@ -12,7 +12,7 @@
付款金额
¥
- {{payqs.total}}
+ {{payqs.total/100}}
选择支付方式
@@ -53,8 +53,9 @@
payqs.goodsDetail[0].merchantGoodsId = opt.orderNo
payqs.goodsDetail[0].unitPrice = opt.amount*1
- payqs.description = `${opt.plateNum}在${opt.stationName}换电`
- payqs.attach.description = `${opt.plateNum}在${opt.stationName}换电`
+ payqs.description = `${opt.plateNum}在${opt.stationName}换电` //??
+ payqs.attach.description = `${opt.plateNum}在${opt.stationName}换电` //??
+
// payqs.detail.costPrice = opt.amount
// payqs.detail.goodsDetail.unitPrice = opt.amount
@@ -152,8 +153,9 @@
})
})
}else{
- payqs.attach = JSON.stringify(payqs.attach)
- payment(payqs).then((rps:any) => {
+ //payqs.attach = JSON.stringify(payqs.attach)
+ let objpay = Object.assign({},payqs,{attach:JSON.stringify(payqs.attach)})
+ payment(objpay).then((rps:any) => {
//#ifdef MP-WEIXIN
wx.requestPayment({
diff --git a/src/minePages/recharge/index.vue b/src/minePages/recharge/index.vue
index d83a7af..7931276 100644
--- a/src/minePages/recharge/index.vue
+++ b/src/minePages/recharge/index.vue
@@ -34,7 +34,7 @@
+
+
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index 301a84a..f360be9 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -78,32 +78,33 @@
"navigationStyle": "custom" //去除小程序顶部导航栏
},
"tabBar": {
- //"custom":true,
+ //"custom":false
"color": "#404244",
"selectedColor": "#00aa00",
"borderStyle": "black",
"backgroundColor": "#ffffff",
- // "midButton":{ //小程序不支持
- // "width": "100px",
- // "height": "80px",
- // //"pagePath": "pages/scanCode/index",
- // "iconPath": "static/img/tabbar/saom.png",
- // "backgroundImage":"static/img/tabbar/saom.png",
- // //"selectedIconPath": "static/img/tabbar/saom.png",
- // "text": "扫码换电"
- // },
- "list": [{
+ "midButton":{ //小程序不支持
+ "width": "100px",
+ "height": "80px",
+ //"pagePath": "pages/scanCode/index",
+ "iconPath": "static/img/tabbar/saom.png",
+ "backgroundImage":"static/img/tabbar/saom.png",
+ //"selectedIconPath": "static/img/tabbar/saom.png",
+ "text": "扫码换电"
+ },
+ "list": [
+ {
"pagePath": "pages/home/index",
- "iconPath": "static/img/tabbar/home.png",
- "selectedIconPath": "static/img/tabbar/home.png",
+ "iconPath": "static/img/tabbar/home.png",
+ "ielectedIconPath": "static/img/tabbar/home.png",
"text": "首页"
},
- {
- "pagePath":"pages/scanCode/index",
- "iconPath": "static/img/tabbar/saom.png",
- "selectedIconPath": "static/img/tabbar/saom.png",
- "text": "扫码换电"
- },
+ // {
+ // "pagePath":"pages/scanCode/index",
+ // "iconPath": "static/img/tabbar/saom.png",
+ // "selectedIconPath": "static/img/tabbar/saom.png",
+ // "text": "扫码换电"
+ // },
{
"pagePath": "pages/mine/index",
"iconPath": "static/img/tabbar/wode.png",
diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 5ceb067..fc980a1 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -101,16 +101,20 @@
-->
- {{hdzname}}
+ {{maphdzname}}
营业时间:8:30 - 17:30
- 距您 4.5km
- 导航
+ 距您约 {{getMapDistance(latitude,longitude,marketLat,marketLng)}}km
+
+ 预约
+ 导航
+
+
- 预 约
- 预约
+ 预 约
+ 预 约
伊特换电使用协议
-
+
{{xyobj.title}}
-
-
+
+
@@ -140,11 +144,16 @@
+
+
diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
index 63fe385..1da6523 100644
--- a/src/pages/mine/index.vue
+++ b/src/pages/mine/index.vue
@@ -171,6 +171,8 @@
-->
+
+
+
+
diff --git a/src/uni_modules/cc-myTabbar/package.json b/src/uni_modules/cc-myTabbar/package.json
new file mode 100644
index 0000000..dfb3c1a
--- /dev/null
+++ b/src/uni_modules/cc-myTabbar/package.json
@@ -0,0 +1,86 @@
+{
+ "id": "cc-myTabbar",
+ "displayName": "自定义tabbar底部tabbar凸起tabbar兼容苹果刘海屏小程序和APP",
+ "version": "2.2.4",
+ "description": "自定义tabbar底部tabbar凸起tabbar兼容苹果刘海屏Home键小程序和APP 可自定义tabbar图片文字大小及位置",
+ "keywords": [
+ "tabbar",
+ "自定义tabbar",
+ "底部导航",
+ "自定义",
+ "凸起导航"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.8.0"
+ },
+ "dcloudext": {
+ "type": "component-vue",
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y",
+ "alipay": "n"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ },
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "y"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y",
+ "钉钉": "y",
+ "快手": "y",
+ "飞书": "y",
+ "京东": "y"
+ },
+ "快应用": {
+ "华为": "y",
+ "联盟": "y"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/uni_modules/cc-myTabbar/readme.md b/src/uni_modules/cc-myTabbar/readme.md
new file mode 100644
index 0000000..46e05e5
--- /dev/null
+++ b/src/uni_modules/cc-myTabbar/readme.md
@@ -0,0 +1,89 @@
+# cc-myTabbar
+
+
+##uniapp专属精品组件页面模板(由前端组件开发出品)精品组件页面模板
+
+###●组件模板规划:
+由前端组件开发出品的精品组件页面模板,将陆续发布,预计高达约几百种供您使用,是快速快发项目、创业的必备精品。
+
+合集地址: uni-app模板合集地址:(https://ext.dcloud.net.cn/publisher?id=274945) 如查看全部页面模板,请前往上述uniapp插件市场合集地址;
+
+###●组件模板效果图:
+可下载项目后预览,效果图见右侧图片;
+
+###●组件模板费用:
+学习:免费下载,进行学习,无费用;
+
+使用/商用:本页面地址赞赏10元后,可终身商用;
+
+###●组件模板使用版权/商用:
+本组件模板免费下载可供学习,如需使用及商用,请在本组件页面模板进行赞赏10元
+
+(仅需10元获取精品页面模板代码-物有所值,1个组件页面市场价100元 )
+
+赞赏10后(当前项目产生赞赏订单可追溯)即可终身商用当前本地址下载的页面模版代码,不同下载地址需进行不同的赞赏。(不赞赏就进行商用使用者,面临侵权!保留追究知识产权法律责任!后果自负!)
+
+
+
+### 我的技术公众号(私信可加前端技术交流群)
+
+群内气氛挺不错的,应该或许可能大概,算是为数不多的,专搞技术的前端群,偶尔聊天摸鱼
+
+
+
+
+#### 使用方法
+```使用方法
+
+
+
+
+onReady() {
+ uni.hideTabBar()
+}
+
+
+page {
+ padding-bottom: 140rpx;
+}
+```
+
+#### HTML代码实现部分
+```html
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
diff --git a/src/uni_modules/cc-myTabbar/static/img/home.png b/src/uni_modules/cc-myTabbar/static/img/home.png
new file mode 100644
index 0000000..dbb9c5f
Binary files /dev/null and b/src/uni_modules/cc-myTabbar/static/img/home.png differ
diff --git a/src/uni_modules/cc-myTabbar/static/img/saom.png b/src/uni_modules/cc-myTabbar/static/img/saom.png
new file mode 100644
index 0000000..cb1cca4
Binary files /dev/null and b/src/uni_modules/cc-myTabbar/static/img/saom.png differ
diff --git a/src/uni_modules/cc-myTabbar/static/img/wode.png b/src/uni_modules/cc-myTabbar/static/img/wode.png
new file mode 100644
index 0000000..165e83a
Binary files /dev/null and b/src/uni_modules/cc-myTabbar/static/img/wode.png differ
diff --git a/src/uni_modules/zero-loading/changelog.md b/src/uni_modules/zero-loading/changelog.md
new file mode 100644
index 0000000..af6947d
--- /dev/null
+++ b/src/uni_modules/zero-loading/changelog.md
@@ -0,0 +1,51 @@
+## 1.4.2(2025-04-03)
+## 增加两个动画
+| locating | 定位 (自定义颜色) |
+| photo | 照片 (自定义颜色) |
+## 1.4.1(2024-07-02)
+### 1. 增加动画equal(等边), wobble(摇摆)
+### 2. 原来的triangle(三角)改为surround(环绕)
+### 3. 新增可自定义颜色项
+## 1.4.0(2024-06-28)
+
+## 增加 loading 加载文字提醒配置项,默认 false
+
+## 1.3.2(2023-10-31)
+
+修改遮罩默认透明度为 0.1
+
+## 1.3.1(2023-10-31)
+
+## 新增支持,自定义动画颜色(仅部分动画支持)
+
+## 新增动画-annulus(圆环)
+
+## 1.3.0(2023-08-11)
+
+支持 vue3 使用, 增加动画类型 radar(雷达)
+
+## 1.2.2(2023-06-12)
+
+增加 maskOpacity, maskMini, maskDark 自定义参数, 提供更丰富的自定义遮罩层能力
+
+## 1.2.1(2022-09-09)
+
+增加齿轮动画 type=gear
+
+## 1.2.0(2022-05-27)
+
+1. 增加加载类型-剑气(sword),原子(atom)
+2. 默认类型改为 atom
+3. 遮罩透明度调整
+
+## 1.1.1(2022-04-02)
+
+更新使用说明
+
+## 1.1.0(2022-02-23)
+
+增加 type="love" 的心形加载动画
+
+## 1.0.0(2022-01-28)
+
+首次发布
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-annulus.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-annulus.vue
new file mode 100644
index 0000000..260301f
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-annulus.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-atom.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-atom.vue
new file mode 100644
index 0000000..3b3b75e
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-atom.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-bounce.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-bounce.vue
new file mode 100644
index 0000000..860d23d
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-bounce.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-circle.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-circle.vue
new file mode 100644
index 0000000..958bb14
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-circle.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-equal.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-equal.vue
new file mode 100644
index 0000000..b68b86c
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-equal.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-eyes.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-eyes.vue
new file mode 100644
index 0000000..f7a18d1
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-eyes.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-gear.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-gear.vue
new file mode 100644
index 0000000..19ce873
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-gear.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-locating.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-locating.vue
new file mode 100644
index 0000000..7e140ec
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-locating.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-love.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-love.vue
new file mode 100644
index 0000000..9b5e6cd
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-love.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-photo.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-photo.vue
new file mode 100644
index 0000000..3c9b383
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-photo.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-pulse.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-pulse.vue
new file mode 100644
index 0000000..9c32c7e
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-pulse.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-radar.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-radar.vue
new file mode 100644
index 0000000..ebafa85
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-radar.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-sun.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-sun.vue
new file mode 100644
index 0000000..ed079d8
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-sun.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-surround.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-surround.vue
new file mode 100644
index 0000000..0e47a11
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-surround.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-sword.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-sword.vue
new file mode 100644
index 0000000..8efb848
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-sword.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/static/loading-wobble.vue b/src/uni_modules/zero-loading/components/zero-loading/static/loading-wobble.vue
new file mode 100644
index 0000000..d8f6283
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/static/loading-wobble.vue
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/components/zero-loading/zero-loading.vue b/src/uni_modules/zero-loading/components/zero-loading/zero-loading.vue
new file mode 100644
index 0000000..62db5eb
--- /dev/null
+++ b/src/uni_modules/zero-loading/components/zero-loading/zero-loading.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
+
+
diff --git a/src/uni_modules/zero-loading/package.json b/src/uni_modules/zero-loading/package.json
new file mode 100644
index 0000000..17f7d3e
--- /dev/null
+++ b/src/uni_modules/zero-loading/package.json
@@ -0,0 +1,83 @@
+{
+ "id": "zero-loading",
+ "displayName": "zero-loading(加载动画)",
+ "version": "1.4.2",
+ "description": "纯css加载动画, 一个标签元素即可实现炫酷的全屏loading效果,支持vue2,vue3",
+ "keywords": [
+ "loading",
+ "加载动画",
+ "css动画",
+ "加载"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ },
+"dcloudext": {
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "插件不采集任何数据",
+ "permissions": "无"
+ },
+ "npmurl": "",
+ "type": "component-vue"
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y",
+ "alipay": "n"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ },
+ "App": {
+ "app-vue": "u",
+ "app-nvue": "u",
+ "app-harmony": "u",
+ "app-uvue": "u"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "u",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/uni_modules/zero-loading/readme.md b/src/uni_modules/zero-loading/readme.md
new file mode 100644
index 0000000..2f14f69
--- /dev/null
+++ b/src/uni_modules/zero-loading/readme.md
@@ -0,0 +1,69 @@
+# zero-loading
+
+> 仅测试于 vue2, vue3, 微信小程序. 其他平台自行测试
+
+## 使用方法
+
+导入 `uni_modules` 后直接使用即可
+
+提供多种加载动画类型,传入 type 改变 loading 样式,不传默认 circle
+
+### 全屏使用
+
+```html
+
+```
+
+### 局部使用
+
+**父元素的 `position` 记得改为 `relative` 不然可能影响效果**
+
+```html
+
+```
+
+## 参数说明
+
+| 参数 | 类型 | 默认值 | 描述 |
+| ----------- | -------- | --------- | ---------------------------------------------- |
+| type | String | atom | 样式 |
+| position | String | fixed | 定位方式 |
+| zIndex | Number | 9 | |
+| mask | Boolean | false | 是否需要遮罩 (默认为全屏遮罩,背景色默认为黑色) |
+| maskOpacity | Number | 0.1 | 遮罩透明度 |
+| maskMini | Boolean | false | 传入 true 时,使用小遮罩 |
+| maskDark | Boolean | true | 传入 false 时,遮罩背景色为白色 |
+| color | String | #0396FF | 自定义颜色,仅部分支持 |
+| showText | showText | false | 是否显示文字 |
+| text | String | 加载中... | 文本内容 |
+| textSize | String | 28rpx | 文字大小 |
+| textColor | String | #333333 | 文字颜色 |
+| textGap | String | 40rpx | 文字与 loading 动画的间距 |
+
+### type 可选值:
+
+| type 值 | 描述 |
+| -------- | ----------------- |
+| locating | 定位 (自定义颜色) |
+| photo | 照片 (自定义颜色) |
+| equal | 等边 (自定义颜色) |
+| wobble | 摇摆 (自定义颜色) |
+| annulus | 圆环 (自定义颜色) |
+| sword | 剑气 (自定义颜色) |
+| atom | 原子 (自定义颜色) |
+| pulse | 脉冲 (自定义颜色) |
+| circle | 圆圈 (自定义颜色) |
+| eyes | 眼睛 |
+| surround | 环绕 |
+| bounce | 弹跳 |
+| radar | 雷达 |
+| gear | 齿轮 |
+| love | 爱心 |
+| sun | 太阳 |
+
+插件预览:
+
+
+> 小程序搜索: 零技术
+
+> 预览的小程序不一定能及时更新当前插件
diff --git a/src/utils/commen.ts b/src/utils/commen.ts
index 031e930..99975b7 100644
--- a/src/utils/commen.ts
+++ b/src/utils/commen.ts
@@ -1 +1,36 @@
-export const BarHeight = uni.getSystemInfoSync().statusBarHeight
\ No newline at end of file
+export const BarHeight = uni.getSystemInfoSync().statusBarHeight
+
+//保留两位小数
+export function setNum(v?:any){
+ if(v){
+ v = v+''
+ //替换掉数字和小数点 . 之外的字符
+ v = v.replace(/[^\d.]/g,'')
+ //把2个以上的小数点 . 替换成一个小数点 .
+ v = v.replace(/\.{2,}/g,'.')
+ //保证第一个字符为数字而不是小数点 .
+ v = v.replace(/^\./g,'')
+ //保证最后一个字符为数字而不是小数点 .
+ //v = v.replace(/\.$/g,'')
+ //保证小数点 . 只出现一次,而不能出现两次以上
+ v = v.replace('.','$#$').replace(/\./g,'').replace('$#$','.')
+ //只能输入两个小数
+ v = v.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')
+
+ if(/^0+[1-9]$/.test(v) || /^0+\d+\./.test(v)) {
+ v = v.replace(/^0+/,'')
+ }
+ if(/^(0+\.)/.test(v) || /^0+\.$/.test(v) || /^0+$/.test(v)) {
+ v = v.replace(/^0+/,'0')
+ }
+ return v
+ }
+ return ''
+}
+
+//是否是今天
+//date : new Date(2025-04-01)
+export function isToday(date:any) {
+ const today = new Date()
+ return date.toISOString().slice(0, 10) === today.toISOString().slice(0, 10)
+}
\ No newline at end of file
diff --git a/src/utils/config.ts b/src/utils/config.ts
index 1e1fcfb..d90e703 100644
--- a/src/utils/config.ts
+++ b/src/utils/config.ts
@@ -1,7 +1,6 @@
const ENV = process.env.APP_ENV || process.env.NODE_ENV;
-const confing = {
- development: {
+const development = {
// #ifdef MP-WEIXIN
//apiBaseUrl:'https://587910rq36.zicp.fun' //'http://192.168.110.73:8082/' //https://xcjf.56365.cc/' //'/fetch'//网站域名接口地址参考,发布小程序和APP时使用
// #endif
@@ -9,16 +8,18 @@ const confing = {
// #ifdef H5
//apiBaseUrl:'https://587910rq36.zicp.fun' //'/fetch/' //'http://192.168.110.73:8082/' //https://xcjf.56365.cc/' //'/fetch'//网站域名接口地址参考,发布小程序和APP时使用
// #endif
- apiBaseUrl:'http://192.168.5.213:9100/gateway'
- },
- production: {
- //apiBaseUrl:'http://124.239.176.15:8888',
- apiBaseUrl:'https://api.evo-techina.com'
- //API_URL:'http://chuangcheng.56365.cc' //测试环境
- }
+ //apiBaseUrl:'http://192.168.5.213:9100/gateway'
+ apiBaseUrl:'http://192.168.5.14:9104'
}
+const production = {
+ //apiBaseUrl:'http://124.239.176.15:8888',
+ apiBaseUrl:'https://api.evo-techina.com'
+ //API_URL:'http://chuangcheng.56365.cc' //测试环境
+}
+
+
export default {
ENV,
- ...confing[ENV]
+ config:ENV == 'production'?production:development
}
\ No newline at end of file
diff --git a/src/utils/configtab.ts b/src/utils/configtab.ts
new file mode 100644
index 0000000..1c8b21c
--- /dev/null
+++ b/src/utils/configtab.ts
@@ -0,0 +1,24 @@
+export default {
+ color: "#161616",
+ selectedColor: "#161616",
+ borderStyle: "black",
+ backgroundColor: "#ffffff",
+ list: [{
+ pagePath: "/pages/home/index",
+ iconPath: "/static/img/tabbar/home.png",
+ selectedIconPath: "/static/img/tabbar/home.png",
+ text: "首页",
+ openType: 'navigate', //新版本新增,页面被打开方式,默认为reLaunch
+ //dot: 1 //新版本新增参数,详细看页面最下方使用说明
+ }, {
+ pagePath: "/pages/scanCode/index",
+ iconPath: "/static/img/tabbar/saom.png",
+ selectedIconPath: "/static/img/tabbar/saom.png",
+ text: "扫码换电"
+ }, {
+ pagePath: "/pages/mine/index",
+ iconPath: "/static/img/tabbar/wode.png",
+ selectedIconPath: "/static/img/tabbar/wode.png",
+ text: "我的"
+ }]
+}
\ No newline at end of file
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 912adcc..808de0a 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -28,8 +28,8 @@ export function request(method:any,url:string,data?:any,isLoading?:any){
httpList.push(
uni.request({
header:headers,
- //url:'http://192.168.5.200:9100/gateway'+ url,//`${conf.apiBaseUrl}${url}`,
- //url:'http://192.168.5.14:9104'+ url,
+ //url:`${conf.config.apiBaseUrl}${url}`,
+ //url:'http://192.168.5.200:9104'+ url,
url:'https://api.evo-techina.com'+url,
method,
data:data,
diff --git a/src/utils/service.ts b/src/utils/service.ts
index db467e0..d5539b9 100644
--- a/src/utils/service.ts
+++ b/src/utils/service.ts
@@ -236,4 +236,14 @@ export function balancpay(parameter:Bapay){
//查询用户是否开通余额
export function isktbal(wuid:string){
return request('post_form','/wechat/wechat/user/wallet/isOpenAccount',{wuid})
+}
+
+//开始换电
+export function starthz(wuid:string,orderId:string){
+ return request('post_form','/wechat/order/swap/startSwap',{wuid,orderId})
+}
+
+//查询启动换电是否成功
+export function gethzmsg(wuid:string,orderId:string){
+ return request('post_form','/wechat/order/swap/getStartSwap',{wuid,orderId},false)
}
\ No newline at end of file