|
@ -0,0 +1,25 @@
|
||||||
|
function n(n, t, r, e, o, i, u) {
|
||||||
|
try {
|
||||||
|
var c = n[i](u), s = c.value;
|
||||||
|
} catch (n) {
|
||||||
|
n = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(n);
|
||||||
|
return void r(n);
|
||||||
|
}
|
||||||
|
c.done ? t(s) : Promise.resolve(s).then(e, o);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = function(t) {
|
||||||
|
return function() {
|
||||||
|
var r = this, e = arguments;
|
||||||
|
return new Promise(function(o, i) {
|
||||||
|
var u = t.apply(r, e);
|
||||||
|
function c(t) {
|
||||||
|
n(u, o, i, c, s, "next", t);
|
||||||
|
}
|
||||||
|
function s(t) {
|
||||||
|
n(u, o, i, c, s, "throw", t);
|
||||||
|
}
|
||||||
|
c(void 0);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,8 @@
|
||||||
|
module.exports = function(e, r, t) {
|
||||||
|
return r in e ? Object.defineProperty(e, r, {
|
||||||
|
value: t,
|
||||||
|
enumerable: !0,
|
||||||
|
configurable: !0,
|
||||||
|
writable: !0
|
||||||
|
}) : e[r] = t, e;
|
||||||
|
};
|
|
@ -0,0 +1,5 @@
|
||||||
|
module.exports = function(e) {
|
||||||
|
return e && e.__esModule ? e : {
|
||||||
|
default: e
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,304 @@
|
||||||
|
var t = require("./typeof");
|
||||||
|
|
||||||
|
function r() {
|
||||||
|
module.exports = r = function() {
|
||||||
|
return e;
|
||||||
|
}, module.exports.__esModule = !0, module.exports.default = module.exports;
|
||||||
|
var e = {}, n = Object.prototype, o = n.hasOwnProperty, i = Object.defineProperty || function(t, r, e) {
|
||||||
|
t[r] = e.value;
|
||||||
|
}, a = "function" == typeof Symbol ? Symbol : {}, c = a.iterator || "@@iterator", u = a.asyncIterator || "@@asyncIterator", l = a.toStringTag || "@@toStringTag";
|
||||||
|
function h(t, r, e) {
|
||||||
|
return Object.defineProperty(t, r, {
|
||||||
|
value: e,
|
||||||
|
enumerable: !0,
|
||||||
|
configurable: !0,
|
||||||
|
writable: !0
|
||||||
|
}), t[r];
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
h({}, "");
|
||||||
|
} catch (t) {
|
||||||
|
t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
|
||||||
|
h = function(t, r, e) {
|
||||||
|
return t[r] = e;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function f(t, r, e, n) {
|
||||||
|
var o = r && r.prototype instanceof d ? r : d, a = Object.create(o.prototype), c = new k(n || []);
|
||||||
|
return i(a, "_invoke", {
|
||||||
|
value: E(t, e, c)
|
||||||
|
}), a;
|
||||||
|
}
|
||||||
|
function s(t, r, e) {
|
||||||
|
try {
|
||||||
|
return {
|
||||||
|
type: "normal",
|
||||||
|
arg: t.call(r, e)
|
||||||
|
};
|
||||||
|
} catch (t) {
|
||||||
|
t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
|
||||||
|
return {
|
||||||
|
type: "throw",
|
||||||
|
arg: t
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
e.wrap = f;
|
||||||
|
var p = {};
|
||||||
|
function d() {}
|
||||||
|
function v() {}
|
||||||
|
function y() {}
|
||||||
|
var g = {};
|
||||||
|
h(g, c, function() {
|
||||||
|
return this;
|
||||||
|
});
|
||||||
|
var m = Object.getPrototypeOf, w = m && m(m(G([])));
|
||||||
|
w && w !== n && o.call(w, c) && (g = w);
|
||||||
|
var x = y.prototype = d.prototype = Object.create(g);
|
||||||
|
function L(t) {
|
||||||
|
[ "next", "throw", "return" ].forEach(function(r) {
|
||||||
|
h(t, r, function(t) {
|
||||||
|
return this._invoke(r, t);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function b(r, e) {
|
||||||
|
function n(i, a, c, u) {
|
||||||
|
var l = s(r[i], r, a);
|
||||||
|
if ("throw" !== l.type) {
|
||||||
|
var h = l.arg, f = h.value;
|
||||||
|
return f && "object" == t(f) && o.call(f, "__await") ? e.resolve(f.__await).then(function(t) {
|
||||||
|
n("next", t, c, u);
|
||||||
|
}, function(t) {
|
||||||
|
n("throw", t, c, u);
|
||||||
|
}) : e.resolve(f).then(function(t) {
|
||||||
|
h.value = t, c(h);
|
||||||
|
}, function(t) {
|
||||||
|
return n("throw", t, c, u);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
u(l.arg);
|
||||||
|
}
|
||||||
|
var a;
|
||||||
|
i(this, "_invoke", {
|
||||||
|
value: function(t, r) {
|
||||||
|
function o() {
|
||||||
|
return new e(function(e, o) {
|
||||||
|
n(t, r, e, o);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return a = a ? a.then(o, o) : o();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function E(t, r, e) {
|
||||||
|
var n = "suspendedStart";
|
||||||
|
return function(o, i) {
|
||||||
|
if ("executing" === n) throw new Error("Generator is already running");
|
||||||
|
if ("completed" === n) {
|
||||||
|
if ("throw" === o) throw i;
|
||||||
|
return N();
|
||||||
|
}
|
||||||
|
for (e.method = o, e.arg = i; ;) {
|
||||||
|
var a = e.delegate;
|
||||||
|
if (a) {
|
||||||
|
var c = _(a, e);
|
||||||
|
if (c) {
|
||||||
|
if (c === p) continue;
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ("next" === e.method) e.sent = e._sent = e.arg; else if ("throw" === e.method) {
|
||||||
|
if ("suspendedStart" === n) throw n = "completed", e.arg;
|
||||||
|
e.dispatchException(e.arg);
|
||||||
|
} else "return" === e.method && e.abrupt("return", e.arg);
|
||||||
|
n = "executing";
|
||||||
|
var u = s(t, r, e);
|
||||||
|
if ("normal" === u.type) {
|
||||||
|
if (n = e.done ? "completed" : "suspendedYield", u.arg === p) continue;
|
||||||
|
return {
|
||||||
|
value: u.arg,
|
||||||
|
done: e.done
|
||||||
|
};
|
||||||
|
}
|
||||||
|
"throw" === u.type && (n = "completed", e.method = "throw", e.arg = u.arg);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function _(t, r) {
|
||||||
|
var e = r.method, n = t.iterator[e];
|
||||||
|
if (void 0 === n) return r.delegate = null, "throw" === e && t.iterator.return && (r.method = "return",
|
||||||
|
r.arg = void 0, _(t, r), "throw" === r.method) || "return" !== e && (r.method = "throw",
|
||||||
|
r.arg = new TypeError("The iterator does not provide a '" + e + "' method")), p;
|
||||||
|
var o = s(n, t.iterator, r.arg);
|
||||||
|
if ("throw" === o.type) return r.method = "throw", r.arg = o.arg, r.delegate = null,
|
||||||
|
p;
|
||||||
|
var i = o.arg;
|
||||||
|
return i ? i.done ? (r[t.resultName] = i.value, r.next = t.nextLoc, "return" !== r.method && (r.method = "next",
|
||||||
|
r.arg = void 0), r.delegate = null, p) : i : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"),
|
||||||
|
r.delegate = null, p);
|
||||||
|
}
|
||||||
|
function O(t) {
|
||||||
|
var r = {
|
||||||
|
tryLoc: t[0]
|
||||||
|
};
|
||||||
|
1 in t && (r.catchLoc = t[1]), 2 in t && (r.finallyLoc = t[2], r.afterLoc = t[3]),
|
||||||
|
this.tryEntries.push(r);
|
||||||
|
}
|
||||||
|
function j(t) {
|
||||||
|
var r = t.completion || {};
|
||||||
|
r.type = "normal", delete r.arg, t.completion = r;
|
||||||
|
}
|
||||||
|
function k(t) {
|
||||||
|
this.tryEntries = [ {
|
||||||
|
tryLoc: "root"
|
||||||
|
} ], t.forEach(O, this), this.reset(!0);
|
||||||
|
}
|
||||||
|
function G(t) {
|
||||||
|
if (t) {
|
||||||
|
var r = t[c];
|
||||||
|
if (r) return r.call(t);
|
||||||
|
if ("function" == typeof t.next) return t;
|
||||||
|
if (!isNaN(t.length)) {
|
||||||
|
var e = -1, n = function r() {
|
||||||
|
for (;++e < t.length; ) if (o.call(t, e)) return r.value = t[e], r.done = !1, r;
|
||||||
|
return r.value = void 0, r.done = !0, r;
|
||||||
|
};
|
||||||
|
return n.next = n;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
next: N
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function N() {
|
||||||
|
return {
|
||||||
|
value: void 0,
|
||||||
|
done: !0
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return v.prototype = y, i(x, "constructor", {
|
||||||
|
value: y,
|
||||||
|
configurable: !0
|
||||||
|
}), i(y, "constructor", {
|
||||||
|
value: v,
|
||||||
|
configurable: !0
|
||||||
|
}), v.displayName = h(y, l, "GeneratorFunction"), e.isGeneratorFunction = function(t) {
|
||||||
|
var r = "function" == typeof t && t.constructor;
|
||||||
|
return !!r && (r === v || "GeneratorFunction" === (r.displayName || r.name));
|
||||||
|
}, e.mark = function(t) {
|
||||||
|
return Object.setPrototypeOf ? Object.setPrototypeOf(t, y) : (t.__proto__ = y, h(t, l, "GeneratorFunction")),
|
||||||
|
t.prototype = Object.create(x), t;
|
||||||
|
}, e.awrap = function(t) {
|
||||||
|
return {
|
||||||
|
__await: t
|
||||||
|
};
|
||||||
|
}, L(b.prototype), h(b.prototype, u, function() {
|
||||||
|
return this;
|
||||||
|
}), e.AsyncIterator = b, e.async = function(t, r, n, o, i) {
|
||||||
|
void 0 === i && (i = Promise);
|
||||||
|
var a = new b(f(t, r, n, o), i);
|
||||||
|
return e.isGeneratorFunction(r) ? a : a.next().then(function(t) {
|
||||||
|
return t.done ? t.value : a.next();
|
||||||
|
});
|
||||||
|
}, L(x), h(x, l, "Generator"), h(x, c, function() {
|
||||||
|
return this;
|
||||||
|
}), h(x, "toString", function() {
|
||||||
|
return "[object Generator]";
|
||||||
|
}), e.keys = function(t) {
|
||||||
|
var r = Object(t), e = [];
|
||||||
|
for (var n in r) e.push(n);
|
||||||
|
return e.reverse(), function t() {
|
||||||
|
for (;e.length; ) {
|
||||||
|
var n = e.pop();
|
||||||
|
if (n in r) return t.value = n, t.done = !1, t;
|
||||||
|
}
|
||||||
|
return t.done = !0, t;
|
||||||
|
};
|
||||||
|
}, e.values = G, k.prototype = {
|
||||||
|
constructor: k,
|
||||||
|
reset: function(t) {
|
||||||
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1,
|
||||||
|
this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(j),
|
||||||
|
!t) for (var r in this) "t" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = void 0);
|
||||||
|
},
|
||||||
|
stop: function() {
|
||||||
|
this.done = !0;
|
||||||
|
var t = this.tryEntries[0].completion;
|
||||||
|
if ("throw" === t.type) throw t.arg;
|
||||||
|
return this.rval;
|
||||||
|
},
|
||||||
|
dispatchException: function(t) {
|
||||||
|
if (this.done) throw t;
|
||||||
|
var r = this;
|
||||||
|
function e(e, n) {
|
||||||
|
return a.type = "throw", a.arg = t, r.next = e, n && (r.method = "next", r.arg = void 0),
|
||||||
|
!!n;
|
||||||
|
}
|
||||||
|
for (var n = this.tryEntries.length - 1; n >= 0; --n) {
|
||||||
|
var i = this.tryEntries[n], a = i.completion;
|
||||||
|
if ("root" === i.tryLoc) return e("end");
|
||||||
|
if (i.tryLoc <= this.prev) {
|
||||||
|
var c = o.call(i, "catchLoc"), u = o.call(i, "finallyLoc");
|
||||||
|
if (c && u) {
|
||||||
|
if (this.prev < i.catchLoc) return e(i.catchLoc, !0);
|
||||||
|
if (this.prev < i.finallyLoc) return e(i.finallyLoc);
|
||||||
|
} else if (c) {
|
||||||
|
if (this.prev < i.catchLoc) return e(i.catchLoc, !0);
|
||||||
|
} else {
|
||||||
|
if (!u) throw new Error("try statement without catch or finally");
|
||||||
|
if (this.prev < i.finallyLoc) return e(i.finallyLoc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
abrupt: function(t, r) {
|
||||||
|
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||||||
|
var n = this.tryEntries[e];
|
||||||
|
if (n.tryLoc <= this.prev && o.call(n, "finallyLoc") && this.prev < n.finallyLoc) {
|
||||||
|
var i = n;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i && ("break" === t || "continue" === t) && i.tryLoc <= r && r <= i.finallyLoc && (i = null);
|
||||||
|
var a = i ? i.completion : {};
|
||||||
|
return a.type = t, a.arg = r, i ? (this.method = "next", this.next = i.finallyLoc,
|
||||||
|
p) : this.complete(a);
|
||||||
|
},
|
||||||
|
complete: function(t, r) {
|
||||||
|
if ("throw" === t.type) throw t.arg;
|
||||||
|
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg,
|
||||||
|
this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r),
|
||||||
|
p;
|
||||||
|
},
|
||||||
|
finish: function(t) {
|
||||||
|
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
||||||
|
var e = this.tryEntries[r];
|
||||||
|
if (e.finallyLoc === t) return this.complete(e.completion, e.afterLoc), j(e), p;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
catch: function(t) {
|
||||||
|
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
||||||
|
var e = this.tryEntries[r];
|
||||||
|
if (e.tryLoc === t) {
|
||||||
|
var n = e.completion;
|
||||||
|
if ("throw" === n.type) {
|
||||||
|
var o = n.arg;
|
||||||
|
j(e);
|
||||||
|
}
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new Error("illegal catch attempt");
|
||||||
|
},
|
||||||
|
delegateYield: function(t, r, e) {
|
||||||
|
return this.delegate = {
|
||||||
|
iterator: G(t),
|
||||||
|
resultName: r,
|
||||||
|
nextLoc: e
|
||||||
|
}, "next" === this.method && (this.arg = void 0), p;
|
||||||
|
}
|
||||||
|
}, e;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = r, module.exports.__esModule = !0, module.exports.default = module.exports;
|
|
@ -0,0 +1,14 @@
|
||||||
|
var _typeof = require("./typeof");
|
||||||
|
|
||||||
|
function _toPrimitive(r, t) {
|
||||||
|
if ("object" !== _typeof(r) || null === r) return r;
|
||||||
|
var e = r[Symbol.toPrimitive];
|
||||||
|
if (void 0 !== e) {
|
||||||
|
var i = e.call(r, t || "default");
|
||||||
|
if ("object" !== _typeof(i)) return i;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}
|
||||||
|
return ("string" === t ? String : Number)(r);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _toPrimitive;
|
|
@ -0,0 +1,8 @@
|
||||||
|
var _typeof = require("./typeof"), toPrimitive = require("./toPrimitive");
|
||||||
|
|
||||||
|
function _toPropertyKey(r) {
|
||||||
|
var t = toPrimitive(r, "string");
|
||||||
|
return "symbol" === _typeof(t) ? t : String(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _toPropertyKey;
|
|
@ -0,0 +1,10 @@
|
||||||
|
function _typeof(o) {
|
||||||
|
"@babel/helpers - typeof";
|
||||||
|
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
||||||
|
return typeof o;
|
||||||
|
} : function(o) {
|
||||||
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
||||||
|
}, _typeof(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _typeof;
|
|
@ -0,0 +1,275 @@
|
||||||
|
var t = require("../../@babel/runtime/helpers/typeof");
|
||||||
|
|
||||||
|
!function(r) {
|
||||||
|
var e, n = Object.prototype, o = n.hasOwnProperty, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag", h = "object" == ("undefined" == typeof module ? "undefined" : t(module)), f = r.regeneratorRuntime;
|
||||||
|
if (f) h && (module.exports = f); else {
|
||||||
|
(f = r.regeneratorRuntime = h ? module.exports : {}).wrap = L;
|
||||||
|
var s = "suspendedStart", l = "suspendedYield", p = "executing", y = "completed", d = {}, v = {};
|
||||||
|
v[a] = function() {
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
var g = Object.getPrototypeOf, m = g && g(g(F([])));
|
||||||
|
m && m !== n && o.call(m, a) && (v = m);
|
||||||
|
var w = _.prototype = E.prototype = Object.create(v);
|
||||||
|
b.prototype = w.constructor = _, _.constructor = b, _[u] = b.displayName = "GeneratorFunction",
|
||||||
|
f.isGeneratorFunction = function(t) {
|
||||||
|
var r = "function" == typeof t && t.constructor;
|
||||||
|
return !!r && (r === b || "GeneratorFunction" === (r.displayName || r.name));
|
||||||
|
}, f.mark = function(t) {
|
||||||
|
return Object.setPrototypeOf ? Object.setPrototypeOf(t, _) : (t.__proto__ = _, u in t || (t[u] = "GeneratorFunction")),
|
||||||
|
t.prototype = Object.create(w), t;
|
||||||
|
}, f.awrap = function(t) {
|
||||||
|
return {
|
||||||
|
__await: t
|
||||||
|
};
|
||||||
|
}, j(O.prototype), O.prototype[c] = function() {
|
||||||
|
return this;
|
||||||
|
}, f.AsyncIterator = O, f.async = function(t, r, e, n) {
|
||||||
|
var o = new O(L(t, r, e, n));
|
||||||
|
return f.isGeneratorFunction(r) ? o : o.next().then(function(t) {
|
||||||
|
return t.done ? t.value : o.next();
|
||||||
|
});
|
||||||
|
}, j(w), w[u] = "Generator", w[a] = function() {
|
||||||
|
return this;
|
||||||
|
}, w.toString = function() {
|
||||||
|
return "[object Generator]";
|
||||||
|
}, f.keys = function(t) {
|
||||||
|
var r = [];
|
||||||
|
for (var e in t) r.push(e);
|
||||||
|
return r.reverse(), function e() {
|
||||||
|
for (;r.length; ) {
|
||||||
|
var n = r.pop();
|
||||||
|
if (n in t) return e.value = n, e.done = !1, e;
|
||||||
|
}
|
||||||
|
return e.done = !0, e;
|
||||||
|
};
|
||||||
|
}, f.values = F, P.prototype = {
|
||||||
|
constructor: P,
|
||||||
|
reset: function(t) {
|
||||||
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null,
|
||||||
|
this.method = "next", this.arg = e, this.tryEntries.forEach(N), !t) for (var r in this) "t" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = e);
|
||||||
|
},
|
||||||
|
stop: function() {
|
||||||
|
this.done = !0;
|
||||||
|
var t = this.tryEntries[0].completion;
|
||||||
|
if ("throw" === t.type) throw t.arg;
|
||||||
|
return this.rval;
|
||||||
|
},
|
||||||
|
dispatchException: function(t) {
|
||||||
|
if (this.done) throw t;
|
||||||
|
var r = this;
|
||||||
|
function n(n, o) {
|
||||||
|
return c.type = "throw", c.arg = t, r.next = n, o && (r.method = "next", r.arg = e),
|
||||||
|
!!o;
|
||||||
|
}
|
||||||
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||||||
|
var a = this.tryEntries[i], c = a.completion;
|
||||||
|
if ("root" === a.tryLoc) return n("end");
|
||||||
|
if (a.tryLoc <= this.prev) {
|
||||||
|
var u = o.call(a, "catchLoc"), h = o.call(a, "finallyLoc");
|
||||||
|
if (u && h) {
|
||||||
|
if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
|
||||||
|
if (this.prev < a.finallyLoc) return n(a.finallyLoc);
|
||||||
|
} else if (u) {
|
||||||
|
if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
|
||||||
|
} else {
|
||||||
|
if (!h) throw new Error("try statement without catch or finally");
|
||||||
|
if (this.prev < a.finallyLoc) return n(a.finallyLoc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
abrupt: function(t, r) {
|
||||||
|
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||||||
|
var n = this.tryEntries[e];
|
||||||
|
if (n.tryLoc <= this.prev && o.call(n, "finallyLoc") && this.prev < n.finallyLoc) {
|
||||||
|
var i = n;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i && ("break" === t || "continue" === t) && i.tryLoc <= r && r <= i.finallyLoc && (i = null);
|
||||||
|
var a = i ? i.completion : {};
|
||||||
|
return a.type = t, a.arg = r, i ? (this.method = "next", this.next = i.finallyLoc,
|
||||||
|
d) : this.complete(a);
|
||||||
|
},
|
||||||
|
complete: function(t, r) {
|
||||||
|
if ("throw" === t.type) throw t.arg;
|
||||||
|
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg,
|
||||||
|
this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r),
|
||||||
|
d;
|
||||||
|
},
|
||||||
|
finish: function(t) {
|
||||||
|
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
||||||
|
var e = this.tryEntries[r];
|
||||||
|
if (e.finallyLoc === t) return this.complete(e.completion, e.afterLoc), N(e), d;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
catch: function(t) {
|
||||||
|
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
||||||
|
var e = this.tryEntries[r];
|
||||||
|
if (e.tryLoc === t) {
|
||||||
|
var n = e.completion;
|
||||||
|
if ("throw" === n.type) {
|
||||||
|
var o = n.arg;
|
||||||
|
N(e);
|
||||||
|
}
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new Error("illegal catch attempt");
|
||||||
|
},
|
||||||
|
delegateYield: function(t, r, n) {
|
||||||
|
return this.delegate = {
|
||||||
|
iterator: F(t),
|
||||||
|
resultName: r,
|
||||||
|
nextLoc: n
|
||||||
|
}, "next" === this.method && (this.arg = e), d;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function L(t, r, e, n) {
|
||||||
|
var o = r && r.prototype instanceof E ? r : E, i = Object.create(o.prototype), a = new P(n || []);
|
||||||
|
return i._invoke = function(t, r, e) {
|
||||||
|
var n = s;
|
||||||
|
return function(o, i) {
|
||||||
|
if (n === p) throw new Error("Generator is already running");
|
||||||
|
if (n === y) {
|
||||||
|
if ("throw" === o) throw i;
|
||||||
|
return S();
|
||||||
|
}
|
||||||
|
for (e.method = o, e.arg = i; ;) {
|
||||||
|
var a = e.delegate;
|
||||||
|
if (a) {
|
||||||
|
var c = k(a, e);
|
||||||
|
if (c) {
|
||||||
|
if (c === d) continue;
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ("next" === e.method) e.sent = e._sent = e.arg; else if ("throw" === e.method) {
|
||||||
|
if (n === s) throw n = y, e.arg;
|
||||||
|
e.dispatchException(e.arg);
|
||||||
|
} else "return" === e.method && e.abrupt("return", e.arg);
|
||||||
|
n = p;
|
||||||
|
var u = x(t, r, e);
|
||||||
|
if ("normal" === u.type) {
|
||||||
|
if (n = e.done ? y : l, u.arg === d) continue;
|
||||||
|
return {
|
||||||
|
value: u.arg,
|
||||||
|
done: e.done
|
||||||
|
};
|
||||||
|
}
|
||||||
|
"throw" === u.type && (n = y, e.method = "throw", e.arg = u.arg);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}(t, e, a), i;
|
||||||
|
}
|
||||||
|
function x(t, r, e) {
|
||||||
|
try {
|
||||||
|
return {
|
||||||
|
type: "normal",
|
||||||
|
arg: t.call(r, e)
|
||||||
|
};
|
||||||
|
} catch (t) {
|
||||||
|
t = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(t);
|
||||||
|
return {
|
||||||
|
type: "throw",
|
||||||
|
arg: t
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function E() {}
|
||||||
|
function b() {}
|
||||||
|
function _() {}
|
||||||
|
function j(t) {
|
||||||
|
[ "next", "throw", "return" ].forEach(function(r) {
|
||||||
|
t[r] = function(t) {
|
||||||
|
return this._invoke(r, t);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function O(r) {
|
||||||
|
var e;
|
||||||
|
this._invoke = function(n, i) {
|
||||||
|
function a() {
|
||||||
|
return new Promise(function(e, a) {
|
||||||
|
!function e(n, i, a, c) {
|
||||||
|
var u = x(r[n], r, i);
|
||||||
|
if ("throw" !== u.type) {
|
||||||
|
var h = u.arg, f = h.value;
|
||||||
|
return f && "object" == t(f) && o.call(f, "__await") ? Promise.resolve(f.__await).then(function(t) {
|
||||||
|
e("next", t, a, c);
|
||||||
|
}, function(t) {
|
||||||
|
e("throw", t, a, c);
|
||||||
|
}) : Promise.resolve(f).then(function(t) {
|
||||||
|
h.value = t, a(h);
|
||||||
|
}, function(t) {
|
||||||
|
return e("throw", t, a, c);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
c(u.arg);
|
||||||
|
}(n, i, e, a);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return e = e ? e.then(a, a) : a();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function k(t, r) {
|
||||||
|
var n = t.iterator[r.method];
|
||||||
|
if (n === e) {
|
||||||
|
if (r.delegate = null, "throw" === r.method) {
|
||||||
|
if (t.iterator.return && (r.method = "return", r.arg = e, k(t, r), "throw" === r.method)) return d;
|
||||||
|
r.method = "throw", r.arg = new TypeError("The iterator does not provide a 'throw' method");
|
||||||
|
}
|
||||||
|
return d;
|
||||||
|
}
|
||||||
|
var o = x(n, t.iterator, r.arg);
|
||||||
|
if ("throw" === o.type) return r.method = "throw", r.arg = o.arg, r.delegate = null,
|
||||||
|
d;
|
||||||
|
var i = o.arg;
|
||||||
|
return i ? i.done ? (r[t.resultName] = i.value, r.next = t.nextLoc, "return" !== r.method && (r.method = "next",
|
||||||
|
r.arg = e), r.delegate = null, d) : i : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"),
|
||||||
|
r.delegate = null, d);
|
||||||
|
}
|
||||||
|
function G(t) {
|
||||||
|
var r = {
|
||||||
|
tryLoc: t[0]
|
||||||
|
};
|
||||||
|
1 in t && (r.catchLoc = t[1]), 2 in t && (r.finallyLoc = t[2], r.afterLoc = t[3]),
|
||||||
|
this.tryEntries.push(r);
|
||||||
|
}
|
||||||
|
function N(t) {
|
||||||
|
var r = t.completion || {};
|
||||||
|
r.type = "normal", delete r.arg, t.completion = r;
|
||||||
|
}
|
||||||
|
function P(t) {
|
||||||
|
this.tryEntries = [ {
|
||||||
|
tryLoc: "root"
|
||||||
|
} ], t.forEach(G, this), this.reset(!0);
|
||||||
|
}
|
||||||
|
function F(t) {
|
||||||
|
if (t) {
|
||||||
|
var r = t[a];
|
||||||
|
if (r) return r.call(t);
|
||||||
|
if ("function" == typeof t.next) return t;
|
||||||
|
if (!isNaN(t.length)) {
|
||||||
|
var n = -1, i = function r() {
|
||||||
|
for (;++n < t.length; ) if (o.call(t, n)) return r.value = t[n], r.done = !1, r;
|
||||||
|
return r.value = e, r.done = !0, r;
|
||||||
|
};
|
||||||
|
return i.next = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
next: S
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function S() {
|
||||||
|
return {
|
||||||
|
value: e,
|
||||||
|
done: !0
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}(function() {
|
||||||
|
return this || "object" == ("undefined" == typeof self ? "undefined" : t(self)) && self;
|
||||||
|
}() || Function("return this")());
|
|
@ -0,0 +1,417 @@
|
||||||
|
var __TENCENT_CHAOS_VM = function() {
|
||||||
|
var a = function a(c, d, e) {
|
||||||
|
var b = [], f = 0;
|
||||||
|
while (f++ < d) {
|
||||||
|
b.push(c += e);
|
||||||
|
}
|
||||||
|
return b;
|
||||||
|
};
|
||||||
|
var c = function c(i) {
|
||||||
|
var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("");
|
||||||
|
var f = String(i).replace(/[=]+$/, ""), j = f.length, b, a, d = 0, e = 0, h = [];
|
||||||
|
for (;e < j; e++) {
|
||||||
|
a = g[f.charCodeAt(e)];
|
||||||
|
~a && (b = d % 4 ? 64 * b + a : a, d++ % 4) ? h.push(255 & b >> (-2 * d & 6)) : 0;
|
||||||
|
}
|
||||||
|
return h;
|
||||||
|
};
|
||||||
|
var d = function d(a) {
|
||||||
|
return a >> 1 ^ -(1 & a);
|
||||||
|
};
|
||||||
|
var b = function b(i) {
|
||||||
|
var f = [];
|
||||||
|
var g = new Int8Array(c(i));
|
||||||
|
var j = g.length;
|
||||||
|
var h = 0;
|
||||||
|
while (j > h) {
|
||||||
|
var a = g[h++];
|
||||||
|
var e = 127 & a;
|
||||||
|
if (a >= 0) {
|
||||||
|
f.push(d(e));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
a = g[h++];
|
||||||
|
e |= (127 & a) << 7;
|
||||||
|
if (a >= 0) {
|
||||||
|
f.push(d(e));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
a = g[h++];
|
||||||
|
e |= (127 & a) << 14;
|
||||||
|
if (a >= 0) {
|
||||||
|
f.push(d(e));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
a = g[h++];
|
||||||
|
e |= (127 & a) << 21;
|
||||||
|
if (a >= 0) {
|
||||||
|
f.push(d(e));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
a = g[h++];
|
||||||
|
e |= a << 28;
|
||||||
|
f.push(d(e));
|
||||||
|
}
|
||||||
|
return f;
|
||||||
|
};
|
||||||
|
var e = [];
|
||||||
|
var f;
|
||||||
|
var g = a(0, 43, 0).concat([ 62, 0, 62, 0, 63 ]).concat(a(51, 10, 1)).concat(a(0, 8, 0)).concat(a(0, 25, 1)).concat([ 0, 0, 0, 0, 63, 0 ]).concat(a(25, 26, 1));
|
||||||
|
var h = b;
|
||||||
|
return function g(b, c) {
|
||||||
|
var i = h(b);
|
||||||
|
var d, a;
|
||||||
|
var a = function(b, c, d, g, h) {
|
||||||
|
return function r() {
|
||||||
|
var k = [ d, g, c, this, arguments, r, i, 0 ];
|
||||||
|
var n = void 0;
|
||||||
|
var j = b;
|
||||||
|
var o = [];
|
||||||
|
var q, l, m, s;
|
||||||
|
while (true) {
|
||||||
|
try {
|
||||||
|
while (true) {
|
||||||
|
switch (i[++j]) {
|
||||||
|
case 0:
|
||||||
|
k[i[++j]] = k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
k[i[++j]] += String.fromCharCode(i[++j]);
|
||||||
|
k[i[++j]] += String.fromCharCode(i[++j]);
|
||||||
|
k[i[++j]] += String.fromCharCode(i[++j]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
o.pop();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
k[i[++j]][k[i[++j]]] = k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
k[i[++j]] += String.fromCharCode(i[++j]);
|
||||||
|
k[i[++j]][k[i[++j]]] = k[i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 5:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 7:
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
k[i[++j]] = {};
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 8:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 9:
|
||||||
|
k[i[++j]] = k[i[++j]].call(n, k[i[++j]]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 10:
|
||||||
|
k[i[++j]] = k[i[++j]].call(k[i[++j]], k[i[++j]]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 11:
|
||||||
|
k[i[++j]] = "";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 12:
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 13:
|
||||||
|
k[i[++j]] = k[i[++j]] + k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 14:
|
||||||
|
k[i[++j]] = n;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 15:
|
||||||
|
k[i[++j]] = Array(i[++j]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 16:
|
||||||
|
k[i[++j]] = new k[i[++j]](k[i[++j]]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 17:
|
||||||
|
j += k[i[++j]] ? i[++j] : i[(++j, ++j)];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 18:
|
||||||
|
k[i[++j]] = k[i[++j]].call(k[i[++j]]);
|
||||||
|
k[i[++j]] = n;
|
||||||
|
return k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 19:
|
||||||
|
k[i[++j]] = Array(i[++j]);
|
||||||
|
k[i[++j]] = k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 20:
|
||||||
|
k[i[++j]] = k[i[++j]] > i[++j];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 21:
|
||||||
|
k[i[++j]] = k[i[++j]];
|
||||||
|
k[i[++j]][i[++j]] = k[i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 22:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = {};
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 23:
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 24:
|
||||||
|
k[i[++j]] = i[++j];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 25:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 26:
|
||||||
|
return k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 27:
|
||||||
|
k[i[++j]] = q;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 28:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 29:
|
||||||
|
k[i[++j]][i[++j]] = k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 30:
|
||||||
|
k[i[++j]] = k[i[++j]].call(k[i[++j]]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 31:
|
||||||
|
k[i[++j]][k[i[++j]]] = k[i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = "";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 32:
|
||||||
|
k[i[++j]] = k[i[++j]].call(k[i[++j]], k[i[++j]], k[i[++j]]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 33:
|
||||||
|
j += i[++j];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 34:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 35:
|
||||||
|
k[i[++j]] += String.fromCharCode(i[++j]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 36:
|
||||||
|
o.push(j + i[++j]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 37:
|
||||||
|
k[i[++j]] = {};
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 38:
|
||||||
|
k[i[++j]] = k[i[++j]].call(k[i[++j]], k[i[++j]]);
|
||||||
|
k[i[++j]] = n;
|
||||||
|
return k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 39:
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
k[i[++j]] = "";
|
||||||
|
k[i[++j]] += String.fromCharCode(i[++j]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 40:
|
||||||
|
throw k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 41:
|
||||||
|
k[i[++j]] = k[i[++j]].call(n);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 42:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
l = [];
|
||||||
|
for (m = i[++j]; m > 0; m--) l.push(k[i[++j]]);
|
||||||
|
k[i[++j]] = a(j + i[++j], l, d, g, h);
|
||||||
|
try {
|
||||||
|
Object.defineProperty(k[i[j - 1]], "length", {
|
||||||
|
value: i[++j],
|
||||||
|
configurable: true,
|
||||||
|
writable: false,
|
||||||
|
enumerable: false
|
||||||
|
});
|
||||||
|
} catch (t) {}
|
||||||
|
k[i[++j]][k[i[++j]]] = k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 43:
|
||||||
|
k[i[++j]] = k[i[++j]] === k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 44:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 45:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]][k[i[++j]]] = k[i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 46:
|
||||||
|
l = [];
|
||||||
|
for (m = i[++j]; m > 0; m--) l.push(k[i[++j]]);
|
||||||
|
k[i[++j]] = a(j + i[++j], l, d, g, h);
|
||||||
|
try {
|
||||||
|
Object.defineProperty(k[i[j - 1]], "length", {
|
||||||
|
value: i[++j],
|
||||||
|
configurable: true,
|
||||||
|
writable: false,
|
||||||
|
enumerable: false
|
||||||
|
});
|
||||||
|
} catch (u) {}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 47:
|
||||||
|
k[i[++j]] = k[i[++j]][k[i[++j]]];
|
||||||
|
k[i[++j]] = k[i[++j]].call(k[i[++j]], k[i[++j]]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 48:
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = Array(i[++j]);
|
||||||
|
k[i[++j]][i[++j]] = k[i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 49:
|
||||||
|
k[i[++j]] = {};
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 50:
|
||||||
|
k[i[++j]][k[i[++j]]] = k[i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
k[i[++j]] = k[i[++j]][i[++j]];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (p) {
|
||||||
|
// p = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(p);
|
||||||
|
// if (o.length > 0) {
|
||||||
|
// f = j;
|
||||||
|
// e = [];
|
||||||
|
// }
|
||||||
|
// q = p;
|
||||||
|
// e.push(j);
|
||||||
|
// if (0 === o.length) {
|
||||||
|
// throw h ? h(p, k, e) : p;
|
||||||
|
// }
|
||||||
|
// j = o.pop();
|
||||||
|
// e.pop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
return c ? d : a;
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
|
||||||
|
function a(b, a) {
|
||||||
|
if (null != a && "undefined" != typeof Symbol && a[Symbol.hasInstance]) {
|
||||||
|
return !!a[Symbol.hasInstance](b);
|
||||||
|
}
|
||||||
|
return b instanceof a;
|
||||||
|
}
|
||||||
|
|
||||||
|
__TENCENT_CHAOS_VM("WCYIADwEABoEAjg2BAQAHgoQIAIkFiYgIha4GKQeEB4CbiocHlwCIh68EgIUECocHgAgEDIQAiwQABAeAi5eKhAeFioQIAAWICIW3hG2F1gaCAAgBAAsBAJEJgQEMAo8IAAyFAJKJDwUFAIqGDIaFBQsADIeAhQqFB4eAgguFCoeQB4kPDIUADoeMh4CTB4AHhQCTl4yHhQUMh46ABYUOBQmAEoyCh4CUiQCUDwWJAYyHjwKPAJWHgJUJBYeBjI8JAokAlo8AlgeFjwGMiQeCh4CXiQCXDwWJAYyHjwKPAJiHgJgJBYeBjI8JBIoFDIcMjQyEBICABIAEhYgAiDGASDeASDmAQIgWiDuASDwAQIgWiDmASDIAQIg1gEgWiDsAUYgahIiEiA6EAAiECICACIAIhYgAiBcIF4g2AECINIBIMQBIF4CIMIBIMoBIOYBAiBcINQBIOYBEhIiIDoaABIQEgICEgASSiAsIgIUHBYCBBYeAh7QAR7oAR7oAQIe4AEe5gEedAIeXh5eHsQBAh7CAR7EAR7yAQIeXB7QAR7yAQIe5gEewgEewgECHuYBHlwexgEIHtwBHBYeHgIGFhYCFmIWXBZgRhZcCBZgHB4WFgIIFh4CHmYeYh5mAh5kHmYeZgIeZh5oHmYCHmoeZh5sAh5mHm4eZgIecB5mHnICHmYeYB5oAh5iHmgeZAIeaB5mHmgCHmgeaB5qRh5oCB5sHBYeHgIKFhYGHB4WOB4CDD4cHhYeAg4WAhbuARbwARZoAhZkFmAWxAECFmgWchZuAhZyFsYBFmICFmYWchbCAQIWbBZmFm4+HB4WFgIQHgIenvACHsztAh7IzwJGHq6vBAgejNsEHBYeHgISFhYCFrK/BBbUuAIWnvACAhbM7QIWyM8CFq6vBAIWjNsEFtTkAhb65QICFtDUAxbM1QIWmPwHAhbQjgMWoI0EFrL7A0YWwL0CRhaC/AcGHB4WBiAiHFQcAiAAIq4FAiAcIlQiAhoAHKoGAiAiHFQcAhwAIrIBACAcIlQiAmYEEBocRgAgIhxUHAJsACKkEQAgHCJUIgJ2AByIAwIgIhwSGBIgHCA0IB4YAAwUBAAWBAImCjoYAAY4IBQAShBUJAJkBBgWHNQJBBAkHCAcIBA0HCYaABAKMhgCFhgAGBYCNi4cGBY8FhwYOhoAFgoWGgAcAjgYFhxcAByMAQIUIBgWHAocGgAYAjwWHBhcAhoY/AYAFCAWHBgKGBoAFgJIHBgWXAAWwAsATCAcGBYWFhweNB4KHhAAHAJGJB4cJBIkHiIiOBQIADIcAiwcABwSAi4uHhwSEBICOhoUEkwQHhwaGhpgKggAIgAiACoAFAoyKgIUEAYqKgJqLh4QKgAcHiIcnw6jATgkCABEFAQAEAomFAAyIAIUIiYgIAJqECYCKhwkJgYiIBwcHDQcNhJQEjgmIgBSMCYcODQ4HCI0IjgeCAAAEAoyIgIWIgAiGAIYLhwiGBYYAhjeARjgARjKAQIY3AEY0gEYyAEUKhwiGAAoKiIojgO+Bxw4NDgMFggAEAQAGgoQHgJEEhYeIhKfA5MBYBIIACAAIAASHiYAHhYAKhQKJgAGEiYAMhwCFBgSHBwCBC4SGBwWHAIcXhzQARxqAhxeHMIBHOABAhzSARxeHO4BAhzKARzSARzwAQIc0gEc3AEcXgIc2AEc3gEczgFGHNIBRhzcARoYEhw6FgAYMhgCFhgAGBwCIi4SGBxKHFQeAjIGFiYgGtMSAhweGkwQEhgcHBwQKgJyECAqKBYQACIWngfPBTgYCAA4EgQAMhoCcBYYGhoSAFYcFho0HDIqAhQYBioqAgoANCgGGCooECACHDYGICQ0NgYsLDgeBAAyFgIWFgAWEAI+DhQWEBAcAkAWGgIa6JsDGuCWAxqgjwMIGvTkAxAcGhoCQhYcAhzglgMckMkDHNicAwIc5PcCHJ77AxyMxwICHI7kAhz65QIczNUCAhyY/Acc7q8EHJrHBAIc3tACHKj6AhzQ1AMGEBocVBwCMgIeGusEAhAcGkwYFBYQEBA4LAgAYB4IAhIAEgAeOBwEAEQWBAIaCh4cADIgAhQQHiAgAgQuHhAgFiACIF4g0AEgagIgXiDCASDgAQIg0gEgXiDoAQIgygEg8AEg6AECIMQBIN4BIN4BAiDWASBeIOYBRiDoAUYg5gEaEB4gACQQMhACFhAAECACJg4eECAgFAIoBiAUJDgUAipKJgYgFCZUJgIyBhYcEhS9FgIgJhRMGB4QICAgECoCGhgGKjw0GAYQIAIcNgYgJDQ2Biws2gHgAgCkARbgAeoC1AOkAcwDngKYAmRg4gGWATD8AbwDlAGcAiIW3AGRCx4QAB4aAEivCQRCgxUcEDQQMhYCFhYAFiACJg4sFiAgIgIoWjQ8ACAiNDQCKkoiChgCJBACJBQmGGQiGBQUAg4YGgAyMgIUJBgyOgIOLjIkFAYiFDIGIDQiVCICMgQaNjQ4AiAiNEwcLBYgKiowEAAuKiAQEBACdB4qEDQeWDIIAB4EACIEAgAaCjIoAiwoACgmAi5ONCgmJiZkFDA0KCY4Jh4AMjQCFCgmNDQCCjImAioqMiYYAgouNio0ADA2Big0NjI2AhY2ADYoAjAuKjYoMiQCKigyJhQCCi4mKDRAMCo2NCY4MCIAIjDpDOkLHhoAKhIKGgAGGBoAMiQCFCgYJBgCBC4QKBgWGAIYXhjQARhqAhheGMIBGOABAhjSARheGMYBAhjeARjaARjaAQIY3gEY3AEYXkYY1gFGGOwBGigQGAAsKGIoGAJoEBoAMiYCFCAQJBACDi4kIBAGKBgkABQoMigCFigAKCQCJg4YKCQkEAIoBiQQLDgQAioGJBAUVBACMgIaIN8PAiQQIEwuGCgkJCQyIAIsIAAgLAIuLhYgLBYsAiz22QMsqv0CLOLkAkYsyrQERiyC/AcQNAI0IiY0GjQsIkwcFiA0Kio=", false)(1573, [], {
|
||||||
|
get require() {
|
||||||
|
return "undefined" == typeof require ? void 0 : require;
|
||||||
|
},
|
||||||
|
set require(_require) {
|
||||||
|
require = _require;
|
||||||
|
},
|
||||||
|
get App() {
|
||||||
|
return "undefined" == typeof App ? void 0 : App;
|
||||||
|
},
|
||||||
|
set App(_App) {
|
||||||
|
App = _App;
|
||||||
|
},
|
||||||
|
get wx() {
|
||||||
|
return "undefined" == typeof wx ? void 0 : wx;
|
||||||
|
},
|
||||||
|
set wx(_wx) {
|
||||||
|
wx = _wx;
|
||||||
|
},
|
||||||
|
get console() {
|
||||||
|
return "undefined" == typeof console ? void 0 : console;
|
||||||
|
},
|
||||||
|
set console(_console) {
|
||||||
|
console = _console;
|
||||||
|
},
|
||||||
|
get JSON() {
|
||||||
|
return "undefined" == typeof JSON ? void 0 : JSON;
|
||||||
|
},
|
||||||
|
set JSON(_JSON) {
|
||||||
|
JSON = _JSON;
|
||||||
|
}
|
||||||
|
}, [ "require", "App", "API_URL", "version", "key", "openid", "unionId", "appId", "appTitle", "share_title", "globalData", "wx", "getStorageSync", "wxLogin", "updateApp", void 0, "onLaunch", "login", "code", "request", "url", "data", "console", "log", "setStorageSync", "success", "errMsg", "getUpdateManager", "onCheckForUpdate", "hasUpdate", "onUpdateReady", "showModal", "title", "content", "confirm", "applyUpdate", "onUpdateFailed", "decrypt", "JSON", "parse", "tmpSecretId", "TmpSecretId", "tmpSecretKey", "TmpSecretKey", "sessionToken", "XCosSecurityToken", "startTime", "StartTime", "expiredTime", "ExpiredTime", "getAuthorization", "getCos", "miniapp", "appKv", "getAppKvList", "filter", "appKey", "length", "appValue", "getKv" ], function h(c, e, d) {
|
||||||
|
if (!a(c, Error) || !d || 0 == d.length) return c;
|
||||||
|
var f = " [DEBUG app.js:";
|
||||||
|
var g = f + d[0] + "]";
|
||||||
|
var e = c.stack.split("\n");
|
||||||
|
if (c.message.indexOf(g) < 0 && c.message.indexOf(f) >= 0) {
|
||||||
|
for (var b = 0; b < d.length; b++) e.splice(b + 1, 0, " throw again (guess)" + f + d[b] + "]");
|
||||||
|
} else {
|
||||||
|
if (c.message.indexOf(g) < 0) {
|
||||||
|
c.message += g;
|
||||||
|
e[0] += g;
|
||||||
|
}
|
||||||
|
for (var b = 0; b < d.length; b++) if (e[b + 1].indexOf(f) < 0) e[b + 1] += f + d[b] + "]";
|
||||||
|
}
|
||||||
|
c.stack = e.join("\n");
|
||||||
|
return c;
|
||||||
|
})();
|
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"pages": [
|
||||||
|
"pages/index/index",
|
||||||
|
"pages/message/message",
|
||||||
|
"pages/message/response/response",
|
||||||
|
"pages/poetry/poetry",
|
||||||
|
"pages/poetry-share/poetry-share",
|
||||||
|
"pages/poetry-item/poetry-item",
|
||||||
|
"pages/poetry-album/poetry-album",
|
||||||
|
"pages/link/index",
|
||||||
|
"pages/kewen-exercise/kewen-exercise",
|
||||||
|
"pages/search/search",
|
||||||
|
"pages/record/record",
|
||||||
|
"pages/guwen/guwen",
|
||||||
|
"pages/record-history/record-history"
|
||||||
|
],
|
||||||
|
"window": {
|
||||||
|
"navigationBarBackgroundColor": "#F2F0E6",
|
||||||
|
"navigationBarTitleText": "小学古诗集",
|
||||||
|
"navigationBarTextStyle": "black",
|
||||||
|
"backgroundTextStyle": "light",
|
||||||
|
"backgroundColor": "#f9f9f9"
|
||||||
|
},
|
||||||
|
"tabBar": {
|
||||||
|
"color": "#7A7E83",
|
||||||
|
"selectedColor": "#2794f5",
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"pagePath": "pages/index/index",
|
||||||
|
"text": "首页",
|
||||||
|
"iconPath": "img/home.png",
|
||||||
|
"selectedIconPath": "img/home-s.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/link/index",
|
||||||
|
"text": "配套",
|
||||||
|
"iconPath": "img/recomend.png",
|
||||||
|
"selectedIconPath": "img/recomend-s.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"debug": true
|
||||||
|
}
|
|
@ -0,0 +1,846 @@
|
||||||
|
[is="componet/privacyPopup/privacyPopup"] {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
[is="miniprogram_npm/@vant/weapp/goods-action-button/index"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
[is="miniprogram_npm/@vant/weapp/icon/index"] {
|
||||||
|
align-items: center;
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
[is="miniprogram_npm/@vant/weapp/loading/index"] {
|
||||||
|
font-size: 0;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
[is="miniprogram_npm/@vant/weapp/tab/index"] {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
[is="miniprogram_npm/@vant/weapp/tabbar-item/index"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family:iconfont;src:url("//at.alicdn.com/t/font_216889_beeao5tl8rhvkj4i.eot");src:url("//at.alicdn.com/t/font_216889_beeao5tl8rhvkj4i.eot?#iefix") format("embedded-opentype"),url("//at.alicdn.com/t/font_216889_beeao5tl8rhvkj4i.woff") format("woff"),url("//at.alicdn.com/t/font_216889_beeao5tl8rhvkj4i.ttf") format("truetype"),url("//at.alicdn.com/t/font_216889_beeao5tl8rhvkj4i.svg#iconfont") format("svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
.iconfont {
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
font-family: iconfont!important;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-all:before {
|
||||||
|
content: "\e696";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-back:before {
|
||||||
|
content: "\e697";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-cart:before {
|
||||||
|
content: "\e698";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-category:before {
|
||||||
|
content: "\e699";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-close:before {
|
||||||
|
content: "\e69a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-comments:before {
|
||||||
|
content: "\e69b";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-cry:before {
|
||||||
|
content: "\e69c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-delete:before {
|
||||||
|
content: "\e69d";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-edit:before {
|
||||||
|
content: "\e69e";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-email:before {
|
||||||
|
content: "\e69f";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-favorite:before {
|
||||||
|
content: "\e6a0";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-folder:before {
|
||||||
|
content: "\e6a1";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-form:before {
|
||||||
|
content: "\e6a2";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-help:before {
|
||||||
|
content: "\e6a3";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-information:before {
|
||||||
|
content: "\e6a4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-less:before {
|
||||||
|
content: "\e6a5";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-moreunfold:before {
|
||||||
|
content: "\e6a6";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-more:before {
|
||||||
|
content: "\e6a7";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-pic:before {
|
||||||
|
content: "\e6a8";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-qrcode:before {
|
||||||
|
content: "\e6a9";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-refresh:before {
|
||||||
|
content: "\e6aa";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-rfq:before {
|
||||||
|
content: "\e6ab";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-search:before {
|
||||||
|
content: "\e6ac";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-selected:before {
|
||||||
|
content: "\e6ad";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-set:before {
|
||||||
|
content: "\e6ae";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-smile:before {
|
||||||
|
content: "\e6af";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-success:before {
|
||||||
|
content: "\e6b1";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-survey:before {
|
||||||
|
content: "\e6b2";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-training:before {
|
||||||
|
content: "\e6b3";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-viewgallery:before {
|
||||||
|
content: "\e6b4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-viewlist:before {
|
||||||
|
content: "\e6b5";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-warning:before {
|
||||||
|
content: "\e6b6";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-wrong:before {
|
||||||
|
content: "\e6b7";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-account:before {
|
||||||
|
content: "\e6b8";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-add:before {
|
||||||
|
content: "\e6b9";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-atm:before {
|
||||||
|
content: "\e6ba";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-clock:before {
|
||||||
|
content: "\e6bb";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-remind:before {
|
||||||
|
content: "\e6bc";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-calendar:before {
|
||||||
|
content: "\e6bf";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-attachment:before {
|
||||||
|
content: "\e6c0";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-3column:before {
|
||||||
|
content: "\e6c3";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-4column:before {
|
||||||
|
content: "\e6c4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-discount:before {
|
||||||
|
content: "\e6c5";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-service:before {
|
||||||
|
content: "\e6c7";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-print:before {
|
||||||
|
content: "\e6c9";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-box:before {
|
||||||
|
content: "\e6cb";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-process:before {
|
||||||
|
content: "\e6ce";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-bags:before {
|
||||||
|
content: "\e6d1";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-beauty:before {
|
||||||
|
content: "\e6d2";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-electrical:before {
|
||||||
|
content: "\e6d4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-home:before {
|
||||||
|
content: "\e6d7";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-electronics:before {
|
||||||
|
content: "\e6da";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-gifts:before {
|
||||||
|
content: "\e6db";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-apparel:before {
|
||||||
|
content: "\e6dc";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-lights:before {
|
||||||
|
content: "\e6de";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-sports:before {
|
||||||
|
content: "\e6e0";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-toys:before {
|
||||||
|
content: "\e6e1";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-auto:before {
|
||||||
|
content: "\e6e3";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-jewelry:before {
|
||||||
|
content: "\e6e4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-trade-assurance:before {
|
||||||
|
content: "\e6e5";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-browse:before {
|
||||||
|
content: "\e6e6";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-rfqqm:before {
|
||||||
|
content: "\e6e7";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-rfqquantity:before {
|
||||||
|
content: "\e6e8";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-atmaway:before {
|
||||||
|
content: "\e6e9";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-rfq1:before {
|
||||||
|
content: "\e6eb";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-scanning:before {
|
||||||
|
content: "\e6ec";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-compare:before {
|
||||||
|
content: "\e6ee";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-filter:before {
|
||||||
|
content: "\e6f1";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-pin:before {
|
||||||
|
content: "\e6f2";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-history:before {
|
||||||
|
content: "\e6f3";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-productfeatures:before {
|
||||||
|
content: "\e6f4";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-supplierfeatures:before {
|
||||||
|
content: "\e6f5";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-similarproduct:before {
|
||||||
|
content: "\e6f6";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-link:before {
|
||||||
|
content: "\e6f7";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-cut:before {
|
||||||
|
content: "\e6f8";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-navlist:before {
|
||||||
|
content: "\e6fa";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-imagetext:before {
|
||||||
|
content: "\e6fb";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-text:before {
|
||||||
|
content: "\e6fc";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-move:before {
|
||||||
|
content: "\e6fd";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-subtract:before {
|
||||||
|
content: "\e6fe";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-dollar:before {
|
||||||
|
content: "\e702";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-raw:before {
|
||||||
|
content: "\e704";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-office:before {
|
||||||
|
content: "\e705";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-agriculture:before {
|
||||||
|
content: "\e707";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-machinery:before {
|
||||||
|
content: "\e709";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-assessedbadge:before {
|
||||||
|
content: "\e70a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-gerenzhongxin:before {
|
||||||
|
content: "\e70b";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-jifen:before {
|
||||||
|
content: "\e70c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-renwuguanli:before {
|
||||||
|
content: "\e70d";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-operation:before {
|
||||||
|
content: "\e70e";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-remind1:before {
|
||||||
|
content: "\e713";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-icondownload:before {
|
||||||
|
content: "\e714";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-map:before {
|
||||||
|
content: "\e715";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-bad:before {
|
||||||
|
content: "\e716";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-good:before {
|
||||||
|
content: "\e717";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-skip:before {
|
||||||
|
content: "\e718";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-iconfontplay2:before {
|
||||||
|
content: "\e719";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-iconfontstop:before {
|
||||||
|
content: "\e71a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-compass:before {
|
||||||
|
content: "\e71b";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-security:before {
|
||||||
|
content: "\e71c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-share:before {
|
||||||
|
content: "\e71d";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-store:before {
|
||||||
|
content: "\e722";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-manageorder:before {
|
||||||
|
content: "\e723";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-rejectedorder:before {
|
||||||
|
content: "\e724";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-phone:before {
|
||||||
|
content: "\e725";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-bussinessman:before {
|
||||||
|
content: "\e726";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-shoes:before {
|
||||||
|
content: "\e728";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-mobilephone:before {
|
||||||
|
content: "\e72a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-emailfilling:before {
|
||||||
|
content: "\e72d";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-favoritesfilling:before {
|
||||||
|
content: "\e730";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-accountfilling:before {
|
||||||
|
content: "\e732";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-creditlevel:before {
|
||||||
|
content: "\e735";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-creditlevelfilling:before {
|
||||||
|
content: "\e736";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-exl:before {
|
||||||
|
content: "\e73f";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-pdf:before {
|
||||||
|
content: "\e740";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-zip:before {
|
||||||
|
content: "\e741";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-sorting:before {
|
||||||
|
content: "\e743";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-copy:before {
|
||||||
|
content: "\e744";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-save:before {
|
||||||
|
content: "\e747";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-inquirytemplate:before {
|
||||||
|
content: "\e749";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-templatedefault:before {
|
||||||
|
content: "\e74a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-libra:before {
|
||||||
|
content: "\e74c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-survey1:before {
|
||||||
|
content: "\e74e";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-ship:before {
|
||||||
|
content: "\e74f";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-bussinesscard:before {
|
||||||
|
content: "\e753";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-hot:before {
|
||||||
|
content: "\e756";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-data:before {
|
||||||
|
content: "\e757";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-trade:before {
|
||||||
|
content: "\e758";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-onepage48:before {
|
||||||
|
content: "\e75a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-signboard:before {
|
||||||
|
content: "\e75c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-shuffling-banner:before {
|
||||||
|
content: "\e75e";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-component:before {
|
||||||
|
content: "\e75f";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-component-filling:before {
|
||||||
|
content: "\e760";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-color:before {
|
||||||
|
content: "\e761";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-color-filling:before {
|
||||||
|
content: "\e7cd";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-favorites:before {
|
||||||
|
content: "\e7ce";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-chaxun:before {
|
||||||
|
content: "\e606";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-bofang:before {
|
||||||
|
content: "\e607";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-danquxunhuan:before {
|
||||||
|
content: "\e608";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-changpian:before {
|
||||||
|
content: "\e609";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-erji:before {
|
||||||
|
content: "\e60a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-huatong:before {
|
||||||
|
content: "\e60b";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-jianshao:before {
|
||||||
|
content: "\e60c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-jingyin:before {
|
||||||
|
content: "\e60d";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-liebiaoxunhuan:before {
|
||||||
|
content: "\e60e";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-shanchu:before {
|
||||||
|
content: "\e60f";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-shengyin:before {
|
||||||
|
content: "\e610";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-kuaitui:before {
|
||||||
|
content: "\e611";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-suiji:before {
|
||||||
|
content: "\e612";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-xiai:before {
|
||||||
|
content: "\e613";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-zanting:before {
|
||||||
|
content: "\e614";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-zhongzhi:before {
|
||||||
|
content: "\e615";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-jinzhi:before {
|
||||||
|
content: "\e616";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-liebiao:before {
|
||||||
|
content: "\e617";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-shezhi:before {
|
||||||
|
content: "\e618";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-shuaxin:before {
|
||||||
|
content: "\e619";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-zengjia:before {
|
||||||
|
content: "\e61a";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-kuaijin:before {
|
||||||
|
content: "\e61b";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-yinle:before {
|
||||||
|
content: "\e61c";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-pinghengqi:before {
|
||||||
|
content: "\e61d";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-pic-filling:before {
|
||||||
|
content: "\e802";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-RFQ:before {
|
||||||
|
content: "\e803";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-RFQ-filling:before {
|
||||||
|
content: "\e804";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-originalimage:before {
|
||||||
|
content: "\e806";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-geshou:before {
|
||||||
|
content: "\e622";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-vip:before {
|
||||||
|
content: "\e629";
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-diangezan:before {
|
||||||
|
content: "\e62d";
|
||||||
|
}
|
||||||
|
|
||||||
|
page {
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background: #fff;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 15px;
|
||||||
|
min-height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container::before {
|
||||||
|
background-color: #e2e2e2;
|
||||||
|
content: " ";
|
||||||
|
height: 1rpx;
|
||||||
|
left: 0;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-title {
|
||||||
|
border-bottom: 1rpx solid #e5e5e5;
|
||||||
|
color: #666;
|
||||||
|
font-size: 25px;
|
||||||
|
line-height: 25px;
|
||||||
|
margin: 20px 15px;
|
||||||
|
padding: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slide-image {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-wrp {
|
||||||
|
align-content: space-between;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 5rpx;
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-item_img {
|
||||||
|
height: 320rpx;
|
||||||
|
width: 320rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-title-h {
|
||||||
|
border-bottom: 1rpx solid #e5e5e5;
|
||||||
|
color: #666;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 25px;
|
||||||
|
margin: 5px 15px;
|
||||||
|
padding: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-backgroud {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-moare {
|
||||||
|
padding: 10px 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xbtt-label {
|
||||||
|
font-size: 12px;
|
||||||
|
height: 22px;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xbtt-label--red {
|
||||||
|
border: 1rpx dashed #f44;
|
||||||
|
color: #f44;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xbtt-label--trial {
|
||||||
|
border: 1rpx solid #f44;
|
||||||
|
color: #f44;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xbtt-label--green {
|
||||||
|
border: 1rpx dashed green;
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xbtt-label--blue {
|
||||||
|
border: 1rpx dashed #1c87d2;
|
||||||
|
color: #1c87d2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xbtt-label--orangered {
|
||||||
|
border: 1rpx dashed #ff4500;
|
||||||
|
color: #ff4500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.common-title {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.common-title-main {
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.common-title-tip {
|
||||||
|
color: #666;
|
||||||
|
font-size: .9rem;
|
||||||
|
padding-left: 25rpx;
|
||||||
|
padding-top: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.split-blue {
|
||||||
|
border-right: 4px solid #ff9800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.split-blue,.split-red {
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.split-red {
|
||||||
|
border-right: 4px solid red;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
--button-small-font-size: 28rpx;
|
||||||
|
--button-small-height: 60rpx;
|
||||||
|
--padding-xs: 16rpx;
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"desc": "关于本文件的更多信息,请参考文档 代码加固开发者文档",
|
||||||
|
"switch": true,
|
||||||
|
"configs": [
|
||||||
|
{
|
||||||
|
"path": "pages/index/index.js",
|
||||||
|
"sub_switch": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "app.js",
|
||||||
|
"sub_switch": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
Component({
|
||||||
|
properties: {},
|
||||||
|
data: {
|
||||||
|
isShow: !1
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
gotoAudio: function(e) {
|
||||||
|
var o = wx.getStorageSync("currentAlbum"), t = o.currentProgramIndex;
|
||||||
|
o && null != t && wx.navigateTo({
|
||||||
|
url: "/pages/album/audio/index?id=" + o.id + "&index=" + t
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"van-button": "../../miniprogram_npm/@vant/weapp/button/index",
|
||||||
|
"van-notify": "../../miniprogram_npm/@vant/weapp/notify/index",
|
||||||
|
"van-submit-bar": "../../miniprogram_npm/@vant/weapp/submit-bar/index",
|
||||||
|
"van-transition": "../../miniprogram_npm/@vant/weapp/transition/index",
|
||||||
|
"van-icon": "../../miniprogram_npm/@vant/weapp/icon/index",
|
||||||
|
"van-switch": "../../miniprogram_npm/@vant/weapp/switch/index",
|
||||||
|
"van-toast": "../../miniprogram_npm/@vant/weapp/toast/index",
|
||||||
|
"van-search": "../../miniprogram_npm/@vant/weapp/search/index",
|
||||||
|
"van-dropdown-menu": "../../miniprogram_npm/@vant/weapp/dropdown-menu/index",
|
||||||
|
"van-dropdown-item": "../../miniprogram_npm/@vant/weapp/dropdown-item/index",
|
||||||
|
"van-circle": "../../miniprogram_npm/@vant/weapp/circle/index",
|
||||||
|
"van-dialog": "../../miniprogram_npm/@vant/weapp/dialog/index",
|
||||||
|
"van-image": "../../miniprogram_npm/@vant/weapp/image/index",
|
||||||
|
"van-tag": "../../miniprogram_npm/@vant/weapp/tag/index",
|
||||||
|
"van-steps": "../../miniprogram_npm/@vant/weapp/steps/index",
|
||||||
|
"van-card": "../../miniprogram_npm/@vant/weapp/card/index",
|
||||||
|
"van-divider": "../../miniprogram_npm/@vant/weapp/divider/index",
|
||||||
|
"van-cell": "../../miniprogram_npm/@vant/weapp/cell/index",
|
||||||
|
"van-cell-group": "../../miniprogram_npm/@vant/weapp/cell-group/index",
|
||||||
|
"van-tab": "../../miniprogram_npm/@vant/weapp/tab/index",
|
||||||
|
"van-tabs": "../../miniprogram_npm/@vant/weapp/tabs/index",
|
||||||
|
"van-popup": "../../miniprogram_npm/@vant/weapp/popup/index",
|
||||||
|
"van-notice-bar": "../../miniprogram_npm/@vant/weapp/notice-bar/index",
|
||||||
|
"van-field": "../../miniprogram_npm/@vant/weapp/field/index",
|
||||||
|
"van-radio": "../../miniprogram_npm/@vant/weapp/radio/index",
|
||||||
|
"van-radio-group": "../../miniprogram_npm/@vant/weapp/radio-group/index",
|
||||||
|
"van-share-sheet": "../../miniprogram_npm/@vant/weapp/share-sheet/index",
|
||||||
|
"privacy-popup": "/componet/privacyPopup/privacyPopup"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
<view bindtap="gotoAudio" class="audio-play-div">
|
||||||
|
<image class="audio-play-img" mode="aspectFit" src="/img/playing_2.gif"></image>
|
||||||
|
</view>
|
|
@ -0,0 +1,25 @@
|
||||||
|
.audio-play-div {
|
||||||
|
background-color: initial;
|
||||||
|
height: 40px;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-top: 11px;
|
||||||
|
opacity: .8;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
text-align: center;
|
||||||
|
top: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 50px;
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
.audio-play-img {
|
||||||
|
height: 30px;
|
||||||
|
padding-top: 3px;
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.audio-play-area {
|
||||||
|
height: 50px;
|
||||||
|
width: 80px;
|
||||||
|
}
|
|
@ -0,0 +1,80 @@
|
||||||
|
var o, n = new Set(), t = new Set();
|
||||||
|
|
||||||
|
wx.onNeedPrivacyAuthorization && wx.onNeedPrivacyAuthorization(function(n) {
|
||||||
|
console.log("触发 onNeedPrivacyAuthorization"), "function" == typeof o && o(n);
|
||||||
|
});
|
||||||
|
|
||||||
|
var e = function(o) {
|
||||||
|
t.forEach(function(n) {
|
||||||
|
o !== n && n();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
Component({
|
||||||
|
data: {
|
||||||
|
title: "用户隐私保护提示",
|
||||||
|
desc1: "在您使用本服务前应当阅读并同意",
|
||||||
|
urlTitle: "《用户隐私保护指引》。",
|
||||||
|
desc2: "如您同意该指引,请点击“同意”继续使用。",
|
||||||
|
innerShow: !1,
|
||||||
|
height: 0
|
||||||
|
},
|
||||||
|
lifetimes: {
|
||||||
|
attached: function() {
|
||||||
|
var i = this, c = function() {
|
||||||
|
i.disPopUp();
|
||||||
|
};
|
||||||
|
o = function(o) {
|
||||||
|
n.add(o), i.popUp(), e(c);
|
||||||
|
}, this.closePopUp = c, t.add(this.closePopUp);
|
||||||
|
},
|
||||||
|
detached: function() {
|
||||||
|
t.delete(this.closePopUp);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
pageLifetimes: {
|
||||||
|
show: function() {
|
||||||
|
var t = this;
|
||||||
|
this.closePopUp && (o = function(o) {
|
||||||
|
n.add(o), t.popUp(), e(t.closePopUp);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleAgree: function(o) {
|
||||||
|
this.disPopUp(), n.forEach(function(o) {
|
||||||
|
o({
|
||||||
|
event: "agree",
|
||||||
|
buttonId: "agree-btn"
|
||||||
|
});
|
||||||
|
}), n.clear();
|
||||||
|
},
|
||||||
|
handleDisagree: function(o) {
|
||||||
|
this.disPopUp(), n.forEach(function(o) {
|
||||||
|
o({
|
||||||
|
event: "disagree"
|
||||||
|
});
|
||||||
|
}), n.clear();
|
||||||
|
},
|
||||||
|
popUp: function() {
|
||||||
|
!1 === this.data.innerShow && this.setData({
|
||||||
|
innerShow: !0
|
||||||
|
});
|
||||||
|
},
|
||||||
|
disPopUp: function() {
|
||||||
|
!0 === this.data.innerShow && this.setData({
|
||||||
|
innerShow: !1
|
||||||
|
});
|
||||||
|
},
|
||||||
|
openPrivacyContract: function() {
|
||||||
|
wx.openPrivacyContract({
|
||||||
|
success: function(o) {
|
||||||
|
console.log("openPrivacyContract success");
|
||||||
|
},
|
||||||
|
fail: function(o) {
|
||||||
|
console.error("openPrivacyContract fail", o);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"van-button": "../../miniprogram_npm/@vant/weapp/button/index",
|
||||||
|
"van-notify": "../../miniprogram_npm/@vant/weapp/notify/index",
|
||||||
|
"van-submit-bar": "../../miniprogram_npm/@vant/weapp/submit-bar/index",
|
||||||
|
"van-transition": "../../miniprogram_npm/@vant/weapp/transition/index",
|
||||||
|
"van-icon": "../../miniprogram_npm/@vant/weapp/icon/index",
|
||||||
|
"van-switch": "../../miniprogram_npm/@vant/weapp/switch/index",
|
||||||
|
"van-toast": "../../miniprogram_npm/@vant/weapp/toast/index",
|
||||||
|
"van-search": "../../miniprogram_npm/@vant/weapp/search/index",
|
||||||
|
"van-dropdown-menu": "../../miniprogram_npm/@vant/weapp/dropdown-menu/index",
|
||||||
|
"van-dropdown-item": "../../miniprogram_npm/@vant/weapp/dropdown-item/index",
|
||||||
|
"van-circle": "../../miniprogram_npm/@vant/weapp/circle/index",
|
||||||
|
"van-dialog": "../../miniprogram_npm/@vant/weapp/dialog/index",
|
||||||
|
"van-image": "../../miniprogram_npm/@vant/weapp/image/index",
|
||||||
|
"van-tag": "../../miniprogram_npm/@vant/weapp/tag/index",
|
||||||
|
"van-steps": "../../miniprogram_npm/@vant/weapp/steps/index",
|
||||||
|
"van-card": "../../miniprogram_npm/@vant/weapp/card/index",
|
||||||
|
"van-divider": "../../miniprogram_npm/@vant/weapp/divider/index",
|
||||||
|
"van-cell": "../../miniprogram_npm/@vant/weapp/cell/index",
|
||||||
|
"van-cell-group": "../../miniprogram_npm/@vant/weapp/cell-group/index",
|
||||||
|
"van-tab": "../../miniprogram_npm/@vant/weapp/tab/index",
|
||||||
|
"van-tabs": "../../miniprogram_npm/@vant/weapp/tabs/index",
|
||||||
|
"van-popup": "../../miniprogram_npm/@vant/weapp/popup/index",
|
||||||
|
"van-notice-bar": "../../miniprogram_npm/@vant/weapp/notice-bar/index",
|
||||||
|
"van-field": "../../miniprogram_npm/@vant/weapp/field/index",
|
||||||
|
"van-radio": "../../miniprogram_npm/@vant/weapp/radio/index",
|
||||||
|
"van-radio-group": "../../miniprogram_npm/@vant/weapp/radio-group/index",
|
||||||
|
"van-share-sheet": "../../miniprogram_npm/@vant/weapp/share-sheet/index",
|
||||||
|
"privacy-popup": "/componet/privacyPopup/privacyPopup"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
<view class="weui-half-screen-dialog" style="border-color:#ddd; border-style:solid; border-width:2px; position: fixed; bottom:{{height}}px" wx:if="{{innerShow}}">
|
||||||
|
<view class="weui-half-screen-dialog__hd">
|
||||||
|
<text class="weui-half-screen-dialog__title">{{title}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="weui-half-screen-dialog__bd">
|
||||||
|
<text class="weui-half-screen-dialog__tips">{{desc1}}</text>
|
||||||
|
<text bindtap="openPrivacyContract" class="weui-half-screen-dialog__tips" style="color:blue">{{urlTitle}}</text>
|
||||||
|
<text class="weui-half-screen-dialog__tips">{{desc2}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="weui-half-screen-dialog__ft">
|
||||||
|
<view class="weui-half-screen-dialog__btn-area">
|
||||||
|
<button bindtap="handleDisagree" class="weui-btn" id="disagree-btn" type="default">拒绝</button>
|
||||||
|
<button bindagreeprivacyauthorization="handleAgree" class="weui-btn" id="agree-btn" openType="agreePrivacyAuthorization" type="primary">同意</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 126 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 858 B |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 865 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 720 B |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 449 B |
After Width: | Height: | Size: 440 B |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 741 B |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 407 B |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 3.5 KiB |
|
@ -0,0 +1,21 @@
|
||||||
|
var e = require("crypto");
|
||||||
|
|
||||||
|
function r(e, r) {
|
||||||
|
this.appId = e, this.sessionKey = r;
|
||||||
|
}
|
||||||
|
|
||||||
|
r.prototype.decryptData = function(r, t) {
|
||||||
|
var a = new Buffer(this.sessionKey, "base64");
|
||||||
|
r = new Buffer(r, "base64"), t = new Buffer(t, "base64");
|
||||||
|
try {
|
||||||
|
var s = e.createDecipheriv("aes-128-cbc", a, t);
|
||||||
|
s.setAutoPadding(!0);
|
||||||
|
var i = s.update(r, "binary", "utf8");
|
||||||
|
i += s.final("utf8"), i = JSON.parse(i);
|
||||||
|
} catch (e) {
|
||||||
|
e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
|
||||||
|
throw new Error("Illegal Buffer");
|
||||||
|
}
|
||||||
|
if (i.watermark.appid !== this.appId) throw new Error("Illegal Buffer");
|
||||||
|
return i;
|
||||||
|
}, module.exports = r;
|
|
@ -0,0 +1,9 @@
|
||||||
|
var e = require("crypto-js");
|
||||||
|
|
||||||
|
module.exports.decrypt = function(r, t) {
|
||||||
|
var c = e.enc.Hex.parse(t), d = e.AES.decrypt(e.format.Hex.parse(r), c, {
|
||||||
|
mode: e.mode.ECB,
|
||||||
|
padding: e.pad.Pkcs7
|
||||||
|
});
|
||||||
|
return e.enc.Utf8.stringify(d);
|
||||||
|
};
|
|
@ -0,0 +1,64 @@
|
||||||
|
'use strict';
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
var component_1 = require('../common/component');
|
||||||
|
var button_1 = require('../mixins/button');
|
||||||
|
var open_type_1 = require('../mixins/open-type');
|
||||||
|
component_1.VantComponent({
|
||||||
|
mixins: [button_1.button, open_type_1.openType],
|
||||||
|
props: {
|
||||||
|
show: Boolean,
|
||||||
|
title: String,
|
||||||
|
cancelText: String,
|
||||||
|
description: String,
|
||||||
|
round: {
|
||||||
|
type: Boolean,
|
||||||
|
value: true,
|
||||||
|
},
|
||||||
|
zIndex: {
|
||||||
|
type: Number,
|
||||||
|
value: 100,
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
type: Array,
|
||||||
|
value: [],
|
||||||
|
},
|
||||||
|
overlay: {
|
||||||
|
type: Boolean,
|
||||||
|
value: true,
|
||||||
|
},
|
||||||
|
closeOnClickOverlay: {
|
||||||
|
type: Boolean,
|
||||||
|
value: true,
|
||||||
|
},
|
||||||
|
closeOnClickAction: {
|
||||||
|
type: Boolean,
|
||||||
|
value: true,
|
||||||
|
},
|
||||||
|
safeAreaInsetBottom: {
|
||||||
|
type: Boolean,
|
||||||
|
value: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onSelect: function (event) {
|
||||||
|
var index = event.currentTarget.dataset.index;
|
||||||
|
var item = this.data.actions[index];
|
||||||
|
if (item && !item.disabled && !item.loading) {
|
||||||
|
this.$emit('select', item);
|
||||||
|
if (this.data.closeOnClickAction) {
|
||||||
|
this.onClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onCancel: function () {
|
||||||
|
this.$emit('cancel');
|
||||||
|
},
|
||||||
|
onClose: function () {
|
||||||
|
this.$emit('close');
|
||||||
|
},
|
||||||
|
onClickOverlay: function () {
|
||||||
|
this.$emit('click-overlay');
|
||||||
|
this.onClose();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"van-icon": "../icon/index",
|
||||||
|
"van-popup": "../popup/index",
|
||||||
|
"van-loading": "../loading/index"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,69 @@
|
||||||
|
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||||
|
|
||||||
|
<van-popup
|
||||||
|
show="{{ show }}"
|
||||||
|
position="bottom"
|
||||||
|
round="{{ round }}"
|
||||||
|
z-index="{{ zIndex }}"
|
||||||
|
overlay="{{ overlay }}"
|
||||||
|
custom-class="van-action-sheet"
|
||||||
|
safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
|
||||||
|
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
||||||
|
bind:close="onClickOverlay"
|
||||||
|
>
|
||||||
|
<view wx:if="{{ title }}" class="van-action-sheet__header">
|
||||||
|
{{ title }}
|
||||||
|
<van-icon
|
||||||
|
name="cross"
|
||||||
|
custom-class="van-action-sheet__close"
|
||||||
|
bind:click="onClose"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<view wx:if="{{ description }}" class="van-action-sheet__description van-hairline--bottom">
|
||||||
|
{{ description }}
|
||||||
|
</view>
|
||||||
|
<view wx:if="{{ actions && actions.length }}">
|
||||||
|
<!-- button外包一层view,防止actions动态变化,导致渲染时button被打散 -->
|
||||||
|
<button
|
||||||
|
wx:for="{{ actions }}"
|
||||||
|
wx:key="index"
|
||||||
|
open-type="{{ item.openType }}"
|
||||||
|
style="{{ item.color ? 'color: ' + item.color : '' }}"
|
||||||
|
class="{{ utils.bem('action-sheet__item', { disabled: item.disabled || item.loading }) }} {{ item.className || '' }}"
|
||||||
|
hover-class="van-action-sheet__item--hover"
|
||||||
|
data-index="{{ index }}"
|
||||||
|
bind:tap="onSelect"
|
||||||
|
bindgetuserinfo="bindGetUserInfo"
|
||||||
|
bindcontact="bindContact"
|
||||||
|
bindgetphonenumber="bindGetPhoneNumber"
|
||||||
|
binderror="bindError"
|
||||||
|
bindlaunchapp="bindLaunchApp"
|
||||||
|
bindopensetting="bindOpenSetting"
|
||||||
|
lang="{{ lang }}"
|
||||||
|
session-from="{{ sessionFrom }}"
|
||||||
|
send-message-title="{{ sendMessageTitle }}"
|
||||||
|
send-message-path="{{ sendMessagePath }}"
|
||||||
|
send-message-img="{{ sendMessageImg }}"
|
||||||
|
show-message-card="{{ showMessageCard }}"
|
||||||
|
app-parameter="{{ appParameter }}"
|
||||||
|
>
|
||||||
|
<block wx:if="{{ !item.loading }}">
|
||||||
|
{{ item.name }}
|
||||||
|
<view wx:if="{{ item.subname }}" class="van-action-sheet__subname" >{{ item.subname }}</view>
|
||||||
|
</block>
|
||||||
|
<van-loading wx:else custom-class="van-action-sheet__loading" size="22px" />
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
<slot />
|
||||||
|
<block wx:if="{{ cancelText }}">
|
||||||
|
<view class="van-action-sheet__gap" />
|
||||||
|
<view
|
||||||
|
class="van-action-sheet__cancel"
|
||||||
|
hover-class="van-action-sheet__cancel--hover"
|
||||||
|
hover-stay-time="70"
|
||||||
|
bind:tap="onCancel"
|
||||||
|
>
|
||||||
|
{{ cancelText }}
|
||||||
|
</view>
|
||||||
|
</block>
|
||||||
|
</van-popup>
|
|
@ -0,0 +1,2 @@
|
||||||
|
@import '../common/index.wxss';
|
||||||
|
.van-action-sheet{max-height:90%!important;max-height:var(--action-sheet-max-height,90%)!important;color:#323233;color:var(--action-sheet-item-text-color,#323233)}.van-action-sheet__cancel,.van-action-sheet__item{padding:14px 16px;text-align:center;font-size:16px;font-size:var(--action-sheet-item-font-size,16px);line-height:22px;line-height:var(--action-sheet-item-line-height,22px);background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__cancel--hover,.van-action-sheet__item--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-action-sheet__cancel:after,.van-action-sheet__item:after{border-width:0}.van-action-sheet__cancel{color:#646566;color:var(--action-sheet-cancel-text-color,#646566)}.van-action-sheet__gap{display:block;height:8px;height:var(--action-sheet-cancel-padding-top,8px);background-color:#f7f8fa;background-color:var(--action-sheet-cancel-padding-color,#f7f8fa)}.van-action-sheet__item--disabled{color:#c8c9cc;color:var(--action-sheet-item-disabled-text-color,#c8c9cc)}.van-action-sheet__item--disabled.van-action-sheet__item--hover{background-color:#fff;background-color:var(--action-sheet-item-background,#fff)}.van-action-sheet__subname{margin-top:8px;margin-top:var(--padding-xs,8px);font-size:12px;font-size:var(--action-sheet-subname-font-size,12px);color:#969799;color:var(--action-sheet-subname-color,#969799);line-height:20px;line-height:var(--action-sheet-subname-line-height,20px)}.van-action-sheet__header{text-align:center;font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--action-sheet-header-font-size,16px);line-height:48px;line-height:var(--action-sheet-header-height,48px)}.van-action-sheet__description{text-align:center;padding:20px 16px;padding:20px var(--padding-md,16px);color:#969799;color:var(--action-sheet-description-color,#969799);font-size:14px;font-size:var(--action-sheet-description-font-size,14px);line-height:20px;line-height:var(--action-sheet-description-line-height,20px)}.van-action-sheet__close{position:absolute!important;top:0;right:0;line-height:inherit!important;padding:0 16px;padding:var(--action-sheet-close-icon-padding,0 16px);font-size:22px!important;font-size:var(--action-sheet-close-icon-size,22px)!important;color:#c8c9cc;color:var(--action-sheet-close-icon-color,#c8c9cc)}.van-action-sheet__loading{display:-webkit-flex!important;display:flex!important}
|
|
@ -0,0 +1,263 @@
|
||||||
|
'use strict';
|
||||||
|
var __assign =
|
||||||
|
(this && this.__assign) ||
|
||||||
|
function () {
|
||||||
|
__assign =
|
||||||
|
Object.assign ||
|
||||||
|
function (t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s)
|
||||||
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
var component_1 = require('../common/component');
|
||||||
|
var shared_1 = require('../picker/shared');
|
||||||
|
var utils_1 = require('../common/utils');
|
||||||
|
var EMPTY_CODE = '000000';
|
||||||
|
component_1.VantComponent({
|
||||||
|
classes: ['active-class', 'toolbar-class', 'column-class'],
|
||||||
|
props: __assign(__assign({}, shared_1.pickerProps), {
|
||||||
|
value: {
|
||||||
|
type: String,
|
||||||
|
observer: function (value) {
|
||||||
|
this.code = value;
|
||||||
|
this.setValues();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
areaList: {
|
||||||
|
type: Object,
|
||||||
|
value: {},
|
||||||
|
observer: 'setValues',
|
||||||
|
},
|
||||||
|
columnsNum: {
|
||||||
|
type: null,
|
||||||
|
value: 3,
|
||||||
|
},
|
||||||
|
columnsPlaceholder: {
|
||||||
|
type: Array,
|
||||||
|
observer: function (val) {
|
||||||
|
this.setData({
|
||||||
|
typeToColumnsPlaceholder: {
|
||||||
|
province: val[0] || '',
|
||||||
|
city: val[1] || '',
|
||||||
|
county: val[2] || '',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
data: {
|
||||||
|
columns: [{ values: [] }, { values: [] }, { values: [] }],
|
||||||
|
typeToColumnsPlaceholder: {},
|
||||||
|
},
|
||||||
|
mounted: function () {
|
||||||
|
var _this = this;
|
||||||
|
utils_1.requestAnimationFrame(function () {
|
||||||
|
_this.setValues();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getPicker: function () {
|
||||||
|
if (this.picker == null) {
|
||||||
|
this.picker = this.selectComponent('.van-area__picker');
|
||||||
|
}
|
||||||
|
return this.picker;
|
||||||
|
},
|
||||||
|
onCancel: function (event) {
|
||||||
|
this.emit('cancel', event.detail);
|
||||||
|
},
|
||||||
|
onConfirm: function (event) {
|
||||||
|
var index = event.detail.index;
|
||||||
|
var value = event.detail.value;
|
||||||
|
value = this.parseValues(value);
|
||||||
|
this.emit('confirm', { value: value, index: index });
|
||||||
|
},
|
||||||
|
emit: function (type, detail) {
|
||||||
|
detail.values = detail.value;
|
||||||
|
delete detail.value;
|
||||||
|
this.$emit(type, detail);
|
||||||
|
},
|
||||||
|
parseValues: function (values) {
|
||||||
|
var columnsPlaceholder = this.data.columnsPlaceholder;
|
||||||
|
return values.map(function (value, index) {
|
||||||
|
if (
|
||||||
|
value &&
|
||||||
|
(!value.code || value.name === columnsPlaceholder[index])
|
||||||
|
) {
|
||||||
|
return __assign(__assign({}, value), { code: '', name: '' });
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onChange: function (event) {
|
||||||
|
var _this = this;
|
||||||
|
var _a = event.detail,
|
||||||
|
index = _a.index,
|
||||||
|
picker = _a.picker,
|
||||||
|
value = _a.value;
|
||||||
|
this.code = value[index].code;
|
||||||
|
this.setValues().then(function () {
|
||||||
|
_this.$emit('change', {
|
||||||
|
picker: picker,
|
||||||
|
values: _this.parseValues(picker.getValues()),
|
||||||
|
index: index,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getConfig: function (type) {
|
||||||
|
var areaList = this.data.areaList;
|
||||||
|
return (areaList && areaList[type + '_list']) || {};
|
||||||
|
},
|
||||||
|
getList: function (type, code) {
|
||||||
|
if (type !== 'province' && !code) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
|
||||||
|
var list = this.getConfig(type);
|
||||||
|
var result = Object.keys(list).map(function (code) {
|
||||||
|
return {
|
||||||
|
code: code,
|
||||||
|
name: list[code],
|
||||||
|
};
|
||||||
|
});
|
||||||
|
if (code != null) {
|
||||||
|
// oversea code
|
||||||
|
if (code[0] === '9' && type === 'city') {
|
||||||
|
code = '9';
|
||||||
|
}
|
||||||
|
result = result.filter(function (item) {
|
||||||
|
return item.code.indexOf(code) === 0;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (typeToColumnsPlaceholder[type] && result.length) {
|
||||||
|
// set columns placeholder
|
||||||
|
var codeFill =
|
||||||
|
type === 'province'
|
||||||
|
? ''
|
||||||
|
: type === 'city'
|
||||||
|
? EMPTY_CODE.slice(2, 4)
|
||||||
|
: EMPTY_CODE.slice(4, 6);
|
||||||
|
result.unshift({
|
||||||
|
code: '' + code + codeFill,
|
||||||
|
name: typeToColumnsPlaceholder[type],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
getIndex: function (type, code) {
|
||||||
|
var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
|
||||||
|
var list = this.getList(type, code.slice(0, compareNum - 2));
|
||||||
|
// oversea code
|
||||||
|
if (code[0] === '9' && type === 'province') {
|
||||||
|
compareNum = 1;
|
||||||
|
}
|
||||||
|
code = code.slice(0, compareNum);
|
||||||
|
for (var i = 0; i < list.length; i++) {
|
||||||
|
if (list[i].code.slice(0, compareNum) === code) {
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
},
|
||||||
|
setValues: function () {
|
||||||
|
var picker = this.getPicker();
|
||||||
|
if (!picker) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var code = this.code || this.getDefaultCode();
|
||||||
|
var provinceList = this.getList('province');
|
||||||
|
var cityList = this.getList('city', code.slice(0, 2));
|
||||||
|
var stack = [];
|
||||||
|
var indexes = [];
|
||||||
|
var columnsNum = this.data.columnsNum;
|
||||||
|
if (columnsNum >= 1) {
|
||||||
|
stack.push(picker.setColumnValues(0, provinceList, false));
|
||||||
|
indexes.push(this.getIndex('province', code));
|
||||||
|
}
|
||||||
|
if (columnsNum >= 2) {
|
||||||
|
stack.push(picker.setColumnValues(1, cityList, false));
|
||||||
|
indexes.push(this.getIndex('city', code));
|
||||||
|
if (cityList.length && code.slice(2, 4) === '00') {
|
||||||
|
code = cityList[0].code;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (columnsNum === 3) {
|
||||||
|
stack.push(
|
||||||
|
picker.setColumnValues(
|
||||||
|
2,
|
||||||
|
this.getList('county', code.slice(0, 4)),
|
||||||
|
false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
indexes.push(this.getIndex('county', code));
|
||||||
|
}
|
||||||
|
return Promise.all(stack)
|
||||||
|
.catch(function () {})
|
||||||
|
.then(function () {
|
||||||
|
return picker.setIndexes(indexes);
|
||||||
|
})
|
||||||
|
.catch(function () {});
|
||||||
|
},
|
||||||
|
getDefaultCode: function () {
|
||||||
|
var columnsPlaceholder = this.data.columnsPlaceholder;
|
||||||
|
if (columnsPlaceholder.length) {
|
||||||
|
return EMPTY_CODE;
|
||||||
|
}
|
||||||
|
var countyCodes = Object.keys(this.getConfig('county'));
|
||||||
|
if (countyCodes[0]) {
|
||||||
|
return countyCodes[0];
|
||||||
|
}
|
||||||
|
var cityCodes = Object.keys(this.getConfig('city'));
|
||||||
|
if (cityCodes[0]) {
|
||||||
|
return cityCodes[0];
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
},
|
||||||
|
getValues: function () {
|
||||||
|
var picker = this.getPicker();
|
||||||
|
if (!picker) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return this.parseValues(
|
||||||
|
picker.getValues().filter(function (value) {
|
||||||
|
return !!value;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
},
|
||||||
|
getDetail: function () {
|
||||||
|
var values = this.getValues();
|
||||||
|
var area = {
|
||||||
|
code: '',
|
||||||
|
country: '',
|
||||||
|
province: '',
|
||||||
|
city: '',
|
||||||
|
county: '',
|
||||||
|
};
|
||||||
|
if (!values.length) {
|
||||||
|
return area;
|
||||||
|
}
|
||||||
|
var names = values.map(function (item) {
|
||||||
|
return item.name;
|
||||||
|
});
|
||||||
|
area.code = values[values.length - 1].code;
|
||||||
|
if (area.code[0] === '9') {
|
||||||
|
area.country = names[1] || '';
|
||||||
|
area.province = names[2] || '';
|
||||||
|
} else {
|
||||||
|
area.province = names[0] || '';
|
||||||
|
area.city = names[1] || '';
|
||||||
|
area.county = names[2] || '';
|
||||||
|
}
|
||||||
|
return area;
|
||||||
|
},
|
||||||
|
reset: function (code) {
|
||||||
|
this.code = code || '';
|
||||||
|
return this.setValues();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"van-picker": "../picker/index"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
<wxs src="./index.wxs" module="computed" />
|
||||||
|
|
||||||
|
<van-picker
|
||||||
|
class="van-area__picker"
|
||||||
|
active-class="active-class"
|
||||||
|
toolbar-class="toolbar-class"
|
||||||
|
column-class="column-class"
|
||||||
|
show-toolbar
|
||||||
|
value-key="name"
|
||||||
|
title="{{ title }}"
|
||||||
|
loading="{{ loading }}"
|
||||||
|
columns="{{ computed.displayColumns(columns, columnsNum) }}"
|
||||||
|
item-height="{{ itemHeight }}"
|
||||||
|
visible-item-count="{{ visibleItemCount }}"
|
||||||
|
cancel-button-text="{{ cancelButtonText }}"
|
||||||
|
confirm-button-text="{{ confirmButtonText }}"
|
||||||
|
bind:change="onChange"
|
||||||
|
bind:confirm="onConfirm"
|
||||||
|
bind:cancel="onCancel"
|
||||||
|
/>
|