UNPKG

flamingo-ui

Version:

火烈鸟UI组件库

157 lines (156 loc) 5.17 kB
import "./index-sfc.css"; import { watch, ref } from "vue"; const __default__ = { name: "BottrustDialog" }; const __vue_sfc__ = /* @__PURE__ */ Object.assign(__default__, { props: { BootTrustClose: { type: String, default: "https://gres.guopan.cn/png/20230313/boottrust-close.png" }, product: { type: String, default: "66" }, toKfSystem: { type: Function, default: () => { } }, // 回调函数 callback: { type: Function }, remove: Function }, setup(__props, { expose }) { expose(); const props = __props; const show = ref(true); watch( () => show.value, () => { if (show.value == false) { props.remove; } } ); const fnCallback = (callback) => { callback ? callback(close) : callback(location.href = "//vip.66sy.cn/embedded.mobileprovision"); }; const close = (e) => { show.value = false; }; const __returned__ = { show, props, fnCallback, close, watch, ref }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }); import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, withModifiers as _withModifiers } from "vue"; const _hoisted_1 = { class: "fmg-boottrust" }; const _hoisted_2 = ["src"]; const _hoisted_3 = /* @__PURE__ */ _createElementVNode( "div", { class: "top" }, [ /* @__PURE__ */ _createElementVNode("p", null, "\u201C\u4E3A\u6536\u4FE1\u4EBA\u7684\u4F01\u4E1A\u7EA7\u5F00\u53D1\u8005\u8D26\u53F7\u201D"), /* @__PURE__ */ _createElementVNode("p", null, "\u600E\u4E48\u89E3\u51B3"), /* @__PURE__ */ _createElementVNode("p", null, "\u4FE1\u4EFB\u6B64\u8BC1\u4E66") ], -1 /* HOISTED */ ); const _hoisted_4 = { class: "bottom" }; const _hoisted_5 = { class: "trust" }; const _hoisted_6 = /* @__PURE__ */ _createElementVNode( "p", null, "\u65E0\u6CD5\u4FE1\u4EFB\u600E\u4E48\u529E\uFF1F", -1 /* HOISTED */ ); const _hoisted_7 = /* @__PURE__ */ _createElementVNode( "p", null, "\u70B9\u51FB\u8BBE\u7F6E-->\u901A\u7528-->\u63CF\u8FF0\u6587\u4EF6\u4E0E\u8BBE\u5907\u7BA1\u7406\uFF0C\u5B8C\u6210\u4FE1\u4EFB", -1 /* HOISTED */ ); function __vue_render__(_ctx, _cache, $props, $setup, $data, $options) { return _openBlock(), _createElementBlock("div", _hoisted_1, [ $setup.show ? (_openBlock(), _createElementBlock( "div", { key: 0, class: "mask", onTouchmove: _cache[3] || (_cache[3] = _withModifiers(() => { }, ["prevent"])) }, [ _createElementVNode( "div", { class: _normalizeClass($props.product == "guopan" ? "container-gp" : "container-66") }, [ _createElementVNode("img", { onClick: $setup.close, class: "close", src: $props.BootTrustClose, alt: "close" }, null, 8, _hoisted_2), _hoisted_3, _createElementVNode("div", _hoisted_4, [ _createElementVNode("div", _hoisted_5, [ _createElementVNode("button", { class: "trust-content", onClick: _cache[0] || (_cache[0] = ($event) => $setup.fnCallback($props.callback)) }, " \u70B9\u51FB\u524D\u53BB\u4FE1\u4EFB ") ]), _hoisted_6, _hoisted_7, _createElementVNode("p", null, [ $props.product == "guopan" ? (_openBlock(), _createElementBlock( _Fragment, { key: 0 }, [ _createTextVNode(" \u5982\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB\u5BA2\u670DQQ : "), _createElementVNode("a", { onClick: _cache[1] || (_cache[1] = ($event) => $props.toKfSystem($props.product)), style: { "color": "#01a8ff" } }, "800183983") ], 64 /* STABLE_FRAGMENT */ )) : (_openBlock(), _createElementBlock( _Fragment, { key: 1 }, [ _createTextVNode(" \u8BF7"), _createElementVNode("a", { style: { "color": "#01a8ff" }, onClick: _cache[2] || (_cache[2] = ($event) => $props.toKfSystem($props.product)) }, "\u8054\u7CFB\u5BA2\u670D") ], 64 /* STABLE_FRAGMENT */ )) ]) ]) ], 2 /* CLASS */ ) ], 32 /* HYDRATE_EVENTS */ )) : _createCommentVNode("v-if", true) ]); } __vue_sfc__.render = __vue_render__; __vue_sfc__._scopeId = "data-v-9cea930c"; var stdin_default = __vue_sfc__; export { stdin_default as default };