no message

This commit is contained in:
2024-01-16 22:53:42 +08:00
commit 40e5198c79
479 changed files with 52166 additions and 0 deletions

113
pages/pay-success/index.js Normal file
View File

@@ -0,0 +1,113 @@
var e = require("../../common/vendor.js"),
n = require("../../hooks/onMounted.js"),
u = require("../../hooks/onShareAppMessage.js"),
r = require("../../service/index.js"),
o = require("../../hooks/useState.js"),
i = require("../../utils/navigate.js"),
t = require("../../utils/util.js"),
s = require("../../utils/common.js"),
a = require("../../enums/index.js");
require("../../config/index.js"),
require("../../constant/index.js"),
require("../../utils/request.js"),
require("../../store/app/index.js"),
require("../../data/index.js"),
Math || (e.unref(l) + e.unref(f) + e.unref(d) + e.unref(c))();
var c = function () {
return "../../components/popup-login/index.js";
},
d = function () {
return "../../components/popup-upload-tips/index.js";
},
l = function () {
return "../../components/float-help/index.js";
},
f = function () {
return "../../components/float-share/index.js";
},
p = {
__name: "index",
setup: function (c) {
var d = o.useState().mobile,
l = e.ref(!0),
f = e.ref(""),
p = e.ref({}),
v = e.ref(!1),
j = e.ref(!1),
m = function () {
i.redirectTo({ url: "/pages/order-list-mine/index" });
},
q = function () {
s.chooseDrivingLicense({ orderNo: f.value }).then(function () {
i.redirectTo({ url: "/pages/upload-success/index" });
});
},
x = function () {
v.value = !0;
},
h = function () {
s.queryWithoutDrivingLicense({ orderNo: f.value }).then(function () {
i.redirectTo({ url: "/pages/upload-success/index" });
});
},
g = function () {
v.value = !1;
},
_ = function () {
return (
!!p.value.productList &&
e._.find(p.value.productList, function (e) {
return (
e.product_id === a.ProductTypeEnum.INSURANCE_MAINTAIN ||
e.product_id === a.ProductTypeEnum.ACCIDENT
);
})
);
},
N = function () {
j.value = !1;
};
return (
n.onMounted(function (e) {
(f.value = e.orderNo),
r.getOrderDetail({ order_no: f.value }).then(function (e) {
d.value ||
setTimeout(function () {
j.value = !0;
}, 300),
(p.value = e),
(l.value = !1),
t.hideLoading();
});
}),
u.onShareAppMessage(),
function (n, u) {
return e.e(
{ a: !l.value },
l.value
? {}
: e.e(
{ b: _() },
(_(), {}),
{ c: !_() },
(_(), {}),
{ d: _() },
_() ? { e: e.o(q) } : {},
{ f: _() && p.value.vin },
_() && p.value.vin ? { g: e.o(x) } : {},
{
h: e.o(m),
i: e.o(g),
j: e.o(h),
k: e.p({ visible: v.value }),
l: e.o(N),
m: e.p({ visible: j.value }),
}
)
);
}
);
},
},
v = e._export_sfc(p, [["__scopeId", "data-v-df5365c6"]]);
(p.__runtimeHooks = 2), wx.createPage(v);

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "支付成功",
"usingComponents": {
"popup-login": "../../components/popup-login/index",
"popup-upload-tips": "../../components/popup-upload-tips/index",
"float-help": "../../components/float-help/index",
"float-share": "../../components/float-share/index"
}
}

View File

@@ -0,0 +1,68 @@
<view class="content data-v-df5365c6" wx:if="{{a}}">
<image
class="pic data-v-df5365c6"
src="/static/images/pic_pay_success.png"
></image>
<view class="pay-status data-v-df5365c6">支付成功</view>
<view class="tips data-v-df5365c6" wx:if="{{b}}">
您已完成支付,为了更精确的查询,需提供行驶证后才能查看报告。
</view>
<view class="tips data-v-df5365c6" wx:if="{{c}}">
正常情况下报告在3-15分钟内会有结果车辆维保报告最快10-30分钟左右出结果。报告处理时间为9点-22点22点后次日处理。18点以后部分订单会在第二天早上9点后收到查询结果。
</view>
<view class="button-content data-v-df5365c6">
<button
bindtap="{{e}}"
class="button type1 data-v-df5365c6"
hoverClass="default-hover-class"
hoverStayTime="100"
wx:if="{{d}}"
>
上传行驶证
</button>
<button
bindtap="{{g}}"
class="button type2 data-v-df5365c6"
hoverClass="default-hover-class"
hoverStayTime="100"
wx:if="{{f}}"
>
无法提供行驶证
</button>
<button
bindtap="{{h}}"
class="button type3 data-v-df5365c6"
hoverClass="default-hover-class"
hoverStayTime="100"
>
查看订单
</button>
</view>
<float-help
bind:__l="__l"
class="data-v-df5365c6"
uI="df5365c6-0"
></float-help>
<float-share
bind:__l="__l"
class="data-v-df5365c6"
uI="df5365c6-1"
></float-share>
<popup-upload-tips
bind:__l="__l"
bindcancel="{{i}}"
bindconfirm="{{j}}"
class="data-v-df5365c6"
uI="df5365c6-2"
uP="{{k}}"
wx:if="{{k}}"
></popup-upload-tips>
<popup-login
bind:__l="__l"
bindclose="{{l}}"
class="data-v-df5365c6"
uI="df5365c6-3"
uP="{{m}}"
wx:if="{{m}}"
></popup-login>
</view>

View File

@@ -0,0 +1,68 @@
page {
background-color: #fff;
overflow: visible !important;
}
.content.data-v-df5365c6 {
align-items: center;
display: -webkit-flex;
display: flex;
flex-direction: column;
padding: 60rpx;
}
.content .pic.data-v-df5365c6 {
height: 210rpx;
margin-top: 120rpx;
width: 311rpx;
}
.content .pay-status.data-v-df5365c6 {
font-size: 42rpx;
font-weight: 700;
margin-top: 100rpx;
}
.content .tips.data-v-df5365c6 {
color: #5e5e6b;
font-size: 28rpx;
line-height: 44rpx;
margin-top: 40rpx;
padding: 0 20rpx;
}
.content .view-report.data-v-df5365c6 {
color: #1f68e9;
font-size: 32rpx;
font-weight: 700;
margin-top: 150rpx;
}
.content .button-content.data-v-df5365c6 {
padding: 0 20rpx;
width: 100%;
}
.content .button-content .button.data-v-df5365c6 {
background-color: #fff;
border-radius: 100rpx;
font-size: 32rpx;
height: 90rpx;
line-height: 90rpx;
padding: 0;
text-align: center;
width: 100%;
}
.content .button-content .button.type1.data-v-df5365c6 {
background-color: #1f68e9;
color: #fff;
margin-top: 60rpx;
}
.content .button-content .button.type2.data-v-df5365c6 {
background-color: #edf5ff;
color: #1f68e9;
margin-top: 40rpx;
}
.content .button-content .button.type3.data-v-df5365c6 {
border: 2rpx solid #c4c8d1;
margin-top: 40rpx;
}
.content .notice.data-v-df5365c6 {
color: rgba(94, 94, 107, 0.855);
font-size: 24rpx;
margin-top: 50rpx;
text-align: center;
}