diff --git a/pages.json b/pages.json
index d62c59f..04f17d3 100644
--- a/pages.json
+++ b/pages.json
@@ -59,6 +59,13 @@
{
"navigationBarTitleText" : "完成上门"
}
+ },
+ {
+ "path" : "pages/order/complete-service",
+ "style" :
+ {
+ "navigationBarTitleText" : "完成服务"
+ }
}
],
"globalStyle": {
diff --git a/pages/order/arrived-on-site.vue b/pages/order/arrived-on-site.vue
index 2c38a1f..ab6222e 100644
--- a/pages/order/arrived-on-site.vue
+++ b/pages/order/arrived-on-site.vue
@@ -1,14 +1,14 @@
-
+
上门后请提交信息
-
+
拍照打卡
- 请上传上门的打卡照片
+ 请上传上门的打卡照片(最多 10 张)
@@ -158,106 +158,6 @@ const init = () => {
padding: 0 32rpx;
box-sizing: border-box;
height: 100vh;
- .group {
- width: 100%;
- background: var(--containerBgColor);
- border-radius: 16rpx;
- padding: 20rpx;
- box-sizing: border-box;
- margin-top: 32rpx;
- .group-name {
- width: 100%;
- height: 80rpx;
- position: relative;
- .text {
- font-size: 30rpx;
- color: #E18F00;
- margin-left: 8rpx;
- }
- }
- .item {
- width: 100%;
- }
- .time {
- .item-row {
- width: 100%;
- height: 100rpx;
- .title {
- width: 200rpx;
- height: 100rpx;
- font-size: 30rpx;
- color: var(--titleColor);
- }
- .value {
- width: 446rpx;
- height: 100rpx;
- font-size: 30rpx;
- color: var(--titleColor);
- }
- .value-empty {
- color: var(--summaryColor);
- }
- }
- .desc {
- width: 100%;
- min-height: 50rpx;
- font-size: 28rpx;
- color: var(--descriptionColor);
- line-height: 48rpx;
- }
- }
- .upload {
- .info {
- width: 100%;
- height: 130rpx;
- .title {
- width: 100%;
- height: 80rpx;
- font-size: 30rpx;
- color: var(--titleColor);
- }
- .desc {
- width: 100%;
- height: 50rpx;
- font-size: 28rpx;
- color: var(--descriptionColor);
- }
- }
- .imgs-ctr {
- width: 100%;
- min-height: 100rpx;
- display: flex;
- flex-wrap: wrap;
- .img-ctr {
- width: 100rpx;
- height: 100rpx;
- margin-right: 36rpx;
- margin-top: 16rpx;
- margin-bottom: 16rpx;
- .img {
- width: 100%;
- height: 100%;
- border-radius: 8rpx;
- }
- }
- .up-ctr {
- width: 100rpx;
- height: 100rpx;
- background: var(--contentBgColor);
- border-radius: 8rpx;
- margin-top: 16rpx;
- margin-bottom: 16rpx;
- //margin-left: 36rpx;
- .up {
- width: 100%;
- height: 36rpx;
- font-size: 20rpx;
- color: var(--summaryColor);
- }
- }
- }
- }
- }
.bottom {
width: 100%;
padding-top: 20rpx;
diff --git a/pages/order/complete-service.vue b/pages/order/complete-service.vue
new file mode 100644
index 0000000..dbac3dd
--- /dev/null
+++ b/pages/order/complete-service.vue
@@ -0,0 +1,274 @@
+
+
+
+
+
+ 服务完成后请提交信息
+
+
+
+ 拍照打卡
+ 请上传完成图片(最多 10 张)
+
+
+
+
+
+
+
+ 点击上传
+
+
+
+
+
+
+
+ 提交收款信息
+
+
+ 优惠信息
+ {{data.order_info.online_amount}}元抵扣{{data.order_info.discount_amount}}元
+
+
+ 收款方式
+ 请选择收款方式
+ {{submitData.final_payment_method === 1 ? '线下尾款' : '线上尾款'}}
+
+
+
+ 尾款收款方
+ 请选择尾款收款方
+ {{submitData.offline_total_type === 1 ? '师傅收' : '公司收'}}
+
+
+ 收款金额
+
+
+
+
+
+
+ 收款信息
+ 请上传收款成功图片(最多 1 张)
+
+
+
+
+ 点击上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/order/order-info.vue b/pages/order/order-info.vue
index 0139839..c3ee48e 100644
--- a/pages/order/order-info.vue
+++ b/pages/order/order-info.vue
@@ -50,22 +50,27 @@
-
+
-
+
-
+
+
+
+
+
+
@@ -99,6 +104,11 @@ const arrivedOnSite = () => {
helpers.jumpToPage('arrived-on-site', 'id=' + id.value)
}
+//完成服务
+const completeService = () => {
+ helpers.jumpToPage('complete-service', 'id=' + id.value)
+}
+
//选择上门时间
const selectTime = () => {
helpers.jumpToPage('select-time', 'id=' + id.value)
diff --git a/pages/order/select-time.vue b/pages/order/select-time.vue
index 5b1cf26..287e6b3 100644
--- a/pages/order/select-time.vue
+++ b/pages/order/select-time.vue
@@ -1,6 +1,6 @@
-
+
沟通后请提交信息
@@ -85,55 +85,6 @@ const init = () => {
padding: 0 32rpx;
box-sizing: border-box;
height: 100vh;
- .group {
- width: 100%;
- background: var(--containerBgColor);
- border-radius: 16rpx;
- padding: 20rpx;
- box-sizing: border-box;
- margin-top: 32rpx;
- .group-name {
- width: 100%;
- height: 80rpx;
- position: relative;
- .text {
- font-size: 30rpx;
- color: #E18F00;
- margin-left: 8rpx;
- }
- }
- .item {
- width: 100%;
- }
- .time {
- .item-row {
- width: 100%;
- height: 100rpx;
- .title {
- width: 200rpx;
- height: 100rpx;
- font-size: 30rpx;
- color: var(--titleColor);
- }
- .value {
- width: 446rpx;
- height: 100rpx;
- font-size: 30rpx;
- color: var(--titleColor);
- }
- .value-empty {
- color: var(--summaryColor);
- }
- }
- .desc {
- width: 100%;
- min-height: 50rpx;
- font-size: 28rpx;
- color: var(--descriptionColor);
- line-height: 48rpx;
- }
- }
- }
.bottom {
width: 100%;
padding-top: 20rpx;
diff --git a/static/css/form.scss b/static/css/form.scss
index 88740d8..990dd41 100644
--- a/static/css/form.scss
+++ b/static/css/form.scss
@@ -1,404 +1,129 @@
-.form-area {
- margin-top: 20rpx;
+.form-group {
width: 100%;
- padding: 20rpx 40rpx;
- box-sizing: border-box;
- background: var(--blockBgColor);
+ background: var(--containerBgColor);
border-radius: 16rpx;
-
- .form-area-title {
+ padding: 20rpx;
+ box-sizing: border-box;
+ margin-top: 32rpx;
+ .group-name {
width: 100%;
- height: 60rpx;
- font-size: 34rpx;
- color: var(--contentColor50);
- line-height: 60rpx;
- text-align: left;
- margin-bottom: 20rpx;
- }
- .uni-forms-item {
- margin-bottom: 0 !important;
- .uni-forms-item__content {
- width: 100%;
- }
- }
-
- .input-item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
+ height: 80rpx;
position: relative;
- margin-bottom: 20rpx;
- .title {
- width: 100%;
- height: 60rpx;
- font-weight: 500;
+ .text {
font-size: 30rpx;
- color: var(--contentColor90);
- line-height: 60rpx;
- text-align: left;
- .left {
- height: 100%;
- width: 300rpx;
- }
- .right {
- width: 300rpx;
- height: 100%;
- //添加项目
- .add-project {
- width: 140rpx;
- height: 60rpx;
- background: var(--themeColor10);
- border-radius: 8rpx;
- font-weight: 500;
- font-size: 24rpx;
- color: var(--themeColor);
- }
- .setting {
- width: 140rpx;
- height: 100%;
- font-size: 28rpx;
- font-weight: 400;
- }
- }
+ color: #E18F00;
+ margin-left: 8rpx;
}
- .required::before {
- content: '*';
- font-weight: 500;
- font-size: 32rpx;
- color: #E6521F;
- left: -24rpx;
- position: absolute;
- }
- .value {
+ }
+ .item {
+ width: 100%;
+ }
+ .time {
+ .item-row {
width: 100%;
- min-height: 100rpx;
- .input-textarea {
- height: 120rpx;
- padding: 20rpx 0;
- font-size: 30rpx;
- color: var(--contentColor90);
- line-height: 40rpx;
- width: 100%;
- }
- .mixed-payment-items {
- width: 100%;
- margin-bottom: 20rpx;
- animation: animation-fade-out 0.3s ease-out 0s 1;
- .item {
- width: 100%;
- .icon {
- width: 56rpx;
- height: 80rpx;
- }
- .content {
- width: 558rpx;
- height: 80rpx;
- .title {
- width: 202rpx;
- height: 80rpx;
- font-size: 30rpx;
- color: var(--contentColor90);
- line-height: 80rpx;
- text-align: left;
- font-weight: 400;
- .help {
- width: 50rpx;
- height: 80rpx;
- }
- }
- .detail {
- width: 372rpx;
- height: 80rpx;
- font-size: 28rpx;
- color: var(--contentColor90);
- line-height: 56rpx;
- .price {
- width: 160rpx;
- height: 56rpx;
- background: var(--contentColor05);
- border-radius: 8rpx;
- .unit {
- width: 40rpx;
- height: 56rpx;
- text-align: center;
- }
- .val {
- width: 120rpx;
- height: 56rpx;
- .uni-input {
- width: 100%;
- min-height: 56rpx;
- text-align: center;
- padding: 0 8rpx;
- box-sizing: border-box;
- }
- }
- }
- }
- }
- }
- }
- .uni-input {
- width: 100%;
- min-height: 100rpx;
- font-size: 30rpx;
- color: var(--contentColor90);
- line-height: 100rpx;
- text-align: left;
- }
- .item-image {
- margin-top: 20rpx;
- margin-bottom: 24rpx;
- .empty-image {
- width: 630rpx;
- height: 384rpx;
- border-radius: 40rpx;
- border: 1rpx solid var(--contentColor10);
- box-sizing: border-box;
- .upload-image {
- width: 120rpx;
- height: 128rpx;
- .icon {
- width: 100%;
- height: 80rpx;
- }
- .upload-text {
- width: 100%;
- height: 48rpx;
- font-size: 30rpx;
- color: var(--contentColor30);
- line-height: 48rpx;
- text-align: center;
- }
- }
- }
- .image-container {
- width: 630rpx;
- height: 384rpx;
- .image {
- height: 100%;
- width: 100%;
- border-radius: 40rpx;
- }
- }
- }
- .select-project {
- .empty-project {
- animation: animation-fade-out 0.3s ease-out 0s 1;
- .input-or-select {
- width: 100%;
- height: 100rpx;
- .input-area {
- height: 100%;
- width: 100%;
- }
- }
- }
-
- .project-list {
- margin-top: 16rpx;
- margin-bottom: 16rpx;
- .project {
- width: 100%;
- min-height: 80rpx;
- .name {
- min-height: 80rpx;
- width: 314rpx;
- font-size: 30rpx;
- color: var(--contentColor90);
- line-height: 48rpx;
- text-align: left;
- }
- .other {
- height: 100%;
- width: 316rpx;
- .price,.balance {
- width: 110rpx;
- height: 48rpx;
- }
- .price {
- border-bottom: 1rpx solid var(--themeColor);
- .uni-input {
- width: 100%;
- height: 48rpx;
- font-size: 28rpx;
- color: var(--themeColor);
- line-height: 48rpx;
- text-align: center;
- min-height: 48rpx;
- }
- }
- .balance {
- font-size: 24rpx;
- color: var(--contentColor50);
- line-height: 48rpx;
- text-align: center;
- }
- .num-area {
- height: 100%;
- width: 176rpx;
- .reduce,.add {
- width: 48rpx;
- height: 48rpx;
- }
- .num {
- width: 80rpx;
- height: 100%;
- font-weight: 500;
- font-size: 28rpx;
- color: var(--contentColor90);
- line-height: 80rpx;
- text-align: center;
- }
- }
- }
- }
- }
-
- }
- .val-area {
- height: 100%;
- width: 350rpx;
- font-size: 30rpx;
- line-height: 100rpx;
- text-align: left;
- }
- .val-hint {
- height: 100%;
- width: 280rpx;
- .hint {
- height: 100%;
- width: 224rpx;
- font-size: 28rpx;
- color: var(--contentColor50);
- line-height: 100rpx;
- text-align: right;
- }
- }
- .unit {
- width: 280rpx;
- font-size: 30rpx;
+ height: 100rpx;
+ .title {
+ width: 200rpx;
height: 100rpx;
- color: var(--contentColor90);
- text-align: right;
- line-height: 100rpx;
+ font-size: 30rpx;
+ color: var(--titleColor);
}
-
- //区间筛选
- .section-value {
- width: 100%;
+ .value {
+ width: 446rpx;
height: 100rpx;
- .min,.max {
- width: 280rpx;
- height: 100rpx;
- font-size: 30rpx;
- color: var(--contentColor90);
- line-height: 100rpx;
- text-align: left;
- }
- .parting {
- width: 70rpx;
- height: 100rpx;
- font-size: 30rpx;
- color: var(--contentColor50);
- line-height: 100rpx;
- text-align: center;
- }
- .max {
- text-align: right;
- .uni-input {
- text-align: right;
- }
- }
+ font-size: 30rpx;
+ color: var(--titleColor);
+ }
+ .value-empty {
+ color: var(--summaryColor);
}
}
.desc {
width: 100%;
- height: 60rpx;
- text-align: left;
+ min-height: 50rpx;
font-size: 28rpx;
- color: var(--contentColor30);
+ color: var(--descriptionColor);
+ line-height: 48rpx;
}
}
-
- .input-item-switch {
- width: 100%;
- min-height: 120rpx;
- position: relative;
- .content-area {
- margin-bottom: 20rpx;
- }
- .left {
- height: 100%;
+ .upload {
+ .info {
+ width: 100%;
+ height: 80rpx;
.title {
- font-weight: 500;
- font-size: 30rpx;
- color: var(--contentColor90);
- line-height: 120rpx;
- text-align: left;
- }
- .help {
- width: 56rpx;
- height: 56rpx;
- }
- .title-area {
- width: 460rpx;
- height: 120rpx;
- .title-val {
- height: 60rpx;
- line-height: 60rpx;
- width: 100%;
- }
- .desc {
- height: 48rpx;
- font-size: 28rpx;
- color: var(--contentColor30);
- line-height: 48rpx;
- text-align: left;
- width: 100%;
- }
- }
- }
- .right {
- width: 140rpx;
- height: 100%;
- position: absolute;
- right: -12rpx;
- }
- }
- .input-avatar {
- .avatar {
- width: 100%;
- height: 100rpx;
- margin-bottom: 20rpx;
- .desc {
- width: 500rpx;
- height: 100%;
- font-size: 30rpx;
- color: var(--contentColor30);
- line-height: 100rpx;
- text-align: left;
- }
- .store-avatar {
- width: 80rpx;
height: 80rpx;
- border-radius: 40rpx;
- }
- }
- }
- .input-select {
- .value {
- width: 100%;
- height: 100rpx;
- .val {
- width: 566rpx;
- height: 100%;
font-size: 30rpx;
- line-height: 100rpx;
- text-align: left;
+ color: var(--titleColor);
+ }
+ .desc {
+ margin-left: 8rpx;
+ height: 80rpx;
+ font-size: 28rpx;
+ color: var(--descriptionColor);
+ }
+ }
+ .imgs-ctr {
+ width: 100%;
+ min-height: 100rpx;
+ display: flex;
+ flex-wrap: wrap;
+ .img-ctr {
+ width: 100rpx;
+ height: 100rpx;
+ margin-right: 36rpx;
+ margin-top: 16rpx;
+ margin-bottom: 16rpx;
+ .img {
+ width: 100%;
+ height: 100%;
+ border-radius: 8rpx;
+ }
+ }
+ .up-ctr {
+ width: 100rpx;
+ height: 100rpx;
+ background: var(--contentBgColor);
+ border-radius: 8rpx;
+ margin-top: 16rpx;
+ margin-bottom: 16rpx;
+ .up {
+ width: 100%;
+ height: 36rpx;
+ font-size: 20rpx;
+ color: var(--summaryColor);
+ }
}
}
-
}
-}
+ .input {
+ width: 100%;
+ height: 100rpx;
+ position: relative;
+ .title {
+ width: 200rpx;
+ height: 100rpx;
+ font-size: 30rpx;
+ color: var(--titleColor);
+ }
+ .input-ctr {
+ width: 446rpx;
+ height: 100rpx;
+ }
+ .uni-input {
+ text-align: right;
+ width: 100%;
+ height: 100%;
+ font-size: 30rpx;
+ color: var(--titleColor);
+ }
+ .select-ctr {
+ font-size: 30rpx;
+ color: var(--descriptionColor);
+ width: 100%;
+ height: 100%;
+ }
+ .select {
+ color: var(--titleColor);
+ }
+ }
+}
\ No newline at end of file
diff --git a/utils/helpers.js b/utils/helpers.js
index 438185d..3c5f8ae 100644
--- a/utils/helpers.js
+++ b/utils/helpers.js
@@ -25,6 +25,8 @@ class helpers {
'select-time': '/pages/order/select-time',
//完成上门
'arrived-on-site': '/pages/order/arrived-on-site',
+ //完成服务
+ 'complete-service': '/pages/order/complete-service',
}
url = paths[pathName]