no message
This commit is contained in:
44
components/popup-copy-vin/index.js
Normal file
44
components/popup-copy-vin/index.js
Normal file
@@ -0,0 +1,44 @@
|
||||
var e = require("../../common/vendor.js");
|
||||
Array || e.resolveComponent("uni-popup")(), Math;
|
||||
var n = {
|
||||
__name: "index",
|
||||
props: {
|
||||
visible: { type: Boolean, default: !1 },
|
||||
copyVin: { type: String, default: "" },
|
||||
},
|
||||
emits: ["cancel", "confirm"],
|
||||
setup: function (n, o) {
|
||||
var t = o.emit,
|
||||
c = n,
|
||||
i = e.ref(null);
|
||||
e.watch(
|
||||
function () {
|
||||
return c.visible;
|
||||
},
|
||||
function () {
|
||||
c.visible ? i.value.open() : i.value.close();
|
||||
}
|
||||
);
|
||||
var r = function (e) {
|
||||
e.show || t("cancel");
|
||||
},
|
||||
a = function () {
|
||||
t("cancel");
|
||||
},
|
||||
u = function () {
|
||||
t("confirm");
|
||||
};
|
||||
return function (o, t) {
|
||||
return {
|
||||
a: e.t(n.copyVin),
|
||||
b: e.o(a),
|
||||
c: e.o(u),
|
||||
d: e.sr(i, "fa16f1de-0", { k: "popup" }),
|
||||
e: e.o(r),
|
||||
f: e.p({ type: "center", "is-mask-click": !1, animation: !0 }),
|
||||
};
|
||||
};
|
||||
},
|
||||
},
|
||||
o = e._export_sfc(n, [["__scopeId", "data-v-fa16f1de"]]);
|
||||
wx.createComponent(o);
|
6
components/popup-copy-vin/index.json
Normal file
6
components/popup-copy-vin/index.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
36
components/popup-copy-vin/index.wxml
Normal file
36
components/popup-copy-vin/index.wxml
Normal file
@@ -0,0 +1,36 @@
|
||||
<uni-popup
|
||||
bind:__l="__l"
|
||||
bindchange="{{e}}"
|
||||
class="r data-v-fa16f1de"
|
||||
uI="fa16f1de-0"
|
||||
uP="{{f}}"
|
||||
uR="popup"
|
||||
uS="{{['d']}}"
|
||||
wx:if="{{f}}"
|
||||
>
|
||||
<view class="content data-v-fa16f1de">
|
||||
<view class="popup-title data-v-fa16f1de">提示</view>
|
||||
<view class="popup-content data-v-fa16f1de">
|
||||
<view class="data-v-fa16f1de">是否要查询这个车架号?</view>
|
||||
<view class="data-v-fa16f1de" style="margin-top: 5rpx">{{a}}</view>
|
||||
</view>
|
||||
<view class="popup-buttons data-v-fa16f1de">
|
||||
<view
|
||||
bindtap="{{b}}"
|
||||
class="button data-v-fa16f1de"
|
||||
hoverClass="hover-class"
|
||||
hoverStayTime="100"
|
||||
>
|
||||
不用了
|
||||
</view>
|
||||
<view
|
||||
bindtap="{{c}}"
|
||||
class="button data-v-fa16f1de"
|
||||
hoverClass="hover-class"
|
||||
hoverStayTime="100"
|
||||
>
|
||||
马上查询
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
53
components/popup-copy-vin/index.wxss
Normal file
53
components/popup-copy-vin/index.wxss
Normal file
@@ -0,0 +1,53 @@
|
||||
.content.data-v-fa16f1de {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 15vh;
|
||||
overflow: hidden;
|
||||
width: 625rpx;
|
||||
}
|
||||
.content .popup-title.data-v-fa16f1de {
|
||||
color: #333;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
margin: 50rpx 0 40rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.content .popup-content.data-v-fa16f1de {
|
||||
align-items: center;
|
||||
color: #8a8a8a;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 32rpx;
|
||||
justify-content: center;
|
||||
}
|
||||
.content .popup-content .important.data-v-fa16f1de {
|
||||
font-weight: 700;
|
||||
}
|
||||
.content .popup-content .type.data-v-fa16f1de {
|
||||
color: #ff8453;
|
||||
}
|
||||
.content .popup-buttons.data-v-fa16f1de {
|
||||
align-items: center;
|
||||
border-top: 2rpx solid #f2f2f2;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
.content .popup-buttons .button.data-v-fa16f1de {
|
||||
flex-grow: 1;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
padding: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.content .popup-buttons .button.data-v-fa16f1de:nth-child(1) {
|
||||
border-right: 2rpx solid #f2f2f2;
|
||||
color: #333;
|
||||
}
|
||||
.content .popup-buttons .button.data-v-fa16f1de:nth-child(2) {
|
||||
color: #1f68e9;
|
||||
}
|
||||
.hover-class.data-v-fa16f1de {
|
||||
background-color: #e5e5e5;
|
||||
}
|
Reference in New Issue
Block a user