Commit 9f93e038 by cen

feat: 新增签约信息

1 parent 593e926d
...@@ -2,6 +2,7 @@ import commonApi from './common' ...@@ -2,6 +2,7 @@ import commonApi from './common'
import systemApi from './systemApi' import systemApi from './systemApi'
import userApi from './userApi' import userApi from './userApi'
import boutiqueApi from './boutique' import boutiqueApi from './boutique'
import evaluationApi from './evaluation'
import customerApi from './customerApi' import customerApi from './customerApi'
import pointApi from './point' import pointApi from './point'
import receptionApi from './receptionApi' import receptionApi from './receptionApi'
...@@ -18,5 +19,6 @@ module.exports = { ...@@ -18,5 +19,6 @@ module.exports = {
receptionApi, receptionApi,
sceneMarketApi, sceneMarketApi,
interceptionApi, interceptionApi,
popupApi popupApi,
evaluationApi
} }
No preview for this file type
...@@ -144,6 +144,9 @@ ...@@ -144,6 +144,9 @@
.mt-24 { .mt-24 {
margin-top: toRpx(24); margin-top: toRpx(24);
} }
.mt-28 {
margin-top: toRpx(28);
}
.mt-32 { .mt-32 {
margin-top: toRpx(32); margin-top: toRpx(32);
} }
......
...@@ -85,10 +85,12 @@ ...@@ -85,10 +85,12 @@
background-position: calc(100vmin * (1173 / 768) * -0.6952259164535379) calc(100vmin * (1173 / 768) * -0.4053708439897698);} background-position: calc(100vmin * (1173 / 768) * -0.6952259164535379) calc(100vmin * (1173 / 768) * -0.4053708439897698);}
.icon-edit { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-edit { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.2894288150042626) calc(100vmin * (1173 / 768) * -0.6692242114236999);} background-position: calc(100vmin * (1173 / 768) * -0.2894288150042626) calc(100vmin * (1173 / 768) * -0.6692242114236999);}
.icon-evaluation-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.2907075873827792) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-evaluationClose { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-evaluationClose { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.45822676896845693) calc(100vmin * (1173 / 768) * -0.45865302642796246);} background-position: calc(100vmin * (1173 / 768) * -0.45822676896845693) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-expiration { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-expiration { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.2907075873827792) calc(100vmin * (1173 / 768) * -0.5375106564364877);} background-position: calc(100vmin * (1173 / 768) * -0.3380221653878943) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-eye-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-eye-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.309462915601023) calc(100vmin * (1173 / 768) * -0.6692242114236999);} background-position: calc(100vmin * (1173 / 768) * -0.309462915601023) calc(100vmin * (1173 / 768) * -0.6692242114236999);}
.icon-eyes-off { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-eyes-off { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -96,13 +98,13 @@ ...@@ -96,13 +98,13 @@
.icon-eyes-on { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-eyes-on { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.3495311167945439) calc(100vmin * (1173 / 768) * -0.6692242114236999);} background-position: calc(100vmin * (1173 / 768) * -0.3495311167945439) calc(100vmin * (1173 / 768) * -0.6692242114236999);}
.icon-face-error-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-face-error-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3380221653878943) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-face-error { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.3853367433930094) calc(100vmin * (1173 / 768) * -0.5375106564364877);} background-position: calc(100vmin * (1173 / 768) * -0.3853367433930094) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-face-success-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-face-error { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.43265132139812446) calc(100vmin * (1173 / 768) * -0.5375106564364877);} background-position: calc(100vmin * (1173 / 768) * -0.43265132139812446) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-face-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-face-success-active { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.4799658994032396) calc(100vmin * (1173 / 768) * -0.5375106564364877);} background-position: calc(100vmin * (1173 / 768) * -0.4799658994032396) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-face-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.5272804774083546) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-feedback { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-feedback { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4855072463768116);} background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.4855072463768116);}
.icon-ffdyj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-ffdyj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
...@@ -192,17 +194,17 @@ ...@@ -192,17 +194,17 @@
.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.24893435635123615) calc(100vmin * (1173 / 768) * -0.6355498721227621);} background-position: calc(100vmin * (1173 / 768) * -0.24893435635123615) calc(100vmin * (1173 / 768) * -0.6355498721227621);}
.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.5272804774083546) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.5745950554134698) calc(100vmin * (1173 / 768) * -0.5375106564364877);} background-position: calc(100vmin * (1173 / 768) * -0.5745950554134698) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.icon-notice-study { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-notice-success { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-notice-success { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6300085251491901) calc(100vmin * (1173 / 768) * -0.6692242114236999);} background-position: calc(100vmin * (1173 / 768) * -0.6300085251491901) calc(100vmin * (1173 / 768) * -0.6692242114236999);}
.icon-notice-system { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-notice-system { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-notice-violate { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.04731457800511509) calc(100vmin * (1173 / 768) * -0.5882352941176471);} background-position: calc(100vmin * (1173 / 768) * -0.04731457800511509) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-order-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-notice-violate { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.09462915601023018) calc(100vmin * (1173 / 768) * -0.5882352941176471);} background-position: calc(100vmin * (1173 / 768) * -0.09462915601023018) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-order-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.14194373401534527) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-pause { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-pause { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.5601023017902813) calc(100vmin * (1173 / 768) * -0.6355498721227621);} background-position: calc(100vmin * (1173 / 768) * -0.5601023017902813) calc(100vmin * (1173 / 768) * -0.6355498721227621);}
.icon-payType-1 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662); .icon-payType-1 { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
...@@ -238,7 +240,7 @@ ...@@ -238,7 +240,7 @@
.icon-qgtc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-qgtc-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.6304347826086957) calc(100vmin * (1173 / 768) * -0.6355498721227621);} background-position: calc(100vmin * (1173 / 768) * -0.6304347826086957) calc(100vmin * (1173 / 768) * -0.6355498721227621);}
.icon-qr-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-qr-success { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.14194373401534527) calc(100vmin * (1173 / 768) * -0.5882352941176471);} background-position: calc(100vmin * (1173 / 768) * -0.18925831202046037) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-qt-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-qt-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.6538789428815004) calc(100vmin * (1173 / 768) * -0.6355498721227621);} background-position: calc(100vmin * (1173 / 768) * -0.6538789428815004) calc(100vmin * (1173 / 768) * -0.6355498721227621);}
.icon-quality-no-data { width: calc(100vmin * (1173 / 768) * 0.19096334185848252); height: calc(100vmin * (1173 / 768) * 0.0886615515771526); .icon-quality-no-data { width: calc(100vmin * (1173 / 768) * 0.19096334185848252); height: calc(100vmin * (1173 / 768) * 0.0886615515771526);
...@@ -270,7 +272,7 @@ ...@@ -270,7 +272,7 @@
.icon-record { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-record { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.4701619778346121) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.4701619778346121) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-revoke { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-revoke { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.18925831202046037) calc(100vmin * (1173 / 768) * -0.5882352941176471);} background-position: calc(100vmin * (1173 / 768) * -0.23657289002557544) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-revokeOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-revokeOrder { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.033674339300937765) calc(100vmin * (1173 / 768) * -0.6355498721227621);} background-position: calc(100vmin * (1173 / 768) * -0.033674339300937765) calc(100vmin * (1173 / 768) * -0.6355498721227621);}
.icon-right-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-right-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -284,9 +286,11 @@ ...@@ -284,9 +286,11 @@
.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.6952259164535379) calc(100vmin * (1173 / 768) * -0.020034100596760442);} background-position: calc(100vmin * (1173 / 768) * -0.6952259164535379) calc(100vmin * (1173 / 768) * -0.020034100596760442);}
.icon-scene-0 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-scene-0 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.23657289002557544) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-scene-1 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.28388746803069054) calc(100vmin * (1173 / 768) * -0.5882352941176471);} background-position: calc(100vmin * (1173 / 768) * -0.28388746803069054) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-scene-1 { 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.5882352941176471);}
.icon-scene-7 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.37851662404092073) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-scene-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-scene-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.5208866155157715) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.5208866155157715) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-scene-change { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-scene-change { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -318,7 +322,7 @@ ...@@ -318,7 +322,7 @@
.icon-store-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-store-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6952259164535379) calc(100vmin * (1173 / 768) * -0.10017050298380221);} background-position: calc(100vmin * (1173 / 768) * -0.6952259164535379) calc(100vmin * (1173 / 768) * -0.10017050298380221);}
.icon-store { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-store { 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.5882352941176471);} background-position: calc(100vmin * (1173 / 768) * -0.4258312020460358) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.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) calc(100vmin * (1173 / 768) * -0.5375106564364877);} background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5375106564364877);}
.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);
...@@ -376,8 +380,4 @@ ...@@ -376,8 +380,4 @@
.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.1875532821824382) calc(100vmin * (1173 / 768) * -0.6692242114236999);} background-position: calc(100vmin * (1173 / 768) * -0.1875532821824382) calc(100vmin * (1173 / 768) * -0.6692242114236999);}
.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.6952259164535379) calc(100vmin * (1173 / 768) * -0.26044330775788577);}
.icon-evaluation-management { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.37851662404092073) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
.icon-scene-7 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.4258312020460358) calc(100vmin * (1173 / 768) * -0.5882352941176471);}
\ No newline at end of file \ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.6952259164535379) calc(100vmin * (1173 / 768) * -0.26044330775788577);}
\ No newline at end of file \ No newline at end of file

2.76 MB | W: | H:

2.76 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -214,6 +214,18 @@ ...@@ -214,6 +214,18 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/evaluationForm/signInfo",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/evaluationForm/confirmCar",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
</view> </view>
</view> </view>
<view class="flex align-center footer-box justify-center" v-if="isMake"> <view class="flex align-center footer-box justify-center" v-if="isMake && orderInfo.status !== 12">
<view class="edit btn flex-1" @click="repeal">撤销工单</view> <view class="edit btn flex-1" @click="repeal">撤销工单</view>
</view> </view>
<!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'"> <!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'">
......
...@@ -32,77 +32,14 @@ ...@@ -32,77 +32,14 @@
<view class="fromBox"> <view class="fromBox">
<!-- 车辆信息表单 --> <!-- 车辆信息表单 -->
<view v-if="currentStep === 1" class="form-container">
<view class="form-item flex align-center justify-between" :class="{ 'full-width': field.fullWidth }" v-for="field in formFields" :key="field.key" @click="handleCell(field)">
<view class="from-label">
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<template v-if="field.type === 'input'">
<input v-if="field.targetObj" type="text" :placeholder="'请输入' + field.label" v-model="formData[field.targetObj][field.targetKey]" />
<input v-else type="text" :placeholder="'请输入' + field.label" v-model="formData[field.targetKey]" />
</template>
<template v-if="field.type === 'select'">
<view class="flex align-center from-value">
<template v-if="field.targetObj ? formData[field.targetObj][field.targetKey] : formData[field.targetKey]">
<template v-if="field.showText && userInfo && userInfo[field.showText]">
{{ userInfo[field.showText] }}
<text>|</text>
</template>
{{ field.targetObj ? formData[field.targetObj][field.targetNameKey] : formData[field.targetNameKey] }}
</template>
<template v-else>
<span class="placeholder">请选择</span>
</template>
<view class="sprite-icon icon-icon-select"></view>
</view>
</template>
<template v-if="field.type === 'radio'">
<radio-group class="radio-group flex align-center" @change="radioChange">
<label class="uni-list-cell uni-list-cell-pd align-center flex ml-48" v-for="(item, index) in field.radioList" :key="item.value">
<radio style="transform: scale(0.7)" :value="item.value" :checked="index === current" />
<view class="radio-name">{{ item.name }}</view> <FormCell v-if="currentStep === 1" :formFields="formFields" :formData="formData" @handleCell="handleCell" />
</label>
</radio-group>
</template>
<template v-if="field.type === 'pricek'">
<picker @change="bindPickerChange" range-key="name" :value="index" :range="field.fieldPickerArray">
<view class="flex align-center from-value">
<template v-if="field.targetObj ? formData[field.targetObj][field.targetKey] : formData[field.targetKey]">
{{ field.targetObj ? formData[field.targetObj][field.targetNameKey] : formData[field.targetNameKey] }}
</template>
<template v-else>
<span class="placeholder">请选择</span>
</template>
<view class="sprite-icon icon-icon-select"></view>
</view>
</picker>
</template>
</view>
<view class="form-item full-width">
<view class="from-label">车况描述</view>
<textarea placeholder="请输入 (1000字以内)" auto-height="true" v-model="formData.carCondition" maxlength="1000" />
</view>
</view>
<!-- 牌证信息表单 --> <!-- 牌证信息表单 -->
<view v-else-if="currentStep === 2" class="form-container"> <FormCell v-else-if="currentStep === 2" :formFields="licenseFormFields" :formData="formData" @handleCell="handleCell" />
<view class="form-item flex align-center" :class="{ 'full-width': field.fullWidth }" v-for="field in licenseFormFields" :key="field.key" @click="handleCell(field)">
<view class="from-label">
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<input type="text" :placeholder="'请输入' + field.label" v-model="formData[field.key]" />
</view>
<view class="form-item full-width">
<view class="from-label">原车主住址</view>
<textarea placeholder="请输入 (1000字以内)" v-model="formData.carCondition" maxlength="1000" />
</view>
</view>
<!-- 图像信息表单 --> <!-- 图像信息表单 -->
<view v-else-if="currentStep === 3" class="form-container"> <view v-else-if="currentStep === 3" class="form-container-upload">
<view class="upload-section"> <view class="upload-section">
<view class="section-title">车辆图片</view> <view class="section-title">车辆图片</view>
<view class="upload-grid"> <view class="upload-grid">
...@@ -195,12 +132,14 @@ ...@@ -195,12 +132,14 @@
import { popupTypeEnum } from '../boutique/tool/contant' import { popupTypeEnum } from '../boutique/tool/contant'
import OrderPopup from '@/components/OrderPopup/index.vue' import OrderPopup from '@/components/OrderPopup/index.vue'
import SelectCar from './components/SelectCar.vue' import SelectCar from './components/SelectCar.vue'
import FormCell from './components/FormCell.vue'
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js' import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
export default { export default {
name: 'AddEvaluationFrom', name: 'AddEvaluationFrom',
components: { components: {
OrderPopup, OrderPopup,
SelectCar SelectCar,
FormCell
}, },
computed: { computed: {
displayData() { displayData() {
...@@ -230,7 +169,7 @@ export default { ...@@ -230,7 +169,7 @@ export default {
day: '10' day: '10'
} }
], ],
userInfo: {},
popupTypeEnum, popupTypeEnum,
formData: { evalOrderBasicReqDTO: {} }, formData: { evalOrderBasicReqDTO: {} },
currentStep: 1, // 当前步骤,默认为1 currentStep: 1, // 当前步骤,默认为1
...@@ -457,16 +396,40 @@ export default { ...@@ -457,16 +396,40 @@ export default {
{ name: '中', value: '3' }, { name: '中', value: '3' },
{ name: '差', value: '4' } { name: '差', value: '4' }
] ]
},
{
key: 'comprehensiveEvaluation',
label: '车况描述',
required: true,
fullWidth: true,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'textarea'
} }
], ],
licenseFormFields: [ licenseFormFields: [
{ key: 'sales顾问', label: '钥匙数', required: true, fullWidth: false }, { key: 'sales顾问', label: '钥匙数', required: true, fullWidth: false, targetKey: 'sellerUserId', targetObj: 'evalOrderBasicReqDTO', type: 'input' },
{ key: 'brandModel', label: '过户次数', required: true, fullWidth: false }, { key: 'brandModel', label: '过户次数', required: true, fullWidth: false, targetKey: 'sellerUserId', targetObj: 'evalOrderBasicReqDTO', type: 'input' },
{ key: 'vin', label: '交强险到期', required: true, fullWidth: false }, { key: 'vin', label: '交强险到期', required: true, fullWidth: false, type: 'select' },
{ key: 'licensePlate', label: '年审到期', required: true, fullWidth: false }, { key: 'licensePlate', label: '年审到期', required: true, fullWidth: false, type: 'select' },
{ key: 'engineNo', label: '商业险到期', required: true, fullWidth: false }, { key: 'engineNo', label: '商业险到期', required: true, fullWidth: false, type: 'select' },
{ key: 'registrationCity', label: '原车主名称', required: true, fullWidth: false }, { key: 'registrationCity', label: '原车主名称', required: true, fullWidth: false, targetKey: 'sellerUserId', targetObj: 'evalOrderBasicReqDTO', type: 'input' },
{ key: 'registrationDate', label: '原车主电话', required: true, fullWidth: true } { key: 'registrationDate', label: '原车主电话', required: true, fullWidth: true, targetKey: 'sellerUserId', targetObj: 'evalOrderBasicReqDTO', type: 'input' },
{
key: 'comprehensiveEvaluation',
label: '原车主住址',
required: true,
fullWidth: true,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'textarea'
}
], ],
uploadFields: [ uploadFields: [
{ key: 'exterior-front-left-45', label: '左前45度', required: true }, { key: 'exterior-front-left-45', label: '左前45度', required: true },
...@@ -904,82 +867,15 @@ export default { ...@@ -904,82 +867,15 @@ export default {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(268)}); height: calc(100% - #{toRpx(268)});
} }
.form-container {
.form-container-upload {
width: 100%; width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
gap: toRpx(24);
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
padding-right: toRpx(8); padding-right: toRpx(8);
} }
.form-item {
border-radius: toRpx(24);
background: #ffffff;
padding: toRpx(28) toRpx(32);
box-sizing: border-box;
}
.form-item.full-width {
grid-column: 1 / -1;
}
.from-label {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
display: flex;
align-items: flex-start;
width: toRpx(240);
}
.from-value {
display: flex;
justify-content: flex-end;
align-items: center;
height: 100%;
.sprite-icon {
margin-bottom: toRpx(2);
}
}
.placeholder {
color: #999;
font-size: toRpx(28);
line-height: toRpx(32);
}
.radio-name {
display: inline-block;
color: #333333;
font-size: toRpx(28);
}
input {
flex: 1;
height: toRpx(40);
font-size: toRpx(28);
color: #333333;
padding: 0;
text-align: right;
}
textarea {
margin-top: toRpx(22);
border-radius: toRpx(16);
border: toRpx(2) solid #eff0f2;
background: #f4f5f7;
padding: toRpx(24);
width: 100%;
}
.textarea-placeholder {
color: #999999;
font-size: toRpx(28);
font-weight: 400;
}
.requiredLabel {
color: #f24724;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
/* 上传按钮样式 */ /* 上传按钮样式 */
.upload-btn { .upload-btn {
width: toRpx(200); width: toRpx(200);
......
<template>
<view class="form-container formCell">
<view class="form-item flex align-center justify-between" :class="{ 'full-width': field.fullWidth, 'form-item-textarea': field.type === 'textarea' }" v-for="field in formFields" :key="field.key" @click.stop="handleCell(field)">
<view class="from-label" v-if="field.type !== 'pdf'">
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<template v-if="field.type === 'input'">
<input v-if="field.targetObj" type="text" :placeholder="'请输入' + field.label" v-model="formData[field.targetObj][field.targetKey]" />
<input v-else type="text" :placeholder="'请输入' + field.label" v-model="formData[field.targetKey]" />
</template>
<template v-if="field.type === 'select'">
<view class="flex align-center from-value">
<template v-if="field.targetObj ? formData[field.targetObj][field.targetKey] : formData[field.targetKey]">
<template v-if="field.showText && userInfo && userInfo[field.showText]">
{{ userInfo[field.showText] }}
<text>|</text>
</template>
{{ field.targetObj ? formData[field.targetObj][field.targetNameKey] : formData[field.targetNameKey] }}
</template>
<template v-else>
<span class="placeholder">请选择</span>
</template>
<view class="sprite-icon icon-icon-select"></view>
</view>
</template>
<template v-if="field.type === 'radio'">
<radio-group class="radio-group flex align-center" @change="radioChange">
<label class="uni-list-cell uni-list-cell-pd align-center flex ml-48" v-for="(item, index) in field.radioList" :key="item.value">
<radio style="transform: scale(0.7)" :value="item.value" :checked="index === current" />
<view class="radio-name">{{ item.name }}</view>
</label>
</radio-group>
</template>
<template v-if="field.type === 'pricek'">
<picker @change="bindPickerChange" range-key="name" :value="index" :range="field.fieldPickerArray">
<view class="flex align-center from-value">
<template v-if="field.targetObj ? formData[field.targetObj][field.targetKey] : formData[field.targetKey]">
{{ field.targetObj ? formData[field.targetObj][field.targetNameKey] : formData[field.targetNameKey] }}
</template>
<template v-else>
<span class="placeholder">请选择</span>
</template>
<view class="sprite-icon icon-icon-select"></view>
</view>
</picker>
</template>
<template v-if="field.type === 'textarea'">
<textarea placeholder="请输入 (1000字以内)" v-model="formData.carCondition" maxlength="1000" />
</template>
<template v-if="field.type === 'pdf'">
<view class="flex-1">
<view class="flex flex-1 align-center justify-between">
<view class="from-label">
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<view class="flex align-center from-value">
<template>
<span class="placeholder">点击编辑</span>
</template>
<view class="sprite-icon icon-icon-select"></view>
</view>
</view>
<view class="pdf-box flex align-center justify-between">
<view>
<!-- <view class="sprite-icon icon-icon-select"></view> -->
<text>二手车买卖补充协议</text>
</view>
<view class="flex align-center">
<view class="btn">预览</view>
<view class="btn">删除</view>
</view>
</view>
</view>
</template>
</view>
</view>
</template>
<script>
export default {
name: 'FormCell',
props: {
formFields: {
type: Array,
default: () => []
},
formData: {
type: Object,
default: () => ({})
},
userInfo: {
type: Object,
default: () => ({})
}
},
data() {
return {
userInfo: {},
current: 0,
index: 0
}
},
computed: {},
methods: {
handleCell(field) {
this.$emit('handleCell', field)
},
radioChange(e) {
const value = e.detail.value
this.$emit('radioChange', value)
},
bindPickerChange(e) {
const index = e.detail.value
this.index = index
this.$emit('pickerChange', index)
},
updateFormData(data) {
this.$emit('update:formData', data)
}
},
watch: {
formData: {
deep: true,
handler(newData) {
this.$emit('formDataChange', newData)
}
}
},
mounted() {
// 组件挂载时的初始化逻辑
this.userInfo = uni.$storage.get('userInfo') || {}
console.log('userInfo', this.userInfo)
}
}
</script>
<style scoped lang="scss">
.formCell {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
gap: toRpx(24);
max-height: 100%;
overflow-y: auto;
padding-right: toRpx(8);
align-items: start;
.form-item {
border-radius: toRpx(24);
background: #ffffff;
padding: toRpx(28) toRpx(32);
box-sizing: border-box;
}
.form-item.full-width {
grid-column: 1 / -1;
height: auto;
uni-textarea {
height: toRpx(192);
}
}
.from-label {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
display: flex;
align-items: flex-start;
width: toRpx(240);
}
.from-value {
display: flex;
justify-content: flex-end;
align-items: center;
height: 100%;
.sprite-icon {
margin-bottom: toRpx(2);
}
}
.placeholder {
color: #999;
font-size: toRpx(28);
line-height: toRpx(32);
}
.radio-name {
display: inline-block;
color: #333333;
font-size: toRpx(28);
}
input {
flex: 1;
height: toRpx(40);
font-size: toRpx(28);
color: #333333;
padding: 0;
text-align: right;
}
.form-item-textarea {
flex-direction: column;
align-items: start;
textarea {
margin-top: toRpx(22);
border-radius: toRpx(16);
border: toRpx(2) solid #eff0f2;
background: #f4f5f7;
padding: toRpx(24);
width: 100%;
.textarea-placeholder {
color: #999999;
font-size: toRpx(28);
font-weight: 400;
}
}
}
.requiredLabel {
color: #f24724;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
.pdf-box {
padding: toRpx(20) toRpx(24);
box-sizing: border-box;
height: toRpx(80);
border-radius: toRpx(8);
background: #f4f5f7;
margin-top: toRpx(36);
color: #333333;
font-size: toRpx(28);
font-weight: 400;
.sprite-icon {
margin-right: toRpx(16);
}
.btn {
color: #4673ff;
margin-left: toRpx(32);
}
}
}
</style>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<slot name="footer"> <slot name="footer">
<view class="footer-box flex justify-center" v-if="isShowFooter"> <view class="footer-box flex justify-center" v-if="isShowFooter">
<view class="cancle-btn btn" v-if="isShowCancel" @click.stop="closePopup">{{ cancelText }}</view> <view class="cancle-btn btn" v-if="isShowCancel" @click.stop="closePopup">{{ cancelText }}</view>
<view class="sure-btn btn" @click.stop="confirm">{{ confirmText }}</view> <view class="sure-btn btn" :class="{ 'single-btn': isShowCancel }" @click.stop="confirm">{{ confirmText }}</view>
</view> </view>
</slot> </slot>
</uni-popup> </uni-popup>
...@@ -114,44 +114,59 @@ export default { ...@@ -114,44 +114,59 @@ export default {
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
// 大弹窗
::v-deep .customPopup .uni-popup__wrapper.bottom { ::v-deep .customPopup .uni-popup__wrapper.bottom {
overflow: hidden; overflow: hidden;
border-radius: toRpx(32) toRpx(32) 0 0; border-radius: toRpx(32) toRpx(32) 0 0;
.popup-top-box { .popup-top-box {
padding: toRpx(32) toRpx(48); padding: 0 toRpx(32);
height: toRpx(68);
}
.footer-box {
width: 100%;
height: toRpx(164);
background-color: #fff;
} }
} }
::v-deep .customPopup .center { //小弹窗
::v-deep .customPopup .uni-popup__wrapper.center {
width: toRpx(848); width: toRpx(848);
border-radius: toRpx(36); border-radius: toRpx(36);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%); background-color: #fff !important;
padding: 0 toRpx(64) toRpx(48);
overflow: hidden; overflow: hidden;
.content { .content {
min-height: 32vh; min-height: 32vh;
max-height: 80vh; max-height: 80vh;
padding: 0 toRpx(64); overflow-y: auto;
} padding-bottom: toRpx(96);
.footer-box { box-sizing: border-box;
width: calc(100% - #{toRpx(128)}); background-color: #fff;
left: toRpx(64);
border-radius: 0 0 toRpx(42) toRpx(42);
} }
} .popup-top-box {
.popup-top-box { color: #1a1a1a;
color: #1a1a1a; font-size: toRpx(40);
font-size: toRpx(40); font-weight: 500;
font-weight: 500;
text-align: center;
padding: toRpx(48) toRpx(64);
background-color: #fff;
.popup-top-box-title {
flex: 1;
text-align: center; text-align: center;
background-color: #fff;
height: toRpx(136);
.popup-top-box-title {
flex: 1;
text-align: center;
}
.icon-close {
text-align: end;
}
} }
.icon-close { .footer-box {
text-align: end; width: 100%;
margin-top: toRpx(16);
border-radius: toRpx(42);
} }
} }
.justify-between { .justify-between {
-webkit-box-pack: justify; -webkit-box-pack: justify;
-ms-flex-pack: justify; -ms-flex-pack: justify;
...@@ -166,28 +181,25 @@ export default { ...@@ -166,28 +181,25 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 600; font-weight: 600;
} }
.footer-box { .single-btn {
width: 100%; width: 100%;
height: toRpx(164); }
background-color: #fff; .btn {
flex: 1;
.btn { height: toRpx(76);
flex: 1; border-radius: toRpx(48);
height: toRpx(80); opacity: 1;
border-radius: toRpx(48); line-height: toRpx(80);
opacity: 1; text-align: center;
line-height: toRpx(80); color: rgba(26, 26, 26, 0.6);
text-align: center; font-size: toRpx(32);
color: rgba(26, 26, 26, 0.6); font-weight: 500;
font-size: toRpx(32); }
font-weight: 500; .cancle-btn {
} background: #f0f1f5;
.cancle-btn { }
background: #f0f1f5; .sure-btn {
} color: #fff;
.sure-btn { background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
} }
</style> </style>
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<GeneralPopup ref="carPopup" popupClass="carPopup" :list="list" :title="title"> <GeneralPopup ref="carPopup" popupClass="carPopup" :list="list" :title="title">
<template v-slot:content> <template v-slot:content>
<StepTab :steps="steps" :currentStep="currentStep" :clickable="true" @step-change="onStepChange" :isShowStepNumber="false"></StepTab> <StepTab :steps="steps" :currentStep="currentStep" :clickable="true" @step-change="onStepChange" :isShowStepNumber="false"></StepTab>
<SortByNameList :items="currentStepData" :activeValue="currentSelectedId" :activeField="'id'" :itemNameField="'name'" :groupKeyField="'letter'" :itemsPerRow="3" :itemSpacing="32" @item-click="handleItemClick" /> <view class="list-component">
<SortByNameList :items="currentStepData" :activeValue="currentSelectedId" :activeField="'id'" :itemNameField="'name'" :groupKeyField="'letter'" :itemsPerRow="3" :itemSpacing="32" @item-click="handleItemClick" />
</view>
</template> </template>
</GeneralPopup> </GeneralPopup>
</template> </template>
...@@ -42,7 +44,8 @@ export default { ...@@ -42,7 +44,8 @@ export default {
selectedBrand: null, selectedBrand: null,
selectedSeries: null, selectedSeries: null,
selectedModel: null, selectedModel: null,
selectedYear: null selectedYear: null,
loadingYearData: false // 添加加载状态标记
} }
}, },
created() { created() {
...@@ -74,104 +77,89 @@ export default { ...@@ -74,104 +77,89 @@ export default {
}, },
methods: { methods: {
loadCarData() { loadCarData() {
let that = this
const params = { const params = {
username: 'test', app_key: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
timestamp: '1234567890', timestamp: '1234567890',
nonce: 'abcdefg' source: 'dev_author',
method: 'glsx.accounts.base.car.brand.complete',
format: 'json'
} }
const secret = 'your_secret_key' const secret = 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const signature = sign(params, secret) const signature = sign(params, secret)
console.log('签名结果:', signature) console.log('签名结果:', signature)
// uni.$api.evaluationApi uni.request({
// .carBandList({ url: 'http://qcdidicb.glsx.com.cn/router?method=glsx.accounts.base.car.brand.complete',
// content: element.cardCode method: 'GET',
// }) dataType: 'json',
// .then(data => {}) data: {
// 使用Promise模拟API请求 sign: signature,
new Promise((resolve, reject) => { ...params
try { },
const jsonData = require('./carData.json') success(result) {
resolve(jsonData) console.log('请求结果:', result)
} catch (error) { if (result.data && result.data.code === '0' && result.data.data && result.data.data.carinfos) {
console.error('Failed to load carData.json:', error) // 不再预先添加所有车型的年份数据
reject(error) that.carBrandData = result.data.data.carinfos
}
})
.then(result => {
console.log('Loaded car data successfully')
if (result && result.code === '0' && result.data && result.data.carinfos) {
const carDataWithYears = this.addMockYearsToModels(result.data.carinfos)
this.carBrandData = carDataWithYears
} else { } else {
console.error('Invalid car data format:', result) console.error('Invalid car data format:', result)
} }
}) },
.catch(error => { fail(error) {
console.error('Error loading car data:', error) console.log(error, 'error')
this.carBrandData = this.getDefaultCarData() }
}) })
}, },
addMockYearsToModels(carinfos) { // 加载指定车型的年份数据
const carinfosCopy = JSON.parse(JSON.stringify(carinfos)) loadYearDataForModel(model) {
console.log('loadYearDataForModel', model)
const addYearsToModelsRecursive = items => { // 如果已经加载过数据,则不再重复加载
if (!Array.isArray(items)) return items if (model.childs && model.childs.length > 0) {
return Promise.resolve(model.childs)
return items.map(item => { }
if (!item.childs || !Array.isArray(item.childs) || item.childs.length === 0) {
const yearsCount = Math.floor(Math.random() * 2) + 2
const currentYear = new Date().getFullYear()
item.childs = [] this.loadingYearData = true
for (let i = 0; i < yearsCount; i++) { let that = this
const year = currentYear - i const params = {
item.childs.push({ app_key: '48e5e13229b82c1b4e6e8c96151f0637',
letter: String(year).charAt(0), v: '1.0.0',
name: `${year}款`, timestamp: '1234567890',
id: item.id * 1000 + i + 1 source: 'dev_author',
}) method: 'glsx.accounts.base.car.types',
format: 'json',
csId: model.id
}
const secret = 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const signature = sign(params, secret)
console.log('签名结果:', signature)
return new Promise((resolve, reject) => {
uni.request({
url: 'http://qcdidicb.glsx.com.cn/router?method=glsx.accounts.base.car.types',
method: 'GET',
dataType: 'json',
data: {
sign: signature,
csId: model.id,
...params
},
success(result) {
console.log('请求结果:', result)
if (result.data && result.data.code === '0' && result.data.data && result.data.data.carinfos) {
model.childs = result.data.data.carinfos
this.loadingYearData = false
resolve(model.childs)
} else {
reject(new Error('Invalid car data format'))
} }
} else { },
item.childs = addYearsToModelsRecursive(item.childs) fail(error) {
console.log(error, 'error')
} }
return item
}) })
} })
return addYearsToModelsRecursive(carinfosCopy)
},
// 默认的备用数据,当JSON加载失败时使用
getDefaultCarData() {
return [
{
letter: '2',
name: '212',
id: 3256,
childs: [
{
letter: 'B',
name: '北京汽车制造厂',
id: 3257,
childs: [
{
letter: 'J',
name: '狙击手',
id: 1150349,
childs: [
{ letter: '2', name: '2023款', id: 1001 },
{ letter: '2', name: '2022款', id: 1002 },
{ letter: '2', name: '2021款', id: 1003 }
]
}
]
}
],
logoUrl: 'https://qcwx.glsx.com.cn/upload/carbrand/2e1210f1-32d4-4e82-abf3-c38e9754b12c.png'
}
]
}, },
open() { open() {
...@@ -189,7 +177,14 @@ export default { ...@@ -189,7 +177,14 @@ export default {
} else if (index === 2 && this.selectedSeries) { } else if (index === 2 && this.selectedSeries) {
this.currentStep = 2 this.currentStep = 2
} else if (index === 3 && this.selectedModel) { } else if (index === 3 && this.selectedModel) {
this.currentStep = 3 // 如果还没有年份数据,则加载
if (!this.selectedModel.childs || this.selectedModel.childs.length === 0) {
this.loadYearDataForModel(this.selectedModel).then(() => {
this.currentStep = 3
})
} else {
this.currentStep = 3
}
} }
// 重置当前步骤的选中ID // 重置当前步骤的选中ID
...@@ -218,11 +213,13 @@ export default { ...@@ -218,11 +213,13 @@ export default {
this.selectedModel = item this.selectedModel = item
this.selectedYear = null this.selectedYear = null
if (item.childs && item.childs.length > 0) { // 当点击第三层车型选择时,才去请求第四级数据
this.currentStep = 3 this.loadYearDataForModel(item).then(years => {
} if (years && years.length > 0) {
this.currentStep = 3
this.$emit('model-selected', item) }
this.$emit('model-selected', item)
})
} else if (this.currentStep === 3) { } else if (this.currentStep === 3) {
this.selectedYear = item this.selectedYear = item
...@@ -248,6 +245,10 @@ export default { ...@@ -248,6 +245,10 @@ export default {
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
.list-component {
width: 100%;
height: calc(100% - #{toRpx(100)});
}
} }
} }
</style> </style>
...@@ -58,7 +58,8 @@ export default { ...@@ -58,7 +58,8 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative; position: relative;
padding: toRpx(12) toRpx(32); height: toRpx(64);
padding: 0 toRpx(32);
border-radius: toRpx(12); border-radius: toRpx(12);
background: #f2f2f2; background: #f2f2f2;
z-index: 1; z-index: 1;
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
transition: left 0.15s; transition: left 0.15s;
} }
.tab-first-left { .tab-first-left {
left: - toRpx(64); left: 0;
position: absolute; position: absolute;
} }
.tab-first-right { .tab-first-right {
......
This diff could not be displayed because it is too large.
<template>
<view class="confirm-car">
<view class="nav-bar">
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">确认交车登记</view>
</view>
<view class="detail-content">
<view class="box-class mt-16">
<view class="form-container-upload">
<view class="upload-section">
<view class="section-title">交接清单</view>
<view class="upload-grid">
<view class="flex upload-item-container" :class="{ fullwidth: field.fullwidth }" v-for="field in uploadFields" :key="field.key">
<view class="upload-label">
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<view class="upload-images-wrapper">
<!-- 显示已上传的图片列表 -->
<view v-for="(image, index) in getImages(field, 'upload')" :key="index" class="uploaded-image-container">
<image :src="image" mode="aspectFill" class="uploaded-image"></image>
<view class="delete-icon" @click.stop="deleteImage(field.key, index, 'upload')">
<uni-icons type="clear" size="16" color="#fff"></uni-icons>
</view>
</view>
<!-- 上传按钮,当未达到最大限制时显示 -->
<view v-if="!hasReachedMax(field, 'upload')" class="upload-item" @click="handleImageUpload(field)">
<view class="upload-placeholder">
<view class="sprite-icon icon-uploadAdd"></view>
<text class="upload-text">{{ field.maxCount > 1 ? getImages(field, 'upload').length + '/' + field.maxCount : '上传图片' }}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="upload-section">
<view class="section-title">交车确认照片</view>
<view class="upload-grid">
<view class="flex upload-item-container" :class="{ fullwidth: field.fullwidth }" v-for="field in confirmCarUploadFields" :key="field.key">
<view class="upload-label">
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
</view>
<view class="upload-images-wrapper">
<!-- 显示已上传的图片列表 -->
<view v-for="(image, index) in getImages(field, 'confirm')" :key="index" class="uploaded-image-container">
<image :src="image" mode="aspectFill" class="uploaded-image"></image>
<view class="delete-icon" @click.stop="deleteImage(field.key, index, 'confirm')">
<uni-icons type="clear" size="16" color="#fff"></uni-icons>
</view>
</view>
<!-- 上传按钮,当未达到最大限制时显示 -->
<view v-if="!hasReachedMax(field, 'confirm')" class="upload-item" @click="handleImageUpload(field)">
<view class="upload-placeholder">
<view class="sprite-icon icon-uploadAdd"></view>
<text class="upload-text">{{ field.maxCount > 1 ? getImages(field, 'confirm').length + '/' + field.maxCount : '上传图片' }}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="fromBox">
<FormCell :formFields="formFields" :formData="formData" @handleCell="handleCell" />
</view>
</view>
<view class="button-module flex justify-center align-center">
<view class="button-container flex justify-between">
<view class="cancel-btn">取消</view>
<view class="next-btn" @click="confirmDelivery">确认交车</view>
</view>
</view>
</view>
</view>
<GeneralPopup ref="addAgreementPopup" popupClass="addAgreementPopup" type="center" title="补充协议条款">
<template v-slot:content>
<textarea placeholder="请输入 (1000字以内)" v-model="formData.carCondition" maxlength="1000" />
</template>
</GeneralPopup>
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips">
<template #content>
<view>
<image class="tipsPopupBg" :src="bg" />
<view class="title">确认交车提醒</view>
<view class="tipsConent">
<view>《车辆交接单》、《二手车买卖补充协议》已发送至签约车主,请提醒车主完成签署。</view>
<view>请确定车辆已经交付:代保管人 陈东。</view>
</view>
</view>
</template>
</GeneralPopup>
</view>
</template>
<script>
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import FormCell from './components/FormCell.vue'
import GeneralPopup from './components/GeneralPopup.vue'
export default {
components: {
FormCell,
GeneralPopup
},
data() {
return {
bg: require('@/assets/images/boutique/tipsPopupBg.png'),
userInfo: {},
current: 0,
index: 0,
uploadedImages: {},
confirmCarImages: {},
formFields: [
{
key: 'sellerUserId',
label: '交车时间',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'select'
},
{
key: 'sellerUserId',
label: '交车地点',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input'
},
{
key: 'sellerUserId',
label: '补充协议条款',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'pdf'
}
],
formData: {
evalOrderBasicReqDTO: { sellerUserId: '' },
sellerUserId: '',
sellerName: '',
carCondition: ''
},
uploadFields: [
{ key: 'exterior-front-left-45', label: '机动车登记本', required: true, maxCount: 3 },
{ key: 'exterior-front-right-45', label: '机动车行驶证', required: true, maxCount: 1 },
{ key: 'exterior-back-left-45', label: '购置税证及收据', required: false, maxCount: 1 },
{ key: 'exterior-back-right-45', label: '购车发票', required: false, maxCount: 1 },
{ key: 'interior-front', label: '交管12123截图', required: true, maxCount: 1 },
{ key: 'interior-back', label: '交强险', required: true, maxCount: 1 },
{ key: 'dashboard', label: '过户授权委托书照片/视频', required: true, maxCount: 1 },
{ key: 'engine-room', label: '过户授权委托书照片/视频', required: false, maxCount: 1 }
],
confirmCarUploadFields: [
{ key: 'exterior-front-left-45', label: '正面45度', required: true, maxCount: 1 },
{ key: 'exterior-front-right-45', label: '正面', required: false, maxCount: 1 },
{ key: 'exterior-back-left-45', label: '左侧面', required: false, maxCount: 1 },
{ key: 'exterior-back-right-45', label: '后面', required: false, maxCount: 1 },
{ key: 'interior-front', label: '右侧面', required: false, maxCount: 1 },
{ key: 'interior-back', label: '其他', required: true, maxCount: 5, fullwidth: true }
]
}
},
computed: {},
methods: {
backPage() {
uni.navigateBack({
delta: 1
})
},
handleCell(field) {
console.log('handleCell', field)
this.currentField = field
if (field.type === 'pdf') {
this.$refs.addAgreementPopup.open()
}
},
confirmDelivery() {
this.$refs.tipsPopup.open()
},
confirmTips() {
uni.showToast({ title: '交车成功', icon: 'none' })
this.backPage()
},
handleImageUpload(field) {
// 显示操作菜单,让用户选择拍照或从相册选择
uni.showActionSheet({
itemList: ['拍照', '从相册选择'],
success: res => {
if (res.tapIndex === 0) {
// 拍照
this.takePhoto(field)
} else if (res.tapIndex === 1) {
// 从相册选择
this.chooseImageFromAlbum(field)
}
},
fail: err => {
console.log('选择操作失败', err)
}
})
},
takePhoto(field) {
uni.chooseImage({
count: this.getRemainingCount(field),
sizeType: ['compressed'],
sourceType: ['camera'],
success: async res => {
try {
// 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath)
console.log('上传图片成功', url)
this.addImage(field, url)
}
} catch (error) {
console.log('上传图片失败', error)
uni.showToast({ title: '上传图片失败', icon: 'none' })
}
},
fail: err => {
console.log('拍照失败', err)
if (err.errMsg.indexOf('cancel') === -1) {
uni.showToast({ title: '拍照失败', icon: 'none' })
}
}
})
},
chooseImageFromAlbum(field) {
uni.chooseImage({
count: this.getRemainingCount(field),
sizeType: ['compressed'],
sourceType: ['album'],
success: async res => {
try {
// 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath)
console.log('上传图片成功', url)
this.addImage(field, url)
}
} catch (error) {
console.log('上传图片失败', error)
uni.showToast({ title: '上传图片失败', icon: 'none' })
}
},
fail: err => {
console.log('选择图片失败', err)
if (err.errMsg.indexOf('cancel') === -1) {
uni.showToast({ title: '选择图片失败', icon: 'none' })
}
}
})
},
// 获取指定字段类型的图片数组
getImages(field, type) {
const imagesObj = type === 'upload' ? this.uploadedImages : this.confirmCarImages
// 确保返回的是数组
return Array.isArray(imagesObj[field.key]) ? imagesObj[field.key] : []
},
// 检查是否达到最大上传数量
hasReachedMax(field, type) {
const images = this.getImages(field, type)
return images.length >= (field.maxCount || 1)
},
// 获取剩余可上传数量
getRemainingCount(field) {
const type = this.uploadFields.some(item => item.key === field.key) ? 'upload' : 'confirm'
const images = this.getImages(field, type)
return Math.max(1, (field.maxCount || 1) - images.length)
},
// 添加图片到对应的数组中(确保响应式更新)
addImage(field, url) {
const type = this.uploadFields.some(item => item.key === field.key) ? 'upload' : 'confirm'
const imagesObj = type === 'upload' ? this.uploadedImages : this.confirmCarImages
// 确保字段存在且是数组
if (!Array.isArray(imagesObj[field.key])) {
this.$set(imagesObj, field.key, [])
}
// 添加新图片
this.$set(imagesObj[field.key], imagesObj[field.key].length, url)
},
// 删除图片
deleteImage(key, index, type) {
const imagesObj = type === 'upload' ? this.uploadedImages : this.confirmCarImages
uni.showModal({
title: '提示',
content: '确定要删除这张图片吗?',
success: res => {
if (res.confirm && Array.isArray(imagesObj[key])) {
// 使用splice确保响应式更新
imagesObj[key].splice(index, 1)
// 如果数组为空,可以选择删除该字段
if (imagesObj[key].length === 0) {
this.$delete(imagesObj, key)
}
}
}
})
}
},
watch: {},
mounted() {
// 组件挂载时的初始化逻辑
this.userInfo = uni.$storage.get('userInfo') || {}
console.log('userInfo', this.userInfo)
}
}
</script>
<style scoped lang="scss">
// Popup样式
::v-deep .tipsPopup .uni-popup__wrapper {
width: toRpx(848);
height: toRpx(744);
border-radius: toRpx(42);
background: rgb(255, 255, 255) !important;
.tipsPopupBg {
border-radius: toRpx(42) toRpx(42) 0 0;
width: 100%;
height: toRpx(244);
}
.title {
color: #333333;
font-size: toRpx(40);
font-weight: 500;
text-align: center;
margin-top: toRpx(48);
}
.tipsConent {
color: #666666;
font-size: toRpx(32);
font-weight: 400;
padding: toRpx(16) toRpx(64);
line-height: toRpx(48);
text {
color: #347bff;
}
}
}
::v-deep .addAgreementPopup {
uni-textarea {
width: 100%;
height: 100%;
border-radius: toRpx(16);
background: #f4f5f7;
}
}
.confirm-car {
position: relative;
width: 100%;
height: 100%;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
padding: toRpx(160) toRpx(64) toRpx(48);
box-sizing: border-box;
.detail-content {
width: 100%;
height: 100%;
box-sizing: border-box;
overflow: hidden;
.box-class {
height: 100%;
background: #f1f4ff;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: toRpx(48);
overflow: hidden;
padding: toRpx(48) toRpx(48) 0;
box-sizing: border-box;
.form-container-upload {
width: 100%;
height: calc(100% - #{toRpx(128)});
overflow-y: auto;
padding-right: toRpx(8);
}
/* 上传按钮样式 */
.upload-btn {
width: toRpx(200);
height: toRpx(64);
border-radius: toRpx(32);
border: toRpx(2) dashed #999999;
display: flex;
align-items: center;
justify-content: center;
color: #999999;
font-size: toRpx(28);
}
/* 上传区域样式 */
.upload-section {
margin-bottom: toRpx(24);
grid-column: 1 / -1;
padding: toRpx(32) toRpx(48);
border-radius: toRpx(16);
background-color: #fff;
}
.section-title {
font-size: toRpx(32);
font-weight: 600;
color: #333333;
margin-bottom: toRpx(24);
}
.upload-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: toRpx(24);
}
.upload-item-container {
align-items: flex-start;
margin-bottom: toRpx(32);
.upload-label {
color: #666666;
font-size: toRpx(26);
font-weight: 400;
display: flex;
align-items: flex-start;
margin-right: toRpx(42);
width: toRpx(180);
margin-bottom: toRpx(16);
}
.requiredLabel {
color: #f24724;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
// 图片包装器,使用flex布局显示多张图片
.upload-images-wrapper {
display: flex;
flex-wrap: wrap;
gap: toRpx(16);
}
// fullwidth类样式,使字段占据整行
&.fullwidth {
grid-column: 1 / -1; // 跨越所有列
.upload-label {
flex: none;
}
.upload-images-wrapper {
// 全宽模式下可以显示更多图片
}
}
}
.upload-item {
width: toRpx(240);
height: toRpx(240);
border-radius: toRpx(12);
display: flex;
align-items: center;
justify-content: center;
position: relative;
opacity: 1;
background: #f5f8ff;
}
.upload-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #999999;
}
.upload-text {
margin-top: toRpx(12);
font-size: toRpx(24);
}
/* 已上传图片样式 */
.uploaded-image-container {
position: relative;
width: toRpx(240);
height: toRpx(240);
border-radius: toRpx(12);
overflow: hidden;
}
.uploaded-image {
width: 100%;
height: 100%;
}
.delete-icon {
position: absolute;
top: toRpx(8);
right: toRpx(8);
width: toRpx(32);
height: toRpx(32);
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
}
.button-module {
margin-bottom: toRpx(24);
margin-top: toRpx(24);
.button-container {
width: 100%;
display: flex;
justify-content: center;
gap: toRpx(32);
}
.cancel-btn {
width: toRpx(724);
height: toRpx(80);
border-radius: toRpx(48);
border: toRpx(1) solid #ffffff;
background: #3b73ff1a;
text-align: center;
line-height: toRpx(80);
color: #4673ff;
font-size: toRpx(28);
font-weight: 500;
}
.next-btn {
width: toRpx(724);
height: toRpx(80);
border-radius: toRpx(48);
border: toRpx(1) solid #ffffff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
text-align: center;
line-height: toRpx(80);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
}
}
}
}
</style>
...@@ -25,12 +25,12 @@ ...@@ -25,12 +25,12 @@
<GeneralPopup ref="requotePopup" popupClass="requotePopup" title="重新报价" confirmText="重新报价" type="center" :showClose="true" :isShowCancel="false"> <GeneralPopup ref="requotePopup" popupClass="requotePopup" title="重新报价" confirmText="重新报价" type="center" :showClose="true" :isShowCancel="false">
<template #content> <template #content>
<view class="requote-content"> <view class="requote-content">
<view class="requote-label mb-20"> <view class="requote-label mb-24">
客户意向报价 客户意向报价
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
</view> </view>
<input class="intention-input mb-48" type="idcard" placeholder="身份证输入键盘" /> <input class="intention-input mb-48" type="idcard" placeholder="身份证输入键盘" />
<view class="requote-label mb-20"> <view class="requote-label mb-24">
客户意向报价 客户意向报价
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
</view> </view>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<GeneralPopup ref="cancleSignPopup" popupClass="cancleSignPopup" title="取消签约" confirmText="取消签约" type="center" :showClose="true" :isShowCancel="false"> <GeneralPopup ref="cancleSignPopup" popupClass="cancleSignPopup" title="取消签约" confirmText="取消签约" type="center" :showClose="true" :isShowCancel="false">
<template #content> <template #content>
<view class="requote-content"> <view class="requote-content">
<view class="requote-label mb-20"> <view class="requote-label mb-24">
取消签约原因 取消签约原因
<text class="requiredLabel">*</text> <text class="requiredLabel">*</text>
</view> </view>
...@@ -49,6 +49,36 @@ ...@@ -49,6 +49,36 @@
</view> </view>
</template> </template>
</GeneralPopup> </GeneralPopup>
<GeneralPopup ref="amountRequestedPopup" popupClass="amountRequested" title="申请尾款" confirmText="款项申请" type="center" :showClose="true" :isShowCancel="false">
<template #content>
<view class="amount-requested-content">
<view class="amount-box flex align-center">
<text class="amount-title">定金金额</text>
<text class="amount-value">5,000.00元</text>
</view>
<view class="flex align-center mt-28 mb-16">
<text class="popup-cell-title light-title">待支付尾款</text>
<text class="popup-cell-value light-value">233,600.00元</text>
</view>
<view class="flex align-center mb-40">
<text class="popup-cell-title">评估价</text>
<text class="popup-cell-value">233,600.00元</text>
</view>
<view class="flex align-center mb-16">
<text class="popup-cell-title">收款人姓名</text>
<text class="popup-cell-value">石小东</text>
</view>
<view class="flex align-center mb-16">
<text class="popup-cell-title">银行账号</text>
<text class="popup-cell-value">2698 4894 7299 5675</text>
</view>
<view class="flex align-center">
<text class="popup-cell-title">开户行</text>
<text class="popup-cell-value">招商银行广州科学城支行</text>
</view>
</view>
</template>
</GeneralPopup>
</view> </view>
</template> </template>
...@@ -103,10 +133,10 @@ export default { ...@@ -103,10 +133,10 @@ export default {
queryList() { queryList() {
this.$refs.paging.complete(this.dataList) this.$refs.paging.complete(this.dataList)
}, },
addEvaluationForm() { addEvaluationForm(type) {
console.log('addEvaluationForm') console.log('addEvaluationForm', type)
uni.navigateTo({ uni.navigateTo({
url: '/pages/evaluationForm/addEvaluationFrom' url: '/pages/evaluationForm/addEvaluationFrom?type=' + type
}) })
}, },
handleButtonClick(e) { handleButtonClick(e) {
...@@ -114,8 +144,38 @@ export default { ...@@ -114,8 +144,38 @@ export default {
this.requote() this.requote()
} else if (e.type === 'cancelSign') { } else if (e.type === 'cancelSign') {
this.cancelSign() this.cancelSign()
} else if (e.type === 'sign') {
this.sign()
} else if (e.type === 'confirmDelivery') {
this.confirmDelivery()
} else if (e.type === 'edit') {
this.addEvaluationForm('edit')
} else if (e.type === 'add') {
this.addEvaluationForm('add')
} else if (e.type === 'payDeposit') {
this.amountRequested()
} }
}, },
amountRequested() {
this.$refs.amountRequestedPopup
.open()
.then(() => {
console.log('申请尾款成功')
})
.catch(() => {
console.log('申请尾款取消')
})
},
confirmDelivery() {
uni.navigateTo({
url: '/pages/evaluationForm/confirmCar'
})
},
sign() {
uni.navigateTo({
url: '/pages/evaluationForm/signInfo'
})
},
requote() { requote() {
this.$refs.requotePopup this.$refs.requotePopup
.open() .open()
...@@ -149,34 +209,6 @@ export default { ...@@ -149,34 +209,6 @@ export default {
background-size: 100%; background-size: 100%;
padding: toRpx(160) toRpx(64) toRpx(48); padding: toRpx(160) toRpx(64) toRpx(48);
box-sizing: border-box; box-sizing: border-box;
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
.detail-content { .detail-content {
width: 100%; width: 100%;
...@@ -229,14 +261,59 @@ export default { ...@@ -229,14 +261,59 @@ export default {
} }
} }
::v-deep .feedback-textarea { ::v-deep .feedback-textarea {
height: toRpx(216); height: toRpx(288);
border-radius: toRpx(16); border-radius: toRpx(16);
background: #f4f5f7;
width: 100%;
padding: toRpx(24);
box-sizing: border-box;
.uni-input-wrapper { .uni-input-wrapper {
background: #f4f5f7; background: #f4f5f7;
} }
} }
} }
.amount-requested-content {
.amount-box {
width: 100%;
height: toRpx(128);
border-radius: toRpx(20);
background: #f1f7fe;
padding-left: toRpx(32);
box-sizing: border-box;
.amount-title {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
margin-right: toRpx(16);
width: toRpx(168);
}
.amount-value {
color: #3b73ff;
font-size: toRpx(36);
font-weight: 700;
}
}
.popup-cell-title {
color: #999;
font-size: toRpx(28);
font-weight: 400;
margin-right: toRpx(16);
width: toRpx(168);
}
.popup-cell-value {
color: #222;
font-size: toRpx(28);
font-weight: 400;
}
.light-title {
color: #333333;
}
.light-value {
color: #4673ff;
}
}
.addBtn { .addBtn {
width: toRpx(128); width: toRpx(128);
height: toRpx(128); height: toRpx(128);
......
<template>
<view class="sign-info">
<view class="nav-bar">
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">签约信息</view>
</view>
<view class="detail-content">
<view class="box-class mt-16">
<view class="h2-title">电子合同模版</view>
<view class="contract-template flex align-center justify-between">
<view class="flex">
<view class="title-label">
合同模版
<text class="requiredLabel">*</text>
</view>
<radio-group class="radio-group flex align-center" @change="radioChange">
<label class="uni-list-cell uni-list-cell-pd align-center flex ml-48" v-for="(item, index) in radioList" :key="item.value">
<radio style="transform: scale(0.7)" :value="item.value" :checked="index === current" />
<view class="radio-name">{{ item.name }}</view>
</label>
</radio-group>
</view>
<view class="template-title">
<view class="sprite-icon"></view>
<text>合同模板</text>
</view>
</view>
<view class="h2-title mt-32">签约个人信息</view>
<view class="sign-info-box">
<view v-if="currentRadio" class="fromBox">
<FormCell :formFields="formFields" :formData="formData" @handleCell="handleCell" />
<view class="upload-container">
<view class="form-item flex align-center justify-between">
<view class="from-label">身份证正面</view>
<template>
<view class="upload-item" @click="handleImageUpload()">
<view class="upload-placeholder">
<view class="sprite-icon icon-uploadAdd"></view>
<text class="upload-text">上传图片</text>
</view>
</view>
</template>
</view>
<view class="form-item flex align-center justify-between">
<view class="from-label">身份证正面</view>
<template>
<view class="upload-item" @click="handleImageUpload()">
<view class="upload-placeholder">
<view class="sprite-icon icon-uploadAdd"></view>
<text class="upload-text">上传图片</text>
</view>
</view>
</template>
</view>
</view>
<view class="upload-container">
<view class="form-item flex align-center justify-between">
<view class="from-label">银行卡</view>
<template>
<view class="upload-item" @click="handleImageUpload()">
<view class="upload-placeholder">
<view class="sprite-icon icon-uploadAdd"></view>
<text class="upload-text">上传图片</text>
</view>
</view>
</template>
</view>
</view>
<view class="upload-container mb-24">
<view class="form-item flex align-center justify-between full-width">
<view class="from-label">
随车材料
<text class="requiredLabel">*</text>
</view>
<template>
<checkbox-group @change="checkboxChange" class="checkbox-group flex align-center">
<label class="uni-list-cell uni-list-cell-pd align-center flex ml-48" v-for="item in checkboxList" :key="item.value">
<view>
<checkbox style="transform: scale(0.7)" :value="item.value" :checked="item.checked" />
</view>
<view class="checkbox-name">{{ item.name }}</view>
<input class="checkbox-input" v-if="item.isShowInput" placeholder="请输入" type="text" />
</label>
</checkbox-group>
</template>
</view>
</view>
<FormCell :formFields="formFields1" :formData="formData" @handleCell="handleCell" />
</view>
<view v-else class="flex flex-col align-center justify-center no-data">
<image :src="noDataBg" class="no-data-bg" />
<view>请先选择合同,签约个人信息自动带出</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import FormCell from './components/FormCell.vue'
export default {
components: {
FormCell
},
data() {
return {
signInfo: {},
currentRadio: null,
noDataBg: require('@/assets/images/common/sign-no-data.png'),
radioList: [
{
value: '0',
name: '二手车买卖合同(定金+尾款)'
},
{
value: '1',
name: '二手车买卖合同(全款)'
}
],
checkboxList: [
{
value: 'USA',
name: '机动车登记本'
},
{
value: 'USA',
name: '机动车行驶证'
},
{
value: 'USA',
name: '交管12123截图'
},
{
value: 'USA',
name: '交强险'
},
{
value: 'USA',
name: '车钥匙',
isShowInput: true
},
{
value: 'USA',
name: '购置税证及收据'
},
{
value: 'USA',
name: '购车发票'
},
{
value: 'USA',
name: '保险单商业保险单或卡'
},
{
value: 'USA',
name: '过户授权委托书照片'
},
{
value: 'USA',
name: '其他',
isShowInput: true
}
],
formData: { evalOrderBasicReqDTO: {} },
formFields: [
{
key: 'sellerUserId',
label: '定金金额',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input',
showText: 'shopMerchantName'
},
{
key: 'sellerUserId',
label: '尾款金额',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input',
showText: 'shopMerchantName'
},
{
key: 'sellerUserId',
label: '评估价',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input'
},
{
key: 'sellerUserId',
label: '签约车主',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input'
},
{
key: 'sellerUserId',
label: '手机号',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input'
},
{
key: 'sellerUserId',
label: '身份证号',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input'
},
{
key: 'sellerUserId',
label: '地址',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input'
}
],
formFields1: [
{
key: 'sellerUserId',
label: '交车时间',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'select'
},
{
key: 'sellerUserId',
label: '交车地点',
required: true,
fullWidth: false,
targetNameKey: 'sellerName',
sourceNameKey: 'staffName',
sourceKey: 'uuid',
targetKey: 'sellerUserId',
targetObj: 'evalOrderBasicReqDTO',
type: 'input'
}
],
userInfo: {}
}
},
mounted() {
this.userInfo = uni.$storage.get('userInfo') || {}
console.log('userInfo', this.userInfo)
Object.assign(this.formData.evalOrderBasicReqDTO, {
sellerMerchantName: this.userInfo.merchantName,
sellerName: this.userInfo.name,
sellerMerchantId: this.userInfo.merchantId,
sellerUserId: ''
})
console.log('formData', this.formData)
},
methods: {
radioChange(e) {
console.log(e)
this.currentRadio = e.detail.value
}
}
}
</script>
<style scoped lang="scss">
.sign-info {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
padding: toRpx(160) toRpx(64) toRpx(48);
box-sizing: border-box;
.detail-content {
width: 100%;
height: 100%;
box-sizing: border-box;
overflow: hidden;
.box-class {
height: calc(100% - #{toRpx(110)});
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: toRpx(48);
overflow: hidden;
padding: toRpx(32) toRpx(48) toRpx(42);
box-sizing: border-box;
.h2-title {
color: #333333;
font-size: toRpx(32);
font-weight: 500;
margin-bottom: toRpx(16);
}
.contract-template {
height: toRpx(92);
border-radius: toRpx(16);
background: #ffffff;
padding: 0 toRpx(32);
box-sizing: border-box;
.title-label {
color: #666;
font-size: toRpx(26);
font-weight: 400;
display: flex;
align-items: flex-start;
}
.requiredLabel {
color: #f24724;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
.template-title {
color: #4673ff;
font-size: toRpx(28);
font-weight: 400;
}
}
.sign-info-box {
border-radius: toRpx(16);
box-sizing: border-box;
width: 100%;
height: calc(100% - #{toRpx(248)});
.no-data {
background: #ffffff;
.no-data-bg {
width: toRpx(344);
height: toRpx(208);
}
color: #999999;
font-size: toRpx(24);
font-weight: 400;
width: 100%;
height: 100%;
}
.fromBox {
width: 100%;
height: 100%;
overflow-y: auto;
.upload-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: toRpx(24);
max-height: 100%;
overflow-y: auto;
margin-top: toRpx(24);
.form-item {
border-radius: toRpx(24);
background: #ffffff;
padding: toRpx(28) toRpx(32);
box-sizing: border-box;
}
.form-item.full-width {
grid-column: 1 / -1;
height: auto;
}
.from-label {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
display: flex;
align-items: flex-start;
width: toRpx(240);
}
.from-value {
display: flex;
justify-content: flex-end;
align-items: center;
height: 100%;
.sprite-icon {
margin-bottom: toRpx(2);
}
}
.placeholder {
color: #999;
font-size: toRpx(28);
line-height: toRpx(32);
}
.upload-item {
aspect-ratio: 1;
border-radius: toRpx(16);
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: toRpx(240);
height: toRpx(240);
border-radius: toRpx(12);
opacity: 1;
background: #f5f8ff;
}
.upload-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #999999;
}
.upload-text {
margin-top: toRpx(12);
font-size: toRpx(24);
}
.requiredLabel {
color: #f24724;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
.checkbox-group {
flex-wrap: wrap;
}
.checkbox-name {
display: inline-block;
color: #333333;
font-size: toRpx(28);
}
.checkbox-input {
width: toRpx(196);
height: toRpx(56);
border-radius: toRpx(8);
background: #f4f5f7;
padding: toRpx(8) toRpx(20);
box-sizing: border-box;
margin-left: toRpx(16);
.input-placeholder {
color: #999999;
font-size: toRpx(28);
font-weight: 400;
}
}
}
}
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!