首次提交
1
@babel/runtime/helpers/Arrayincludes.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(r,e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(0==n)return!1;for(var i,o,a=0|e,u=Math.max(0<=a?a:n-Math.abs(a),0);u<n;){if((i=t[u])===(o=r)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;u++}return!1}});
|
||||||
1
@babel/runtime/helpers/Objectentries.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Object.entries||(Object.entries=function(e){for(var r=Object.keys(e),t=r.length,n=new Array(t);t--;)n[t]=[r[t],e[r[t]]];return n});
|
||||||
1
@babel/runtime/helpers/Objectvalues.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Object.values||(Object.values=function(e){if(e!==Object(e))throw new TypeError("Object.values called on a non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(e[t]);return r});
|
||||||
1
@babel/runtime/helpers/arrayLikeToArray.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=new Array(a);e<a;e++)n[e]=r[e];return n}module.exports=_arrayLikeToArray;
|
||||||
1
@babel/runtime/helpers/arrayWithHoles.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _arrayWithHoles(r){if(Array.isArray(r))return r}module.exports=_arrayWithHoles;
|
||||||
1
@babel/runtime/helpers/arrayWithoutHoles.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var arrayLikeToArray=require("./arrayLikeToArray");function _arrayWithoutHoles(r){if(Array.isArray(r))return arrayLikeToArray(r)}module.exports=_arrayWithoutHoles;
|
||||||
1
@babel/runtime/helpers/assertThisInitialized.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}module.exports=_assertThisInitialized;
|
||||||
1
@babel/runtime/helpers/classCallCheck.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _classCallCheck(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}module.exports=_classCallCheck;
|
||||||
1
@babel/runtime/helpers/createClass.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var toPropertyKey=require("./toPropertyKey");function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}module.exports=_createClass;
|
||||||
1
@babel/runtime/helpers/createForOfIteratorHelper.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var unsupportedIterableToArray=require("./unsupportedIterableToArray");function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,o=function(){};return{s:o,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,i=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return u=r.done,r},e:function(r){i=!0,a=r},f:function(){try{u||null==t.return||t.return()}finally{if(i)throw a}}}}module.exports=_createForOfIteratorHelper;
|
||||||
1
@babel/runtime/helpers/defineProperty.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var toPropertyKey=require("./toPropertyKey");function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}module.exports=_defineProperty;
|
||||||
1
@babel/runtime/helpers/getPrototypeOf.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _getPrototypeOf(t){return module.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}module.exports=_getPrototypeOf;
|
||||||
1
@babel/runtime/helpers/inherits.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var setPrototypeOf=require("./setPrototypeOf");function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&setPrototypeOf(e,t)}module.exports=_inherits;
|
||||||
1
@babel/runtime/helpers/isNativeReflectConstruct.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}module.exports=_isNativeReflectConstruct;
|
||||||
1
@babel/runtime/helpers/iterableToArray.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}module.exports=_iterableToArray;
|
||||||
1
@babel/runtime/helpers/iterableToArrayLimit.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _iterableToArrayLimit(r,e){var l=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=l){var t,n,i,a,u=[],o=!0,f=!1;try{if(i=(l=l.call(r)).next,0===e){if(Object(l)!==l)return;o=!1}else for(;!(o=(t=i.call(l)).done)&&(u.push(t.value),u.length!==e);o=!0);}catch(r){f=!0,n=r}finally{try{if(!o&&null!=l.return&&(a=l.return(),Object(a)!==a))return}finally{if(f)throw n}}return u}}module.exports=_iterableToArrayLimit;
|
||||||
1
@babel/runtime/helpers/nonIterableRest.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}module.exports=_nonIterableRest;
|
||||||
1
@babel/runtime/helpers/nonIterableSpread.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}module.exports=_nonIterableSpread;
|
||||||
1
@babel/runtime/helpers/possibleConstructorReturn.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var _typeof=require("./typeof"),assertThisInitialized=require("./assertThisInitialized");function _possibleConstructorReturn(e,r){if(r&&("object"===_typeof(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(e)}module.exports=_possibleConstructorReturn;
|
||||||
1
@babel/runtime/helpers/regeneratorRuntime.js
Normal file
1
@babel/runtime/helpers/setPrototypeOf.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _setPrototypeOf(t,e){return module.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}module.exports=_setPrototypeOf;
|
||||||
1
@babel/runtime/helpers/slicedToArray.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var arrayWithHoles=require("./arrayWithHoles"),iterableToArrayLimit=require("./iterableToArrayLimit"),unsupportedIterableToArray=require("./unsupportedIterableToArray"),nonIterableRest=require("./nonIterableRest");function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}module.exports=_slicedToArray;
|
||||||
1
@babel/runtime/helpers/toConsumableArray.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var arrayWithoutHoles=require("./arrayWithoutHoles"),iterableToArray=require("./iterableToArray"),unsupportedIterableToArray=require("./unsupportedIterableToArray"),nonIterableSpread=require("./nonIterableSpread");function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}module.exports=_toConsumableArray;
|
||||||
1
@babel/runtime/helpers/toPrimitive.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
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;
|
||||||
1
@babel/runtime/helpers/toPropertyKey.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
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;
|
||||||
1
@babel/runtime/helpers/typeof.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
function _typeof(o){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;
|
||||||
1
@babel/runtime/helpers/unsupportedIterableToArray.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var arrayLikeToArray=require("./arrayLikeToArray");function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,e):void 0}}module.exports=_unsupportedIterableToArray;
|
||||||
815
app.js
Normal file
@@ -0,0 +1,815 @@
|
|||||||
|
require('./hook'),require("@babel/runtime/helpers/Arrayincludes"), require("./common"), require("./vendors"), require("./taro"), require("./runtime"), (wx.webpackJsonp = wx.webpackJsonp || []).push([
|
||||||
|
[3524], {
|
||||||
|
834: function (e) {
|
||||||
|
e.exports = void(Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
|
||||||
|
value: function (e, t) {
|
||||||
|
if (null == this) throw new TypeError('"this" is null or not defined');
|
||||||
|
var n = Object(this),
|
||||||
|
a = n.length >>> 0;
|
||||||
|
if (0 === a) return !1;
|
||||||
|
for (var i = 0 | t, o = Math.max(i >= 0 ? i : a - Math.abs(i), 0); o < a;) {
|
||||||
|
if (n[o] === e) return !0;
|
||||||
|
o++
|
||||||
|
}
|
||||||
|
return !1
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
},
|
||||||
|
929: function (e, t, n) {
|
||||||
|
var a = n(3919).window,
|
||||||
|
i = n(3919).document;
|
||||||
|
! function () {
|
||||||
|
if (void 0 !== a && a.vConsole) {
|
||||||
|
delete a.vConsole;
|
||||||
|
var e = i.getElementById("vConsole") || i.getElementById("vconsole");
|
||||||
|
e && e.remove();
|
||||||
|
try {
|
||||||
|
Object.defineProperty(a, "vConsole", {
|
||||||
|
get: function () {},
|
||||||
|
set: function () {},
|
||||||
|
configurable: !0
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
try {
|
||||||
|
delete a.vConsole, Object.defineProperty(a, "vConsole", {
|
||||||
|
get: function () {},
|
||||||
|
set: function () {},
|
||||||
|
configurable: !0
|
||||||
|
})
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
},
|
||||||
|
2641: function (e, t, n) {
|
||||||
|
n.g.Object = Object, n.g.Array = Array, n.g.DataView = DataView, n.g.Date = Date, n.g.Error = Error, n.g.Float32Array = Float32Array, n.g.Float64Array = Float64Array, n.g.Function = Function, n.g.Int8Array = Int8Array, n.g.Int16Array = Int16Array, n.g.Int32Array = Int32Array, n.g.Map = Map, n.g.Math = Math, n.g.Promise = Promise, n.g.RegExp = RegExp, n.g.Set = Set, n.g.String = String, n.g.Symbol = Symbol, n.g.TypeError = TypeError, n.g.Uint8Array = Uint8Array, n.g.Uint8ClampedArray = Uint8ClampedArray, n.g.Uint16Array = Uint16Array, n.g.Uint32Array = Uint32Array, n.g.WeakMap = WeakMap, n.g.clearTimeout = clearTimeout, n.g.isFinite = isFinite, n.g.parseInt = parseInt, n.g.setTimeout = setTimeout
|
||||||
|
},
|
||||||
|
3985: function (e, t, n) {
|
||||||
|
n(1191);
|
||||||
|
var a = n(5763),
|
||||||
|
i = n(3050);
|
||||||
|
|
||||||
|
function o(e) {
|
||||||
|
return function (t, n) {
|
||||||
|
if (t.toLowerCase() in e) {
|
||||||
|
var i = e[t];
|
||||||
|
(0, a.Kg)(i) ? t = i: (t = i[0], n = i[1][n] || n)
|
||||||
|
}
|
||||||
|
return [t, n]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var r = new Set(["i", "abbr", "select", "acronym", "small", "bdi", "kbd", "strong", "big", "sub", "sup", "br", "mark", "meter", "template", "cite", "object", "time", "code", "output", "u", "data", "picture", "tt", "datalist", "var", "dfn", "del", "q", "em", "s", "embed", "samp", "b"]),
|
||||||
|
c = new Set(["body", "svg", "address", "fieldset", "li", "span", "article", "figcaption", "main", "aside", "figure", "nav", "blockquote", "footer", "ol", "details", "p", "dialog", "h1", "h2", "h3", "h4", "h5", "h6", "pre", "dd", "header", "section", "div", "hgroup", "table", "dl", "hr", "ul", "dt", "view-block"]),
|
||||||
|
s = new Map([
|
||||||
|
["slot", "slot"],
|
||||||
|
["form", "form"],
|
||||||
|
["iframe", "web-view"],
|
||||||
|
["img", "image"],
|
||||||
|
["audio", "audio"],
|
||||||
|
["video", "video"],
|
||||||
|
["canvas", "canvas"],
|
||||||
|
["a", {
|
||||||
|
mapName: function (e) {
|
||||||
|
return !e.href || /^javascript/.test(e.href) ? "view" : "navigator"
|
||||||
|
},
|
||||||
|
mapNameCondition: ["href"],
|
||||||
|
mapAttr: o({
|
||||||
|
href: "url",
|
||||||
|
target: ["openType", {
|
||||||
|
_blank: "navigate",
|
||||||
|
_self: "redirect"
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
}],
|
||||||
|
["input", {
|
||||||
|
mapName: function (e) {
|
||||||
|
return "checkbox" === e.type ? "checkbox" : "radio" === e.type ? "radio" : "input"
|
||||||
|
},
|
||||||
|
mapNameCondition: ["type"],
|
||||||
|
mapAttr: function (e, t, n) {
|
||||||
|
var a = e.toLowerCase();
|
||||||
|
return "autofocus" === a ? e = "focus" : "readonly" === a ? (!0 === n.disabled && (t = !0), e = "disabled") : "type" === a && ("password" === t ? (e = "password", t = !0) : "tel" === t && (t = "number")), [e, t]
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
["label", {
|
||||||
|
mapName: "label",
|
||||||
|
mapAttr: o({
|
||||||
|
htmlfor: "for"
|
||||||
|
})
|
||||||
|
}],
|
||||||
|
["textarea", {
|
||||||
|
mapName: "textarea",
|
||||||
|
mapAttr: o({
|
||||||
|
autofocus: "focus",
|
||||||
|
readonly: "disabled"
|
||||||
|
})
|
||||||
|
}],
|
||||||
|
["progress", {
|
||||||
|
mapName: "progress",
|
||||||
|
mapAttr: function (e, t, n) {
|
||||||
|
if ("value" === e) {
|
||||||
|
var a = n.max || 1;
|
||||||
|
e = "percent", t = Math.round(t / a * 100)
|
||||||
|
}
|
||||||
|
return [e, t]
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
["button", {
|
||||||
|
mapName: "button",
|
||||||
|
mapAttr: function (e, t) {
|
||||||
|
return "type" !== e || "submit" !== t && "reset" !== t || (e = "formType"), [e, t]
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
]);
|
||||||
|
|
||||||
|
function u(e) {
|
||||||
|
return !!(r.has(e) || c.has(e) || s.has(e))
|
||||||
|
}
|
||||||
|
|
||||||
|
function d(e, t) {
|
||||||
|
if (r.has(e)) return "text";
|
||||||
|
if (s.has(e)) {
|
||||||
|
var n = s.get(e);
|
||||||
|
if ((0, a.Kg)(n)) return n;
|
||||||
|
var i = n.mapName;
|
||||||
|
return (0, a.Tn)(i) ? i(t) : i
|
||||||
|
}
|
||||||
|
return "view"
|
||||||
|
}
|
||||||
|
|
||||||
|
function l(e) {
|
||||||
|
return e.charAt(0).toLowerCase() + e.slice(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
function p(e) {
|
||||||
|
var t = s.get(e);
|
||||||
|
if (!(0, a.Kg)(t)) return null == t ? void 0 : t.mapAttr
|
||||||
|
}
|
||||||
|
|
||||||
|
function f(e, t, n) {
|
||||||
|
var i = s.get(e);
|
||||||
|
if (i && !(0, a.Kg)(i)) {
|
||||||
|
var o = i.mapName,
|
||||||
|
r = i.mapNameCondition;
|
||||||
|
if (r) return r.indexOf(t) > -1 && !(0, a.Kg)(o) ? o(n) : void 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function h(e, t, n) {
|
||||||
|
var a = f(e, t, n.props);
|
||||||
|
a && n.enqueueUpdate({
|
||||||
|
path: n._path + ".nn",
|
||||||
|
value: a
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function g(e, t) {
|
||||||
|
void 0 === t && (t = "");
|
||||||
|
var n = t.split(" "),
|
||||||
|
a = function () {
|
||||||
|
n.includes("tph") || n.push("tph")
|
||||||
|
},
|
||||||
|
i = "h5-" + e; - 1 === n.indexOf(i) && (n.push(i), a());
|
||||||
|
return void 0 !== ["bui-modal"].find((function (e) {
|
||||||
|
return -1 !== n.indexOf(e)
|
||||||
|
})) && a(), n.join(" ")
|
||||||
|
}
|
||||||
|
|
||||||
|
function m(e, t) {
|
||||||
|
void 0 === t && (t = "");
|
||||||
|
var n = t,
|
||||||
|
a = e.width,
|
||||||
|
i = e.height;
|
||||||
|
return a && (n = "width: " + a + ";" + n), i && (n = "height: " + i + ";" + n), n
|
||||||
|
}
|
||||||
|
|
||||||
|
function v(e, t, n) {
|
||||||
|
Object.defineProperty(e, t, {
|
||||||
|
enumerable: !0,
|
||||||
|
configurable: !0,
|
||||||
|
get: function () {
|
||||||
|
return e[n]
|
||||||
|
},
|
||||||
|
set: function (t) {
|
||||||
|
e[n] = t
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var y = {
|
||||||
|
modifyHydrateData: function (e) {
|
||||||
|
var t, n = e.nn;
|
||||||
|
if (u(n)) {
|
||||||
|
e.nn = d(n, e);
|
||||||
|
var a = p(n);
|
||||||
|
for (var i in e) {
|
||||||
|
var o = e[i];
|
||||||
|
if (-1 !== i.indexOf("miniapp")) delete e[i], e[l(i.replace("miniapp", ""))] = o;
|
||||||
|
if (a) {
|
||||||
|
var r = a(i, o, e),
|
||||||
|
c = r[0],
|
||||||
|
s = r[1];
|
||||||
|
i !== c ? (delete e[i], e[c] = s) : o !== s && (e[i] = s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"br" === n && (e.cn = [(t = {}, t.nn = "#text", t.v = "\n", t)]), e.cl = g(n, e.cl), e.st = m(e, e.st)
|
||||||
|
} else {
|
||||||
|
var f = e.cl && "string" == typeof e.cl ? e.cl.split(" ") : [];
|
||||||
|
["bui-modal"].some((function (e) {
|
||||||
|
return f.some((function (t) {
|
||||||
|
return t === e
|
||||||
|
}))
|
||||||
|
})) && (e.cl = g(n, e.cl))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
modifySetAttrPayload: function (e, t, n) {
|
||||||
|
var a = e.nodeName,
|
||||||
|
i = e._path,
|
||||||
|
o = e.props;
|
||||||
|
if (u(a)) {
|
||||||
|
h(a, t, e);
|
||||||
|
var r = p(a);
|
||||||
|
if (r) {
|
||||||
|
var c = r(t, n.value, o),
|
||||||
|
s = c[0],
|
||||||
|
d = c[1];
|
||||||
|
n.path = i + "." + s, n.value = d
|
||||||
|
}
|
||||||
|
"cl" === t ? n.value = g(a, n.value) : "st" !== t && "width" !== t && "height" !== t || (n.path = i + ".st", n.value = m(o, e.style.cssText)), /miniapp-/.test(t) && (n.path = i + "." + t.replace("miniapp-", ""))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
modifyRmAttrPayload: function (e, t, n) {
|
||||||
|
var a = e.nodeName,
|
||||||
|
i = e._path,
|
||||||
|
o = e.props;
|
||||||
|
if (u(a)) {
|
||||||
|
h(a, t, e);
|
||||||
|
var r = p(a);
|
||||||
|
if (r) {
|
||||||
|
var c = r(t, n[t], o)[0];
|
||||||
|
n.path = i + "." + c
|
||||||
|
}
|
||||||
|
"cl" === t ? n.value = g(a, n.value) : "st" !== t && "width" !== t && "height" !== t || (n.path = i + ".st", n.value = m(o, e.style.cssText))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onAddEvent: function (e, t, n, a) {
|
||||||
|
u(a.nodeName) && ("click" === e ? v(a.__handlers, e, "tap") : "input" === a.nodeName && ("change" === e ? "checkbox" === a.props.type || "radio" === a.props.type ? v(a.__handlers, e, "tap") : v(a.__handlers, e, "input") : "keypress" === e && v(a.__handlers, e, "confirm")))
|
||||||
|
},
|
||||||
|
modifyTaroEvent: function (e, t) {
|
||||||
|
var n = t.nodeName,
|
||||||
|
a = t.props;
|
||||||
|
if ("input" === n && "tap" === e.type && ("checkbox" === a.type ? a.checked = !a.checked : "radio" !== a.type || a.checked || (a.checked = !0), e.mpEvent)) {
|
||||||
|
var i = e.mpEvent,
|
||||||
|
o = i.currentTarget,
|
||||||
|
r = i.target;
|
||||||
|
o.checked = a.checked, r.id === o.id && (r.checked = a.checked)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
(0, i.ZG)(y), n(1500);
|
||||||
|
var b = n(4754),
|
||||||
|
x = n(6262),
|
||||||
|
A = n(2573),
|
||||||
|
w = n.n(A),
|
||||||
|
k = n(469),
|
||||||
|
P = n(5652),
|
||||||
|
_ = n(2555),
|
||||||
|
C = n(29),
|
||||||
|
S = n(5517),
|
||||||
|
O = n(6703),
|
||||||
|
T = n(1925),
|
||||||
|
Z = n(758),
|
||||||
|
I = n.t(Z, 2),
|
||||||
|
J = n(4576),
|
||||||
|
N = n(4107),
|
||||||
|
E = n(8641),
|
||||||
|
V = n(9887),
|
||||||
|
R = n(858),
|
||||||
|
M = n(3816),
|
||||||
|
L = n(7805),
|
||||||
|
U = n(7867),
|
||||||
|
F = n(9365),
|
||||||
|
W = [{
|
||||||
|
path: "/subPackages/detail/item",
|
||||||
|
argsFromRouter: [
|
||||||
|
["itemId", ["id", "itemId"]]
|
||||||
|
],
|
||||||
|
otherArgs: {
|
||||||
|
lat: "",
|
||||||
|
lng: ""
|
||||||
|
},
|
||||||
|
prefetch: function (e) {
|
||||||
|
F.A.awsc, w().preload({
|
||||||
|
fetchShowDetail: (0, U.ne)(e),
|
||||||
|
itemId: e.itemId
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
G = n(6005);
|
||||||
|
E.A.set("spmA", L.c), E.A.set("getCity", R.K), E.A.set("prefetchConfigs", W), E.A.set("getPosition", R.E), E.A.set("buiStorageSet", (function (e, t) {
|
||||||
|
e && t && w().setStorageSync(e, JSON.stringify(t))
|
||||||
|
})), E.A.set("buiStorageGet", (function (e) {
|
||||||
|
if (!e) return null;
|
||||||
|
var t;
|
||||||
|
try {
|
||||||
|
t = JSON.parse(w().getStorageSync(e))
|
||||||
|
} catch (e) {
|
||||||
|
t = null
|
||||||
|
}
|
||||||
|
return t
|
||||||
|
})), E.A.set("mtop", {
|
||||||
|
call: function (e) {
|
||||||
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
|
||||||
|
n = function (e) {
|
||||||
|
var t = e;
|
||||||
|
return t.downgradeOptions && (t.downgradeConfig = t.downgradeOptions || {}, delete t.downgradeOptions), t
|
||||||
|
};
|
||||||
|
return new Promise((function (a, i) {
|
||||||
|
new V.p((0, N.A)((0, N.A)({}, e.requestOptions), n(t))).create({
|
||||||
|
valueType: "string"
|
||||||
|
}).then((function (e) {
|
||||||
|
var t = (0, J.A)(e, 2),
|
||||||
|
n = t[0],
|
||||||
|
o = t[1];
|
||||||
|
n && i(n), a({
|
||||||
|
data: o
|
||||||
|
})
|
||||||
|
}))
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}), E.A.set("login", {
|
||||||
|
login: function (e, t, n) {
|
||||||
|
M.A.login().then((function (e, a) {
|
||||||
|
e ? null == t || t(a) : null == n || n()
|
||||||
|
}))
|
||||||
|
},
|
||||||
|
isLogin: function () {
|
||||||
|
return M.A.isLogin()
|
||||||
|
}
|
||||||
|
}), E.A.set("autoExpose", G.E0), E.A.set("autoClick", G.MQ);
|
||||||
|
var q = n(6432),
|
||||||
|
B = n(4752),
|
||||||
|
D = n(2531),
|
||||||
|
j = n(8477),
|
||||||
|
Q = n(7422);
|
||||||
|
! function () {
|
||||||
|
function e(e, t, n) {
|
||||||
|
var a = e;
|
||||||
|
if (a[t]) {
|
||||||
|
var i = a[t];
|
||||||
|
a[t] = function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
||||||
|
i.call(this, e), n.call(this, e, t)
|
||||||
|
}
|
||||||
|
} else a[t] = function (e) {
|
||||||
|
n.call(this, e, t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var t = null;
|
||||||
|
|
||||||
|
function n(e, n) {
|
||||||
|
var a;
|
||||||
|
if (!t) {
|
||||||
|
var i = (0, q.Jt)("slogObserver");
|
||||||
|
i && (t = i)
|
||||||
|
}
|
||||||
|
null === (a = t) || void 0 === a || null === (a = a[e]) || void 0 === a || a.call(this, n)
|
||||||
|
}
|
||||||
|
|
||||||
|
function a(e) {
|
||||||
|
var t, a = (0, j.t3)(this);
|
||||||
|
var route = this.route == 'pages/custom/index' ? 'pages/mine/index' : this.route;
|
||||||
|
var i = (0, N.A)({
|
||||||
|
_pageRoute: route
|
||||||
|
}, a);
|
||||||
|
if ((Q.A.sendPageEvent("", (null == this || null === (t = this.config) || void 0 === t ? void 0 : t.navigationBarTitleText) || this.route, i, {
|
||||||
|
useTaroSendPv: !0
|
||||||
|
}), (0, D.A)().hasOwnProperty(this.route)) && (0, D.A)()[this.route].manualSendPV) return void n.call(this, "onShow", e);
|
||||||
|
B.Ay.sendPV({}, i), n.call(this, "onShow", e)
|
||||||
|
}
|
||||||
|
|
||||||
|
function i(e) {
|
||||||
|
n.call(this, "onLoad", e)
|
||||||
|
}
|
||||||
|
|
||||||
|
function o(e) {
|
||||||
|
n.call(this, "onReady", e)
|
||||||
|
}
|
||||||
|
|
||||||
|
function r(e) {
|
||||||
|
n.call(this, "onUnload", e)
|
||||||
|
}
|
||||||
|
|
||||||
|
function c(e) {
|
||||||
|
n.call(this, "onHide", e)
|
||||||
|
}
|
||||||
|
|
||||||
|
function s() {}
|
||||||
|
|
||||||
|
function u() {}
|
||||||
|
|
||||||
|
function d() {}
|
||||||
|
|
||||||
|
function l() {}
|
||||||
|
|
||||||
|
function p() {}
|
||||||
|
|
||||||
|
function f() {}! function () {
|
||||||
|
var t = App,
|
||||||
|
n = Page,
|
||||||
|
h = Component;
|
||||||
|
App = function (n) {
|
||||||
|
e(n, "onLaunch", d), e(n, "onShow", l), e(n, "onHide", p), e(n, "onError", f), t(n)
|
||||||
|
}, Component = function (t) {
|
||||||
|
t.methods && (e(t.methods, "onShow", a), e(t.methods, "onReady", o), e(t.methods, "onLoad", i), e(t.methods, "onUnload", r), e(t.methods, "onHide", c)), h(t)
|
||||||
|
}, Page = function (t) {
|
||||||
|
e(t, "onLoad", i), e(t, "onReady", o), e(t, "onUnload", r), e(t, "onShow", a), e(t, "onHide", c), e(t, "onReachBottom", s), e(t, "onPullDownRefresh", u), n(t)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
}(), n(2641), n(834);
|
||||||
|
var H = n(7852),
|
||||||
|
X = n(334),
|
||||||
|
K = n(6516),
|
||||||
|
Y = n(4911),
|
||||||
|
z = n(2658),
|
||||||
|
$ = n(7963),
|
||||||
|
ee = (0, S.A)((function e(t) {
|
||||||
|
(0, C.A)(this, e), this.capacity = t, this.queue = [], this.hashMap = {}
|
||||||
|
}), [{
|
||||||
|
key: "updateIndex",
|
||||||
|
value: function (e) {
|
||||||
|
var t = this.queue.indexOf(e); - 1 !== t && this.queue.splice(t, 1), this.queue.push(e)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "get",
|
||||||
|
value: function (e) {
|
||||||
|
return this.hashMap.hasOwnProperty(e) ? (this.updateIndex(e), this.hashMap[e]) : -1
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "put",
|
||||||
|
value: function (e, t) {
|
||||||
|
if (this.hashMap.hasOwnProperty(e)) this.hashMap[e] = t, this.updateIndex(e);
|
||||||
|
else if (this.queue.length < this.capacity) this.updateIndex(e), this.hashMap[e] = t;
|
||||||
|
else {
|
||||||
|
var n = this.queue.shift();
|
||||||
|
delete this.hashMap[n], this.updateIndex(e), this.hashMap[e] = t
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]),
|
||||||
|
te = n(3150),
|
||||||
|
ne = n(3338),
|
||||||
|
ae = n(9148),
|
||||||
|
ie = n(2267),
|
||||||
|
oe = n(715),
|
||||||
|
re = n.n(oe),
|
||||||
|
ce = n(4017),
|
||||||
|
se = n(3716),
|
||||||
|
ue = n(4921);
|
||||||
|
n(929), ie.A.isTT && ie.A.isDevTools && ie.A.updateToDouyin(), w().onAppShow((function (e) {
|
||||||
|
var t = e.path,
|
||||||
|
n = e.query,
|
||||||
|
a = void 0 === n ? {} : n,
|
||||||
|
i = a.url || a.q,
|
||||||
|
o = ["subPackages/sku/index", "pages/sku/index"],
|
||||||
|
r = decodeURIComponent(i);
|
||||||
|
(0, ae.tp)(r) && !t.includes("pages/home/index") && w().switchTab({
|
||||||
|
url: "/pages/home/index"
|
||||||
|
}), (~o.indexOf(t) || ~o.indexOf(i)) && ((t === o[1] || i === o[1]) && wx && wx.setStorageSync("intercept_sku", "true"), Y.A.navTo("pages/home/index"), Q.A.sendOtherEvent("/yanchu.black_market.intercept_jump_sku_directly", {
|
||||||
|
page: t,
|
||||||
|
error: "直接跳转小程序唤sku拦截"
|
||||||
|
})), (decodeURIComponent(i).indexOf("/h5-ultron-buy/index.html") > -1 || decodeURIComponent(i).indexOf("/confirmorder/index.html") > -1) && (Q.A.sendOtherEvent("/yanchu.black_market.intercept_jump_order_directly", {
|
||||||
|
page: i,
|
||||||
|
error: "直接跳转小程序唤确认订单页拦截"
|
||||||
|
}), Y.A.navTo("/pages/home/index", {})), (0, q.hZ)("scene", e.scene), F.A.updateLancherParams(e)
|
||||||
|
}));
|
||||||
|
var de = function (e) {
|
||||||
|
function t() {
|
||||||
|
return (0, C.A)(this, t), (0, O.A)(this, t, arguments)
|
||||||
|
}
|
||||||
|
return (0, T.A)(t, e), (0, S.A)(t, [{
|
||||||
|
key: "componentDidMount",
|
||||||
|
value: function () {
|
||||||
|
var e = (0, _.A)((0, P.A)().m((function e() {
|
||||||
|
var t, n, a, i, o;
|
||||||
|
return (0, P.A)().w((function (e) {
|
||||||
|
for (;;) switch (e.p = e.n) {
|
||||||
|
case 0:
|
||||||
|
if (Y.A.addPrefetchConfig({
|
||||||
|
prefetchList: W
|
||||||
|
}), this.miniappPerf(), t = !0, e.p = 1, !(i = "function" == typeof wx[(0, q.Jt)("decode")("Z2V0UmVuZGVyZXJVc2VyQWdlbnQ=")])) {
|
||||||
|
e.n = 3;
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return e.n = 2, wx[(0, q.Jt)("decode")("Z2V0UmVuZGVyZXJVc2VyQWdlbnQ=")]();
|
||||||
|
case 2:
|
||||||
|
i = e.v;
|
||||||
|
case 3:
|
||||||
|
if (a = i) {
|
||||||
|
e.n = 4;
|
||||||
|
break
|
||||||
|
}
|
||||||
|
a = "";
|
||||||
|
case 4:
|
||||||
|
n = a, (![(0, q.Jt)("decode")("aW9z"), (0, q.Jt)("decode")("YW5kcm9pZA=="), (0, q.Jt)("decode")("b2hvcw==")].includes(wx[(0, q.Jt)("decode")("Z2V0RGV2aWNlSW5mbw==")]()[(0, q.Jt)("decode")("cGxhdGZvcm0=")]) || (0, q.Jt)((0, q.Jt)("decode")("ZW52VmVyc2lvbg==")) === (0, q.Jt)("decode")("cmVsZWFzZQ==") && !0 === wx[(0, q.Jt)("decode")("Z2V0QXBwQmFzZUluZm8=")]()[(0, q.Jt)("decode")("ZW5hYmxlRGVidWc=")] || n.indexOf((0, q.Jt)("decode")("d2VjaGF0ZGV2dG9vbHM=")) > -1 || n.indexOf((0, q.Jt)("decode")("TWluaVByb2dyYW1FbnYvTWFj")) > -1 || n.indexOf((0, q.Jt)("decode")("TWluaVByb2dyYW1FbnYvV2luZG93cw==")) > -1) && (wx[(0, q.Jt)("decode")("c2hvd01vZGFs")]({
|
||||||
|
title: (0, q.Jt)("decode")("5rip6aao5o+Q56S6"),
|
||||||
|
content: (0, q.Jt)("decode")("6K+35Zyo5omL5py65LiK5L2/55So5ZOm"),
|
||||||
|
showCancel: !1,
|
||||||
|
success: function () {
|
||||||
|
return wx[(0, q.Jt)("decode")("ZXhpdE1pbmlQcm9ncmFt")]()
|
||||||
|
},
|
||||||
|
complete: function () {
|
||||||
|
return wx[(0, q.Jt)("decode")("ZXhpdE1pbmlQcm9ncmFt")]()
|
||||||
|
}
|
||||||
|
}), t = !1), e.n = 6;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
e.p = 5, o = e.v, "function" == typeof armsReport && armsReport({
|
||||||
|
code: 1e3,
|
||||||
|
msg: (0, q.Jt)("decode")("aW50ZXJjZXB0LXBj"),
|
||||||
|
m1: 1,
|
||||||
|
c1: JSON.stringify(o.message)
|
||||||
|
});
|
||||||
|
case 6:
|
||||||
|
if (!1 !== t) {
|
||||||
|
e.n = 7;
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return e.a(2, !1);
|
||||||
|
case 7:
|
||||||
|
this.initGlobalData(), this.initEvent(), (0, j.wW)(), wx.onUnhandledRejection((function (e) {
|
||||||
|
var t = e.reason;
|
||||||
|
t && (0, te.ZV)(t)
|
||||||
|
}));
|
||||||
|
case 8:
|
||||||
|
return e.a(2)
|
||||||
|
}
|
||||||
|
}), e, this, [
|
||||||
|
[1, 5]
|
||||||
|
])
|
||||||
|
})));
|
||||||
|
return function () {
|
||||||
|
return e.apply(this, arguments)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
}, {
|
||||||
|
key: "onLaunch",
|
||||||
|
value: function () {
|
||||||
|
var e = w().getLaunchOptionsSync();
|
||||||
|
F.A.init(e), (0, q.hZ)("launchQuery", e), X.A.checkAppUpdate(), re().mtop.config.$baxiaMiniprogram.init({}), (0, ue.A)(se.A.requireSubPackage.bind(se.A))
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onError",
|
||||||
|
value: function (e) {
|
||||||
|
e && (0, te.ZV)(e)
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "onPageNotFound",
|
||||||
|
value: function (e) {
|
||||||
|
var t = (e || {}).path,
|
||||||
|
n = void 0 === t ? "" : t;
|
||||||
|
if ((0, te.Wx)("onPageNotFound: ".concat(n)), /\/perform\/index/.test(n)) {
|
||||||
|
var a = getCurrentPages(),
|
||||||
|
i = a.length ? a[a.length - 1].options : {};
|
||||||
|
Q.A.sendGoldLog("EXP", "/dianying.fe.wx_perform", i), K.A.show("该项目已失效~"), setTimeout((function () {
|
||||||
|
ce.A.switchTab({
|
||||||
|
url: "/pages/home/index"
|
||||||
|
})
|
||||||
|
}), 2e3)
|
||||||
|
} else ce.A.switchTab({
|
||||||
|
url: "/pages/home/index"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "setCdnGlobalConfig",
|
||||||
|
value: function () {
|
||||||
|
new Promise((function (e) {
|
||||||
|
new Promise((function (e, t) {
|
||||||
|
w().getBackgroundFetchData({
|
||||||
|
fetchType: "pre",
|
||||||
|
success: function (n) {
|
||||||
|
return (0, _.A)((0, P.A)().m((function a() {
|
||||||
|
var i;
|
||||||
|
return (0, P.A)().w((function (a) {
|
||||||
|
for (;;) switch (a.p = a.n) {
|
||||||
|
case 0:
|
||||||
|
if (null == n || !n.fetchedData) {
|
||||||
|
a.n = 3;
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return a.p = 1, i = JSON.parse(null == n ? void 0 : n.fetchedData), a.a(2, e(i));
|
||||||
|
case 2:
|
||||||
|
return a.p = 2, a.v, a.a(2, t());
|
||||||
|
case 3:
|
||||||
|
return a.a(2, t())
|
||||||
|
}
|
||||||
|
}), a, null, [
|
||||||
|
[1, 2]
|
||||||
|
])
|
||||||
|
})))()
|
||||||
|
},
|
||||||
|
fail: function (e) {
|
||||||
|
return (0, _.A)((0, P.A)().m((function e() {
|
||||||
|
return (0, P.A)().w((function (e) {
|
||||||
|
for (;;) switch (e.n) {
|
||||||
|
case 0:
|
||||||
|
return e.a(2, t())
|
||||||
|
}
|
||||||
|
}), e)
|
||||||
|
})))()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})).then((function (t) {
|
||||||
|
return e(t)
|
||||||
|
})).catch((0, _.A)((0, P.A)().m((function t() {
|
||||||
|
var n;
|
||||||
|
return (0, P.A)().w((function (t) {
|
||||||
|
for (;;) switch (t.n) {
|
||||||
|
case 0:
|
||||||
|
return t.n = 1, (0, ne.t)();
|
||||||
|
case 1:
|
||||||
|
if (!(n = t.v)) {
|
||||||
|
t.n = 2;
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return t.a(2, e(n));
|
||||||
|
case 2:
|
||||||
|
return t.a(2, e(null))
|
||||||
|
}
|
||||||
|
}), t)
|
||||||
|
}))))
|
||||||
|
})).then((function (e) {
|
||||||
|
e && (((null == e ? void 0 : e.configList) || []).forEach((function (e) {
|
||||||
|
var t = e || {},
|
||||||
|
n = t.name,
|
||||||
|
a = t.value,
|
||||||
|
i = t.enablePolicy;
|
||||||
|
(0, q.hZ)("oss".concat(n), a || ""), i && (0, q.hZ)("oss".concat(n, "Policy"), i)
|
||||||
|
})), (0, q.hZ)("cdnGlobalConfig", e))
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "initGlobalData",
|
||||||
|
value: function () {
|
||||||
|
var e = (0, H.LI)(),
|
||||||
|
t = e.menuBarHeight,
|
||||||
|
n = e.statusBarHeight,
|
||||||
|
a = (0, H.DA)();
|
||||||
|
(0, q.hZ)("statusBarHeight", n), (0, q.hZ)("menubarHeight", t), (0, q.hZ)("safeAreaInsetBottom", a), this.setCdnGlobalConfig()
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "miniappPerf",
|
||||||
|
value: function () {
|
||||||
|
var e = {
|
||||||
|
firstPaint: "fp",
|
||||||
|
firstContentfulPaint: "fcp",
|
||||||
|
largestContentfulPaint: "lcp"
|
||||||
|
};
|
||||||
|
try {
|
||||||
|
var t = new ee(2),
|
||||||
|
n = (0, $.A)();
|
||||||
|
w().getPerformance().createObserver((function (a) {
|
||||||
|
var i, o = a.getEntries(),
|
||||||
|
r = (0, k.A)(o);
|
||||||
|
try {
|
||||||
|
for (r.s(); !(i = r.n()).done;) {
|
||||||
|
var c = i.value,
|
||||||
|
s = c.pageId,
|
||||||
|
u = c.name,
|
||||||
|
d = c.startTime,
|
||||||
|
l = c.path,
|
||||||
|
p = c.duration;
|
||||||
|
"firstRender" === u && t.put(s, d), void 0 === p && -1 !== t.get(s) && (p = d - t.get(s)), p > 0 && (n.sendStatusMap = {}, n.sendPerf("mini_".concat(e[u] || u), {
|
||||||
|
cost: p,
|
||||||
|
route: l
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
r.e(e)
|
||||||
|
} finally {
|
||||||
|
r.f()
|
||||||
|
}
|
||||||
|
})).observe({
|
||||||
|
entryTypes: ["render", "script", "navigation", "loadPackage"]
|
||||||
|
})
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "initEvent",
|
||||||
|
value: function () {
|
||||||
|
ie.A.isWX && wx.onNeedPrivacyAuthorization && wx.onNeedPrivacyAuthorization((function (e, t) {
|
||||||
|
var n = getCurrentPages(),
|
||||||
|
a = null == n ? void 0 : n[n.length - 1],
|
||||||
|
i = null == a ? void 0 : a.options;
|
||||||
|
if ("pages/home/index" === (null == a ? void 0 : a.route)) H.iL.trigger(z.Ru.HOME_PRIVACY_POPUP);
|
||||||
|
else try {
|
||||||
|
Y.A.navTo("/subPackages/privacy-popup/index", {
|
||||||
|
redirectPath: encodeURIComponent(a ? "/".concat(a.route) : "/pages/home/index"),
|
||||||
|
redirectQuery: encodeURIComponent(JSON.stringify(i || {}))
|
||||||
|
}, {
|
||||||
|
redirect: !0
|
||||||
|
})
|
||||||
|
} catch (e) {}
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: "render",
|
||||||
|
value: function () {
|
||||||
|
return this.props.children
|
||||||
|
}
|
||||||
|
}])
|
||||||
|
}(Z.Component);
|
||||||
|
w().options.html && (w().options.html.transformElement = function (e) {
|
||||||
|
var t = e;
|
||||||
|
return "image" === t.nodeName && (t.props.mode = "widthFix"), "text" === t.nodeName && (t.nodeName = "view", t.props.class = t.props.class + " h5-inline"), t
|
||||||
|
});
|
||||||
|
var le = de,
|
||||||
|
pe = n(4456),
|
||||||
|
fe = {
|
||||||
|
pages: ["pages/home/index", "pages/city/index", "pages/detail/item", "pages/mine/index", "pages/pay/index", "pages/sku/index", "pages/baxia/webview/index", "pages/want2see/index", "pages/category/index", "pages/webview/index", "pages/ticket-wallet/index", "pages/video/index", "pages/login/index", "pages/search/index", "pages/notification/index", "pages/ticket/confirm-regift/index", "pages/others/orders/index"],
|
||||||
|
workers: "workers",
|
||||||
|
subpackages: [{
|
||||||
|
root: "utils-packages",
|
||||||
|
pages: ["wasm/index"]
|
||||||
|
}, {
|
||||||
|
root: "subPackages",
|
||||||
|
name: "subPackages",
|
||||||
|
pages: ["detail/item", "sku/index", "category/index", "alicare-landing/index", "privacy-popup/index", "confirmJoinGroupbuying/index", "setting/index", "video/index", "notification/index", "ticket/confirm-regift/index", "order-pay/index"]
|
||||||
|
}],
|
||||||
|
window: {
|
||||||
|
navigationBarBackgroundColor: "#ffffff",
|
||||||
|
navigationBarTextStyle: "black",
|
||||||
|
borderStyle: "black",
|
||||||
|
backgroundColor: "#ffffff",
|
||||||
|
enablePullDownRefresh: !1
|
||||||
|
},
|
||||||
|
tabBar: {
|
||||||
|
color: "#111111",
|
||||||
|
selectedColor: "#ff2869",
|
||||||
|
backgroundColor: "#ffffff",
|
||||||
|
position: "bottom",
|
||||||
|
borderStyle: "black",
|
||||||
|
list: [{
|
||||||
|
pagePath: "pages/home/index",
|
||||||
|
selectedIconPath: "images/icon_home_selected.png",
|
||||||
|
iconPath: "images/icon_home_normal.png",
|
||||||
|
text: "首页"
|
||||||
|
}, {
|
||||||
|
pagePath: "pages/want2see/index",
|
||||||
|
selectedIconPath: "images/icon_want2c_selected.png",
|
||||||
|
iconPath: "images/icon_want2c_normal.png",
|
||||||
|
text: "想看"
|
||||||
|
}, {
|
||||||
|
pagePath: "pages/ticket-wallet/index",
|
||||||
|
selectedIconPath: "images/icon_ticket_wallet_selected.png",
|
||||||
|
iconPath: "images/icon_ticket_wallet_normal.png",
|
||||||
|
text: "票夹"
|
||||||
|
}, {
|
||||||
|
pagePath: "pages/mine/index",
|
||||||
|
selectedIconPath: "images/icon_mine_selected.png",
|
||||||
|
iconPath: "images/icon_mine_normal.png",
|
||||||
|
text: "我的"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
skeletonConfig: {
|
||||||
|
global: {
|
||||||
|
templateName: "skeleton"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
navigateToMiniProgramAppIdList: ["wx5abcf700e248b745"],
|
||||||
|
permission: {
|
||||||
|
"scope.userLocation": {
|
||||||
|
desc: "用于提供所在城市的演出赛事信息,帮助你找到附近的演出赛事"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
__usePrivacyCheck__: !0,
|
||||||
|
preloadRule: {
|
||||||
|
"pages/home/index": {
|
||||||
|
packages: ["subPackages"],
|
||||||
|
network: "all"
|
||||||
|
},
|
||||||
|
"pages/search/index": {
|
||||||
|
packages: ["utils-packages"],
|
||||||
|
network: "all"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
b.mw.__taroAppConfig = fe, App((0, x.ND)(le, I, pe.default, fe)), (0, A.initPxTransform)({
|
||||||
|
designWidth: 375,
|
||||||
|
deviceRatio: {
|
||||||
|
375: 2,
|
||||||
|
640: 1.17,
|
||||||
|
750: 1,
|
||||||
|
828: .905
|
||||||
|
},
|
||||||
|
baseFontSize: 20,
|
||||||
|
unitPrecision: void 0,
|
||||||
|
targetUnit: void 0
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
function (e) {
|
||||||
|
e.O(0, [6907, 8096, 2076], (function () {
|
||||||
|
return t = 3985, e(e.s = t);
|
||||||
|
var t
|
||||||
|
})), e.O()
|
||||||
|
}
|
||||||
|
]);
|
||||||
119
app.json
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
{
|
||||||
|
"workers": "workers",
|
||||||
|
"permission": {
|
||||||
|
"scope.userLocation": {
|
||||||
|
"desc": "用于提供所在城市的演出赛事信息,帮助你找到附近的演出赛事"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"preloadRule": {
|
||||||
|
"pages/home/index": {
|
||||||
|
"packages": [
|
||||||
|
"subPackages"
|
||||||
|
],
|
||||||
|
"network": "all"
|
||||||
|
},
|
||||||
|
"pages/search/index": {
|
||||||
|
"packages": [
|
||||||
|
"utils-packages"
|
||||||
|
],
|
||||||
|
"network": "all"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"navigateToMiniProgramAppIdList": [
|
||||||
|
"wx5abcf700e248b745"
|
||||||
|
],
|
||||||
|
"__usePrivacyCheck__": true,
|
||||||
|
"componentFramework": "exparser",
|
||||||
|
"tabBar": {
|
||||||
|
"color": "#111111",
|
||||||
|
"selectedColor": "#ff2869",
|
||||||
|
"backgroundColor": "#ffffff",
|
||||||
|
"position": "bottom",
|
||||||
|
"borderStyle": "black",
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"pagePath": "pages/home/index",
|
||||||
|
"text": "首页",
|
||||||
|
"iconPath": "images/icon_home_normal.png",
|
||||||
|
"selectedIconPath": "images/icon_home_selected.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/want2see/index",
|
||||||
|
"text": "想看",
|
||||||
|
"iconPath": "images/icon_want2c_normal.png",
|
||||||
|
"selectedIconPath": "images/icon_want2c_selected.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/ticket-wallet/index",
|
||||||
|
"text": "票夹",
|
||||||
|
"iconPath": "images/icon_ticket_wallet_normal.png",
|
||||||
|
"selectedIconPath": "images/icon_ticket_wallet_selected.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/mine/index",
|
||||||
|
"text": "我的",
|
||||||
|
"iconPath": "images/icon_mine_normal.png",
|
||||||
|
"selectedIconPath": "images/icon_mine_selected.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/custom/index",
|
||||||
|
"text": "自定义",
|
||||||
|
"iconPath": "images/icon_mine_normal.png",
|
||||||
|
"selectedIconPath": "images/icon_mine_selected.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"subPackages": [
|
||||||
|
{
|
||||||
|
"root": "utils-packages/",
|
||||||
|
"pages": [
|
||||||
|
"wasm/index"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "subPackages/",
|
||||||
|
"name": "subPackages",
|
||||||
|
"pages": [
|
||||||
|
"detail/item",
|
||||||
|
"sku/index",
|
||||||
|
"category/index",
|
||||||
|
"alicare-landing/index",
|
||||||
|
"privacy-popup/index",
|
||||||
|
"confirmJoinGroupbuying/index",
|
||||||
|
"setting/index",
|
||||||
|
"video/index",
|
||||||
|
"notification/index",
|
||||||
|
"ticket/confirm-regift/index",
|
||||||
|
"order-pay/index"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"window": {
|
||||||
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
|
"navigationBarTextStyle": "black",
|
||||||
|
"borderStyle": "black",
|
||||||
|
"backgroundColor": "#ffffff",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
},
|
||||||
|
"pages": [
|
||||||
|
"pages/home/index",
|
||||||
|
"pages/city/index",
|
||||||
|
"pages/detail/item",
|
||||||
|
"pages/mine/index",
|
||||||
|
"pages/pay/index",
|
||||||
|
"pages/sku/index",
|
||||||
|
"pages/baxia/webview/index",
|
||||||
|
"pages/want2see/index",
|
||||||
|
"pages/category/index",
|
||||||
|
"pages/webview/index",
|
||||||
|
"pages/ticket-wallet/index",
|
||||||
|
"pages/video/index",
|
||||||
|
"pages/login/index",
|
||||||
|
"pages/search/index",
|
||||||
|
"pages/notification/index",
|
||||||
|
"pages/ticket/confirm-regift/index",
|
||||||
|
"pages/others/orders/index",
|
||||||
|
"pages/test",
|
||||||
|
"pages/custom/index"
|
||||||
|
]
|
||||||
|
}
|
||||||
1
comp.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2862],{},function(n){n.O(0,[6907,8096],(function(){return s=8e3,n(n.s=s);var s})),n.O()}]);
|
||||||
1
comp.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"comp":"./comp","custom-wrapper":"./custom-wrapper"}}
|
||||||
3
comp.wxml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<import src="./base.wxml"></import>
|
||||||
|
<template is="{{'tmpl_0_'+i.nn}}" data="{{ i:i,c:1,l:xs.f('',i.nn) }}"></template>
|
||||||
|
<wxs module="xs" src="utils.wxs" />
|
||||||
9
custom-wrapper.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
(wx.webpackJsonp = wx.webpackJsonp || []).push([
|
||||||
|
[1744], {},
|
||||||
|
function (n) {
|
||||||
|
n.O(0, [6907, 8096], (function () {
|
||||||
|
return s = 9349, n(n.s = s);
|
||||||
|
var s
|
||||||
|
})), n.O()
|
||||||
|
}
|
||||||
|
]);
|
||||||
8
custom-wrapper.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"styleIsolation": "apply-shared",
|
||||||
|
"usingComponents": {
|
||||||
|
"comp": "./comp",
|
||||||
|
"custom-wrapper": "./custom-wrapper"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
custom-wrapper.wxml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<import src="./base.wxml"></import>
|
||||||
|
<template is="{{'tmpl_0_'+item.nn}}" data="{{ i:item,c:1,l:xs.f('',item.nn) }}" wx:for="{{i.cn}}"
|
||||||
|
wx:key="sid"></template>
|
||||||
|
<wxs module="xs" src="utils.wxs" />
|
||||||
0
custom-wrapper.wxss
Normal file
136
hook.js
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
function setup() {
|
||||||
|
hook();
|
||||||
|
}
|
||||||
|
|
||||||
|
function hook() {
|
||||||
|
|
||||||
|
wx.version = {
|
||||||
|
updateTime: "2025.12.4 19:05:22",
|
||||||
|
version: "3.12.1"
|
||||||
|
}
|
||||||
|
|
||||||
|
wx.getRendererUserAgent = function() {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
resolve("Mozilla/5.0 (iPad; CPU OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.66(0x1800422a) NetType/WIFI Language/zh_CN MiniProgramEnv/iOS")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
wx.getSystemInfoSync = function() {
|
||||||
|
return {
|
||||||
|
SDKVersion: "3.12.1",
|
||||||
|
albumAuthorized: true,
|
||||||
|
appName: "weixin",
|
||||||
|
batteryLevel: 20,
|
||||||
|
benchmarkLevel: -1,
|
||||||
|
bluetoothAuthorized: true,
|
||||||
|
bluetoothEnabled: true,
|
||||||
|
brand: "iPhone",
|
||||||
|
cameraAuthorized: true,
|
||||||
|
deviceOrientation: "portrait",
|
||||||
|
devicePixelRation: 2,
|
||||||
|
enableDebug: false,
|
||||||
|
fontSizeScaleFactor: 0.9411764705882353,
|
||||||
|
fontSizeSetting: 16,
|
||||||
|
host: {
|
||||||
|
appId: "wx938b41d0d7e8def0",
|
||||||
|
env: "WeChat",
|
||||||
|
version: 402670122
|
||||||
|
},
|
||||||
|
language: "zh_CN",
|
||||||
|
locationAuthorized: true,
|
||||||
|
locationEnabled: true,
|
||||||
|
locationReducedAccuracy: false,
|
||||||
|
memorySize: 2940,
|
||||||
|
microphoneAuthorized: true,
|
||||||
|
microphoneEnable: true,
|
||||||
|
mode: "default",
|
||||||
|
model: "iPad (9th generation) Wi-Fi",
|
||||||
|
notificationAlertAuthorized: true,
|
||||||
|
notificationAuthorized: true,
|
||||||
|
notificationBadgeAuthorized: true,
|
||||||
|
notificationSoundAuthorized: true,
|
||||||
|
phoneCalendarAuthorized: false,
|
||||||
|
pixelRation: 2,
|
||||||
|
platform: "ios",
|
||||||
|
safeArea: {
|
||||||
|
bottom: 1080,
|
||||||
|
height: 1060,
|
||||||
|
left: 0,
|
||||||
|
right: 810,
|
||||||
|
top: 20,
|
||||||
|
width: 810
|
||||||
|
},
|
||||||
|
screenHeight: 1080,
|
||||||
|
screenTop: 0,
|
||||||
|
screenWidth: 810,
|
||||||
|
statusBarHeight: 20,
|
||||||
|
system: "iOS 18.5",
|
||||||
|
translateLanguage: "zh_CN",
|
||||||
|
version: "8.0.66",
|
||||||
|
wifiEnabled: true,
|
||||||
|
windowHeight: 1014,
|
||||||
|
windowWidth: 810
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
wx.getDeviceInfo = function() {
|
||||||
|
return {
|
||||||
|
benchmarkLevel: -1,
|
||||||
|
brand: "iPhone",
|
||||||
|
memorySize: 2940,
|
||||||
|
model: "iPad (9th generation) Wi-Fi",
|
||||||
|
platform: "ios",
|
||||||
|
system: "iOS 18.5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
wx.getWindowInfo = function() {
|
||||||
|
return {
|
||||||
|
pixelRation: 2,
|
||||||
|
safeArea: {
|
||||||
|
bottom: 1080,
|
||||||
|
height: 1060,
|
||||||
|
left: 0,
|
||||||
|
right: 810,
|
||||||
|
top: 20,
|
||||||
|
width: 810
|
||||||
|
},
|
||||||
|
screenHeight: 1080,
|
||||||
|
screenWidth: 810,
|
||||||
|
statusBarHeight: 20,
|
||||||
|
windowHeight: 1014,
|
||||||
|
windowWidth: 810
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
wx.getAppBaseInfo = function() {
|
||||||
|
return {
|
||||||
|
SDKVersion: "3.12.1",
|
||||||
|
appName: "weixin",
|
||||||
|
enableDebug: false,
|
||||||
|
fontSizeScaleFactor: 0.9411764705882353,
|
||||||
|
fontSizeSetting: 16,
|
||||||
|
host: {
|
||||||
|
appId: "wx938b41d0d7e8def0",
|
||||||
|
env: "WeChat",
|
||||||
|
version: 402670122
|
||||||
|
},
|
||||||
|
language: "zh_CN",
|
||||||
|
mode: "default",
|
||||||
|
translateLanguage: "zh_CN",
|
||||||
|
version: "8.0.66",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
wx.getAccountInfoSync = function() {
|
||||||
|
return {
|
||||||
|
miniProgram: {
|
||||||
|
appId: "wx938b41d0d7e8def0",
|
||||||
|
envVersion: "release",
|
||||||
|
version: ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setup();
|
||||||
BIN
images/icon_home_normal.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
images/icon_home_selected.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
images/icon_mine_normal.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
images/icon_mine_selected.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
images/icon_ticket_wallet_normal.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
images/icon_ticket_wallet_selected.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
images/icon_want2c_normal.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
images/icon_want2c_selected.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
13
pages/baxia/webview/baxia.wxml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<template name="baxiaTmp">
|
||||||
|
<web-view bindmessage="onMessage" src="{{webViewSrc}}" wx:if="{{showWebView}}"></web-view>
|
||||||
|
<view class="baxia-auth-container" wx:else>
|
||||||
|
<view class="baxia-auth-txt">
|
||||||
|
<text>请允许授权,以进行下一步操作</text>
|
||||||
|
</view>
|
||||||
|
<view class="baxia-auth-txt-detail">
|
||||||
|
<text>获取您的公开信息(昵称、头像、性别、地区)</text>
|
||||||
|
</view>
|
||||||
|
<button bindtap="bindGetUserProfile" class="baxia-auth-btn" type="primary" wx:if="{{canIUse}}">授权</button>
|
||||||
|
<button bindgetuserinfo="bindGetUserInfo" class="baxia-auth-btn" openType="getUserInfo" type="primary" wx:else>授权</button>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
0
pages/baxia/webview/baxia.wxss
Normal file
1
pages/baxia/webview/index.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(wx.webpackJsonp=wx.webpackJsonp||[]).push([[470],{2741:function(a,n,e){var i=e(9365).A;wx.setStorageSync("baxiaWebview",!0),Page(i.baxiaMiniprogram.params)}},function(a){a.O(0,[6907,8096,2076],(function(){return n=2741,a(a.s=n);var n})),a.O()}]);
|
||||||
1
pages/baxia/webview/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"usingComponents":{"custom-wrapper":"../../../custom-wrapper"}}
|
||||||
2
pages/baxia/webview/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="./baxia.wxml"></import>
|
||||||
|
<template is="baxiaTmp" data="{{...tmpData}}"></template>
|
||||||
1
pages/baxia/webview/index.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
page{align-items:center;display:flex;height:100%;justify-content:center}.baxia-auth-container,page{width:100%}.baxia-auth-btn{margin-bottom:60rpx;width:calc(100% - 120rpx)!important}.baxia-auth-txt{margin-left:60rpx}.baxia-auth-txt-detail{color:gray;font-size:28rpx;margin:60rpx 0 60rpx 60rpx}
|
||||||
1
pages/category/index.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6545],{5760:function(a,e,n){var t=n(4160),o=n(4107),r=n(2573),c=n(4911),i=n(6070);function s(){var a=((0,r.useRouter)()||{}).params,e=void 0===a?{}:a;return c.A.navTo("/subPackages/category/index",(0,o.A)({},e),{redirect:!0}),(0,i.jsx)(i.Fragment,{})}s.enableShareAppMessage=!0,Page((0,t.eU)(s,"pages/category/index",{root:{cn:[]}},{navigationStyle:"custom",navigationBarBackgroundColor:"#ffffff",backgroundTextStyle:"dark",navigationBarTextStyle:"black",navigationBarTitleText:"分类",enableShareAppMessage:!0,onReachBottomDistance:100,spmB:"category"}||{}))}},function(a){a.O(0,[6907,8096,2076],(function(){return e=5760,a(a.s=e);var e})),a.O()}]);
|
||||||
1
pages/category/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"navigationStyle":"custom","navigationBarBackgroundColor":"#ffffff","backgroundTextStyle":"dark","navigationBarTextStyle":"black","navigationBarTitleText":"分类","onReachBottomDistance":100,"spmB":"category","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||||
2
pages/category/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||
0
pages/category/index.wxss
Normal file
1
pages/city/index.js
Normal file
1
pages/city/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"enablePullDownRefresh":false,"navigationBarBackgroundColor":"#ffffff","backgroundTextStyle":"light","navigationBarTextStyle":"black","navigationBarTitleText":"选择城市","spmB":"city_select","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||||
2
pages/city/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||
1
pages/city/index.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.bui-city-selector-item.tph{align-items:center;background-color:var(--bui-color-bg-default);border-radius:var(--select-item-border-radius);display:inline-flex;font-size:var(--bui-text-size-2);height:var(--select-item-height);justify-content:center;margin:var(--select-item-margin);width:var(--select-item-width)}.bui-city-selector.tph{--select-item-width:var(--bui-city-selector-item-width,222rpx);--select-item-height:var(--bui-city-selector-item-height,72rpx);--select-item-border-radius:var(--bui-city-selector-item-border-radius,40rpx);--select-item-margin:var(--bui-city-selector-item-margin,9rpx 0 9rpx 18rpx);--title-height:var(--bui-city-selector-title-height,90rpx);--title-line-height:var(--bui-city-selector-title-line-height,90rpx);--btn-close-size:var(--bui-city-selector-btn-close-size,90rpx);--btn-close-font-size:var(--bui-city-selector-btn-close-font-size,40rpx);--container-with-title-height:var(--bui-city-selector-container-with-title-height,calc(100% - var(--title-height)));--city-container-min-height:var(--bui-city-selector-city-container-min-height,1000rpx);--select-city-buttons-padding:var(--bui-city-selector-select-city-buttons-padding,15rpx 0 0 6rpx);--select-city-title-line-height:var(--bui-city-selector-select-city-title-line-height,30rpx);--list-item-height:var(--bui-city-selector-list-item-height,90rpx);--city-index-has-title-top:var(--bui-city-selector-city-index-has-title-top,calc(50% + var(--title-height)/2));--index-item-height:var(--bui-city-selector-index-item-height,40rpx);font-family:var(--bui-font-family);height:100%;position:relative}.bui-city-selector-title.tph{background-color:var(--bui-color-bg-view);border-bottom:2rpx solid var(--bui-color-border-default);color:var(--bui-color-fg-default);font-size:var(--bui-title-size-3);height:var(--title-height);line-height:var(--title-line-height);position:sticky;text-align:center;top:0;width:100%;z-index:1004}.bui-city-selector-btn-close.tph{color:var(--bui-color-fg-muted);font-size:var(--btn-close-font-size);height:var(--btn-close-size);position:absolute;right:0;text-align:center;top:0;width:var(--btn-close-size)}.bui-city-selector-scroll-view-container.tph{height:100%}.bui-city-selector-scroll-view-container.container-has-title.tph{height:var(--container-with-title-height)}.bui-city-selector-all-city.tph{align-self:flex-start;background:var(--bui-color-bg-view);font-size:var(--bui-text-size-2);min-height:var(--city-container-min-height);width:100%}.bui-city-selector-all-city .select-city-buttons.tph{display:flex;flex-flow:wrap;padding:var(--select-city-buttons-padding)}.bui-city-selector-all-city .select-city-title.tph{font-size:var(--bui-title-size-4);font-weight:var(--bui-font-weight-bold);line-height:var(--select-city-title-line-height);padding-left:var(--bui-spacing-lg);padding-top:var(--bui-spacing-md)}.bui-city-selector-list.tph{list-style-type:none;padding-left:var(--bui-spacing-lg)}.bui-city-selector-list-item.tph{align-items:center;display:flex;font-size:var(--bui-title-size-4);height:var(--list-item-height)}.bui-city-selector-list-item:not(:last-child).tph{border-bottom:1rpx solid var(--bui-color-border-default)}.bui-city-selector-index-container.tph{position:absolute;right:0;top:50%;transform:translateY(-50%);transition:opacity .2s ease-out,transform .2s ease-out;white-space:nowrap;width:80rpx;will-change:transform;z-index:1001}.bui-city-selector-index-container.left-in.tph{opacity:1;transform:translateY(-50%)}.bui-city-selector-index-container.city-index-has-title.tph{top:var(--city-index-has-title-top)}.bui-city-selector-index-container .h5-ul.tph{float:left;margin:0;padding:0;touch-action:none;width:100%}.bui-city-selector-index-container .h5-li.tph{align-items:center;color:var(--bui-color-info,--bui-color-info);display:flex;font-size:var(--bui-text-size-3);height:var(--index-item-height);justify-content:center;list-style:none;text-align:center}.bui-city-scroll-view-container.tph{display:block;height:100%}.alert-dialog-mask.ob-dialog-mask,.alert-dialog.ob-dialog{z-index:11100}.select-city-container{height:100vh!important}
|
||||||
161
pages/custom/index.js
Normal file
@@ -0,0 +1,161 @@
|
|||||||
|
const requireCustom = wx.requireCustom;
|
||||||
|
const customRequest = requireCustom(9887);
|
||||||
|
const Ay = requireCustom(4752).Ay;
|
||||||
|
|
||||||
|
Page({
|
||||||
|
data: {
|
||||||
|
getDetailParam: {
|
||||||
|
api: 'mtop.alibaba.detail.subpage.getdetail',
|
||||||
|
v: '2.0',
|
||||||
|
data: {}
|
||||||
|
},
|
||||||
|
detailResult: {},
|
||||||
|
ticketPriceParam: {
|
||||||
|
api: 'mtop.damai.item.calcTicketPrice',
|
||||||
|
v: '2.0',
|
||||||
|
method: 'GET',
|
||||||
|
data: {}
|
||||||
|
},
|
||||||
|
ticketPriceResult: {},
|
||||||
|
orderBuildParam: {
|
||||||
|
api: 'mtop.damai.trade.order.build.h5',
|
||||||
|
v: '1.0',
|
||||||
|
data: {},
|
||||||
|
timeout: 15e3,
|
||||||
|
method: 'POST'
|
||||||
|
},
|
||||||
|
orderBuildResult: {}
|
||||||
|
},
|
||||||
|
async onLoad(options) {
|
||||||
|
let detailResult = await this.getDetail('1001240724661')
|
||||||
|
|
||||||
|
if (detailResult[0]) {
|
||||||
|
this.showToast(detailResult[0].message)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.setData({
|
||||||
|
detailResult: detailResult[1]
|
||||||
|
})
|
||||||
|
|
||||||
|
let ticketPrice = await this.calcTicketPrice();
|
||||||
|
|
||||||
|
if (ticketPrice[0]) {
|
||||||
|
this.showToast(ticketPrice[0].message)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.setData({
|
||||||
|
ticketPriceResult: ticketPrice[1]
|
||||||
|
})
|
||||||
|
|
||||||
|
let orderBuildResult = await this.buildOrder();
|
||||||
|
|
||||||
|
if (orderBuildResult[0]) {
|
||||||
|
this.showToast(orderBuildResult[0].message)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.setData({
|
||||||
|
orderBuildResult: orderBuildResult[1]
|
||||||
|
})
|
||||||
|
|
||||||
|
console.log(this.data.orderBuildResult)
|
||||||
|
},
|
||||||
|
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
onShow() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
showToast(msg) {
|
||||||
|
wx.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none',
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getDetail(itemId) {
|
||||||
|
const param = {
|
||||||
|
bizCode: 'ali.china.damai',
|
||||||
|
scenario: 'itemsku',
|
||||||
|
itemId,
|
||||||
|
exParams: JSON.stringify({
|
||||||
|
dataType: 4,
|
||||||
|
dataId: '',
|
||||||
|
activityId: ''
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return new customRequest.p({
|
||||||
|
...this.data.getDetailParam,
|
||||||
|
...param
|
||||||
|
}).create();
|
||||||
|
},
|
||||||
|
calcTicketPrice() {
|
||||||
|
const calculatePriceControl = this.data.detailResult.actionControl.calculatePriceControl;
|
||||||
|
const itemBasicInfo = this.data.detailResult.itemBasicInfo;
|
||||||
|
const perform = this.data.detailResult.perform;
|
||||||
|
const sku = perform.skuList[perform.skuList.length - 1];
|
||||||
|
|
||||||
|
|
||||||
|
const param = {
|
||||||
|
itemId: itemBasicInfo.itemId,
|
||||||
|
performId: perform.performId,
|
||||||
|
calculateTag: calculatePriceControl.calculateTag,
|
||||||
|
skuParamListJson: JSON.stringify([{
|
||||||
|
priceId: sku.priceId,
|
||||||
|
price: Number(sku.price),
|
||||||
|
count: 1,
|
||||||
|
}]),
|
||||||
|
exParams: {}
|
||||||
|
}
|
||||||
|
|
||||||
|
return new customRequest.p({
|
||||||
|
...this.data.ticketPriceParam,
|
||||||
|
...param
|
||||||
|
}).create();
|
||||||
|
},
|
||||||
|
async buildOrder() {
|
||||||
|
const globalCode = 'ali.china.damai';
|
||||||
|
const ttid = '#t#ip##_h5_2014';
|
||||||
|
|
||||||
|
const itemBasicInfo = this.data.detailResult.itemBasicInfo;
|
||||||
|
const perform = this.data.detailResult.perform;
|
||||||
|
|
||||||
|
const param = {
|
||||||
|
buyNow: true,
|
||||||
|
exParams: JSON.stringify({
|
||||||
|
channel: 'damai_app',
|
||||||
|
damai: '1',
|
||||||
|
umpChannel: '100031002',
|
||||||
|
subChannel: 'damai@weixin_weapp',
|
||||||
|
atomSplit: 1,
|
||||||
|
signKey: itemBasicInfo.t,
|
||||||
|
rtc: this.data.detailResult.actionControl.tradeControl.rtc ? 1 : 0,
|
||||||
|
serviceVersion: '2.0.0',
|
||||||
|
customerType: 'default',
|
||||||
|
}),
|
||||||
|
buyParam: itemBasicInfo.itemId + '_' + 1 + '_' + perform.skuList[0].skuId
|
||||||
|
}
|
||||||
|
|
||||||
|
return new customRequest.p({
|
||||||
|
...this.data.orderBuildParam,
|
||||||
|
...param,
|
||||||
|
ext_querys: {
|
||||||
|
ttid
|
||||||
|
},
|
||||||
|
headers: {
|
||||||
|
globalCode,
|
||||||
|
},
|
||||||
|
ext_headers: {
|
||||||
|
globalCode
|
||||||
|
}
|
||||||
|
}).create();
|
||||||
|
}
|
||||||
|
})
|
||||||
3
pages/custom/index.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
2
pages/custom/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<!--pages/custom/index.wxml-->
|
||||||
|
<text>pages/custom/index.wxml</text>
|
||||||
1
pages/custom/index.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* pages/custom/index.wxss */
|
||||||
1
pages/detail/item.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(wx.webpackJsonp=wx.webpackJsonp||[]).push([[8499],{9485:function(a,t,e){var n=e(4160),r=e(4107),i=e(2573),o=e(4911),c=e(6070);Page((0,n.eU)((function(){var a=((0,i.useRouter)()||{}).params,t=void 0===a?{}:a;return o.A.navTo("/subPackages/detail/item",(0,r.A)({},t),{redirect:!0}),(0,c.jsx)(c.Fragment,{})}),"pages/detail/item",{root:{cn:[]}},{navigationBarTitleText:"详情",navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black",spmB:"product_detail"}||{}))}},function(a){a.O(0,[6907,8096,2076],(function(){return t=9485,a(a.s=t);var t})),a.O()}]);
|
||||||
1
pages/detail/item.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"navigationBarTitleText":"详情","navigationBarBackgroundColor":"#fff","navigationBarTextStyle":"black","spmB":"product_detail","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||||
2
pages/detail/item.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||
0
pages/detail/item.wxss
Normal file
4698
pages/home/index.js
Normal file
1
pages/home/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"navigationStyle":"custom","navigationBarTextStyle":"white","enablePullDownRefresh":false,"initialRenderingCache":"static","disableScroll":true,"spmB":"home","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||||
1
pages/home/index.rootcn.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var r=Date.now();try{var e=wx.getStorageSync("STASH_ROOT_CN__HOME"),t=wx.getEnterOptionsSync();!(t&&t.query&&(t.query.url||t.query.q))&&e&&e.version===_APP_VERSION_&&(e.stashRootCNList||[],console.warn("=====使用序列化缓存数据,获取耗时=====",Date.now()-r,"当前版本号:",_APP_VERSION_))}catch(r){console.warn("index.rootcn.js error",r)}
|
||||||
83
pages/home/index.skeleton.wxml
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
<template name="skeleton">
|
||||||
|
<view class="home-skeleton">
|
||||||
|
<view class="sl-search skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position">
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-vajra-position-item">
|
||||||
|
<view class="sl-vajra-position-item-img skeleton-wave"></view>
|
||||||
|
<view class="sl-vajra-position-item-text skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-broadcast">
|
||||||
|
<view class="sl-broadcast-item skeleton-wave"></view>
|
||||||
|
<view class="sl-broadcast-item skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-square-card">
|
||||||
|
<view class="sl-square-card-item skeleton-wave"></view>
|
||||||
|
<view class="sl-square-card-item skeleton-wave"></view>
|
||||||
|
<view class="sl-square-card-item skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-show-slider-box">
|
||||||
|
<view class="sl-show-slider-tab">
|
||||||
|
<view class="sl-show-slider-tab-item skeleton-wave"></view>
|
||||||
|
<view class="sl-show-slider-tab-item skeleton-wave"></view>
|
||||||
|
<view class="sl-show-slider-tab-item sl-show-slider-tab-item-last skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-show-slider">
|
||||||
|
<view class="sl-show-slider-item">
|
||||||
|
<view class="sl-show-slider-poster skeleton-wave"></view>
|
||||||
|
<view class="sl-show-slider-time skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-show-slider-item">
|
||||||
|
<view class="sl-show-slider-poster skeleton-wave"></view>
|
||||||
|
<view class="sl-show-slider-time skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-show-slider-item">
|
||||||
|
<view class="sl-show-slider-poster skeleton-wave"></view>
|
||||||
|
<view class="sl-show-slider-time skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-show-slider-item">
|
||||||
|
<view class="sl-show-slider-poster skeleton-wave"></view>
|
||||||
|
<view class="sl-show-slider-time skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="sl-title skeleton-wave"></view>
|
||||||
|
<view class="sl-show skeleton-wave"></view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
1
pages/home/index.skeleton.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.home-skeleton{left:0;padding:0 24rpx!important;position:fixed;top:188rpx}.home-skeleton .skeleton-wave{animation:wave-animation 1.4s ease infinite;background:linear-gradient(90deg,hsla(0,0%,75%,.2) 25%,hsla(0,0%,51%,.24) 37%,hsla(0,0%,75%,.2) 63%);background-size:400% 100%;border-radius:8rpx;height:40rpx}@keyframes wave-animation{0%{background-position:100% 50%}100%{background-position:0 50%}}.home-skeleton .sl-search{height:60rpx;margin-bottom:20rpx;width:702rpx}.home-skeleton .sl-vajra-position{background-color:#fff;border-radius:12rpx;box-sizing:border-box;column-gap:60rpx;display:flex;flex-wrap:wrap;height:310rpx;margin-bottom:20rpx;padding:30rpx;row-gap:20rpx;width:702rpx}.home-skeleton .sl-vajra-position-item{display:flex;flex-direction:column;width:80rpx}.home-skeleton .sl-vajra-position-item-img{height:80rpx;margin-bottom:10rpx;width:100%}.home-skeleton .sl-vajra-position-item-text{height:24rpx;width:100%}.home-skeleton .sl-broadcast{display:flex;gap:14rpx;height:220rpx;margin-bottom:20rpx;overflow:hidden;width:702rpx}.home-skeleton .sl-broadcast-item{height:100%;width:354rpx}.home-skeleton .sl-square-card{display:flex;gap:14rpx;height:108rpx;margin-bottom:20rpx;overflow:hidden;width:702rpx}.home-skeleton .sl-square-card-item{height:100%;width:226rpx}.home-skeleton .sl-show-slider-box{background-color:#fff;border-radius:12rpx;box-sizing:border-box;margin-bottom:30rpx;padding:10rpx 0 24rpx 30rpx;position:relative;width:702rpx}.home-skeleton .sl-show-slider-tab{align-items:center;display:flex;height:76rpx;margin-bottom:14rpx;width:702rpx}.home-skeleton .sl-show-slider-tab-item{height:52rpx;margin-right:20rpx;width:120rpx}.home-skeleton .sl-show-slider-tab-item-last{margin-right:0;position:absolute;right:30rpx}.home-skeleton .sl-show-slider{display:flex;gap:14rpx;overflow:hidden;width:672rpx}.home-skeleton .sl-show-slider-item{flex-shrink:0;height:100%;width:152rpx}.home-skeleton .sl-show-slider-poster{height:204rpx;margin-bottom:14rpx;width:100%}.home-skeleton .sl-show-slider-time{height:28rpx;margin-bottom:14rpx;width:100%}.home-skeleton .sl-title{height:52rpx;margin-bottom:30rpx;width:200rpx}.home-skeleton .sl-show{height:262rpx;width:100%}
|
||||||
4
pages/home/index.wxml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<import src="index.skeleton.wxml"></import>
|
||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||
|
<template is="skeleton" data wx:if="{{!root.cn||root.cn&&!root.cn.length}}"></template>
|
||||||
3187
pages/home/index.wxss
Normal file
1
pages/login/index.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
require("../../@babel/runtime/helpers/Arrayincludes"),(wx.webpackJsonp=wx.webpackJsonp||[]).push([[8734],{2312:function(e,n,a){var t=a(4160),r=a(4107),s=a(5652),c=a(2555),i=a(4269),o=a(2573),u=a.n(o),l=a(3847),A=a(4017),g=a(3816),d=a(7422),f=a(3523),h=a(6516),p=a(4911),v=a(3260),b=a(6070),m=A.A.is,w=function(){var e="";switch(m){case"wx":e="微信授权登录";break;case"swan":e="百度授权登录";break;case"tt":e="头条授权登录";break;default:e=""}return e},k=function(){var e=(0,o.useRouter)().params,n="",a=!1,t=!1,k=function(){var e=(0,c.A)((0,s.A)().m((function e(n){var a;return(0,s.A)().w((function(e){for(;;)switch(e.n){case 0:if("getUserInfo:ok"!==(a=n.detail).errMsg){e.n=2;break}return e.n=1,x();case 1:e.n=3;break;case 2:a.errMsg,h.A.show("授权失败");case 3:d.A.sendClickEvent("".concat(d.A.spmA,".login.main.dlogin"),{clicktitle:"授权登录",err:a.errMsg});case 4:return e.a(2)}}),e)})));return function(n){return e.apply(this,arguments)}}(),x=function(){var e=(0,c.A)((0,s.A)().m((function e(){return(0,s.A)().w((function(e){for(;;)switch(e.n){case 0:if(t=!0,g.A.setAuthResult({success:t}),!a){e.n=2;break}return e.n=1,T();case 1:e.n=3;break;case 2:A.A.navigateBack();case 3:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=(0,c.A)((0,s.A)().m((function e(){var t,r,c,i,o,d,v,b,m,w,k,x;return(0,s.A)().w((function(e){for(;;)switch(e.n){case 0:return l.A.show("登录中..."),e.n=1,g.A.isLogin();case 1:if(t=e.v){e.n=3;break}return e.n=2,g.A.login();case 2:r=e.v,c=r.success,t=c;case 3:if(l.A.hide(),t){e.n=4;break}return h.A.show("登录失败请重试"),u().navigateBack(),e.a(2);case 4:if(!a){e.n=9;break}if((n||"").startsWith("http")){e.n=5;break}return p.A.navTo(n,{},{navigateType:"redirectTo"}),e.a(2);case 5:for(i=getCurrentPages(),o=i.length,d=null,v=o-1;v>=0;v--)v>=o-2&&((b=i[v]).route=b.route||b.__route__,"pages/webview/index"===b.route&&(d=b));if(!d){e.n=7;break}return m=f.A.getWeappParamsUrl(n),e.n=6,g.A.getH5LoginUrl(m);case 6:w=e.v,l.A.hide(),t&&w?u().setStorageSync("redirectUrl",w):h.A.show("加载失败,请重试~"),u().navigateBack(),e.n=8;break;case 7:x=null===(k=n)||void 0===k?void 0:k.includes("scene_source=wxmini_tab_webview"),p.A.navTo(n,{},{needLogin:!0,navigateType:x?"switchTab":"redirectTo",switchTabPath:x?"pages/ticket-wallet/index":""});case 8:e.n=10;break;case 9:A.A.navigateBack();case 10:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=(0,c.A)((0,s.A)().m((function e(){return(0,s.A)().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,g.A.hasAuthed();case 1:(t=e.v)?a?T():A.A.navigateBack():l.A.hide();case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useReady)((0,c.A)((0,s.A)().m((function t(){var c,i,o;return(0,s.A)().w((function(t){for(;;)switch(t.n){case 0:try{(c=u().getStorageSync(v.A))&&(i=JSON.parse(c)||{},u().setStorageSync(v.A,(0,r.A)((0,r.A)({},i),{},{h5LoginFlag:!1})))}catch(e){}return l.A.hide(),g.A.setWebviewLoginValid(!1),(o=e.returnUrl)&&(o=decodeURIComponent(o),o=f.A.getOriginUrl(o)),(n=o)&&(a=!0),t.n=1,F();case 1:d.A.sendPageEvent("".concat(d.A.spmA,".login.0.0"),"登录页",e);case 2:return t.a(2)}}),t)})))),(0,o.useDidHide)((function(){l.A.hide()})),(0,o.useUnload)((function(){t||g.A.setAuthResult({success:t})})),(0,b.jsxs)(i.Ss,{className:"container",children:[(0,b.jsx)(i._V,{className:"background",src:"https://gw.alicdn.com/tfs/TB17M2gphTpK1RjSZFGXXcHqFXa-750-1334.png",lazyLoad:!0}),(0,b.jsxs)(i.Ss,{className:"content",children:[(0,b.jsx)(i._V,{className:"logo",src:"https://gw.alicdn.com/tfs/TB1x0fdQrvpK1RjSZFqXXcXUVXa-582-192.png"}),"wx"===m?(0,b.jsx)(i.$n,{className:"login-button",openType:"getUserInfo",onGetUserInfo:k,children:w()}):null,(0,b.jsx)(i.EY,{className:"tips",children:"若未绑定大麦账号, 需要绑定手机号"})]}),(0,b.jsxs)(i.Ss,{className:"bottom",children:[(0,b.jsx)(i.Ss,{className:"about",onTap:function(){d.A.sendClickEvent("".concat(d.A.spmA,".login.bottom.daboutdamai"),{clicktitle:"关于大麦"}),A.A.navigateToMiniProgram({appId:"wx5abcf700e248b745",envVersion:"release"})},children:"关于大麦"}),(0,b.jsx)(i.Ss,{className:"phone",onTap:function(){d.A.sendClickEvent("".concat(d.A.spmA,".login.bottom.dcustomer_service"),{clicktitle:"客服电话"}),A.A.makePhoneCall({phoneNumber:"1010-3721"})},children:"客服电话:1010-3721"})]})]})};Page((0,t.eU)(k,"pages/login/index",{root:{cn:[]}},{enablePullDownRefresh:!1,navigationBarTitleText:"",backgroundColor:"#FFFFFF",navigationBarBackgroundColor:"#FFFFFF",usingComponents:{},spmB:"login"}||{}))}},function(e){e.O(0,[6907,8096,2076],(function(){return n=2312,e(e.s=n);var n})),e.O()}]);
|
||||||
1
pages/login/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"enablePullDownRefresh":false,"navigationBarTitleText":"","backgroundColor":"#FFFFFF","navigationBarBackgroundColor":"#FFFFFF","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"},"spmB":"login"}
|
||||||
2
pages/login/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||
1
pages/login/index.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.container{align-items:center;display:flex;flex-direction:column;height:100%;position:relative;width:100%}.container .background{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.container .content{align-items:center;display:flex;flex-direction:column;margin-top:200rpx;position:relative;z-index:1}.container .content .logo{height:128rpx;width:388rpx}.container .content .login-button{background-color:#1aad19;color:#fff;font-size:36rpx;height:90rpx;line-height:90rpx;margin-top:106rpx;width:606rpx}.container .content .tips{color:#999;font-size:28rpx;margin-top:36rpx}.container .bottom{align-items:center;bottom:0rpx;display:flex;flex-direction:column;padding-bottom:80rpx;position:absolute;width:100%;z-index:1}.container .bottom .about{color:#827ab7;font-size:28rpx;line-height:48rpx;text-align:center}.container .bottom .phone{color:#999;font-size:28rpx;line-height:48rpx;text-align:center}
|
||||||
624
pages/mine/index.js
Normal file
@@ -0,0 +1,624 @@
|
|||||||
|
;(wx.webpackJsonp = wx.webpackJsonp || []).push([
|
||||||
|
[2312],
|
||||||
|
{
|
||||||
|
5358: function (t, e, n) {
|
||||||
|
var s = n(4160),
|
||||||
|
r = n(5652),
|
||||||
|
i = n(2555),
|
||||||
|
a = n(4107),
|
||||||
|
c = n(4576),
|
||||||
|
o = n(758),
|
||||||
|
u = n(2573),
|
||||||
|
l = n.n(u),
|
||||||
|
m = n(4269),
|
||||||
|
d = n(4752),
|
||||||
|
f = n(3526),
|
||||||
|
p = n(6070),
|
||||||
|
h = function (t) {
|
||||||
|
var e = t.showSetting,
|
||||||
|
n = t.userInfoData,
|
||||||
|
s = n.userInfo,
|
||||||
|
r = n.statusEntrys,
|
||||||
|
i = n.settingEntry,
|
||||||
|
a = t.userLogin,
|
||||||
|
c = t.onClick
|
||||||
|
if (!s) return null
|
||||||
|
var o = s.imgUrl,
|
||||||
|
u = s.vip,
|
||||||
|
l = s.vtag,
|
||||||
|
d = s.userNick
|
||||||
|
return (0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'mine-head',
|
||||||
|
children: [
|
||||||
|
(0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'user-info-section',
|
||||||
|
children: [
|
||||||
|
(0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'mine-head-avatar',
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m._V, { src: o, className: (0, f.A)('common-img', { 'vip-img': u }), onClick: a }),
|
||||||
|
u ? (0, p.jsx)(m.Ss, { className: 'vip-icon' }) : null,
|
||||||
|
l > '0' ? (0, p.jsx)(m.Ss, { className: 'v-tag' }) : null,
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
(0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'user-info',
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m.Ss, {
|
||||||
|
className: 'user-info-top',
|
||||||
|
onClick: a,
|
||||||
|
children: (0, p.jsx)(m.EY, { className: 'user-info-username', children: d }),
|
||||||
|
}),
|
||||||
|
e
|
||||||
|
? (0, p.jsx)(m.Ss, {
|
||||||
|
className: 'user-info-setting',
|
||||||
|
onClick: function () {
|
||||||
|
c(i)
|
||||||
|
},
|
||||||
|
children: (0, p.jsx)(m.EY, { className: 'user-info-setting-text', children: '设置' }),
|
||||||
|
})
|
||||||
|
: null,
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
(0, p.jsx)(m.Ss, {
|
||||||
|
className: 'user-status',
|
||||||
|
children:
|
||||||
|
null == r
|
||||||
|
? void 0
|
||||||
|
: r.map(function (t, e) {
|
||||||
|
return (0, p.jsxs)(
|
||||||
|
m.Ss,
|
||||||
|
{
|
||||||
|
className: 'user-status-item',
|
||||||
|
onClick: function () {
|
||||||
|
c(t)
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m.EY, { className: 'item-number', children: t.number }),
|
||||||
|
(0, p.jsx)(m.EY, { className: 'item-text', children: t.text }),
|
||||||
|
],
|
||||||
|
},
|
||||||
|
e,
|
||||||
|
)
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
})
|
||||||
|
},
|
||||||
|
x = function (t) {
|
||||||
|
var e = t.fixedEntrys,
|
||||||
|
n = t.onClick
|
||||||
|
if (!e) return null
|
||||||
|
var s = e.topEntryFrist,
|
||||||
|
r = e.topEntrySecond,
|
||||||
|
i = e.entryList
|
||||||
|
return (0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'section-fixed-entry',
|
||||||
|
children: [
|
||||||
|
(0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'fixed-entry-top',
|
||||||
|
children: [
|
||||||
|
s
|
||||||
|
? (0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'fixed-entry-top-item',
|
||||||
|
'data-item': '{{sectionData.topEntryFrist}}',
|
||||||
|
onClick: function () {
|
||||||
|
n(s)
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m._V, { className: 'top-item-icon', src: s.icon }),
|
||||||
|
(0, p.jsx)(m.EY, { className: 'top-item-text', children: s.text }),
|
||||||
|
],
|
||||||
|
})
|
||||||
|
: null,
|
||||||
|
(0, p.jsx)(m.Ss, { className: 'top-item-line' }),
|
||||||
|
r
|
||||||
|
? (0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'fixed-entry-top-item',
|
||||||
|
onClick: function () {
|
||||||
|
n(r)
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m._V, { className: 'top-item-icon', src: r.icon }),
|
||||||
|
(0, p.jsx)(m.EY, { className: 'top-item-text', children: r.text }),
|
||||||
|
],
|
||||||
|
})
|
||||||
|
: null,
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
(0, p.jsx)(m.Ss, { className: 'fixed-entry-center-line' }),
|
||||||
|
(0, p.jsx)(m.Ss, {
|
||||||
|
className: 'fixed-entry-entrys',
|
||||||
|
children: i.map(function (t) {
|
||||||
|
return (0, p.jsxs)(
|
||||||
|
m.Ss,
|
||||||
|
{
|
||||||
|
className: 'entry-item',
|
||||||
|
'data-item': '{{item}}',
|
||||||
|
onClick: function () {
|
||||||
|
n(t)
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m._V, { className: 'entry-item-icon', src: t.icon }),
|
||||||
|
(0, p.jsx)(m.EY, { className: 'entry-item-text', children: t.text }),
|
||||||
|
],
|
||||||
|
},
|
||||||
|
t.text,
|
||||||
|
)
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
})
|
||||||
|
},
|
||||||
|
g = n(8477),
|
||||||
|
v = n(4911),
|
||||||
|
y = n(7422),
|
||||||
|
S = n(469),
|
||||||
|
j = n(4694),
|
||||||
|
N = n(5765),
|
||||||
|
w = '登录/注册',
|
||||||
|
b = 'mine-user-data',
|
||||||
|
k = { type: 'common', text: '设置', spm: 'top.setting', url: '/subPackages/setting/index' }
|
||||||
|
function A(t) {
|
||||||
|
var e,
|
||||||
|
n = new N.g(t)
|
||||||
|
return (
|
||||||
|
!(null === (e = n.host) || void 0 === e || !e.endsWith('damai.cn')) ||
|
||||||
|
('V1' === n.host && ('/ProjectPage' === n.pathname || '/DiscountPage' === n.pathname)) ||
|
||||||
|
!!(n.host && n.host.indexOf('alimebot') > -1)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
function E() {
|
||||||
|
var t = {},
|
||||||
|
e = [
|
||||||
|
{ number: 0, text: '想看的演出', url: '/pages/want2see/index', spm: 'userstatus.dfavorite_perform' },
|
||||||
|
{
|
||||||
|
number: 0,
|
||||||
|
text: '关注',
|
||||||
|
url: 'https://m.damai.cn/shows/mine/follow.html?tab=0&hideTab=true',
|
||||||
|
spm: 'userstatus.dfavorite_person',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
number: 0,
|
||||||
|
text: '我的评价',
|
||||||
|
url: 'https://m.damai.cn/shows/pages/my-comment.html',
|
||||||
|
spm: 'userstatus.dcomment',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
number: 0,
|
||||||
|
text: '优惠券',
|
||||||
|
url: 'https://m.damai.cn/movies/coupons/list.html',
|
||||||
|
spm: 'userstatus.dcoupon',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
n = { imgUrl: 'https://gw.alicdn.com/tfs/TB1OvYEsrj1gK0jSZFuXXcrHpXa-150-150.png', userNick: w }
|
||||||
|
return (t.userInfoData = { statusEntrys: e, userInfo: n, settingEntry: k }), t
|
||||||
|
}
|
||||||
|
function C(t) {
|
||||||
|
var e = t,
|
||||||
|
n = {}
|
||||||
|
if (e) {
|
||||||
|
var s = [
|
||||||
|
{ number: 0, text: '想看的演出', url: '/pages/want2see/index', spm: 'userstatus.dfavorite_perform' },
|
||||||
|
{
|
||||||
|
number: 0,
|
||||||
|
text: '关注',
|
||||||
|
url: 'https://m.damai.cn/shows/mine/follow.html?tab=0&hideTab=true',
|
||||||
|
spm: 'userstatus.dfavorite_person',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
number: 0,
|
||||||
|
text: '我的评价',
|
||||||
|
url: 'https://m.damai.cn/shows/pages/my-comment.html',
|
||||||
|
spm: 'userstatus.dcomment',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
number: 0,
|
||||||
|
text: '优惠券',
|
||||||
|
url: 'https://m.damai.cn/movies/coupons/list.html',
|
||||||
|
spm: 'userstatus.dcoupon',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
;(s[0].number = e.seeShowCount),
|
||||||
|
(s[1].number = e.myFollowCount),
|
||||||
|
(s[2].number = e.commentCount),
|
||||||
|
(s[3].number = e.couponCount),
|
||||||
|
e.certificateInfo &&
|
||||||
|
3 === e.certificateInfo.accountVerifyCode &&
|
||||||
|
(e.certificateInfo.accountVerifyMsg = '已认证'),
|
||||||
|
(n.userInfoData = {
|
||||||
|
statusEntrys: s,
|
||||||
|
userInfo: e.userInfo,
|
||||||
|
certificateInfo: e.certificateInfo,
|
||||||
|
settingEntry: k,
|
||||||
|
})
|
||||||
|
var r = e.dynamicMenu.itemList
|
||||||
|
if (r) {
|
||||||
|
var i,
|
||||||
|
a = [],
|
||||||
|
c = 0,
|
||||||
|
o = (0, S.A)(r)
|
||||||
|
try {
|
||||||
|
for (o.s(); !(i = o.n()).done; ) {
|
||||||
|
var u = i.value
|
||||||
|
if (
|
||||||
|
A(u.targetUrl) &&
|
||||||
|
('在线客服' !== (null == u ? void 0 : u.title) ||
|
||||||
|
('在线客服' === (null == u ? void 0 : u.title) && j.Ay.isWX))
|
||||||
|
) {
|
||||||
|
var l =
|
||||||
|
'在线客服' === (null == u ? void 0 : u.title) ? 'dymenu.donlineservice' : 'dymenu.ditem'.concat(c)
|
||||||
|
a.push({ text: u.title, icon: u.iconUrl, url: u.targetUrl, bubbleText: u.bubbleText, spm: l }), c++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (t) {
|
||||||
|
o.e(t)
|
||||||
|
} finally {
|
||||||
|
o.f()
|
||||||
|
}
|
||||||
|
a.length > 0 && (n.dyEntryData = { items: a })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
function X() {
|
||||||
|
try {
|
||||||
|
var t = l().getStorageSync(b)
|
||||||
|
if (t && t.length > 0) return JSON.parse(t)
|
||||||
|
} catch (t) {}
|
||||||
|
return E()
|
||||||
|
}
|
||||||
|
function D(t) {
|
||||||
|
l().setStorage({ key: b, data: JSON.stringify(t) })
|
||||||
|
}
|
||||||
|
var T = n(3816),
|
||||||
|
I = n(9294),
|
||||||
|
F = n(7884),
|
||||||
|
B = function () {
|
||||||
|
var t = (0, o.useRef)(null),
|
||||||
|
e = (0, o.useRef)(!1),
|
||||||
|
n = (0, o.useState)({ showSetting: !1, mineData: X() }),
|
||||||
|
s = (0, c.A)(n, 2),
|
||||||
|
a = s[0],
|
||||||
|
m = s[1],
|
||||||
|
d = function () {
|
||||||
|
t.current = !1
|
||||||
|
},
|
||||||
|
f = (function () {
|
||||||
|
var t = (0, i.A)(
|
||||||
|
(0, r.A)().m(function t() {
|
||||||
|
var e, n, s, i, a
|
||||||
|
return (0, r.A)().w(function (t) {
|
||||||
|
for (;;)
|
||||||
|
switch (t.n) {
|
||||||
|
case 0:
|
||||||
|
return (t.n = 1), I.A.getUserMyContent()
|
||||||
|
case 1:
|
||||||
|
if (((e = t.v), (n = (0, c.A)(e, 2)), (s = n[0]), (i = n[1]), !s)) {
|
||||||
|
t.n = 2
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return d(), t.a(2)
|
||||||
|
case 2:
|
||||||
|
i && ((a = C(i)), m({ mineData: a, showSetting: !0 }), D(a))
|
||||||
|
case 3:
|
||||||
|
return t.a(2)
|
||||||
|
}
|
||||||
|
}, t)
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
return function () {
|
||||||
|
return t.apply(this, arguments)
|
||||||
|
}
|
||||||
|
})(),
|
||||||
|
p = (function () {
|
||||||
|
var e = (0, i.A)(
|
||||||
|
(0, r.A)().m(function e() {
|
||||||
|
return (0, r.A)().w(function (e) {
|
||||||
|
for (;;)
|
||||||
|
switch (e.n) {
|
||||||
|
case 0:
|
||||||
|
return (e.n = 1), T.A.isLogin()
|
||||||
|
case 1:
|
||||||
|
e.v ? ((t.current = !0), f()) : ((t.current = !1), m({ showSetting: !1, mineData: E() }))
|
||||||
|
case 2:
|
||||||
|
return e.a(2)
|
||||||
|
}
|
||||||
|
}, e)
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
return function () {
|
||||||
|
return e.apply(this, arguments)
|
||||||
|
}
|
||||||
|
})(),
|
||||||
|
h = (function () {
|
||||||
|
var e = (0, i.A)(
|
||||||
|
(0, r.A)().m(function e() {
|
||||||
|
var n, s, i, c
|
||||||
|
return (0, r.A)().w(function (e) {
|
||||||
|
for (;;)
|
||||||
|
switch (e.n) {
|
||||||
|
case 0:
|
||||||
|
if (
|
||||||
|
((s = (null == a ? void 0 : a.mineData) || {}),
|
||||||
|
!1 !== t.current ||
|
||||||
|
(null != s &&
|
||||||
|
s.userInfo &&
|
||||||
|
(null == s || null === (n = s.userInfo) || void 0 === n ? void 0 : n.userNick) !== w))
|
||||||
|
) {
|
||||||
|
e.n = 2
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return (t.current = !0), l().showLoading(), (e.n = 1), T.A.login()
|
||||||
|
case 1:
|
||||||
|
;(i = e.v), (c = i.success), l().hideLoading(), c ? ((t.current = !0), f()) : (t.current = !1)
|
||||||
|
case 2:
|
||||||
|
return e.a(2)
|
||||||
|
}
|
||||||
|
}, e)
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
return function () {
|
||||||
|
return e.apply(this, arguments)
|
||||||
|
}
|
||||||
|
})(),
|
||||||
|
x = function () {
|
||||||
|
return F.X.getMxmAccessToken({ sid: T.A.getSid() })
|
||||||
|
},
|
||||||
|
g = (function () {
|
||||||
|
var t = (0, i.A)(
|
||||||
|
(0, r.A)().m(function t() {
|
||||||
|
var e, n, s, i, a, o, u, l, m, d
|
||||||
|
return (0, r.A)().w(function (t) {
|
||||||
|
for (;;)
|
||||||
|
switch (t.n) {
|
||||||
|
case 0:
|
||||||
|
return (e = ''), (t.n = 1), x()
|
||||||
|
case 1:
|
||||||
|
if (
|
||||||
|
((n = t.v),
|
||||||
|
(s = (0, c.A)(n, 2)),
|
||||||
|
(i = s[0]),
|
||||||
|
(a = s[1]),
|
||||||
|
!i || 'FAIL_SYS_SESSION_EXPIRED' !== i.code)
|
||||||
|
) {
|
||||||
|
t.n = 5
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return (t.n = 2), T.A.login()
|
||||||
|
case 2:
|
||||||
|
if (((o = t.v), !o.success)) {
|
||||||
|
t.n = 4
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return (t.n = 3), x()
|
||||||
|
case 3:
|
||||||
|
;(u = t.v), (l = (0, c.A)(u, 2)), (m = l[0]), (d = l[1]), !m && d && (e = d)
|
||||||
|
case 4:
|
||||||
|
t.n = 6
|
||||||
|
break
|
||||||
|
case 5:
|
||||||
|
!i && a && (e = a)
|
||||||
|
case 6:
|
||||||
|
return t.a(2, e)
|
||||||
|
}
|
||||||
|
}, t)
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
return function () {
|
||||||
|
return t.apply(this, arguments)
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
return (
|
||||||
|
(0, u.useDidShow)(function () {
|
||||||
|
e.current && ((t.current = null), (e.current = !1), p())
|
||||||
|
}),
|
||||||
|
(0, u.useDidHide)(function () {
|
||||||
|
e.current = !0
|
||||||
|
}),
|
||||||
|
(0, o.useEffect)(function () {
|
||||||
|
p()
|
||||||
|
}, []),
|
||||||
|
[{ userData: a, loginRef: t }, h, g]
|
||||||
|
)
|
||||||
|
},
|
||||||
|
_ = '1010-3721',
|
||||||
|
P = {
|
||||||
|
topEntryFrist: {
|
||||||
|
type: 'common',
|
||||||
|
icon: 'https://gw.alicdn.com/tfs/TB13jtRtYj1gK0jSZFuXXcrHpXa-72-72.png',
|
||||||
|
text: '我的订单',
|
||||||
|
url: 'https://m.damai.cn/shows/orders.html',
|
||||||
|
spm: 'list.dorder',
|
||||||
|
},
|
||||||
|
topEntrySecond: {
|
||||||
|
type: 'common',
|
||||||
|
icon: 'https://gw.alicdn.com/tfs/TB1nExMt.T1gK0jSZFhXXaAtVXa-72-72.png',
|
||||||
|
text: '票夹',
|
||||||
|
url: 'https://m.damai.cn/shows/ticket/list.html',
|
||||||
|
spm: 'list.dpiaojia',
|
||||||
|
},
|
||||||
|
entryList: [
|
||||||
|
{
|
||||||
|
type: 'common',
|
||||||
|
icon: 'https://gw.alicdn.com/tfs/TB1GsxwtkL0gK0jSZFAXXcA9pXa-72-72.png',
|
||||||
|
text: '观演人',
|
||||||
|
url: 'https://m.damai.cn/shows/mine/audience.html',
|
||||||
|
spm: 'list.dcontact',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'common',
|
||||||
|
icon: 'https://gw.alicdn.com/tfs/TB1UiVytkT2gK0jSZPcXXcKkpXa-72-72.png',
|
||||||
|
text: '收货地址',
|
||||||
|
url: 'https://m.damai.cn/shows/pages/address-list.html',
|
||||||
|
spm: 'list.dreceipt',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'common',
|
||||||
|
icon: 'https://gw.alicdn.com/tfs/TB1n1JutkL0gK0jSZFtXXXQCXXa-72-72.png',
|
||||||
|
text: '意见反馈',
|
||||||
|
url: 'https://t.damai.cn/yep/page/m/ctup50jlek',
|
||||||
|
spm: 'list.dresponse',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
Y = function () {
|
||||||
|
var t,
|
||||||
|
e = B(),
|
||||||
|
n = (0, c.A)(e, 2),
|
||||||
|
s = n[0].userData,
|
||||||
|
f = n[1],
|
||||||
|
S = (0, o.useRef)(!1),
|
||||||
|
j = (0, u.useRouter)()
|
||||||
|
if (
|
||||||
|
((0, u.usePageScroll)(function (t) {
|
||||||
|
var e = t.scrollTop > 0
|
||||||
|
S.current !== e &&
|
||||||
|
((S.current = e),
|
||||||
|
(function (t) {
|
||||||
|
l().setNavigationBarTitle({ title: t })
|
||||||
|
})(e ? '我的' : ''))
|
||||||
|
}),
|
||||||
|
(0, u.useDidShow)(function () {
|
||||||
|
d.Ay.sendPV(
|
||||||
|
{ spmB: 'mydamai' },
|
||||||
|
(0, a.A)({ _pageRoute: 'pages/mine/index' }, null == j ? void 0 : j.params),
|
||||||
|
)
|
||||||
|
}),
|
||||||
|
!s)
|
||||||
|
)
|
||||||
|
return null
|
||||||
|
var N = s.mineData,
|
||||||
|
w = N.userInfoData,
|
||||||
|
b = N.dyEntryData,
|
||||||
|
k = s.showSetting,
|
||||||
|
A = (function () {
|
||||||
|
var t = (0, i.A)(
|
||||||
|
(0, r.A)().m(function t(e) {
|
||||||
|
var n, s, i
|
||||||
|
return (0, r.A)().w(function (t) {
|
||||||
|
for (;;)
|
||||||
|
switch (t.n) {
|
||||||
|
case 0:
|
||||||
|
if (!(n = (0, a.A)({}, e))) {
|
||||||
|
t.n = 2
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
((s = {}),
|
||||||
|
n.number && n.number > 0 && (s.number = n.number),
|
||||||
|
(i = ''.concat(y.A.spmA, '.').concat('mydamai', '.').concat(n.spm)),
|
||||||
|
(s.spm = i),
|
||||||
|
y.A.sendClickEvent(i, { clicktitle: n.text }),
|
||||||
|
'设置' !== n.text)
|
||||||
|
) {
|
||||||
|
t.n = 1
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return v.A.navTo(n.url), t.a(2)
|
||||||
|
case 1:
|
||||||
|
v.A.navTo(n.url, s)
|
||||||
|
case 2:
|
||||||
|
return t.a(2)
|
||||||
|
}
|
||||||
|
}, t)
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
return function (e) {
|
||||||
|
return t.apply(this, arguments)
|
||||||
|
}
|
||||||
|
})(),
|
||||||
|
E = function () {}
|
||||||
|
return (0, p.jsx)(m.BM, {
|
||||||
|
scrollY: !0,
|
||||||
|
id: 'scroll-view-box',
|
||||||
|
children: (0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'container',
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m.Ss, { className: 'bg' }),
|
||||||
|
(0, p.jsx)(m.Ss, {
|
||||||
|
className: 'top-section',
|
||||||
|
children: (0, p.jsx)(m.Ss, {
|
||||||
|
className: 'section',
|
||||||
|
children: w ? (0, p.jsx)(h, { showSetting: k, onClick: A, userInfoData: w, userLogin: f }) : null,
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
P
|
||||||
|
? (0, p.jsx)(m.Ss, { className: 'section', children: (0, p.jsx)(x, { fixedEntrys: P, onClick: A }) })
|
||||||
|
: null,
|
||||||
|
(null == b || null === (t = b.items) || void 0 === t ? void 0 : t.length) > 0
|
||||||
|
? (0, p.jsx)(m.Ss, {
|
||||||
|
className: 'dy-entry-section',
|
||||||
|
children: (0, p.jsx)(m.Ss, {
|
||||||
|
className: 'dy-entrys',
|
||||||
|
children: b.items.map(function (t) {
|
||||||
|
return (0, p.jsxs)(
|
||||||
|
m.Ss,
|
||||||
|
{
|
||||||
|
className: 'entry-item',
|
||||||
|
onClick: function () {
|
||||||
|
A(t)
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
(0, p.jsx)(m._V, { className: 'entry-item-icon', src: t.icon }),
|
||||||
|
(0, p.jsx)(m.EY, { className: 'entry-item-text', children: t.text }),
|
||||||
|
],
|
||||||
|
},
|
||||||
|
t.text,
|
||||||
|
)
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
: null,
|
||||||
|
(0, p.jsxs)(m.Ss, {
|
||||||
|
className: 'mine-footer',
|
||||||
|
children: [
|
||||||
|
(0, p.jsxs)('text', {
|
||||||
|
className: 'mine-footer-version',
|
||||||
|
onClick: E,
|
||||||
|
children: ['版本号 ', (0, g.ZP)()],
|
||||||
|
}),
|
||||||
|
(0, p.jsxs)('text', {
|
||||||
|
className: 'mine-footer-phone',
|
||||||
|
onClick: function () {
|
||||||
|
l().makePhoneCall({ phoneNumber: _.replace(/[^\d]/g, '') })
|
||||||
|
},
|
||||||
|
children: ['客服电话:', _],
|
||||||
|
}),
|
||||||
|
(0, p.jsx)(m.Ss, {
|
||||||
|
className: 'test-view',
|
||||||
|
children: (0, p.jsx)(m.Ss, { className: 'test-block', onClick: E }),
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
Page(
|
||||||
|
(0, s.eU)(
|
||||||
|
Y,
|
||||||
|
'pages/mine/index',
|
||||||
|
{ root: { cn: [] } },
|
||||||
|
{
|
||||||
|
enablePullDownRefresh: !1,
|
||||||
|
navigationBarTitleText: '',
|
||||||
|
navigationBarBackgroundColor: '#FFFFFF',
|
||||||
|
backgroundTextStyle: 'light',
|
||||||
|
navigationBarTextStyle: 'black',
|
||||||
|
spmB: 'mydamai',
|
||||||
|
} || {},
|
||||||
|
),
|
||||||
|
)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
function (t) {
|
||||||
|
t.O(0, [6907, 8096, 2076], function () {
|
||||||
|
return (e = 5358), t((t.s = e))
|
||||||
|
var e
|
||||||
|
}),
|
||||||
|
t.O()
|
||||||
|
},
|
||||||
|
])
|
||||||
1
pages/mine/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"enablePullDownRefresh":false,"navigationBarTitleText":"","navigationBarBackgroundColor":"#FFFFFF","backgroundTextStyle":"light","navigationBarTextStyle":"black","spmB":"mydamai","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||||
2
pages/mine/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||
1
pages/mine/index.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.mine-head{display:flex;flex-direction:column;margin-top:24rpx;position:relative;width:100%}.user-info-section{display:flex;flex-direction:row;margin-top:20rpx;width:100%}.mine-head-avatar{display:flex;flex-direction:column;margin-left:42rpx;position:relative}.mine-head-avatar .common-img{border-radius:50%;height:100rpx;width:100rpx}.mine-head-avatar .vip-img{border:6rpx solid #d49977;margin-top:20rpx}.mine-head-avatar .vip-icon{background-image:url(https://gw.alicdn.com/tfs/TB1RvOMhQL0gK0jSZFtXXXQCXXa-75-72.png);background-size:100% 100%;height:40rpx;position:absolute;right:8rpx;top:0;width:40rpx}.mine-head-avatar .v-tag{background:url(https://gw.alicdn.com/tfs/TB1nCwSq1T2gK0jSZFvXXXnFXXa-72-72.png);background-size:contain;bottom:4rpx;height:32rpx;position:absolute;right:0;width:32rpx}.user-info{align-items:center;display:flex;flex:1;justify-content:space-between;margin-left:30rpx;margin-right:42rpx}.user-info .user-info-top{align-items:center;display:flex;flex-direction:row}.user-info .user-info-top .user-info-username{color:#000;font-size:40rpx;font-weight:500;line-height:40rpx;max-width:420rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-info .user-info-top .vip-level-icon{height:33rpx;margin-left:10rpx;width:120rpx}.user-info .user-info-auth{align-items:center;display:flex;flex-direction:row}.user-info .user-info-setting{align-items:center;display:flex;height:100%;justify-content:flex-end;width:120rpx}.user-info .user-info-setting .user-info-setting-text{align-items:center;background-color:#ebebf2;border-radius:40rpx;color:#000;display:flex;font-family:PingFangSC-Regular,sans-serif;font-size:24rpx;justify-content:center;padding:16rpx 36rpx}.user-status{display:flex;flex-direction:row;justify-content:space-between;margin:48rpx 42rpx 21rpx}.user-status .user-status-item{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center}.user-status .user-status-item .item-number{color:#000;font-size:40rpx;font-weight:500;line-height:40rpx}.user-status .user-status-item .item-text{color:#000;font-family:PingFangSC-Regular,sans-serif;font-size:24rpx;line-height:26rpx;margin-top:10rpx}.section-fixed-entry{background:#fff;border:0 solid rgba(0,0,0,.05);border-radius:24rpx;box-shadow:0 6rpx 24rpx 0 rgba(106,122,153,.15);margin:21rpx 42rpx}.section-fixed-entry .fixed-entry-top{align-items:center;display:flex;flex-direction:row;height:116rpx}.section-fixed-entry .fixed-entry-top .fixed-entry-top-item{align-items:center;display:flex;flex:1;justify-content:center}.section-fixed-entry .fixed-entry-top .fixed-entry-top-item .top-item-icon{height:48rpx;width:48rpx}.section-fixed-entry .fixed-entry-top .fixed-entry-top-item .top-item-text{color:#000;font-size:32rpx;font-weight:500;margin-left:6rpx}.section-fixed-entry .fixed-entry-top .top-item-line{border-right:2rpx solid #eee;height:36rpx}.section-fixed-entry .fixed-entry-center-line{border-top:1rpx solid #eee;margin:0 36rpx}.section-fixed-entry .fixed-entry-entrys{display:flex;flex-direction:row;flex-wrap:wrap}.section-fixed-entry .fixed-entry-entrys .entry-item{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:36rpx 0rpx;width:33.333%}.section-fixed-entry .fixed-entry-entrys .entry-item .entry-item-icon{height:48rpx;width:48rpx}.section-fixed-entry .fixed-entry-entrys .entry-item .entry-item-text{color:#000;font-family:PingFangSC-Regular,sans-serif;font-size:24rpx;margin-top:12rpx}.container{display:block}.container,.container .bg{background-image:linear-gradient(180deg,#fff,#f6f7f8);height:100%;width:100%}.container .bg{left:0;position:fixed;top:0;z-index:-100}.top-section,.top-section .section{position:relative}.section,.top-section,.top-section .section{display:flex;flex-direction:column;width:100%}.ad-banner{height:192rpx;width:100%}.dy-entry-section{background:#fff;border:0 solid rgba(0,0,0,.05);border-radius:24rpx;box-shadow:0 6rpx 24rpx 0 rgba(106,122,153,.15);margin:21rpx 42rpx}.dy-entry-section .dy-entrys{display:flex;flex-direction:row;flex-wrap:wrap;padding:16rpx 0}.dy-entry-section .dy-entrys .entry-item{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:18rpx 0rpx;width:25%}.dy-entry-section .dy-entrys .entry-item .entry-item-icon{height:64rpx;width:64rpx}.dy-entry-section .dy-entrys .entry-item .entry-item-text{color:#000;font-family:PingFangSC-Regular,sans-serif;font-size:24rpx;margin-top:12rpx}.mine-footer{align-items:center;display:flex;flex-direction:column;height:240rpx;width:100%}.mine-footer .mine-footer-version{color:#bbb;font-size:24rpx;margin-top:40rpx}.mine-footer .mine-footer-phone{color:#bbb;font-size:24rpx;margin-top:10rpx}.test-view{display:flex;flex-direction:column;width:100%}.test-view .test-block{height:96rpx;width:200rpx}
|
||||||
1
pages/notification/index.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(wx.webpackJsonp=wx.webpackJsonp||[]).push([[7444],{7411:function(n,a,e){var t=e(4160),i=e(4107),o=e(2573),r=e(4911),c=e(6070);Page((0,t.eU)((function(){var n=((0,o.useRouter)()||{}).params,a=void 0===n?{}:n;return r.A.navTo("/subPackages/notification/index",(0,i.A)({},a),{redirect:!0}),(0,c.jsx)(c.Fragment,{})}),"pages/notification/index",{root:{cn:[]}},{enablePullDownRefresh:!1,navigationBarBackgroundColor:"#ffffff",backgroundTextStyle:"light",navigationBarTextStyle:"black",navigationBarTitleText:"活动提醒"}||{}))}},function(n){n.O(0,[6907,8096,2076],(function(){return a=7411,n(n.s=a);var a})),n.O()}]);
|
||||||
1
pages/notification/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"enablePullDownRefresh":false,"navigationBarBackgroundColor":"#ffffff","backgroundTextStyle":"light","navigationBarTextStyle":"black","navigationBarTitleText":"活动提醒","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||||
2
pages/notification/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||
0
pages/notification/index.wxss
Normal file
1
pages/others/orders/index.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2830],{5973:function(n,t,i){var s=i(5652),r=i(2555),a=i(3816),o="https://m.damai.cn/damai/order/list/index.html";Page({data:{isLogin:!0,orderListUrl:""},onReady:function(){var n=this;return(0,r.A)((0,s.A)().m((function t(){return(0,s.A)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,a.A.isLogin();case 1:t.v?n.setData({isLogin:!0,orderListUrl:o}):n.goLogin();case 2:return t.a(2)}}),t)})))()},handleTapLogin:function(){var n=this;return(0,r.A)((0,s.A)().m((function t(){var i,r;return(0,s.A)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,a.A.login();case 1:i=t.v,r=i.success,n.loginCallback({success:r});case 2:return t.a(2)}}),t)})))()},loginCallback:function(n){n.success&&this.setData({isLogin:!0,orderListUrl:o})},goLogin:function(){var n=this;a.A.login().then((function(t){t.success?n.setData({isLogin:!0,orderListUrl:o}):n.setData({isLogin:!1,orderListUrl:""})})).catch((function(){n.setData({isLogin:!1,orderListUrl:""})}))}})}},function(n){n.O(0,[6907,8096,2076],(function(){return t=5973,n(n.s=t);var t})),n.O()}]);
|
||||||
1
pages/others/orders/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"navigationBarTitleText":"订单列表","usingComponents":{"custom-wrapper":"../../../custom-wrapper"}}
|
||||||
11
pages/others/orders/index.wxml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<view>
|
||||||
|
<view class="empty-view-container" wx:if="{{!isLogin}}">
|
||||||
|
<view class="logo"></view>
|
||||||
|
<view class="slogan">买票上大麦</view>
|
||||||
|
<view class="subtitle">官方渠道票源 现场演出等你哦</view>
|
||||||
|
<view catchtap="handleTapLogin" class="find-more">
|
||||||
|
登录
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<web-view src="{{orderListUrl}}" wx:if="{{isLogin}}"></web-view>
|
||||||
|
</view>
|
||||||
1
pages/others/orders/index.wxss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.empty-view-container{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;width:100vw}.empty-view-container .logo{background-image:url(https://gw.alicdn.com/tfs/TB10.98eubviK0jSZFNXXaApXXa-236-194.png);background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:110rpx;height:146rpx;position:relative;width:130rpx}.empty-view-container .slogan{color:#383838;font-family:PingFangSC-Regular,sans-serif;font-size:32rpx}.empty-view-container .subtitle{color:#bbb;font-family:PingFangSC-Light,sans-serif;font-size:24rpx;letter-spacing:1.4rpx;line-height:42rpx;margin-top:10rpx;text-align:center}.empty-view-container .find-more{background-image:linear-gradient(90deg,#ff7f81,#ff2d79);border-radius:25rpx;box-shadow:0 4rpx 8rpx 0 rgba(255,45,121,.3);color:#fff;font-family:PingFangSC-Medium,sans-serif;font-size:26rpx;height:50rpx;line-height:50rpx;margin-top:60rpx;padding:10rpx 20rpx;text-align:center}
|
||||||
277
pages/pay/index.js
Normal file
@@ -0,0 +1,277 @@
|
|||||||
|
;(wx.webpackJsonp = wx.webpackJsonp || []).push([
|
||||||
|
[8971],
|
||||||
|
{
|
||||||
|
4785: function (e, n, a) {
|
||||||
|
var r = a(4160),
|
||||||
|
o = a(5652),
|
||||||
|
t = a(4107),
|
||||||
|
c = a(2555),
|
||||||
|
s = a(8878),
|
||||||
|
i = a.n(s),
|
||||||
|
u = a(4269),
|
||||||
|
d = a(2573),
|
||||||
|
l = a.n(d),
|
||||||
|
p = a(4752),
|
||||||
|
m = a(3150),
|
||||||
|
f = a(3716),
|
||||||
|
v = a(4576),
|
||||||
|
g = a(9933),
|
||||||
|
h = a(2012),
|
||||||
|
S = a(5602),
|
||||||
|
_ = a(5765),
|
||||||
|
y = a(4911),
|
||||||
|
w = function () {
|
||||||
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '支付失败'
|
||||||
|
l().showToast({ title: e, icon: 'none' }), l().navigateBack()
|
||||||
|
},
|
||||||
|
A = function (e, n, a, r) {
|
||||||
|
var o = 'bug' === e ? 2 : 1,
|
||||||
|
t = 'https://m.damai.cn/shows/orders.html',
|
||||||
|
c = function (e) {
|
||||||
|
l().navigateBack({
|
||||||
|
delta: o,
|
||||||
|
complete: function () {
|
||||||
|
y.A.navTo(e, {}, { needLogin: !0, navigateType: 'redirectTo' })
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
s = function (e) {
|
||||||
|
l().showToast({ title: '支付失败', icon: 'none' })
|
||||||
|
var n = r || t
|
||||||
|
if ('requestPayment:fail cancel' === (null == e ? void 0 : e.errMsg)) {
|
||||||
|
if (!a) return l().navigateBack({ delta: 1 })
|
||||||
|
n = a
|
||||||
|
}
|
||||||
|
c(n)
|
||||||
|
}
|
||||||
|
l().requestPayment({
|
||||||
|
signType: 'MD5',
|
||||||
|
timeStamp: n.timeStamp + '',
|
||||||
|
nonceStr: n.nonceStr,
|
||||||
|
package: n.package,
|
||||||
|
paySign: n.paySign,
|
||||||
|
success: function (e) {
|
||||||
|
'requestPayment:ok' === e.errMsg ? (l().showToast({ title: '支付成功', icon: 'none' }), c(r || t)) : s(e)
|
||||||
|
},
|
||||||
|
fail: s,
|
||||||
|
})
|
||||||
|
},
|
||||||
|
I = function (e) {
|
||||||
|
var n,
|
||||||
|
a,
|
||||||
|
r = (function (e) {
|
||||||
|
var n = e.code,
|
||||||
|
a = { code: n, message: e.message }
|
||||||
|
switch (n) {
|
||||||
|
case 'MAPIE97003':
|
||||||
|
case 'FAIL_BIZ_UC_FAIL_SYS_SESSION_EXPIRED':
|
||||||
|
case 'FAIL_SYS_SESSION_EXPIRED':
|
||||||
|
return a
|
||||||
|
case 'P-10000-11-16-013':
|
||||||
|
case 'P-10000-11-16-014':
|
||||||
|
case 'P-10000-11-17-016':
|
||||||
|
case 'P-10000-11-17-017':
|
||||||
|
case 'P-10000-11-17-018':
|
||||||
|
case 'P-10000-11-17-019':
|
||||||
|
case 'P-10000-11-17-020':
|
||||||
|
case 'P-10000-11-17-021':
|
||||||
|
case 'FAIL_SYS_REQUEST_QUEUED':
|
||||||
|
return (a.code = n), (a.message = '亲,同一时间下单人数过多,建议您稍后再试'), a
|
||||||
|
case 'B-00203-200-421':
|
||||||
|
f.A.clearCache()
|
||||||
|
default:
|
||||||
|
return a
|
||||||
|
}
|
||||||
|
})(e),
|
||||||
|
o = (null == r ? void 0 : r.message) || '小二很忙,请稍后再试吧~',
|
||||||
|
t = null == r || null === (n = r.code) || void 0 === n ? void 0 : n.split('-')
|
||||||
|
switch ((null == t || null === (a = t[2]) || void 0 === a ? void 0 : a[0]) || '1') {
|
||||||
|
case '2':
|
||||||
|
case '3':
|
||||||
|
l().showModal({
|
||||||
|
content: o,
|
||||||
|
cancelText: '我知道了',
|
||||||
|
confirmText: '重新选购',
|
||||||
|
success: function (e) {
|
||||||
|
var n = e.confirm,
|
||||||
|
a = e.cancel
|
||||||
|
n && l().navigateBack({ delta: 2 }), a && l().navigateBack()
|
||||||
|
},
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case '4':
|
||||||
|
l().showModal({
|
||||||
|
showCancel: !1,
|
||||||
|
content: o,
|
||||||
|
confirmText: '去支付',
|
||||||
|
success: function (e) {
|
||||||
|
e.confirm &&
|
||||||
|
l().navigateBack({
|
||||||
|
delta: 2,
|
||||||
|
complete: function () {
|
||||||
|
y.A.navTo(
|
||||||
|
(0, h.Jv)({ page: 'shows_orders', query: { spm: 'a2obt.orderconfirm.bottom.dconfirm' } }),
|
||||||
|
{},
|
||||||
|
{ needLogin: !0, navigateType: 'redirectTo' },
|
||||||
|
)
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case '1':
|
||||||
|
default:
|
||||||
|
return (
|
||||||
|
l().showToast({ title: o, icon: 'none' }),
|
||||||
|
void setTimeout(function () {
|
||||||
|
return l().navigateBack()
|
||||||
|
}, 1e3)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
T = function (e, n, a) {
|
||||||
|
var r,
|
||||||
|
o = n || {},
|
||||||
|
t = o.backUrl,
|
||||||
|
c = o.nextUrl,
|
||||||
|
s = o.bizOrderId,
|
||||||
|
i = o.alipayWapCashierUrl,
|
||||||
|
u = new _.g(t),
|
||||||
|
d = (null == u || null === (r = u.params) || void 0 === r ? void 0 : r.orderId) || '',
|
||||||
|
l = t && d && '0' !== d ? (0, g.g)(t, {}, a) : (0, g.g)(t, { orderId: s }),
|
||||||
|
p = (0, h.Jv)({ page: 'shows_order', query: { orderId: s, spm: 'a2obt.orderconfirm.bottom.dconfirm' } })
|
||||||
|
setTimeout(function () {
|
||||||
|
if (c)
|
||||||
|
try {
|
||||||
|
var n = JSON.parse(decodeURIComponent(i))
|
||||||
|
A(e, n, p, l)
|
||||||
|
} catch (e) {
|
||||||
|
;(0, f.V)('pay_parse_params_error', e), w()
|
||||||
|
}
|
||||||
|
else y.A.navTo(p, {}, { needLogin: !0, navigateType: 'redirectTo' })
|
||||||
|
}, 400)
|
||||||
|
},
|
||||||
|
k = (function () {
|
||||||
|
var e = (0, c.A)(
|
||||||
|
(0, o.A)().m(function e(n) {
|
||||||
|
var a, r, t, c, s
|
||||||
|
return (0, o.A)().w(function (e) {
|
||||||
|
for (;;)
|
||||||
|
switch (e.n) {
|
||||||
|
case 0:
|
||||||
|
return l().showLoading(), (e.n = 1), S.A.createOrder(n)
|
||||||
|
case 1:
|
||||||
|
;(a = e.v),
|
||||||
|
(r = (0, v.A)(a, 2)),
|
||||||
|
(t = r[0]),
|
||||||
|
(c = r[1]),
|
||||||
|
l().hideLoading(),
|
||||||
|
t ? I(t) : T(n.from, c, null == n || null === (s = n.ext) || void 0 === s ? void 0 : s.prevUrl)
|
||||||
|
case 2:
|
||||||
|
return e.a(2)
|
||||||
|
}
|
||||||
|
}, e)
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
return function (n) {
|
||||||
|
return e.apply(this, arguments)
|
||||||
|
}
|
||||||
|
})(),
|
||||||
|
U = a(6070)
|
||||||
|
Page(
|
||||||
|
(0, r.eU)(
|
||||||
|
function () {
|
||||||
|
var e = (0, d.useRouter)(),
|
||||||
|
n = (null == e ? void 0 : e.params) || {},
|
||||||
|
a = n.len,
|
||||||
|
r = n.ext,
|
||||||
|
s = n.from,
|
||||||
|
v = n.params,
|
||||||
|
g = n.cancelUrl,
|
||||||
|
h = n.callbackUrl
|
||||||
|
return (
|
||||||
|
(0, d.useLoad)(
|
||||||
|
(0, c.A)(
|
||||||
|
(0, o.A)().m(function e() {
|
||||||
|
var n, c, u, d, S, _, y, I, T
|
||||||
|
return (0, o.A)().w(
|
||||||
|
function (e) {
|
||||||
|
for (;;)
|
||||||
|
switch ((e.p = e.n)) {
|
||||||
|
case 0:
|
||||||
|
if ((p.Ay.sendPV({}, { _pageRoute: 'pages/pay/index' }), !a || !r)) {
|
||||||
|
e.n = 5
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if (((n = v.length), Number(a) === n)) {
|
||||||
|
e.n = 1
|
||||||
|
break
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
(c = l().getDeviceInfo()),
|
||||||
|
(0, f.V)('pay_params_cutoff', { len: a, info: c, paramsLen: n }),
|
||||||
|
w(),
|
||||||
|
e.a(2)
|
||||||
|
)
|
||||||
|
case 1:
|
||||||
|
return (
|
||||||
|
(e.p = 1),
|
||||||
|
(u = JSON.parse(i().decompressFromEncodedURIComponent(r))),
|
||||||
|
(d = JSON.parse(i().decompressFromEncodedURIComponent(v))),
|
||||||
|
(S = (u || {}).itemId),
|
||||||
|
(e.n = 2),
|
||||||
|
f.A.getWasmHeader(S)
|
||||||
|
)
|
||||||
|
case 2:
|
||||||
|
;(_ = e.v),
|
||||||
|
(y = JSON.stringify(
|
||||||
|
(0, t.A)((0, t.A)({}, _), JSON.parse((null == d ? void 0 : d.feature) || '{}')),
|
||||||
|
)),
|
||||||
|
k({ from: s, ext: u, data: (0, t.A)((0, t.A)({}, d), {}, { feature: y }) }),
|
||||||
|
(e.n = 4)
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
;(e.p = 3),
|
||||||
|
(T = e.v),
|
||||||
|
(0, m.ZV)(T),
|
||||||
|
(0, f.V)('pay_wasm_parse_error', { len: a, ext: r, params: v, error: T }),
|
||||||
|
w()
|
||||||
|
case 4:
|
||||||
|
e.n = 6
|
||||||
|
break
|
||||||
|
case 5:
|
||||||
|
try {
|
||||||
|
;(I = JSON.parse(decodeURIComponent(decodeURIComponent(v)))),
|
||||||
|
A(s, I, decodeURIComponent(g || ''), decodeURIComponent(h || ''))
|
||||||
|
} catch (e) {
|
||||||
|
;(0, m.ZV)(e), (0, f.V)('pay_common_parse_error', { err: e, params: v }), w()
|
||||||
|
}
|
||||||
|
case 6:
|
||||||
|
return e.a(2)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
e,
|
||||||
|
null,
|
||||||
|
[[1, 3]],
|
||||||
|
)
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(0, U.jsx)(u.Ss, {})
|
||||||
|
)
|
||||||
|
},
|
||||||
|
'pages/pay/index',
|
||||||
|
{ root: { cn: [] } },
|
||||||
|
{ navigationBarTitleText: '', spmB: 'pay' } || {},
|
||||||
|
),
|
||||||
|
)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
function (e) {
|
||||||
|
e.O(0, [6907, 8096, 2076], function () {
|
||||||
|
return (n = 4785), e((e.s = n))
|
||||||
|
var n
|
||||||
|
}),
|
||||||
|
e.O()
|
||||||
|
},
|
||||||
|
])
|
||||||
1
pages/pay/index.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"navigationBarTitleText":"","spmB":"pay","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
|
||||||
2
pages/pay/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<import src="../../base.wxml"></import>
|
||||||
|
<template is="taro_tmpl" data="{{root:root}}"></template>
|
||||||