Эх сурвалжийг харах

用户端小程序发票抬头管理,uniapp版本更新等

skyline 19 цаг өмнө
parent
commit
c1d0d41742
25 өөрчлөгдсөн 108 нэмэгдсэн , 68 устгасан
  1. 27 14
      charge-front/package.json
  2. 3 3
      charge-front/src/App.vue
  3. 1 1
      charge-front/src/components/order-coupon-detail/order-coupon-detail.vue
  4. 3 3
      charge-front/src/components/station-charge-coupon/station-charge-coupon.vue
  5. 1 1
      charge-front/src/components/station-coupon/station-coupon.vue
  6. 5 1
      charge-front/src/components/style-checkbox/style-checkbox.vue
  7. 2 2
      charge-front/src/pages-charge/appointment/appointment-backup.vue
  8. 3 3
      charge-front/src/pages-charge/appointment/appointment.vue
  9. 4 4
      charge-front/src/pages-charge/camera/camera.vue
  10. 3 3
      charge-front/src/pages-charge/card/card.vue
  11. 7 1
      charge-front/src/pages-charge/codeing/codeing.vue
  12. 2 2
      charge-front/src/pages-charge/coupon-center/coupon-center.vue
  13. 2 2
      charge-front/src/pages-charge/discount/discount.vue
  14. 4 4
      charge-front/src/pages-charge/machines/charge-machine/charge-machine.vue
  15. 3 3
      charge-front/src/pages-charge/machines/machines.vue
  16. 4 4
      charge-front/src/pages-charge/machines/price-desc/price-desc.vue
  17. 4 4
      charge-front/src/pages-charge/ordering/ordering.vue
  18. 4 4
      charge-front/src/pages-user/invoice-title.vue
  19. 5 1
      charge-front/src/pages-user/profile-edit/profile-edit.vue
  20. 1 1
      charge-front/src/pages-user/wallet/wallet.vue
  21. 6 1
      charge-front/src/pages/index/index.vue
  22. 1 1
      charge-front/src/pages/user/user.vue
  23. 6 4
      charge-front/src/styles/layout.scss
  24. 0 1
      charge-front/tsconfig.json
  25. 7 0
      charge-front/vite.config.ts

+ 27 - 14
charge-front/package.json

@@ -9,22 +9,35 @@
     "type-check": "vue-tsc --noEmit"
   },
   "dependencies": {
-    "@dcloudio/uni-app": "3.0.0-3080720230703001",
-    "@dcloudio/uni-components": "3.0.0-3080720230703001",
-    "@dcloudio/uni-mp-weixin": "3.0.0-3080720230703001",
+    "@dcloudio/uni-app": "3.0.0-5000720260410001",
+    "@dcloudio/uni-app-harmony": "3.0.0-5000720260410001",
+    "@dcloudio/uni-app-plus": "3.0.0-5000720260410001",
+    "@dcloudio/uni-components": "3.0.0-5000720260410001",
+    "@dcloudio/uni-h5": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-alipay": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-baidu": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-harmony": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-jd": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-kuaishou": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-lark": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-qq": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-toutiao": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-weixin": "3.0.0-5000720260410001",
+    "@dcloudio/uni-mp-xhs": "3.0.0-5000720260410001",
+    "@dcloudio/uni-quickapp-webview": "3.0.0-5000720260410001",
     "sass": "^1.65.1",
-    "vue": "^3.2.45",
-    "vue-i18n": "^9.1.9"
+    "vue": "3.4.21",
+    "vue-i18n": "9.14.4"
   },
   "devDependencies": {
-    "@dcloudio/types": "^3.3.2",
-    "@dcloudio/uni-automator": "3.0.0-3080720230703001",
-    "@dcloudio/uni-cli-shared": "3.0.0-3080720230703001",
-    "@dcloudio/uni-stacktracey": "3.0.0-3080720230703001",
-    "@dcloudio/vite-plugin-uni": "3.0.0-3080720230703001",
-    "@vue/tsconfig": "^0.1.3",
-    "typescript": "^5.1.6",
-    "vite": "4.0.4",
-    "vue-tsc": "^1.0.24"
+    "@dcloudio/types": "3.4.28",
+    "@dcloudio/uni-automator": "3.0.0-5000720260410001",
+    "@dcloudio/uni-cli-shared": "3.0.0-5000720260410001",
+    "@dcloudio/uni-stacktracey": "3.0.0-5000720260410001",
+    "@dcloudio/vite-plugin-uni": "3.0.0-5000720260410001",
+    "@vue/tsconfig": "^0.7.0",
+    "typescript": "~5.6.3",
+    "vite": "5.2.8",
+    "vue-tsc": "^2.2.0"
   }
 }

+ 3 - 3
charge-front/src/App.vue

@@ -28,9 +28,9 @@ export default <any>{
 };
 </script>
 <style lang="scss">
-@import "./styles/flex.scss";
-@import "./styles/font.scss";
-@import "./styles/layout.scss";
+@use "./styles/layout.scss";
+@use "./styles/flex.scss";
+@use "./styles/font.scss";
 
 view {
   box-sizing: border-box;

+ 1 - 1
charge-front/src/components/order-coupon-detail/order-coupon-detail.vue

@@ -12,7 +12,7 @@
             v-for="(item, index) in rightsList"
             :key="index">
 
-          <image class="full-percent" src="/pages-charge/static/discount-bg.png"></image>
+          <image class="full-percent" src="../../pages-charge/static/discount-bg.png"></image>
           <view class="absolute-full flex pt-8 pb-8">
             <view class="left  flex-justify-center pl-48">
 

+ 3 - 3
charge-front/src/components/station-charge-coupon/station-charge-coupon.vue

@@ -17,14 +17,14 @@
             v-for="(item, index) in rightsList"
             :key="index">
 
-          <image class="full-percent" src="/pages-charge/static/discount-bg.png"></image>
+          <image class="full-percent" src="../../pages-charge/static/discount-bg.png"></image>
           <view class="absolute-full flex pt-8 pb-8">
             <view class="left  flex-justify-center pl-48">
 
               <view class="item-content_left">
                 <view class="flex-align-end">
                   <view class="item-header__left">
-                    <image class="width-84" src="/pages-charge/static/discount-rights-card.png" mode="widthFix"></image>
+                    <image class="width-84" src="../../pages-charge/static/discount-rights-card.png" mode="widthFix"></image>
                     <view class="fs-48 lh-58 color-000 fw-500 ml-16">
                       {{ (item.discount / 10).toFixed(1) }}折
                     </view>
@@ -82,7 +82,7 @@
 
                     <image
                         class="width-84"
-                        src="/pages-charge/static/discount-coupon.png"
+                        src="../../pages-charge/static/discount-coupon.png"
                         mode="widthFix"
                     ></image>
                     <view></view>

+ 1 - 1
charge-front/src/components/station-coupon/station-coupon.vue

@@ -16,7 +16,7 @@
             v-for="(item, index) in rightsList"
             :key="index">
 
-          <image class="full-percent" src="/pages-charge/static/discount-bg.png"></image>
+          <image class="full-percent" src="../../pages-charge/static/discount-bg.png"></image>
           <view class="absolute-full flex pt-8 pb-8">
             <view class="left  flex-justify-center pl-48">
 

+ 5 - 1
charge-front/src/components/style-checkbox/style-checkbox.vue

@@ -42,4 +42,8 @@ export default {
 };
 </script>
 
-<style lang="scss"></style>
+<style lang="scss" scoped>
+.style-checkbox {
+  display: inline-flex;
+}
+</style>

+ 2 - 2
charge-front/src/pages-charge/appointment/appointment-backup.vue

@@ -12,7 +12,7 @@
         </view>
         <view class="pt-20 pb-20 pl-30 pr-30 flex-align-center">
           <image
-              src="/pages-charge/static/machines-banner-address.png"
+              src="../static/machines-banner-address.png"
               mode="widthFix"
               class="flex-shrink mr-12 width-40"
           />
@@ -38,7 +38,7 @@
         <view class="mt-20 block flex-align-center" style="height: 180rpx">
           <image
               class="width-56 ml-30"
-              src="/pages-charge/static/icon-alarm.png"
+              src="../static/icon-alarm.png"
               mode="widthFix"
           ></image>
           <view class="ml-24">

+ 3 - 3
charge-front/src/pages-charge/appointment/appointment.vue

@@ -12,7 +12,7 @@
         </view>
         <view class="pt-20 pb-20 pl-30 pr-30 flex-align-center">
           <image
-              src="/pages-charge/static/machines-banner-address.png"
+              src="../static/machines-banner-address.png"
               mode="widthFix"
               class="flex-shrink mr-12 width-40"
           />
@@ -37,9 +37,9 @@
         <view class="mt-40 color-999 fs-32 fw-500">已预约充电</view>
         <view class="mt-20 block flex-align-center" style="height: 180rpx">
           <image
-              class="width-56 ml-30"
-              src="/pages-charge/static/icon-alarm.png"
+              src="../static/icon-alarm.png"
               mode="widthFix"
+              style="width: 32rpx; display: block"
           ></image>
           <view class="ml-24">
             <view class="flex" v-if="appointmentCountDown">

+ 4 - 4
charge-front/src/pages-charge/camera/camera.vue

@@ -3,7 +3,7 @@
     <cover-image
       class="page_back"
       :style="backStyle"
-      src="/pages-charge/static/camera-back.png"
+      src="../static/camera-back.png"
       @click="back"
     ></cover-image>
     <view class="page_camera flex-grow">
@@ -42,7 +42,7 @@
       >
         <cover-image
           style="width: 28px; height: 28px; margin: 0 auto"
-          src="/pages-charge/static/scan-code-light.png"
+          src="../static/scan-code-light.png"
         ></cover-image>
         <cover-view
           style="
@@ -61,7 +61,7 @@
           <image
             class="width-96"
             mode="widthFix"
-            src="/pages-charge/static/scan-code-input.png"
+            src="../static/scan-code-input.png"
           ></image>
           <view class="fs-24 color-fff mt-20">输入充电桩编码</view>
         </view>
@@ -69,7 +69,7 @@
           <image
             class="width-96"
             mode="widthFix"
-            src="/pages-charge/static/scan-code-album.png"
+            src="../static/scan-code-album.png"
           ></image>
           <view class="fs-24 color-fff mt-20">打开相册</view>
         </view>

+ 3 - 3
charge-front/src/pages-charge/card/card.vue

@@ -11,14 +11,14 @@
           :class="item.status==0?'inactive':''"
           :key="index"
       >
-        <image class="full-percent" src="/pages-charge/static/discount-bg.png"></image>
+        <image class="full-percent" src="../static/discount-bg.png"></image>
         <view class="absolute-full flex pt-8 pb-8">
           <view class="left  flex-justify-center pl-48">
 
             <view class="item-content_left">
               <view class="flex-align-end">
                 <view class="item-header__left">
-                  <image class="width-84" src="/pages-charge/static/discount-rights-card.png" mode="widthFix"></image>
+                  <image class="width-84" src="../static/discount-rights-card.png" mode="widthFix"></image>
                   <view class="fs-48 lh-58 color-000 fw-500 ml-16">
                     {{ (item.discount / 10).toFixed(1) }}折
                   </view>
@@ -98,7 +98,7 @@
 
                   <image
                       class="width-84"
-                      src="/pages-charge/static/discount-coupon.png"
+                      src="../static/discount-coupon.png"
                       mode="widthFix"
                   ></image>
                   <view></view>

+ 7 - 1
charge-front/src/pages-charge/codeing/codeing.vue

@@ -4,7 +4,7 @@
       <!-- #ifdef MP-WEIXIN -->
       <!-- #endif -->
       <image
-        src="/pages-charge/static/charge-input-head.png"
+        src="../static/charge-input-head.png"
         mode="widthFix"
         style="width: 100%"
       ></image>
@@ -74,3 +74,9 @@ const input = (e: any) => {
   value.value = e.value;
 };
 </script>
+
+<style lang="scss" scoped>
+.codeing-page {
+  width: 100%;
+}
+</style>

+ 2 - 2
charge-front/src/pages-charge/coupon-center/coupon-center.vue

@@ -16,14 +16,14 @@
             :class="item.status==0?'inactive':''"
             :key="index"
         >
-          <image class="full-percent" src="/pages-charge/static/discount-bg.png"></image>
+          <image class="full-percent" src="../static/discount-bg.png"></image>
           <view class="absolute-full flex pt-8 pb-8">
             <view class="left  flex-justify-center pl-48">
 
               <view class="item-content_left">
                 <view class="flex-align-end">
                   <view class="item-header__left">
-                    <image class="width-84" src="/pages-charge/static/discount-rights-card.png" mode="widthFix"></image>
+                    <image class="width-84" src="../static/discount-rights-card.png" mode="widthFix"></image>
                     <view class="fs-48 lh-58 color-000 fw-500 ml-16">{{ item.discountAmount }}折
                     </view>
                     <view class="fs-26 color-999 ml-16" v-if="mode === 0"

+ 2 - 2
charge-front/src/pages-charge/discount/discount.vue

@@ -10,14 +10,14 @@
     >
       <image
         class="full-percent"
-        src="/pages-charge/static/discount-bg.png"
+        src="../static/discount-bg.png"
       ></image>
       <view class="absolute-full flex pt-8 pb-8">
         <view class="left flex-column flex-justify-center pl-48">
           <view class="flex-align-end">
             <image
               class="width-92"
-              src="/pages-charge/static/discount-coupon.png"
+              src="../static/discount-coupon.png"
               mode="widthFix"
             ></image>
             <view class="fs-48 lh-58 color-000 fw-500 ml-16"

+ 4 - 4
charge-front/src/pages-charge/machines/charge-machine/charge-machine.vue

@@ -14,7 +14,7 @@
     >
       <image
         class="width-28"
-        src="/pages-charge/static/charge-status-icon.png"
+        src="../../static/charge-status-icon.png"
         mode="widthFix"
       ></image>
     </view>
@@ -106,9 +106,9 @@ export default {
 </script>
 
 <style lang="scss">
-@import "../../../styles/font.scss";
-@import "../../../styles/flex.scss";
-@import "../../../styles/layout.scss";
+@use "../../../styles/layout.scss";
+@use "../../../styles/font.scss";
+@use "../../../styles/flex.scss";
 
 .charge-point {
   background-color: #fff;

+ 3 - 3
charge-front/src/pages-charge/machines/machines.vue

@@ -42,14 +42,14 @@
         </view>
         <view class="flex-align-center mt-10 height-48 relative flex-shrink">
           <image
-              src="/pages-charge/static/machines-banner-address.png"
+              src="../static/machines-banner-address.png"
               mode="widthFix"
               style="width: 16px; display: block; flex-shrink: 0"
           />
           <view class="ml-12 fs-26 color-666">{{ station.address }}</view>
           <view class="flex-center ml-auto nav" @click="openAddress">
             <image
-                src="/pages-charge/static/machines-banner-nav.png"
+                src="../static/machines-banner-nav.png"
                 mode="widthFix"
             />
             <view class="fs-26" style="color: #2d9e95">导航</view>
@@ -368,7 +368,7 @@ const showStationCoupon = () => {
 </script>
 
 <style lang="scss">
-@import "../../styles/dialog.scss";
+@use "../../styles/dialog.scss";
 
 page {
   background-color: #f5f5f5;

+ 4 - 4
charge-front/src/pages-charge/machines/price-desc/price-desc.vue

@@ -115,10 +115,10 @@ export default defineComponent({
 </script>
 
 <style lang="scss">
-@import "../../../styles/font.scss";
-@import "../../../styles/flex.scss";
-@import "../../../styles/layout.scss";
-@import "../../../styles/dialog.scss";
+@use "../../../styles/layout.scss";
+@use "../../../styles/font.scss";
+@use "../../../styles/flex.scss";
+@use "../../../styles/dialog.scss";
 .desc-dialog {
   background-color: transparent;
   width: 100%;

+ 4 - 4
charge-front/src/pages-charge/ordering/ordering.vue

@@ -2,7 +2,7 @@
   <view class="container">
     <image
       class="bg"
-      src="/pages-charge/static/charge-ordering-bg.png"
+      src="../static/charge-ordering-bg.png"
       mode="widthFix"
     />
     <view class="body">
@@ -15,7 +15,7 @@
       >
         <image
           :class="['border', `${step <= 2 ? 'border-animation' : ''}`]"
-          src="/pages-charge/static/charge-ordering-border.png"
+          src="../static/charge-ordering-border.png"
           @load="onImgLoad"
         />
         <view class="timer flex-column flex-center">
@@ -31,14 +31,14 @@
           <block v-else-if="step === 2">
             <image
               class="icon"
-              src="/pages-charge/static/charge-ordering-icon.png"
+              src="../static/charge-ordering-icon.png"
             />
             <view class="fs-26 mt-10">充电中...</view>
           </block>
           <block v-else-if="step === 3">
             <image
               class="icon"
-              src="/pages-charge/static/charge-ordering-finish.png"
+              src="../static/charge-ordering-finish.png"
             />
             <view class="fs-26 mt-10">充电结束</view>
           </block>

+ 4 - 4
charge-front/src/pages-user/invoice-title.vue

@@ -90,10 +90,10 @@
               <view class="form-label">公司税号<text class="required">*</text></view>
               <view class="form-row"><input class="form-input" v-model="editForm.taxId" placeholder="请输入纳税人识别号" placeholder-class="input-placeholder" /></view>
             </view>
-            <view class="form-group"><view class="form-label">公司地址</view><view class="form-row"><input class="form-input" v-model="editForm.address" placeholder="请输入注册地址" placeholder-class="input-placeholder" /></view>
-            <view class="form-group"><view class="form-label">公司电话</view><view class="form-row"><input class="form-input" v-model="editForm.phone" type="number" placeholder="请输入公司电话" placeholder-class="input-placeholder" /></view>
-            <view class="form-group"><view class="form-label">开户银行</view><view class="form-row"><input class="form-input" v-model="editForm.bankName" placeholder="请输入开户行名称" placeholder-class="input-placeholder" /></view>
-            <view class="form-group"><view class="form-label">银行账号</view><view class="form-row"><input class="form-input" v-model="editForm.bankAccount" type="number" placeholder="请输入银行账号" placeholder-class="input-placeholder" /></view>
+            <view class="form-group"><view class="form-label">公司地址</view><view class="form-row"><input class="form-input" v-model="editForm.address" placeholder="请输入注册地址" placeholder-class="input-placeholder" /></view></view>
+            <view class="form-group"><view class="form-label">公司电话</view><view class="form-row"><input class="form-input" v-model="editForm.phone" type="number" placeholder="请输入公司电话" placeholder-class="input-placeholder" /></view></view>
+            <view class="form-group"><view class="form-label">开户银行</view><view class="form-row"><input class="form-input" v-model="editForm.bankName" placeholder="请输入开户行名称" placeholder-class="input-placeholder" /></view></view>
+            <view class="form-group"><view class="form-label">银行账号</view><view class="form-row"><input class="form-input" v-model="editForm.bankAccount" type="number" placeholder="请输入银行账号" placeholder-class="input-placeholder" /></view></view>
           </template>
 
           <view class="form-section-label">其他</view>

+ 5 - 1
charge-front/src/pages-user/profile-edit/profile-edit.vue

@@ -79,4 +79,8 @@ onLoad((options: any) => {
 });
 </script>
 
-<style lang="scss"></style>
+<style lang="scss" scoped>
+.profile-edit-page {
+  width: 100%;
+}
+</style>

+ 1 - 1
charge-front/src/pages-user/wallet/wallet.vue

@@ -7,7 +7,7 @@
     ></navigation-bar>
     <view class="head flex-shrink">
       <view>
-        <image class="bg" src="/pages-user/static/wallet-banner.png"></image>
+        <image class="bg" src="../static/wallet-banner.png"></image>
         <view class="fg pt-48 pl-48 pr-48">
           <view class="flex-align-center">
             <uni-icons

+ 6 - 1
charge-front/src/pages/index/index.vue

@@ -26,4 +26,9 @@ onLoad(() => {
 });
 </script>
 
-<style></style>
+<style lang="scss" scoped>
+.index-page {
+  width: 100%;
+  height: 100vh;
+}
+</style>

+ 1 - 1
charge-front/src/pages/user/user.vue

@@ -162,7 +162,7 @@ onShow(() => {
 </script>
 
 <style lang="scss">
-@import "../../styles/dialog.scss";
+@use "../../styles/dialog.scss";
 .bg {
   position: absolute;
   left: 0;

+ 6 - 4
charge-front/src/styles/layout.scss

@@ -1,20 +1,22 @@
+@use "sass:string";
+
 $position: top, right, bottom, left;
 
 @each $item in $position {
-  .m#{str-slice($item, 0, 1)}-auto {
+  .m#{string.slice($item, 0, 1)}-auto {
     margin-#{$item}: auto;
   }
-  .m#{str-slice($item, 0, 1)}-0 {
+  .m#{string.slice($item, 0, 1)}-0 {
     margin-#{$item}: 0px;
   }
 }
 
 @for $i from 2 to 100 {
   @each $item in $position {
-    .m#{str-slice($item, 0, 1)}-#{$i} {
+    .m#{string.slice($item, 0, 1)}-#{$i} {
       margin-#{$item}: #{$i}rpx;
     }
-    .p#{str-slice($item, 0, 1)}-#{$i} {
+    .p#{string.slice($item, 0, 1)}-#{$i} {
       padding-#{$item}: #{$i}rpx;
     }
   }

+ 0 - 1
charge-front/tsconfig.json

@@ -1,7 +1,6 @@
 {
   "extends": "@vue/tsconfig/tsconfig.json",
   "compilerOptions": {
-    "ignoreDeprecations": "5.0",
     "sourceMap": true,
     "baseUrl": ".",
     "paths": {

+ 7 - 0
charge-front/vite.config.ts

@@ -4,4 +4,11 @@ import uni from "@dcloudio/vite-plugin-uni";
 // https://vitejs.dev/config/
 export default defineConfig({
   plugins: [uni()],
+  css: {
+    preprocessorOptions: {
+      scss: {
+        silenceDeprecations: ["legacy-js-api"],
+      },
+    },
+  },
 });