Commit 265c15a3 by 胡悦

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 066ee1dc 9b0fec4b
No preview for this file type
...@@ -198,6 +198,9 @@ ...@@ -198,6 +198,9 @@
.py-16 { .py-16 {
padding: toRpx(16) 0; padding: toRpx(16) 0;
} }
.py-24 {
padding: toRpx(24) 0;
}
.pt-32 { .pt-32 {
padding-top: toRpx(32) !important; padding-top: toRpx(32) !important;
} }
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.3069053708439898) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.3269394714407502) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
.icon-front-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-front-window { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.28601875532821824) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.28601875532821824) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-green-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-green-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.16027280477408354) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.18030690537084398) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-home-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-home-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-home { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063); .icon-home { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
.icon-logo { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662); .icon-logo { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
background-position: calc(100vmin * (1173 / 768) * -0.5647911338448423) calc(100vmin * (1173 / 768) * -0.10017050298380221);} background-position: calc(100vmin * (1173 / 768) * -0.5647911338448423) calc(100vmin * (1173 / 768) * -0.10017050298380221);}
.icon-lssl-icon { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-lssl-icon { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.17860187553282184) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.19863597612958228) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-mask-del { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331); .icon-mask-del { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3614663256606991);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.3614663256606991);}
.icon-mask-edit { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331); .icon-mask-edit { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
.icon-no-picture { width: calc(100vmin * (1173 / 768) * 0.021312872975277068); height: calc(100vmin * (1173 / 768) * 0.021312872975277068); .icon-no-picture { width: calc(100vmin * (1173 / 768) * 0.021312872975277068); height: calc(100vmin * (1173 / 768) * 0.021312872975277068);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.08567774936061381);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.08567774936061381);}
.icon-normal { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-normal { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.1969309462915601) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.21696504688832055) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-notice-script { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-notice-script { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3312020460358056) calc(100vmin * (1173 / 768) * -0.5907928388746803);} background-position: calc(100vmin * (1173 / 768) * -0.3312020460358056) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
.icon-role-2 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812); .icon-role-2 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812);
background-position: calc(100vmin * (1173 / 768) * -0.1466325660699062) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.1466325660699062) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-rule { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-rule { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.21526001705029837) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.23529411764705882) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-scan { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-scan { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.5865302642796248) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.5865302642796248) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-scanIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-scanIcon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -366,7 +366,7 @@ ...@@ -366,7 +366,7 @@
.icon-study-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-study-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.2028985507246377) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.2028985507246377) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-study-tips { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-study-tips { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.23358908780903667) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.2536231884057971) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-study { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-study { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.2536231884057971) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.2536231884057971) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
...@@ -382,7 +382,7 @@ ...@@ -382,7 +382,7 @@
.icon-tag-checked { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-tag-checked { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.4151747655583973) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-task-pass { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-task-pass { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.25191815856777494) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.27195225916453536) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-tdcj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-tdcj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.023444160272804774) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.023444160272804774) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-time-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-time-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -406,9 +406,9 @@ ...@@ -406,9 +406,9 @@
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.2885763000852515) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.30861040068201195) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.27024722932651324) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.29028132992327366) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.07033248081841433) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.07033248081841433) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
...@@ -424,4 +424,8 @@ ...@@ -424,4 +424,8 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.1402387041773231) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
\ No newline at end of file \ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.1402387041773231) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-equityClose { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.3435635123614663) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-equityTip { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.16027280477408354) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
\ No newline at end of file \ No newline at end of file

2.92 MB | W: | H:

2.92 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template> <template>
<view <view class="container" @click="handleTouchStart">
class="container"
@click="handleTouchStart"
>
<view :class="['home', { show: !id && showHome }]"> <view :class="['home', { show: !id && showHome }]">
<left-side <left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="changeTab" @stopAudio="stopAudio" @showReadCountTips="showReadCountTips" @closeTips="closeTips" />
:userInfo="userInfo" <view class="tips-box" :style="tipsObject.style" @click.stop="closeTips">{{ tipsObject.text }}</view>
:tabIndex.sync="tabIndex"
ref="leftBox"
@changeTab="changeTab"
@stopAudio="stopAudio"
@showReadCountTips="showReadCountTips"
@closeTips="closeTips"
/>
<view
class="tips-box"
:style="tipsObject.style"
@click.stop="closeTips"
>{{ tipsObject.text }}</view>
<view class="right-side"> <view class="right-side">
<view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 0 }]"> <view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 0 }]">
<view <view class="start" @click="start">
class="start"
@click="start"
>
<template v-if="sceneType != 7"> <template v-if="sceneType != 7">
<view class="sprite-icon icon-start-text"></view> <view class="sprite-icon icon-start-text"></view>
</template> </template>
...@@ -37,15 +19,7 @@ ...@@ -37,15 +19,7 @@
<slot name="swiperCustom" /> <slot name="swiperCustom" />
</template> </template>
<template v-else> <template v-else>
<swiper-component <swiper-component :moduleList="moduleList" @click="swiperClick" :stopAutoPlay="previewOff" :imgKey="bannerKey" :loadComplete="loadComplete" :noDataObject="swiperNoDataObject"></swiper-component>
:moduleList="moduleList"
@click="swiperClick"
:stopAutoPlay="previewOff"
:imgKey="bannerKey"
:loadComplete="loadComplete"
:noDataObject="swiperNoDataObject"
>
</swiper-component>
</template> </template>
</view> </view>
</view> </view>
...@@ -59,36 +33,19 @@ ...@@ -59,36 +33,19 @@
<view class="content-right box-class"> <view class="content-right box-class">
<view class="common-title">服务中心</view> <view class="common-title">服务中心</view>
<view class="content-box"> <view class="content-box">
<MessageIndex <MessageIndex class="message-box" ref="messageRef" />
class="message-box"
ref="messageRef"
/>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]"> <view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 99 }]">
<component <component :is="'Point'" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" />
:is="'Point'"
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
/>
</view> </view>
<template v-if="tabIndex != 0 && tabIndex != 99"> <template v-if="tabIndex != 0 && tabIndex != 99">
<component <component :is="componentName" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" :isPermissionFunction="isPermission" />
:is="componentName"
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
:isPermissionFunction="isPermission"
/>
</template> </template>
</view> </view>
<view <view class="store-addr" v-if="footerBox">
class="store-addr"
v-if="footerBox"
>
<view class="icon-addr sprite-icon icon-addr"></view> <view class="icon-addr sprite-icon icon-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view> <view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view> </view>
...@@ -96,41 +53,17 @@ ...@@ -96,41 +53,17 @@
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
<slot name="detail" /> <slot name="detail" />
</view> </view>
<view <view class="point-page" v-if="!showHome">
class="point-page" <component :is="pointComponentName" @backHome="backHome" @jump="jump" :transfer="transfer" />
v-if="!showHome"
>
<component
:is="pointComponentName"
@backHome="backHome"
@jump="jump"
:transfer="transfer"
/>
</view> </view>
<!-- 未点击开始接待,弹窗 --> <!-- 未点击开始接待,弹窗 -->
<MessageBox <MessageBox ref="previewRef" @confirm="previewHandler('preview', true)" :popupW="704" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材" @cancel="previewHandler('previewCancel')" @close="previewHandler('previewClose')"></MessageBox>
ref="previewRef"
@confirm="previewHandler('preview', true)"
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
@cancel="previewHandler('previewCancel')"
@close="previewHandler('previewClose')"
></MessageBox>
<!-- 停留弹框 --> <!-- 停留弹框 -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> --> <!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 --> <!-- 退出弹框 -->
<MessageBox <MessageBox :popupW="704" ref="finish" :content="finishContene" :isFooter="false">
:popupW="704"
ref="finish"
:content="finishContene"
:isFooter="false"
>
<view class="footer"> <view class="footer">
<view <view class="footer-btn confirm flex" @click="$emit('openStep')">
class="footer-btn confirm flex"
@click="$emit('openStep')"
>
<template v-if="finishDoneText"> <template v-if="finishDoneText">
{{ finishDoneText }} {{ finishDoneText }}
</template> </template>
...@@ -139,10 +72,7 @@ ...@@ -139,10 +72,7 @@
<text>(推荐)</text> <text>(推荐)</text>
</template> </template>
</view> </view>
<view <view class="footer-btn cancel flex" @click="$emit('backHome')">
class="footer-btn cancel flex"
@click="$emit('backHome')"
>
仍要退出 仍要退出
<text>(不推荐)</text> <text>(不推荐)</text>
</view> </view>
...@@ -151,11 +81,7 @@ ...@@ -151,11 +81,7 @@
<!-- 升级弹框 --> <!-- 升级弹框 -->
<update-box /> <update-box />
<slot name="content" /> <slot name="content" />
<web-view <web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view>
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
<!-- <web-view <!-- <web-view
ref="studyWebview" ref="studyWebview"
:src="jumpUrl" :src="jumpUrl"
...@@ -163,62 +89,18 @@ ...@@ -163,62 +89,18 @@
></web-view> --> ></web-view> -->
<!-- 学习中心 等级考试弹窗 --> <!-- 学习中心 等级考试弹窗 -->
<StudyPopup <StudyPopup :show.sync="showStudyPopup" title="开始您的学习之旅" :topImage="require('@/assets/images/common/study-center-bg.png')" :topImageWidth="848" :topImageHeight="248">
:show.sync="showStudyPopup" <StudyPopupContent cardTitle="个性化学习路径" description="根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。" :listItems="['基于当前能力水平评估', '结合岗位发展目标制定', '定期跟踪学习进度和效果']" tipText="true" :courseName="courseInfo.title" buttonText="开始测评" @button-click="handleStartAssessment" />
title="开始您的学习之旅"
:topImage="require('@/assets/images/common/study-center-bg.png')"
:topImageWidth="848"
:topImageHeight="248"
>
<StudyPopupContent
cardTitle="个性化学习路径"
description="根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:listItems="[
'基于当前能力水平评估',
'结合岗位发展目标制定',
'定期跟踪学习进度和效果'
]"
tipText="true"
:courseName="courseInfo.title"
buttonText="开始测评"
@button-click="handleStartAssessment"
/>
</StudyPopup> </StudyPopup>
<!-- 考试提交确认弹窗 --> <!-- 考试提交确认弹窗 -->
<StudyPopup <StudyPopup :show.sync="showExamPopup" title="" :width="848" :height="examPopInfo.isExamLoading ? 740 : 656" :topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248">
:show.sync="showExamPopup" <ExamSubmitPopup :isLoading="examPopInfo.isExamLoading" :showError="examPopInfo.showError" :confirmText="examPopInfo.confirmText" @cancel="handleExamCancel" @confirm="handleExamConfirm" />
title=""
:width="848"
:height="examPopInfo.isExamLoading ? 740 : 656"
:topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848"
:topImageHeight="248"
>
<ExamSubmitPopup
:isLoading="examPopInfo.isExamLoading"
:showError="examPopInfo.showError"
:confirmText="examPopInfo.confirmText"
@cancel="handleExamCancel"
@confirm="handleExamConfirm"
/>
</StudyPopup> </StudyPopup>
<!-- 学习中心权限弹窗 --> <!-- 学习中心权限弹窗 -->
<StudyPopup <StudyPopup :show.sync="showStudyPermissionPopup" title="" :width="848" :height="870" :topImage="require('@/assets/images/common/warning-notice.png')" :topImageWidth="848" :topImageHeight="248" style="overflow: hidden">
:show.sync="showStudyPermissionPopup" <StudyCenterPermissionPopup :lockReason="lockReason" @confirm="handleStudyPermissionConfirm" />
title=""
:width="848"
:height="870"
:topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848"
:topImageHeight="248"
style="overflow: hidden;"
>
<StudyCenterPermissionPopup
:lockReason="lockReason"
@confirm="handleStudyPermissionConfirm"
/>
</StudyPopup> </StudyPopup>
</view> </view>
</template> </template>
...@@ -276,9 +158,9 @@ export default { ...@@ -276,9 +158,9 @@ export default {
type: Boolean, type: Boolean,
default: true default: true
}, },
swiperCustom: Boolean, swiperCustom: Boolean
}, },
data () { data() {
return { return {
studyUrl: '', studyUrl: '',
jumpUrl: '', jumpUrl: '',
...@@ -323,29 +205,29 @@ export default { ...@@ -323,29 +205,29 @@ export default {
uni.$off('showExamSubmitPopup') uni.$off('showExamSubmitPopup')
uni.$off('showStudyPopup') uni.$off('showStudyPopup')
}, },
mounted () { mounted() {
const userInfo = uni.$storage.get('userInfo') || {} const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo this.userInfo = userInfo
if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限 if (this.checkRecordAudio) permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
}, },
provide () { provide() {
return { return {
showPage: this.handleShowPage, showPage: this.handleShowPage,
hideFooter: this.handleFooter hideFooter: this.handleFooter
} }
}, },
computed: { computed: {
previewRef () { previewRef() {
return this.$refs.previewRef return this.$refs.previewRef
}, },
finishRef () { finishRef() {
return this.$refs.finish return this.$refs.finish
}, },
componentName () { componentName() {
let tabs = this.$refs.leftBox?.tabs let tabs = this.$refs.leftBox?.tabs
return tabs ? tabs[this.tabIndex].name : '' return tabs ? tabs[this.tabIndex].name : ''
}, },
sceneType () { sceneType() {
const { sceneType } = uni.$storage.get('userInfo') const { sceneType } = uni.$storage.get('userInfo')
return sceneType return sceneType
} }
...@@ -362,21 +244,21 @@ export default { ...@@ -362,21 +244,21 @@ export default {
uni.hideLoading() uni.hideLoading()
if (token) { if (token) {
// const COURSE_ID = 'c6d20419-fae9-4d35-a1d1-bd2b35c0c619'; // const COURSE_ID = 'c6d20419-fae9-4d35-a1d1-bd2b35c0c619';
const baseUrl = 'https://cloud.italent.cn/PageHome/Index'; const baseUrl = 'https://cloud.italent.cn/PageHome/Index'
const params = { const params = {
product: 'Learning', product: 'Learning',
keyName: 'Nusion', keyName: 'Nusion',
pageCode: 'LearningExamTraineePage', pageCode: 'LearningExamTraineePage',
appCode: 'Learning', appCode: 'Learning',
examId: this.courseInfo.examId examId: this.courseInfo.examId
}; }
const queryString = Object.entries(params) const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`) .map(([key, value]) => `${key}=${value}`)
.join('&'); .join('&')
const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken') const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken')
// this.setWebviewStyle() // this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`); const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`)
this.jumpUrl = `${tokenUrl}&return_url=${url}`; this.jumpUrl = `${tokenUrl}&return_url=${url}`
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/studyWebview?url=${encodeURIComponent(this.jumpUrl)}&pageTitle=学习测评` url: `/pages/common/studyWebview?url=${encodeURIComponent(this.jumpUrl)}&pageTitle=学习测评`
}) })
...@@ -400,12 +282,15 @@ export default { ...@@ -400,12 +282,15 @@ export default {
// 获取北森 SSO Token(参考 detail.vue 的方法) // 获取北森 SSO Token(参考 detail.vue 的方法)
findBeiSenSSOToken() { findBeiSenSSOToken() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => { uni.$api.commonApi
uni.$storage.set('beisenToken', res.data) .findBeiSenSSOToken({})
resolve(res.data || '') .then(res => {
}).catch(err => { uni.$storage.set('beisenToken', res.data)
reject(err) resolve(res.data || '')
}) })
.catch(err => {
reject(err)
})
}) })
}, },
// 处理考试取消(用户选择未提交) // 处理考试取消(用户选择未提交)
...@@ -434,7 +319,7 @@ export default { ...@@ -434,7 +319,7 @@ export default {
async checkStudyCenterPermission() { async checkStudyCenterPermission() {
try { try {
const userInfo = uni.$storage.get('userInfo') const userInfo = uni.$storage.get('userInfo')
// 如果是渠道类型为9,没有权限 // 如果是渠道类型为9,没有权限
if (userInfo?.subLoginUser?.channelType == 9) { if (userInfo?.subLoginUser?.channelType == 9) {
return false return false
...@@ -442,7 +327,7 @@ export default { ...@@ -442,7 +327,7 @@ export default {
// 获取权限信息 // 获取权限信息
let studyCenterPermission = uni.$storage.get('studyCenterPermission') let studyCenterPermission = uni.$storage.get('studyCenterPermission')
// 如果缓存中没有,调用接口获取 // 如果缓存中没有,调用接口获取
if (!studyCenterPermission) { if (!studyCenterPermission) {
const yqMerchantIdList = userInfo?.subLoginUser?.yqMerchantIdList || [] const yqMerchantIdList = userInfo?.subLoginUser?.yqMerchantIdList || []
...@@ -454,7 +339,7 @@ export default { ...@@ -454,7 +339,7 @@ export default {
// 判断权限:直营 或者 (鸿蒙智行 且 有延保业务) // 判断权限:直营 或者 (鸿蒙智行 且 有延保业务)
const { directSaleAuth, hmzxAuth, authorizedBusinessList } = studyCenterPermission const { directSaleAuth, hmzxAuth, authorizedBusinessList } = studyCenterPermission
const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益 const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益
// 有直营权限 或者 (有鸿蒙智行权限 且 有延保业务权限)则显示 // 有直营权限 或者 (有鸿蒙智行权限 且 有延保业务权限)则显示
// 这里返回 false 表示没有权限(即未完成学习任务),需要弹出提示 // 这里返回 false 表示没有权限(即未完成学习任务),需要弹出提示
// TODO: 这里后续需要调用接口查询是否完成必修课 // TODO: 这里后续需要调用接口查询是否完成必修课
...@@ -506,11 +391,11 @@ export default { ...@@ -506,11 +391,11 @@ export default {
}) })
} }
}, },
async changeTab ({ item, index }) { async changeTab({ item, index }) {
if (index == 0) this.$refs.messageRef.getMessageSummary() if (index == 0) this.$refs.messageRef.getMessageSummary()
this.previewOff = index != 0 this.previewOff = index != 0
this.$emit('changeTab', index) this.$emit('changeTab', index)
// 切换到学习中心时显示弹窗 // 切换到学习中心时显示弹窗
if (item.name === 'StudyCenter') { if (item.name === 'StudyCenter') {
this.getLevelExamInfo() this.getLevelExamInfo()
...@@ -524,16 +409,16 @@ export default { ...@@ -524,16 +409,16 @@ export default {
this.courseInfo = res this.courseInfo = res
} }
}, },
handleFooter (val) { handleFooter(val) {
this.footerBox = val this.footerBox = val
}, },
backHome () { backHome() {
this.showHome = true this.showHome = true
Promise.resolve().then(() => { Promise.resolve().then(() => {
this.$refs.pointRef?.$refs?.centerRef?.init && this.$refs.pointRef.$refs.centerRef.init() this.$refs.pointRef?.$refs?.centerRef?.init && this.$refs.pointRef.$refs.centerRef.init()
}) })
}, },
jump (val) { jump(val) {
this.showHome = true this.showHome = true
if (val == 'CustomerFile') { if (val == 'CustomerFile') {
this.tabIndex = 2 this.tabIndex = 2
...@@ -541,12 +426,12 @@ export default { ...@@ -541,12 +426,12 @@ export default {
} }
this.start() this.start()
}, },
handleShowPage (name, transfer) { handleShowPage(name, transfer) {
this.transfer = transfer this.transfer = transfer
this.showHome = false this.showHome = false
this.pointComponentName = name this.pointComponentName = name
}, },
handleOperation (val, data) { handleOperation(val, data) {
const { type } = val const { type } = val
// 提取公共的webview设置逻辑 // 提取公共的webview设置逻辑
...@@ -616,32 +501,33 @@ export default { ...@@ -616,32 +501,33 @@ export default {
} }
}, },
// 学习中心修改阅读状态,打开后才修改 // 学习中心修改阅读状态,打开后才修改
async getStudyCenterRead (id) { async getStudyCenterRead(id) {
const res = await uni.$api.commonApi.getStudyCenterRead({ id }) const res = await uni.$api.commonApi.getStudyCenterRead({ id })
}, },
showReadCountTips (res) { showReadCountTips(res) {
this.tipsObject = res this.tipsObject = res
}, },
closeTips () { closeTips() {
this.$refs.leftBox.readCount = 0 this.$refs.leftBox.readCount = 0
this.tipsObject = { this.tipsObject = {
style: '', style: '',
text: '' text: ''
} }
}, },
swiperClick (e) { swiperClick(e) {
if (this.sceneType == 0) uni.$track.add({ if (this.sceneType == 0)
eventCode: 'app_product_Introduction' uni.$track.add({
}) //轻改场景不埋点 eventCode: 'app_product_Introduction'
}) //轻改场景不埋点
this.previewOff = true this.previewOff = true
this.$emit('swiperClick', e) this.$emit('swiperClick', e)
}, },
previewHandler (name, off = false) { previewHandler(name, off = false) {
this.previewOff = off this.previewOff = off
this.$emit(name) this.$emit(name)
}, },
start () { start() {
const { sceneType } = this const { sceneType } = this
if (sceneType == 7) return //二手车无接待功能 if (sceneType == 7) return //二手车无接待功能
uni.$track.add({ uni.$track.add({
...@@ -649,11 +535,11 @@ export default { ...@@ -649,11 +535,11 @@ export default {
}) })
this.$emit('start') this.$emit('start')
}, },
async updateApp (requested = false) { async updateApp(requested = false) {
if (!requested) await uni.$api.systemApi.getMockData(true) if (!requested) await uni.$api.systemApi.getMockData(true)
this.checkVersion() this.checkVersion()
}, },
async entranceClick (item) { async entranceClick(item) {
// 清除评估单的图片视频资源缓存 // 清除评估单的图片视频资源缓存
const noInterceptPage = ['DailyReport', 'DeliveryManagement'], const noInterceptPage = ['DailyReport', 'DeliveryManagement'],
...@@ -661,10 +547,10 @@ export default { ...@@ -661,10 +547,10 @@ export default {
if (!noInterceptPage.includes(item.name)) { if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7) { if (sceneType != 7) {
if (await this.inspectionOfProhibitionBill()) return if (await this.inspectionOfProhibitionBill()) return
if (await this.getLimitRecord()) { // if (await this.getLimitRecord()) {
this.showStudyPermissionPopup = true // this.showStudyPermissionPopup = true
return // return
} // }
} }
if (await this.checkDailyReport(sceneType != 7)) return if (await this.checkDailyReport(sceneType != 7)) return
} }
...@@ -675,9 +561,10 @@ export default { ...@@ -675,9 +561,10 @@ export default {
}) })
return return
} }
if (item.page) return uni.navigateTo({ if (item.page)
url: item.page return uni.navigateTo({
}) url: item.page
})
let pageName = { let pageName = {
0: 'equity', 0: 'equity',
1: 'boutique', 1: 'boutique',
......
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
} }
let apiTargetName = !params.defeat ? 'getQuotationCustomerList' : 'getWorkPackageGoodsList' let apiTargetName = !params.defeat ? 'getQuotationCustomerList' : 'getWorkPackageGoodsList'
console.log(apiTargetName, 'apiTargetName') console.log(apiTargetName, 'apiTargetName')
if (params.defeat) {
apiParams.keyword=searchValue
}
const { list } = await uni.$api.popupApi[apiTargetName](apiParams) const { list } = await uni.$api.popupApi[apiTargetName](apiParams)
let customerList = list let customerList = list
if (params.defeat) { if (params.defeat) {
......
...@@ -25,25 +25,34 @@ ...@@ -25,25 +25,34 @@
<view class="mask-box"></view> <view class="mask-box"></view>
</template> </template>
<template v-else> <template v-else>
<view class="type-box-v2">
<view <scroll-view
:class="['tab-item',{active:tabIndex == index}]" scroll-x
v-for="(i, index) in typeList" enable-flex
:key="index" class="scroll-box"
@click="tabClick(index)" :scroll-into-view="`tab-id-${tabIndex}`"
> >
<template v-if="index == 0"> <view class="type-box-v2">
<view class="sprite-icon icon-first-right"></view> <view
</template> :class="['tab-item',{active:tabIndex == index}]"
<template v-else> v-for="(i, index) in typeList"
<view class="sprite-icon icon-second-left"></view> :key="index"
<view class="sprite-icon icon-second-right"></view> @click="tabClick(index)"
</template> :id="`tab-id-${index}`"
<view class="text"> >
{{ i[nameKey] }} <template v-if="index == 0">
<view class="sprite-icon icon-first-right"></view>
</template>
<template v-else>
<view class="sprite-icon icon-second-left"></view>
<view class="sprite-icon icon-second-right"></view>
</template>
<view class="text">
{{ i[nameKey] }}
</view>
</view> </view>
</view> </view>
</view> </scroll-view>
</template> </template>
</view> </view>
</template> </template>
...@@ -69,13 +78,14 @@ export default { ...@@ -69,13 +78,14 @@ export default {
data () { data () {
return { return {
firstClass: Object.freeze(['first-nav', 'second-nav']), firstClass: Object.freeze(['first-nav', 'second-nav']),
viewIndex: ''
} }
}, },
computed: { computed: {
blockLeft () { blockLeft () {
let { tabIndex } = this let { tabIndex } = this
return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx` return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx`
} },
}, },
mounted () { mounted () {
}, },
...@@ -90,7 +100,9 @@ export default { ...@@ -90,7 +100,9 @@ export default {
return className return className
}, },
tabClick (index) { tabClick (index) {
if(this.tabIndex == index) return if (this.tabIndex == index) return
// this.viewIndex = `tab-id-${index}`
// console.log(this.viewIndex)
this.$emit('update:tabIndex', index) this.$emit('update:tabIndex', index)
this.$emit('tabClick', index) this.$emit('tabClick', index)
} }
...@@ -156,6 +168,9 @@ export default { ...@@ -156,6 +168,9 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
overflow: hidden; overflow: hidden;
} }
.scroll-box {
width: 100%;
}
.type-box-v2 { .type-box-v2 {
position: relative; position: relative;
display: flex; display: flex;
...@@ -166,13 +181,12 @@ export default { ...@@ -166,13 +181,12 @@ export default {
border-radius: toRpx(48) toRpx(48) 0 0; border-radius: toRpx(48) toRpx(48) 0 0;
z-index: 0; z-index: 0;
flex-wrap: nowrap; flex-wrap: nowrap;
overflow-x: auto;
gap: 0 toRpx(80); gap: 0 toRpx(80);
.tab-item { .tab-item {
padding: 0 toRpx(40); padding: 0 toRpx(40);
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;
&:first-of-type{ &:first-of-type {
padding-left: toRpx(80); padding-left: toRpx(80);
} }
.text { .text {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</view> </view>
<view class="file-info"> <view class="file-info">
<text class="file-name">{{ getFileName(file) }}</text> <text class="file-name">{{ getFileName(file) }}</text>
<text class="file-size">{{ formatFileSize(file.size) }}</text> <!-- <text class="file-size">{{ formatFileSize(file.size) }}</text> -->
</view> </view>
</view> </view>
<!-- 图片文件显示 --> <!-- 图片文件显示 -->
...@@ -90,12 +90,12 @@ export default { ...@@ -90,12 +90,12 @@ export default {
console.log('data', data) console.log('data', data)
if (data && data.zyPayUrl) { if (data && data.zyPayUrl) {
const urls = data.zyPayUrl.split(',').filter(url => url.trim()) const urls = data.zyPayUrl.split(',').filter(url => url.trim())
this.$set(this.contractData, this.uploadField.key, urls.map(url => ({ this.$set(this.contractData, this.uploadField.key, urls.map(url => ({
url: url.trim(), url: url.trim(),
type: this.getFileTypeFromUrl(url.trim()), type: this.getFileTypeFromUrl(url.trim()),
name: this.getFileNameFromUrl(url.trim()), name: this.getFileNameFromUrl(url.trim()),
size: 0 // 从字符串无法获取文件大小 size: 0 // 从字符串无法获取文件大小
}))) })))
console.log('this.contractData', this.contractData) console.log('this.contractData', this.contractData)
} }
...@@ -253,9 +253,10 @@ export default { ...@@ -253,9 +253,10 @@ export default {
uni.showLoading({ title: '上传中...', mask: true }) uni.showLoading({ title: '上传中...', mask: true })
// 使用tempFilePath进行上传 // 使用tempFilePath进行上传
uploadFile(null, fileData.tempFilePath) uploadFile(fileData.tempFile, fileData.tempFilePath)
.then(url => { .then(url => {
uni.hideLoading() uni.hideLoading()
console.log('上传成功', url)
// 添加到合同文件列表 // 添加到合同文件列表
this.addContractFile({ this.addContractFile({
url: url, url: url,
...@@ -280,12 +281,14 @@ export default { ...@@ -280,12 +281,14 @@ export default {
// 获取合同文件数组 // 获取合同文件数组
getContractFiles() { getContractFiles() {
console.log(this.contractData,'this.contractData')
const files = this.contractData[this.uploadField.key] const files = this.contractData[this.uploadField.key]
return Array.isArray(files) ? files : [] return Array.isArray(files) ? files : []
}, },
// 检查是否是PDF文件 // 检查是否是PDF文件
isPdfFile(file) { isPdfFile(file) {
console.log(file,'file')
if (typeof file === 'object' && file.type) { if (typeof file === 'object' && file.type) {
return file.type === 'pdf' return file.type === 'pdf'
} }
......
...@@ -932,7 +932,7 @@ export default { ...@@ -932,7 +932,7 @@ export default {
} }
orderObj.city = city orderObj.city = city
} }
if (customerInfo.carPrice) orderObj.price = customerInfo.carPrice if (customerInfo.carPrice) orderObj.price = this.divideByHundred(customerInfo.carPrice)
if (customerInfo.salesUuid) { if (customerInfo.salesUuid) {
orderObj.referrerId = customerInfo.salesUuid orderObj.referrerId = customerInfo.salesUuid
orderObj.referrer = customerInfo.salesName orderObj.referrer = customerInfo.salesName
...@@ -1046,12 +1046,12 @@ export default { ...@@ -1046,12 +1046,12 @@ export default {
color: #999; color: #999;
} }
.btns { .btns {
padding: 24rpx 128rpx; padding: toRpx(24) toRpx(128);
gap: 32rpx; gap: toRpx(32);
.save { .save {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
} }
} }
...@@ -1067,11 +1067,11 @@ export default { ...@@ -1067,11 +1067,11 @@ export default {
} }
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: 20rpx; margin-left: toRpx(20);
color: #347bff; color: #347bff;
font-size: 24rpx; font-size: toRpx(24);
.sprite-icon { .sprite-icon {
margin-right: 4rpx; margin-right: toRpx(4);
} }
} }
} }
......
...@@ -873,7 +873,7 @@ export default { ...@@ -873,7 +873,7 @@ export default {
showModal = true showModal = true
carBandList.forEach(el => { carBandList.forEach(el => {
if (el.brandType == item.brandType) { if (el.brandType == item.brandType) {
context += `【${item.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue context += `【${el.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n` },请相关驻店销售对齐核销再次提交\t\n`
} }
}) })
......
...@@ -683,7 +683,7 @@ export default { ...@@ -683,7 +683,7 @@ export default {
padding-bottom: toRpx(24); padding-bottom: toRpx(24);
position: relative; position: relative;
.scroll-view { .scroll-view {
height: 100%; height: calc(100% - #{toRpx(168)});
} }
} }
...@@ -888,8 +888,8 @@ export default { ...@@ -888,8 +888,8 @@ export default {
} }
} }
.defeat-order ::v-deep .cell-value .textarea { .defeat-order ::v-deep .cell-value .textarea {
margin-bottom: 0; // margin-bottom: 0;
height: toRpx(192); height: toRpx(192) !important;
} }
.btns { .btns {
padding: 24rpx 128rpx; padding: 24rpx 128rpx;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<view v-else class="order-value-single flex"> <view v-else class="order-value-single flex">
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text> <text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text>
<text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text> <text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
<view v-if="item.canCopy" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])"> <view v-if="item.canCopy && orderCardDetail[item.key]" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view> <view class="sprite-icon icon-icon-copy copy"></view>
</view> </view>
</view> </view>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因"> <PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因">
<template #content> <template #content>
<view class="defeat-order-box modatcontent"> <view class="defeat-order-box modatcontent">
<textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="15" v-model="textareaValue" /> <textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="30" v-model="textareaValue" />
</view> </view>
</template> </template>
<template #footer> <template #footer>
...@@ -425,8 +425,10 @@ export default { ...@@ -425,8 +425,10 @@ export default {
break break
case 'price': case 'price':
// 处理去报价 // 处理去报价
this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'CreateOrder' })
break break
case 'pay': case 'pay':
this.$emit('openPay',this.orderCardDetail)
// 处理去支付 // 处理去支付
break break
case 'defeat': case 'defeat':
...@@ -557,47 +559,80 @@ export default { ...@@ -557,47 +559,80 @@ export default {
urls = val.contractFiles.map(file => file.url).filter(url => url) urls = val.contractFiles.map(file => file.url).filter(url => url)
} }
console.log(urls) console.log(urls)
uni.$api.equityApi const that = this
.getQuotationInfoById({ if (this.orderCardDetail.zyPayStatus == 2 && this.orderCardDetail.canUpdateZyPayUrl == 1) {
id: this.orderCardDetail?.id uni.showModal({
title: '修改确认',
content: '本次操作将永久替换原图或协议(仅限1次修改权限),请确认是否更新?',
confirmText: '确定',
confirmColor: '#347BFF',
success(res) {
if (res.confirm) {
uni.showLoading({
mask: true
})
console.log(that.orderCardDetail)
uni.$api.equityApi.updateZyInfo({ id: that.orderCardDetail?.id, zyPayUrl: urls.join(',') }).then(res => {
uni.hideLoading()
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
that.$emit('refresh')
// _this.getList();
}, 500)
})
}
}
}) })
.then(res => { } else {
console.log(res, 'res') uni.$api.equityApi
let orderInfo = {} .getQuotationInfoById({
let { default4SStoreInfo } = this.userInfo id: this.orderCardDetail?.id
orderInfo.check = true
orderInfo.id = res.id
orderInfo.orderId = res.orderId
orderInfo.merchantId4s = default4SStoreInfo?.merchantId
orderInfo.merchantName4s = default4SStoreInfo?.merchantName
orderInfo.referrer = res.referrer
orderInfo.referrerId = res.referrerId
console.log(orderInfo, 'orderInfo')
uni.showLoading({
mask: true
}) })
uni.$api.equityApi .then(res => {
.updateCustomerInfo({ console.log(res, 'res')
...orderInfo, let orderInfo = {}
zyPayUrl: urls.join(',') let { default4SStoreInfo } = this.userInfo
}) orderInfo.check = true
.then(result => { orderInfo.id = res.id
console.log(result, 'resultresult') orderInfo.orderId = res.orderId
this.$refs.contractPopupRef.close() orderInfo.merchantId4s = default4SStoreInfo?.merchantId
uni.hideLoading() orderInfo.merchantName4s = default4SStoreInfo?.merchantName
setTimeout(() => { orderInfo.referrer = res.referrer
this.$emit('refresh') orderInfo.referrerId = res.referrerId
// _this.getList(); console.log(orderInfo, 'orderInfo')
}, 500) uni.showLoading({
}) mask: true
.catch(err => {
console.log(err)
uni.hideLoading()
}) })
}) uni.$api.equityApi
.catch(err => { .updateCustomerInfo({
uni.hideLoading() ...orderInfo,
}) zyPayUrl: urls.join(',')
})
.then(result => {
console.log(result, 'resultresult')
this.$refs.contractPopupRef.close()
uni.hideLoading()
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
this.$emit('refresh')
// _this.getList();
}, 500)
})
.catch(err => {
console.log(err)
uni.hideLoading()
})
})
.catch(err => {
uni.hideLoading()
})
}
} }
}, },
get methods() { get methods() {
...@@ -772,14 +807,14 @@ export default { ...@@ -772,14 +807,14 @@ export default {
} }
.unit { .unit {
margin-right: toRpx(8); margin-right: toRpx(4);
color: #347bff; color: #347bff;
font-size: toRpx(28); font-size: toRpx(26);
font-weight: 700; font-weight: 700;
} }
.price { .price {
color: #347bff; color: #347bff;
font-size: toRpx(36); font-size: toRpx(32);
font-weight: 700; font-weight: 700;
} }
...@@ -844,11 +879,11 @@ export default { ...@@ -844,11 +879,11 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #9b9b9e; color: #9b9b9e;
border-top: 1 solid #ededed; border-top: 1 solid #ededed;
padding: toRpx(20) toRpx(32) 0; padding: toRpx(32) toRpx(32) 0;
} }
.btn_class { .btn_class {
display: flex; display: flex;
gap: toRpx(8); gap: toRpx(16);
margin-left: auto; margin-left: auto;
} }
...@@ -983,17 +1018,20 @@ export default { ...@@ -983,17 +1018,20 @@ export default {
.copy { .copy {
margin-right: toRpx(8); margin-right: toRpx(8);
margin-left: toRpx(20); margin-left: toRpx(16);
} }
} }
.order-card-top-box {
margin-bottom: toRpx(6);
}
.order-card-bottom-box { .order-card-bottom-box {
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(20); padding-bottom: toRpx(20);
} }
.updateInfo { .updateInfo {
color: #347bff; color: #347bff;
font-size: var(--fontSize28); font-size: toRpx(24);
margin-left: var(--fontSize16); margin-left: toRpx(16);
font-weight: normal; font-weight: normal;
margin-right: auto; margin-right: auto;
} }
......
<template> <template>
<view class="order-management"> <view class="order-management">
<view class="search-box"> <view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名搜索" /> <input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<view class="clear flex" @click="clear"> <view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons> <uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons>
</view> </view>
</view> </view>
<view class="tab-container flex"> <view class="tab-container flex">
<view class="flex"> <view class="flex tab-flex-box">
<view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)"> <view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>{{ item.tabName }}</text> <text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text> <text class="num">{{ item.num }}</text>
...@@ -22,9 +22,14 @@ ...@@ -22,9 +22,14 @@
</view> </view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10"> <z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard> <OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()" @openPay="openPay"></OrderCard>
</z-paging> </z-paging>
<OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" /> <OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" />
<!-- 支付弹框 -->
<OrderPay
ref="OrderPay"
@jumpSuccess="jumpSuccess"
/>
</view> </view>
</template> </template>
...@@ -37,13 +42,16 @@ import PublishPopup from '@/components/PublishPopup.vue' ...@@ -37,13 +42,16 @@ import PublishPopup from '@/components/PublishPopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import utils from '@/utils/utils' import utils from '@/utils/utils'
import OrderScreenContract from '@/components/OrderScreenContract/index.vue' import OrderScreenContract from '@/components/OrderScreenContract/index.vue'
import OrderPay from './OrderPay.vue'
export default { export default {
name: 'OrderManagement', name: 'OrderManagement',
mixins: [ZPMixin, interceptionMixin], mixins: [ZPMixin, interceptionMixin],
components: { components: {
OrderCard, OrderCard,
PublishPopup, PublishPopup,
OrderScreenContract OrderScreenContract,
OrderPay
}, },
computed: { computed: {
orderObj() { orderObj() {
...@@ -302,7 +310,13 @@ export default { ...@@ -302,7 +310,13 @@ export default {
jump(name, val) { jump(name, val) {
console.log(name, val, 'jump') console.log(name, val, 'jump')
this.$emit('jump', name, val) this.$emit('jump', name, val)
} },
openPay(item){
this.$refs.OrderPay.open(item.id)
},
jumpSuccess (params) {
this.$emit('jump', 'OrderDetail', params)
},
} }
} }
</script> </script>
...@@ -311,7 +325,7 @@ export default { ...@@ -311,7 +325,7 @@ export default {
.order-management { .order-management {
height: 100%; height: 100%;
.paging-class { .paging-class {
height: calc(100% - #{toRpx(336)}); height: calc(100% - #{toRpx(288)});
} }
.px-48 { .px-48 {
padding: 0 toRpx(48); padding: 0 toRpx(48);
...@@ -319,7 +333,6 @@ export default { ...@@ -319,7 +333,6 @@ export default {
.search-box { .search-box {
padding: toRpx(40) toRpx(48) toRpx(0); padding: toRpx(40) toRpx(48) toRpx(0);
margin-bottom: toRpx(24);
position: relative; position: relative;
&::after { &::after {
content: ''; content: '';
...@@ -387,9 +400,11 @@ export default { ...@@ -387,9 +400,11 @@ export default {
.tab-container { .tab-container {
display: flex; display: flex;
// justify-content: start; // justify-content: start;
padding: toRpx(0) toRpx(48);
margin-bottom: toRpx(24);
position: relative; position: relative;
padding-right: toRpx(48);
.tab-flex-box {
padding: toRpx(24) 0 toRpx(24) toRpx(48);
}
.flex:first-child { .flex:first-child {
display: flex; display: flex;
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
@click="deleteGoods(index)" @click="deleteGoods(index)"
></view> ></view>
<view :class="['right',{'one-line':item.goodsFlag == 1}]"> <view :class="['right',{'one-line':item.goodsFlag == 1}]">
<view class="shop-name">{{ goodsName(item) }}</view> <view :class="['shop-name',{'name-top':item.goodsFlag == 2}]">{{ goodsName(item) }}</view>
<view <view
class="alias" class="alias"
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias" v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias"
...@@ -69,46 +69,48 @@ ...@@ -69,46 +69,48 @@
{{item.multipleSpecificationsGoods.goods.specificationStr}} {{item.multipleSpecificationsGoods.goods.specificationStr}}
</view> </view>
</template> </template>
<template v-if="item.goodsFlag == 1"> <view class="front-number-box flex">
<template v-if="item.goods.goodsPriceModify"> <template v-if="item.goodsFlag == 1">
¥{{item.goods.sellPrice}} <template v-if="item.goods.goodsPriceModify">
</template> ¥{{item.goods.sellPrice}}
<template v-else> </template>
<view class="front-gear-input"> <template v-else>
<view class="unit">¥</view> <view class="front-gear-input">
<input <view class="unit">¥</view>
class="uni-input" <input
type="digit" class="uni-input"
maxlength="9" type="digit"
placeholder="请输入价格" maxlength="9"
placeholder-style="font-size: 14px" placeholder="请输入价格"
v-model="item.goods.sellPrice" placeholder-style="font-size: 14px"
@blur="validatePrice($event, item, index)" v-model="item.goods.sellPrice"
/> @blur="validatePrice($event, item, index)"
</view> />
</template> </view>
</template> </template>
<template v-else>
<template v-if="item.multipleSpecificationsGoods.goods.goodsPriceModify">
¥{{item.multipleSpecificationsGoods.goods.sellPrice}}
</template> </template>
<template v-else> <template v-else>
<view class="front-gear-input"> <template v-if="item.multipleSpecificationsGoods.goods.goodsPriceModify">
<view class="unit">¥</view> ¥{{item.multipleSpecificationsGoods.goods.sellPrice}}
<input </template>
class="uni-input" <template v-else>
type="digit" <view class="front-gear-input">
maxlength="9" <view class="unit">¥</view>
placeholder="请输入价格" <input
placeholder-style="font-size: 14px" class="uni-input"
v-model="item.multipleSpecificationsGoods.goods.sellPrice" type="digit"
@blur="validatePrice($event, item, index)" maxlength="9"
/> placeholder="请输入价格"
</view> placeholder-style="font-size: 14px"
v-model="item.multipleSpecificationsGoods.goods.sellPrice"
@blur="validatePrice($event, item, index)"
/>
</view>
</template>
</template> </template>
</template> <view class="number">
<view class="number"> x1
x1 </view>
</view> </view>
</view> </view>
</view> </view>
...@@ -218,7 +220,7 @@ export default { ...@@ -218,7 +220,7 @@ export default {
if (parseFloat(value) < 0 || parseFloat(value) == 0) { if (parseFloat(value) < 0 || parseFloat(value) == 0) {
value = '0' value = '0'
} }
// 检查最小价格 // 检查最小价格
// if (!item.multipleSpecificationsGoods) { // if (!item.multipleSpecificationsGoods) {
// // 普通商品的最小价格检查 // // 普通商品的最小价格检查
// if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) { // if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) {
...@@ -342,7 +344,7 @@ export default { ...@@ -342,7 +344,7 @@ export default {
total = NP.plus(total, i.sellPrice * i.number) total = NP.plus(total, i.sellPrice * i.number)
}) })
item.packageGoods.totalPrice = total item.packageGoods.totalPrice = total
return total.toFixed(2) return total
}, },
} }
} }
...@@ -350,7 +352,7 @@ export default { ...@@ -350,7 +352,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.shop-list { .shop-list {
padding: 0 toRpx(32) toRpx(32) 0; padding-right: toRpx(32);
.shop-item { .shop-item {
display: flex; display: flex;
...@@ -364,10 +366,12 @@ export default { ...@@ -364,10 +366,12 @@ export default {
flex: 1; flex: 1;
font-size: toRpx(28); font-size: toRpx(28);
margin-left: toRpx(24); margin-left: toRpx(24);
position: relative;
} }
.one-line { .one-line {
display: flex; display: flex;
align-items: center; align-items: center;
min-height: toRpx(72);
.front-gear-box { .front-gear-box {
margin-left: auto; margin-left: auto;
} }
...@@ -377,7 +381,9 @@ export default { ...@@ -377,7 +381,9 @@ export default {
max-width: 70%; max-width: 70%;
word-break: break-all; word-break: break-all;
} }
.name-top {
margin-top: toRpx(4);
}
.alias { .alias {
margin-top: toRpx(12); margin-top: toRpx(12);
font-size: toRpx(24); font-size: toRpx(24);
...@@ -394,34 +400,34 @@ export default { ...@@ -394,34 +400,34 @@ export default {
.total-price { .total-price {
margin-left: auto; margin-left: auto;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
} }
.line { .line {
width: calc(100% + 48rpx); width: calc(100% + #{toRpx(48)});
margin-left: -24rpx; margin-left: toMinusRpx(24);
height: 2rpx; height: toRpx(2);
background-color: #dce1e6; background-color: #dce1e6;
margin-top: 24rpx; margin-top: toRpx(24);
} }
.package-item { .package-item {
margin-top: 16rpx; margin-top: toRpx(16);
} }
.sprite-icon { .sprite-icon {
margin-right: 24rpx; margin-right: toRpx(24);
flex-shrink: 0; flex-shrink: 0;
} }
.package-icon { .package-icon {
width: 12rpx; width: toRpx(12);
height: 12rpx; height: toRpx(12);
border-radius: 50%; border-radius: 50%;
background: #4673ff; background: #4673ff;
margin-right: 16rpx; margin-right: toRpx(16);
} }
.package-label { .package-label {
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
flex-shrink: 0; flex-shrink: 0;
max-width: 80%; max-width: 80%;
} }
...@@ -431,7 +437,14 @@ export default { ...@@ -431,7 +437,14 @@ export default {
} }
} }
.number { .number {
margin-left: 16rpx; margin-left: toRpx(16);
}
.front-number-box{
position: absolute;
top: 50%;
right: toRpx(24);
transform: translateY(-50%);
} }
} }
} }
...@@ -461,12 +474,13 @@ export default { ...@@ -461,12 +474,13 @@ export default {
.uni-input { .uni-input {
padding: 0 toRpx(32); padding: 0 toRpx(32);
height: 100%; height: 100%;
font-size: toRpx(28);
} }
.unit { .unit {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: toRpx(32); left: toRpx(24);
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
......
...@@ -5,6 +5,13 @@ ...@@ -5,6 +5,13 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<view class="flex tips align-center justify-between" v-if="showTips">
<view class="flex align-center">
<view class="sprite-icon icon-equityTip"></view>
客户信息仅支持修改以下部分
</view>
<view class="sprite-icon icon-equityClose" @click="showTips = false"></view>
</view>
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell> <GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell>
</view> </view>
<view class="btns flex"> <view class="btns flex">
...@@ -58,6 +65,7 @@ export default { ...@@ -58,6 +65,7 @@ export default {
data() { data() {
return { return {
showUpload: false, showUpload: false,
showTips: true,
titleList, titleList,
formList: utils.deepClone(UpdateOrderInfo), formList: utils.deepClone(UpdateOrderInfo),
valueKey: '', valueKey: '',
...@@ -68,7 +76,7 @@ export default { ...@@ -68,7 +76,7 @@ export default {
orderObj: { orderObj: {
owner: '', owner: '',
phone: '', phone: '',
salesType: 0, salesType: '0',
carVin: '', carVin: '',
certificateNo: '', certificateNo: '',
notes: '' notes: ''
...@@ -115,9 +123,10 @@ export default { ...@@ -115,9 +123,10 @@ export default {
this.orderObj.carVin = data.owner.carVin this.orderObj.carVin = data.owner.carVin
this.orderObj.owner = data.owner.owner this.orderObj.owner = data.owner.owner
this.orderObj.phone = data.owner.phone this.orderObj.phone = data.owner.phone
this.orderObj.salesType = data.owner.salesType this.orderObj.salesType = data.owner.salesType.toString()
this.orderObj.certificateNo = data.owner.certificateNo this.orderObj.certificateNo = data.owner.certificateNo
this.orderObj.notes = data.notes this.orderObj.notes = data.notes
this.updateFormSelection()
}, },
// 输入框失去焦点事件 // 输入框失去焦点事件
inputBlur(e, val) { inputBlur(e, val) {
...@@ -220,7 +229,17 @@ export default { ...@@ -220,7 +229,17 @@ export default {
}, },
radioChange(val) { radioChange(val) {
console.log(val) console.log(val)
this.orderObj.salesType = val.detail.value this.orderObj.salesType = val.detail.value.toString()
},
updateFormSelection() {
this.formList.forEach(group => {
group.forEach(item => {
if (item.value === 'salesType') {
item.current = this.orderObj.salesType
console.log('更新salesType字段:', item.current)
}
})
})
} }
} }
} }
...@@ -284,6 +303,19 @@ export default { ...@@ -284,6 +303,19 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999; color: #999;
} }
.tips {
height: toRpx(72);
border-radius: toRpx(16);
background: #e0e8ff;
color: #2c66f7;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(0) toRpx(34);
margin-bottom: toRpx(16);
.icon-equityTip {
margin-right: toRpx(14);
}
}
.btns { .btns {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -307,6 +339,10 @@ export default { ...@@ -307,6 +339,10 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
} }
::v-deep .cell-value .textarea {
// margin-bottom: 0;
height: toRpx(192) !important;
}
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: 20rpx; margin-left: 20rpx;
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
padding: 0 toRpx(48); padding: 0 toRpx(48);
} }
.back { .back {
height: 40rpx; height: toRpx(40);
} }
.upload-proof-of-payment { .upload-proof-of-payment {
width: 100%; width: 100%;
......
...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [ ...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [
{ {
label: '客户类型', label: '客户类型',
value: 'salesType', value: 'salesType',
type: 'radio', type: 'radio',
current: 0, current: '0',
radioList: [ radioList: [
{ {
value: 0, value: '0',
name: '售前' name: '售前'
}, },
{ {
value: 1, value: '1',
name: '售后' name: '售后'
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!