no message
This commit is contained in:
109
pages/sali-detail/index.js
Normal file
109
pages/sali-detail/index.js
Normal file
@@ -0,0 +1,109 @@
|
||||
var e = require("../../common/vendor.js"),
|
||||
t = require("../../hooks/onMounted.js"),
|
||||
n = require("../../hooks/onShareAppMessage.js"),
|
||||
r = require("../../service/index.js"),
|
||||
i = require("../../constant/index.js"),
|
||||
u = require("../../utils/util.js");
|
||||
require("../../hooks/useState.js"),
|
||||
require("../../store/app/index.js"),
|
||||
require("../../enums/index.js"),
|
||||
require("../../data/index.js"),
|
||||
require("../../config/index.js"),
|
||||
require("../../utils/request.js"),
|
||||
Math || (e.unref(a) + e.unref(s) + e.unref(o) + e.unref(v))();
|
||||
var a = function () {
|
||||
return "../../components/vehicle-number/index.js";
|
||||
},
|
||||
o = function () {
|
||||
return "../../components/empty/index.js";
|
||||
},
|
||||
s = function () {
|
||||
return "../../components/divider/index.js";
|
||||
},
|
||||
v = function () {
|
||||
return "../../components/float-share/index.js";
|
||||
},
|
||||
l = {
|
||||
__name: "index",
|
||||
setup: function (a) {
|
||||
var o = e.ref(!0),
|
||||
s = e.ref(!1),
|
||||
v = e.ref({}),
|
||||
l = function () {
|
||||
e.index.setClipboardData({ data: v.value.vin }).then(function () {
|
||||
u.showToast("VIN车架号已复制");
|
||||
});
|
||||
};
|
||||
return (
|
||||
t.onMounted(function (t) {
|
||||
var n = t.order_no,
|
||||
a = t.product_id;
|
||||
u.showLoading("努力查询中"),
|
||||
r
|
||||
.getReportDetail({ order_no: n, product_id: a })
|
||||
.then(function (t) {
|
||||
var n = e._.find(i.vehicleTypeList, function (e) {
|
||||
return e.value == t.type;
|
||||
});
|
||||
(t.type = n ? n.text : "-"),
|
||||
(v.value = t),
|
||||
(o.value = !1),
|
||||
u.hideLoading();
|
||||
});
|
||||
}, !1),
|
||||
n.onShareAppMessage(),
|
||||
function (t, n) {
|
||||
return e.e(
|
||||
{ a: !o.value },
|
||||
o.value
|
||||
? {}
|
||||
: e.e(
|
||||
{ b: !s.value },
|
||||
s.value
|
||||
? {}
|
||||
: e.e(
|
||||
{ c: v.value.info },
|
||||
v.value.info
|
||||
? {
|
||||
d: e.t(v.value.vin),
|
||||
e: e.o(l),
|
||||
f: e.t(v.value.info || "-"),
|
||||
g: e.t(v.value.create_time || "-"),
|
||||
}
|
||||
: {},
|
||||
{ h: !v.value.info },
|
||||
v.value.info
|
||||
? {}
|
||||
: e.e(
|
||||
{
|
||||
i: e.t(v.value.name.trim() || "-"),
|
||||
j: e.t(v.value.code.trim() || "-"),
|
||||
k: e.t(v.value.no.trim() || "-"),
|
||||
l: e.t(v.value.start_time.trim() || "-"),
|
||||
m: e.t(v.value.end_time.trim() || "-"),
|
||||
n: !!v.value.cph.trim(),
|
||||
},
|
||||
v.value.cph.trim()
|
||||
? { o: e.p({ data: v.value.cph.trim() }) }
|
||||
: {},
|
||||
{
|
||||
p: e.t(v.value.type.trim() || "-"),
|
||||
q: e.t(v.value.vin),
|
||||
r: e.o(l),
|
||||
s: e.t(v.value.engine_no.trim() || "-"),
|
||||
t: e.t(v.value.area.trim() || "-"),
|
||||
v: e.t(v.value.create_time || "-"),
|
||||
}
|
||||
),
|
||||
{ w: e.t(e.unref(i.disclaimer)) }
|
||||
),
|
||||
{ x: s.value },
|
||||
s.value ? { y: e.p({ info: "抱歉~!没有查到数据哦" }) } : {}
|
||||
)
|
||||
);
|
||||
}
|
||||
);
|
||||
},
|
||||
},
|
||||
d = e._export_sfc(l, [["__scopeId", "data-v-a38072eb"]]);
|
||||
(l.__runtimeHooks = 2), wx.createPage(d);
|
||||
9
pages/sali-detail/index.json
Normal file
9
pages/sali-detail/index.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "交强险信息",
|
||||
"usingComponents": {
|
||||
"vehicle-number": "../../components/vehicle-number/index",
|
||||
"empty": "../../components/empty/index",
|
||||
"divider": "../../components/divider/index",
|
||||
"float-share": "../../components/float-share/index"
|
||||
}
|
||||
}
|
||||
98
pages/sali-detail/index.wxml
Normal file
98
pages/sali-detail/index.wxml
Normal file
@@ -0,0 +1,98 @@
|
||||
<view class="content data-v-a38072eb" wx:if="{{a}}">
|
||||
<view class="data-v-a38072eb" wx:if="{{b}}">
|
||||
<view class="module-title data-v-a38072eb">交强险信息</view>
|
||||
<view class="detail data-v-a38072eb" wx:if="{{c}}">
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">VIN车架号</view>
|
||||
<view class="value data-v-a38072eb">
|
||||
<text class="data-v-a38072eb">{{d}}</text>
|
||||
<text bindtap="{{e}}" class="copy data-v-a38072eb">复制</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">状态</view>
|
||||
<view
|
||||
class="value data-v-a38072eb"
|
||||
style="font-weight: bold; color: #333"
|
||||
>{{f}}</view
|
||||
>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">报告时间</view>
|
||||
<view class="value data-v-a38072eb">{{g}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="detail data-v-a38072eb" wx:if="{{h}}">
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">保险公司</view>
|
||||
<view class="value data-v-a38072eb">{{i}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">投保确认码</view>
|
||||
<view class="value data-v-a38072eb">{{j}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">保单号</view>
|
||||
<view class="value data-v-a38072eb">{{k}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">起保日期</view>
|
||||
<view class="value data-v-a38072eb">{{l}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">终保日期</view>
|
||||
<view class="value data-v-a38072eb">{{m}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb" wx:if="{{n}}">
|
||||
<view class="title data-v-a38072eb">车牌号码</view>
|
||||
<view class="value data-v-a38072eb">
|
||||
<vehicle-number
|
||||
bind:__l="__l"
|
||||
class="data-v-a38072eb"
|
||||
uI="a38072eb-0"
|
||||
uP="{{o}}"
|
||||
wx:if="{{o}}"
|
||||
></vehicle-number>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">号牌种类</view>
|
||||
<view class="value data-v-a38072eb">{{p}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">VIN车架号</view>
|
||||
<view class="value data-v-a38072eb">
|
||||
<text class="data-v-a38072eb">{{q}}</text>
|
||||
<text bindtap="{{r}}" class="copy data-v-a38072eb">复制</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">发动机号</view>
|
||||
<view class="value data-v-a38072eb">{{s}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">投保地区</view>
|
||||
<view class="value data-v-a38072eb">{{t}}</view>
|
||||
</view>
|
||||
<view class="cell data-v-a38072eb">
|
||||
<view class="title data-v-a38072eb">报告时间</view>
|
||||
<view class="value data-v-a38072eb">{{v}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="module-title data-v-a38072eb">免责声明</view>
|
||||
<view class="disclaimer data-v-a38072eb">{{w}}</view>
|
||||
<divider bind:__l="__l" class="data-v-a38072eb" uI="a38072eb-1"></divider>
|
||||
</view>
|
||||
<empty
|
||||
bind:__l="__l"
|
||||
class="data-v-a38072eb"
|
||||
uI="a38072eb-2"
|
||||
uP="{{y}}"
|
||||
wx:if="{{x}}"
|
||||
></empty>
|
||||
<float-share
|
||||
bind:__l="__l"
|
||||
class="data-v-a38072eb"
|
||||
uI="a38072eb-3"
|
||||
></float-share>
|
||||
</view>
|
||||
88
pages/sali-detail/index.wxss
Normal file
88
pages/sali-detail/index.wxss
Normal file
@@ -0,0 +1,88 @@
|
||||
.content.data-v-a38072eb {
|
||||
padding: 30rpx;
|
||||
}
|
||||
.content .info.data-v-a38072eb {
|
||||
align-items: center;
|
||||
background-color: #eaf1f8;
|
||||
border-radius: 12rpx;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
padding: 20rpx 30rpx;
|
||||
}
|
||||
.content .info .logo.data-v-a38072eb {
|
||||
flex-shrink: 0;
|
||||
height: 100rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
.content .info .right-content.data-v-a38072eb {
|
||||
flex-grow: 1;
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.content .info .right-content .name.data-v-a38072eb {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.content .info .right-content .desc.data-v-a38072eb {
|
||||
align-items: center;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 28rpx;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.content .info .right-content .desc image.data-v-a38072eb {
|
||||
height: 40rpx;
|
||||
width: 265rpx;
|
||||
}
|
||||
.content .module-title.data-v-a38072eb {
|
||||
align-items: center;
|
||||
border-left: 6rpx solid #1f68e9;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
justify-content: space-between;
|
||||
line-height: 34rpx;
|
||||
margin: 30rpx 0;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
.content .module-title .tips.data-v-a38072eb {
|
||||
color: #1f68e9;
|
||||
font-size: 30rpx;
|
||||
font-weight: 400;
|
||||
}
|
||||
.content .disclaimer.data-v-a38072eb {
|
||||
background-color: #fff;
|
||||
border-radius: 10rpx;
|
||||
color: #333;
|
||||
font-size: 30rpx;
|
||||
padding: 30rpx 40rpx;
|
||||
}
|
||||
.content .detail.data-v-a38072eb {
|
||||
background-color: #fff;
|
||||
border-radius: 10rpx;
|
||||
padding: 10rpx 40rpx;
|
||||
position: relative;
|
||||
}
|
||||
.content .detail .cell.data-v-a38072eb {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
.content .detail .cell .title.data-v-a38072eb {
|
||||
color: #333;
|
||||
flex-shrink: 0;
|
||||
font-size: 30rpx;
|
||||
padding-left: 5rpx;
|
||||
position: relative;
|
||||
}
|
||||
.content .detail .cell .value.data-v-a38072eb {
|
||||
color: #686868;
|
||||
font-size: 30rpx;
|
||||
max-width: 450rpx;
|
||||
padding-right: 5rpx;
|
||||
}
|
||||
.content .detail .cell .value .copy.data-v-a38072eb {
|
||||
color: #d71818;
|
||||
margin-left: 15rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user