Commit eefe7407 by cen

feat: 新增补录弹窗

1 parent 61a3b6c0
...@@ -131,12 +131,20 @@ module.exports = { ...@@ -131,12 +131,20 @@ module.exports = {
...data ...data
}) })
}, },
/**补录订单 */ /**补录订单数 */
waitinputorder(data) { waitinputorder(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.count', method: 'dj.api.smartcarlife.weapp.waitinputorder.count',
projectName: 'boutique', projectName: 'boutique',
...{ ...data, inputStatus: 0 } ...{ ...data, inputStatus: 0 }
}) })
},
/**交易流水号 */
transactionSerialNumber(data) {
return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.page',
projectName: 'boutique',
...data
})
} }
} }
...@@ -35,4 +35,29 @@ ...@@ -35,4 +35,29 @@
font-size: toRpx(32); font-size: toRpx(32);
color: #1a1a1a; color: #1a1a1a;
} }
}
\ No newline at end of file \ No newline at end of file
}
.flex {
display: flex;
}
.justify-between {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.align-center {
align-items: center;
}
.justify-center {
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
}
.flex-wrap {
-ms-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
}
<!--针对弹窗穿透滚动,统一封装的popup-->
<template>
<page-meta :page-style="'overflow:' + (show ? 'hidden' : 'visible')"></page-meta>
<uni-popup :class="popupClass" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose">
<!-- 顶部标题栏插槽 -->
<slot name="header">
<view class="popup-top-box flex justify-between align-center">
<text></text>
<text>{{ title }}</text>
<uni-icons @click="closePopup" class="icon-close" type="closeempty"></uni-icons>
</view>
</slot>
<!-- 主要内容插槽 -->
<slot name="content"></slot>
<!-- 底部插槽 -->
<slot name="footer"></slot>
</uni-popup>
</template>
<script>
export default {
name: 'PublishPopup',
props: {
type: {
type: String,
default: 'bottom'
},
isMaskClick: {
type: Boolean,
default: true
},
safeArea: {
type: Boolean,
default: true
},
popupClass: {
type: String,
default: ''
},
showClose: {
type: Boolean,
default: true
},
title: {
type: String,
default: ''
}
},
data() {
return {
show: false
}
},
methods: {
open() {
this.$refs.publishPopup.open()
},
change(e) {
this.show = e.show
},
closePopup() {
this.$refs.publishPopup.close()
this.$emit('close')
}
}
}
</script>
<style scoped lang="scss">
.popup-top-box {
color: #333333;
font-size: toRpx(36);
font-weight: 500;
text-align: center;
padding: toRpx(32) toRpx(52);
}
.justify-between {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.align-center {
align-items: center;
}
.uniui-closeempty {
color: #1a1a1a;
font-size: toRpx(24);
font-weight: 600;
}
</style>
...@@ -179,7 +179,6 @@ export default { ...@@ -179,7 +179,6 @@ export default {
padding: toRpx(8); padding: toRpx(8);
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 500; font-weight: 500;
font-family: 'HarmonyOSSansSC';
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(1) solid transparent; border: toRpx(1) solid transparent;
} }
...@@ -208,14 +207,12 @@ export default { ...@@ -208,14 +207,12 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999ea8; color: #999ea8;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
.order-value { .order-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
.split { .split {
margin: 0 toRpx(6); margin: 0 toRpx(6);
} }
...@@ -233,14 +230,12 @@ export default { ...@@ -233,14 +230,12 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999ea8; color: #999ea8;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
.payType-value { .payType-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
} }
...@@ -254,7 +249,6 @@ export default { ...@@ -254,7 +249,6 @@ export default {
margin-right: toRpx(24); margin-right: toRpx(24);
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
color: #999ea8; color: #999ea8;
} }
...@@ -264,7 +258,6 @@ export default { ...@@ -264,7 +258,6 @@ export default {
color: #4673ff; color: #4673ff;
font-size: toRpx(36); font-size: toRpx(36);
font-weight: 700; font-weight: 700;
font-family: 'D-DIN-PRO';
} }
} }
...@@ -278,7 +271,6 @@ export default { ...@@ -278,7 +271,6 @@ export default {
margin-right: toRpx(8); margin-right: toRpx(8);
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 700; font-weight: 700;
font-family: 'D-DIN-PRO';
} }
.construction-staff { .construction-staff {
...@@ -290,14 +282,12 @@ export default { ...@@ -290,14 +282,12 @@ export default {
margin-right: toRpx(24); margin-right: toRpx(24);
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
color: #999ea8; color: #999ea8;
} }
.staff-value { .staff-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
} }
...@@ -307,13 +297,12 @@ export default { ...@@ -307,13 +297,12 @@ export default {
opacity: 1; opacity: 1;
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
background: #f5f7fa; background: #f5f7fa;
margin-top: toRpx(20); margin: toRpx(20) 0;
padding: toRpx(20) toRpx(32); padding: toRpx(20) toRpx(32);
.goods { .goods {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSans';
padding-top: toRpx(12); padding-top: toRpx(12);
.goods-name { .goods-name {
.point { .point {
...@@ -331,7 +320,6 @@ export default { ...@@ -331,7 +320,6 @@ export default {
color: #4673ff; color: #4673ff;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
text-align: right; text-align: right;
margin-top: toRpx(12); margin-top: toRpx(12);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!