commit 1d65a849fd615fa501ab91e95c6caac89172d55a Author: iuu <2167162990@qq.com> Date: Thu Aug 22 12:53:28 2024 +0800 init diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/arrayLikeToArray.js b/wx05cb767e6530b48f/@babel/runtime/helpers/arrayLikeToArray.js new file mode 100644 index 0000000..1c5f132 --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/arrayLikeToArray.js @@ -0,0 +1,7 @@ +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; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/arrayWithoutHoles.js b/wx05cb767e6530b48f/@babel/runtime/helpers/arrayWithoutHoles.js new file mode 100644 index 0000000..1a850a8 --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/arrayWithoutHoles.js @@ -0,0 +1,7 @@ +var arrayLikeToArray = require("./arrayLikeToArray"); + +function _arrayWithoutHoles(r) { + if (Array.isArray(r)) return arrayLikeToArray(r); +} + +module.exports = _arrayWithoutHoles; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/asyncToGenerator.js b/wx05cb767e6530b48f/@babel/runtime/helpers/asyncToGenerator.js new file mode 100644 index 0000000..080f2bb --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/asyncToGenerator.js @@ -0,0 +1,26 @@ +function asyncGeneratorStep(n, e, r, t, o, a, c) { + try { + var i = n[a](c), u = i.value; + } catch (n) { + return void r(n); + } + i.done ? e(u) : Promise.resolve(u).then(t, o); +} + +function _asyncToGenerator(n) { + return function() { + var e = this, r = arguments; + return new Promise(function(t, o) { + var a = n.apply(e, r); + function c(n) { + asyncGeneratorStep(a, t, o, c, i, "next", n); + } + function i(n) { + asyncGeneratorStep(a, t, o, c, i, "throw", n); + } + c(void 0); + }); + }; +} + +module.exports = _asyncToGenerator; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/defineProperty.js b/wx05cb767e6530b48f/@babel/runtime/helpers/defineProperty.js new file mode 100644 index 0000000..6a29aa9 --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/defineProperty.js @@ -0,0 +1,10 @@ +function _defineProperty(e, r, n) { + return r in e ? Object.defineProperty(e, r, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = n, e; +} + +module.exports = _defineProperty; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/interopRequireDefault.js b/wx05cb767e6530b48f/@babel/runtime/helpers/interopRequireDefault.js new file mode 100644 index 0000000..44ddf0a --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/interopRequireDefault.js @@ -0,0 +1,7 @@ +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { + default: e + }; +} + +module.exports = _interopRequireDefault; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/iterableToArray.js b/wx05cb767e6530b48f/@babel/runtime/helpers/iterableToArray.js new file mode 100644 index 0000000..0332bea --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/iterableToArray.js @@ -0,0 +1,5 @@ +function _iterableToArray(r) { + if ("undefined" != typeof Symbol && Symbol.iterator in Object(r)) return Array.from(r); +} + +module.exports = _iterableToArray; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/nonIterableSpread.js b/wx05cb767e6530b48f/@babel/runtime/helpers/nonIterableSpread.js new file mode 100644 index 0000000..bfc8a87 --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/nonIterableSpread.js @@ -0,0 +1,5 @@ +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; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/toConsumableArray.js b/wx05cb767e6530b48f/@babel/runtime/helpers/toConsumableArray.js new file mode 100644 index 0000000..3eaf17a --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/toConsumableArray.js @@ -0,0 +1,7 @@ +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; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/typeof.js b/wx05cb767e6530b48f/@babel/runtime/helpers/typeof.js new file mode 100644 index 0000000..0a7d54d --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/typeof.js @@ -0,0 +1,9 @@ +function _typeof(o) { + return "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? module.exports = _typeof = function(o) { + return typeof o; + } : module.exports = _typeof = function(o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, _typeof(o); +} + +module.exports = _typeof; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/helpers/unsupportedIterableToArray.js b/wx05cb767e6530b48f/@babel/runtime/helpers/unsupportedIterableToArray.js new file mode 100644 index 0000000..8ced7d7 --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/helpers/unsupportedIterableToArray.js @@ -0,0 +1,11 @@ +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; \ No newline at end of file diff --git a/wx05cb767e6530b48f/@babel/runtime/regenerator.js b/wx05cb767e6530b48f/@babel/runtime/regenerator.js new file mode 100644 index 0000000..a78ec5e --- /dev/null +++ b/wx05cb767e6530b48f/@babel/runtime/regenerator.js @@ -0,0 +1,273 @@ +!function(t) { + "use strict"; + var r, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", c = o.toStringTag || "@@toStringTag", u = "object" == typeof module, h = t.regeneratorRuntime; + if (h) u && (module.exports = h); else { + (h = t.regeneratorRuntime = u ? module.exports : {}).wrap = w; + var f = "suspendedStart", s = "suspendedYield", l = "executing", p = "completed", y = {}, v = {}; + v[i] = function() { + return this; + }; + var d = Object.getPrototypeOf, g = d && d(d(P([]))); + g && g !== e && n.call(g, i) && (v = g); + var m = b.prototype = x.prototype = Object.create(v); + E.prototype = m.constructor = b, b.constructor = E, b[c] = E.displayName = "GeneratorFunction", + h.isGeneratorFunction = function(t) { + var r = "function" == typeof t && t.constructor; + return !!r && (r === E || "GeneratorFunction" === (r.displayName || r.name)); + }, h.mark = function(t) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t, b) : (t.__proto__ = b, c in t || (t[c] = "GeneratorFunction")), + t.prototype = Object.create(m), t; + }, h.awrap = function(t) { + return { + __await: t + }; + }, _(j.prototype), j.prototype[a] = function() { + return this; + }, h.AsyncIterator = j, h.async = function(t, r, e, n) { + var o = new j(w(t, r, e, n)); + return h.isGeneratorFunction(r) ? o : o.next().then(function(t) { + return t.done ? t.value : o.next(); + }); + }, _(m), m[c] = "Generator", m[i] = function() { + return this; + }, m.toString = function() { + return "[object Generator]"; + }, h.keys = function(t) { + var r = []; + for (var e in t) r.push(e); + return r.reverse(), function e() { + for (;r.length; ) { + var n = r.pop(); + if (n in t) return e.value = n, e.done = !1, e; + } + return e.done = !0, e; + }; + }, h.values = P, N.prototype = { + constructor: N, + reset: function(t) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = r, this.done = !1, this.delegate = null, + this.method = "next", this.arg = r, this.tryEntries.forEach(G), !t) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = r); + }, + stop: function() { + this.done = !0; + var t = this.tryEntries[0].completion; + if ("throw" === t.type) throw t.arg; + return this.rval; + }, + dispatchException: function(t) { + if (this.done) throw t; + var e = this; + function o(n, o) { + return c.type = "throw", c.arg = t, e.next = n, o && (e.method = "next", e.arg = r), + !!o; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var a = this.tryEntries[i], c = a.completion; + if ("root" === a.tryLoc) return o("end"); + if (a.tryLoc <= this.prev) { + var u = n.call(a, "catchLoc"), h = n.call(a, "finallyLoc"); + if (u && h) { + if (this.prev < a.catchLoc) return o(a.catchLoc, !0); + if (this.prev < a.finallyLoc) return o(a.finallyLoc); + } else if (u) { + if (this.prev < a.catchLoc) return o(a.catchLoc, !0); + } else { + if (!h) throw new Error("try statement without catch or finally"); + if (this.prev < a.finallyLoc) return o(a.finallyLoc); + } + } + } + }, + abrupt: function(t, r) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var o = this.tryEntries[e]; + if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { + var i = o; + break; + } + } + i && ("break" === t || "continue" === t) && i.tryLoc <= r && r <= i.finallyLoc && (i = null); + var a = i ? i.completion : {}; + return a.type = t, a.arg = r, i ? (this.method = "next", this.next = i.finallyLoc, + y) : this.complete(a); + }, + complete: function(t, r) { + if ("throw" === t.type) throw t.arg; + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, + this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), + y; + }, + finish: function(t) { + for (var r = this.tryEntries.length - 1; r >= 0; --r) { + var e = this.tryEntries[r]; + if (e.finallyLoc === t) return this.complete(e.completion, e.afterLoc), G(e), y; + } + }, + catch: function(t) { + for (var r = this.tryEntries.length - 1; r >= 0; --r) { + var e = this.tryEntries[r]; + if (e.tryLoc === t) { + var n = e.completion; + if ("throw" === n.type) { + var o = n.arg; + G(e); + } + return o; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function(t, e, n) { + return this.delegate = { + iterator: P(t), + resultName: e, + nextLoc: n + }, "next" === this.method && (this.arg = r), y; + } + }; + } + function w(t, r, e, n) { + var o = r && r.prototype instanceof x ? r : x, i = Object.create(o.prototype), a = new N(n || []); + return i._invoke = function(t, r, e) { + var n = f; + return function(o, i) { + if (n === l) throw new Error("Generator is already running"); + if (n === p) { + if ("throw" === o) throw i; + return F(); + } + for (e.method = o, e.arg = i; ;) { + var a = e.delegate; + if (a) { + var c = O(a, e); + if (c) { + if (c === y) continue; + return c; + } + } + if ("next" === e.method) e.sent = e._sent = e.arg; else if ("throw" === e.method) { + if (n === f) throw n = p, e.arg; + e.dispatchException(e.arg); + } else "return" === e.method && e.abrupt("return", e.arg); + n = l; + var u = L(t, r, e); + if ("normal" === u.type) { + if (n = e.done ? p : s, u.arg === y) continue; + return { + value: u.arg, + done: e.done + }; + } + "throw" === u.type && (n = p, e.method = "throw", e.arg = u.arg); + } + }; + }(t, e, a), i; + } + function L(t, r, e) { + try { + return { + type: "normal", + arg: t.call(r, e) + }; + } catch (t) { + return { + type: "throw", + arg: t + }; + } + } + function x() {} + function E() {} + function b() {} + function _(t) { + [ "next", "throw", "return" ].forEach(function(r) { + t[r] = function(t) { + return this._invoke(r, t); + }; + }); + } + function j(t) { + var r; + this._invoke = function(e, o) { + function i() { + return new Promise(function(r, i) { + !function r(e, o, i, a) { + var c = L(t[e], t, o); + if ("throw" !== c.type) { + var u = c.arg, h = u.value; + return h && "object" == typeof h && n.call(h, "__await") ? Promise.resolve(h.__await).then(function(t) { + r("next", t, i, a); + }, function(t) { + r("throw", t, i, a); + }) : Promise.resolve(h).then(function(t) { + u.value = t, i(u); + }, function(t) { + return r("throw", t, i, a); + }); + } + a(c.arg); + }(e, o, r, i); + }); + } + return r = r ? r.then(i, i) : i(); + }; + } + function O(t, e) { + var n = t.iterator[e.method]; + if (n === r) { + if (e.delegate = null, "throw" === e.method) { + if (t.iterator.return && (e.method = "return", e.arg = r, O(t, e), "throw" === e.method)) return y; + e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return y; + } + var o = L(n, t.iterator, e.arg); + if ("throw" === o.type) return e.method = "throw", e.arg = o.arg, e.delegate = null, + y; + var i = o.arg; + return i ? i.done ? (e[t.resultName] = i.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", + e.arg = r), e.delegate = null, y) : i : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), + e.delegate = null, y); + } + function k(t) { + var r = { + tryLoc: t[0] + }; + 1 in t && (r.catchLoc = t[1]), 2 in t && (r.finallyLoc = t[2], r.afterLoc = t[3]), + this.tryEntries.push(r); + } + function G(t) { + var r = t.completion || {}; + r.type = "normal", delete r.arg, t.completion = r; + } + function N(t) { + this.tryEntries = [ { + tryLoc: "root" + } ], t.forEach(k, this), this.reset(!0); + } + function P(t) { + if (t) { + var e = t[i]; + if (e) return e.call(t); + if ("function" == typeof t.next) return t; + if (!isNaN(t.length)) { + var o = -1, a = function e() { + for (;++o < t.length; ) if (n.call(t, o)) return e.value = t[o], e.done = !1, e; + return e.value = r, e.done = !0, e; + }; + return a.next = a; + } + } + return { + next: F + }; + } + function F() { + return { + value: r, + done: !0 + }; + } +}(function() { + return this || "object" == typeof self && self; +}() || Function("return this")()); \ No newline at end of file diff --git a/wx05cb767e6530b48f/app.js b/wx05cb767e6530b48f/app.js new file mode 100644 index 0000000..c2c3f7c --- /dev/null +++ b/wx05cb767e6530b48f/app.js @@ -0,0 +1,173 @@ +var t = require("@babel/runtime/helpers/interopRequireDefault"), o = require("@babel/runtime/helpers/typeof"), e = t(require("siteinfo.js")), n = [ "pages/index/index", "pages/category/index", "pages/flow/index", "pages/user/index" ]; + +App({ + globalData: { + user_id: null + }, + api_root: "", + onLaunch: function() { + this.setApiRoot(); + }, + onShow: function(t) {}, + setApiRoot: function() { + this.api_root = "".concat(e.default.siteroot, "index.php?s=/api/"); + }, + getWxappBase: function(t) { + this._get("wxapp/base", {}, function(o) { + wx.setStorageSync("wxapp", o.data.wxapp), t && t(o.data.wxapp); + }, !1, !1); + }, + doLogin: function() { + var t = getCurrentPages(); + if (t.length) { + var o = t[t.length - 1]; + "pages/login/login" != o.route && wx.setStorageSync("currentPage", o); + } + wx.navigateTo({ + url: "/pages/login/login" + }); + }, + getUserId: function() { + return wx.getStorageSync("user_id") || 0; + }, + showSuccess: function(t, o) { + wx.showToast({ + title: t, + icon: "success", + success: function() { + o && setTimeout(function() { + o(); + }, 1500); + } + }); + }, + showError: function(t, o) { + wx.showModal({ + title: "友情提示", + content: t, + showCancel: !1, + success: function(t) { + o && o(); + } + }); + }, + _get: function(t, e, n, a, i, r) { + var s = this; + wx.showNavigationBarLoading(), e = Object.assign({ + wxapp_id: 10001, + token: wx.getStorageSync("token") + }, e); + var c = function() { + e.token = wx.getStorageSync("token"), wx.request({ + url: s.api_root + t, + header: { + "content-type": "application/json" + }, + data: e, + success: function(t) { + if (200 !== t.statusCode || "object" !== o(t.data)) return console.log(t), s.showError("网络请求出错"), + !1; + if (-1 === t.data.code) wx.hideNavigationBarLoading(), s.doLogin(); else { + if (0 === t.data.code) return s.showError(t.data.msg), !1; + n && n(t.data); + } + }, + fail: function(t) { + s.showError(t.errMsg, function() { + a && a(t); + }); + }, + complete: function(t) { + wx.hideNavigationBarLoading(), i && i(t); + } + }); + }; + r ? s.doLogin(c) : c(); + }, + _post_form: function(t, e, n, a, i) { + wx.showNavigationBarLoading(); + var r = this; + e = Object.assign({ + wxapp_id: 10001, + token: wx.getStorageSync("token") + }, e), wx.request({ + url: r.api_root + t, + header: { + "content-type": "application/x-www-form-urlencoded" + }, + method: "POST", + data: e, + success: function(i) { + return 200 !== i.statusCode || "object" !== o(i.data) ? (r.showError("网络请求出错"), + !1) : -1 === i.data.code ? (r.doLogin(function() { + r._post_form(t, e, n, a); + }), !1) : 0 === i.data.code ? (r.showError(i.data.msg, function() { + a && a(i); + }), !1) : void (n && n(i.data)); + }, + fail: function(t) { + r.showError(t.errMsg, function() { + a && a(t); + }); + }, + complete: function(t) { + wx.hideLoading(), wx.hideNavigationBarLoading(), i && i(t); + } + }); + }, + validateUserInfo: function() { + wx.getStorageSync("user_info"); + return !!wx.getStorageSync("user_info"); + }, + urlEncode: function(t) { + var o = []; + for (var e in t) { + var n = t[e]; + n.constructor == Array ? n.forEach(function(t) { + o.push(e + "=" + t); + }) : o.push(e + "=" + n); + } + return o.join("&"); + }, + setTitle: function() { + var t, o = this; + (t = wx.getStorageSync("wxapp")) ? wx.setNavigationBarTitle({ + title: t.navbar.wxapp_title + }) : o.getWxappBase(function() { + o.setTitle(); + }); + }, + setNavigationBar: function() { + this.getWxappBase(function(t) { + wx.setNavigationBarColor({ + frontColor: t.navbar.top_text_color.text, + backgroundColor: t.navbar.top_background_color + }); + }); + }, + getTabBarLinks: function() { + return n; + }, + checkIsLogin: function() { + return "" != wx.getStorageSync("token") && "" != wx.getStorageSync("user_id"); + }, + getUserInfo: function(t, o) { + var e = this; + wx.showLoading({ + title: "正在登录", + mask: !0 + }), wx.login({ + success: function(n) { + e._post_form("user/login", { + code: n.code, + user_info: JSON.stringify(t) + }, function(t) { + wx.setStorageSync("token", t.data.token), wx.setStorageSync("user_id", t.data.user_id), + o && o(); + }, !1, function() { + wx.hideLoading(); + }); + } + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/app.json b/wx05cb767e6530b48f/app.json new file mode 100644 index 0000000..7130d99 --- /dev/null +++ b/wx05cb767e6530b48f/app.json @@ -0,0 +1,59 @@ +{ + "pages": [ + "pages/index/index", + "pages/index_back/index", + "pages/category/index", + "pages/category/list", + "pages/goods/index", + "pages/search/index", + "pages/flow/index", + "pages/flow/checkout", + "pages/user/index", + "pages/user/help", + "pages/order/index", + "pages/order/detail", + "pages/address/index", + "pages/address/createa", + "pages/address/detail", + "pages/login/login", + "pages/aftermarket/create", + "pages/aftermarket/index", + "pages/gongzuo/index", + "pages/pays/pays", + "pages/address/webvue" + ], + "window": { + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTitleText": "", + "navigationBarTextStyle": "black", + "backgroundTextStyle": "dark" + }, + "tabBar": { + "color": "#6e6d6b", + "selectedColor": "#ff9966", + "borderStyle": "black", + "backgroundColor": "#ffffff", + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "images/tabBar/home.png", + "selectedIconPath": "images/tabBar/home_on.png" + }, + { + "pagePath": "pages/flow/index", + "text": "购物车", + "iconPath": "images/tabBar/cart.png", + "selectedIconPath": "images/tabBar/cart_on.png" + }, + { + "pagePath": "pages/user/index", + "text": "我的", + "iconPath": "images/tabBar/user.png", + "selectedIconPath": "images/tabBar/user_on.png" + } + ], + "position": "bottom" + }, + "debug": false +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/app.wxss b/wx05cb767e6530b48f/app.wxss new file mode 100644 index 0000000..cb261b3 --- /dev/null +++ b/wx05cb767e6530b48f/app.wxss @@ -0,0 +1,1195 @@ +./utils/iconfont.wxssrpx.container,wx-input { + -webkit-font-smoothing: antialiased; + font-family: PingFang-Medium,PingFangSC-Regular,Heiti,Heiti SC,DroidSans,DroidSansFallback,Microsoft YaHei,sans-serif; +} + +.b-f { + background: #fff; +} + +.tf-180 { + transform: rotate(-180deg); +} + +.tf-90 { + transform: rotate(90deg); +} + +.dis-block { + display: block; +} + +.dis-flex { + display: flex!important; +} + +.flex-box { + flex: 1; +} + +.flex-dir-row { + flex-direction: row; +} + +.flex-dir-column { + flex-direction: column; +} + +.flex-x-center { + justify-content: center; +} + +.flex-x-between { + justify-content: space-between; +} + +.flex-x-around { + justify-content: space-around; +} + +.flex-x-end { + justify-content: flex-end; +} + +.flex-y-center { + align-items: center; +} + +.flex-y-end { + align-items: flex-end; +} + +.flex-five { + box-sizing: border-box; + flex: 0 0 50%; +} + +.flex-three { + float: left; + width: 33.3%; +} + +.flex-four { + box-sizing: border-box; + flex: 0 0 25%; +} + +.t-l { + text-align: left; +} + +.t-c { + text-align: center; +} + +.t-r { + text-align: right; +} + +.p-a { + position: absolute; +} + +.p-r { + position: relative; +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +.clear::after { + clear: both; + content: " "; + display: table; +} + +.oh { + overflow: hidden; +} + +.tb-lr-center { + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex!important; + display: flex!important; + justify-content: center; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-30 { + font-size: 30rpx; +} + +.f-29 { + font-size: 29rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-25 { + font-size: 25rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.f-w { + font-weight: 700; +} + +.f-n { + font-weight: 400; +} + +.col-f { + color: #fff; +} + +.col-3 { + color: #333; +} + +.col-6 { + color: #666; +} + +.col-7 { + color: #777; +} + +.col-8 { + color: #888; +} + +.col-9 { + color: #999; +} + +.col-m { + color: #ff495e!important; +} + +.col-s { + color: #be0117!important; +} + +.col-green { + color: #0ed339!important; +} + +.cont-box { + padding: 20rpx; +} + +.cont-bot { + margin-bottom: 120rpx; +} + +.padding-box { + box-sizing: border-box; + padding: 0 24rpx; +} + +.pl-12 { + padding-left: 12px; +} + +.pr-12 { + padding-right: 12px; +} + +.pr-6 { + padding-right: 6px; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.p-bottom { + padding-bottom: 112rpx; +} + +.onelist-hidden { + white-space: nowrap; +} + +.onelist-hidden,.twolist-hidden { + overflow: hidden; + text-overflow: ellipsis; +} + +.twolist-hidden { + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + display: -webkit-box; + word-break: break-all; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.ts-1 { + transition: all .1s; +} + +.ts-2 { + transition: all .2s; +} + +.ts-3 { + transition: all .3s; +} + +.ts-5 { + transition: all .5s; +} + +.btn-normal { + background: none; + border: none; + border-radius: 0; + box-shadow: none; + display: block; + font-size: unset; + line-height: normal; + margin: 0; + overflow: visible; + padding: 0; + text-align: unset; +} + +.btn-normal:after { + border: none; +} + +.btn-normal.button-hover { + color: inherit; +} + +page { + background: #f7f7f7; +} + +.common-header-xian { + border-top: 1rpx solid #eee; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.del { + color: #999; + padding-left: 10rpx; + text-decoration: line-through; +} + +.no-more { + color: #737373; + padding: 20rpx 0; + text-align: center; +} + +.yoshop-notcont { + margin: 130rpx 100rpx; +} + +.yoshop-notcont .cont { + color: #999; + display: block; + font-size: 30rpx; + margin-top: 20rpx; + text-align: center; +} + +.yoshop-notcont .iconfont { + color: #ccc; + display: block; + font-size: 150rpx; + margin-bottom: 24rpx; + text-align: center; +} + +.yoshop-notcont .img { + height: 120px; + margin: 0 auto; + width: 200px; +} + +.yoshop-notcont .img image { + height: 100%; + width: 100%; +} + +.category-list { + overflow: hidden; +} + +.category-list .list { + box-sizing: border-box; + float: left; + width: 50%; +} + +.category-list .list:nth-child(2n) { + border-bottom: 4px solid #f7f7f7; + border-left: 2px solid #f7f7f7; +} + +.category-list .list:nth-child(2n-1) { + border-bottom: 4px solid #f7f7f7; + border-right: 2px solid #f7f7f7; +} + +.category-list .list .left,.category-list .right { + width: 100%; +} + +.category-list .list .left .img image { + display: block; + height: 375rpx; + width: 100%; +} + +.category-list .right .cont { + padding: 0 12rpx; +} + +.category-list .right .cont .title { + height: 76rpx; + line-height: 1.3; +} + +.category-list.arrange .list { + border-bottom: 1rpx solid #f7f7f7; + overflow: hidden; + padding: 15rpx; + width: 100%; +} + +.category-list.arrange .list .left { + float: left; + width: 35%; +} + +.category-list.arrange .list .right { + float: left; + width: 65%; +} + +.category-list.arrange .list .left .img image { + height: 220rpx; + width: 220rpx; +} + +.button-common button { + background: none; + border: 0; + border-radius: 0; + font-size: 30rpx; + line-height: inherit; +} + +.button-common button[disabled]:not([type]) { + background-color: #ff495e; + color: #fff; +} + +.button-common button::after { + border: none; + border-radius: 0; + box-sizing: border-box; + content: " "; + height: 0; + transform: scale(0); + transform-origin: 0 0; + width: 0; +} + +.commont-fixed-footer { + background: #fff; + border-top: 1rpx solid #ddd; + bottom: 0; + left: 0; + padding: 3px 0; + position: fixed; + right: 0; + z-index: 1000; +} + +.commont-fixed-footer .li { + color: #666; +} + +.commont-fixed-footer .li.active { + color: #ff495e; +} + +.commont-fixed-footer .li image { + height: 50rpx; + width: 50rpx; +} + +.bargain-mol { + background: #fff; + bottom: -100%; + left: 0; + position: fixed; + right: 0; + visibility: hidden; + z-index: 120; +} + +.bargain-mol.active { + bottom: 0; + visibility: visible; +} + +.bargain-mol .header { + background: #f1f1f5; +} + +.bargain-mol .footer { + background: #ff495e; + color: #fff; + padding: 26rpx 0; +} + +.bargain-mol .max-cont { + height: 600rpx; +} + +.bargain-mol .icon-guanbi { + color: #999; + float: right; + font-size: 34rpx; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.selectNumber { + border: 1rpx solid #eee; + border-radius: 10rpx; + display: inline-block; + flex-direction: row; + height: 34px; +} + +.selectNumber .default { + background: #fff; + color: #444; + float: left; + font-size: 48rpx; + height: 34px; + line-height: 32px; + padding: 0; + width: 34px; +} + +.selectNumber .default-active { + background: #f7f7f7; + color: #ddd; +} + +.selectNumber button:after { + border: none; + content: none; +} + +.selectNumber input { + border-left: 1rpx solid #eee; + border-right: 1rpx solid #eee; + color: #444; + float: left; + font-size: 28rpx; + height: 34px; + line-height: 34px; + text-align: center; + width: 50px; +} + +.widget-goTop { + background: hsla(0,0%,100%,.9); + border: 1rpx solid #eee; + border-radius: 76rpx; + bottom: 150rpx; + height: 76rpx; + position: fixed; + right: 12px; + width: 76rpx; + z-index: 20; +} + +.widget-goTop .icon-fanhuidingbu { + color: #666; + display: block; + font-size: 32rpx; + line-height: 76rpx; + text-align: center; +} + +.index-loading .loading { + animation-fill-mode: both; + animation: rotate .75s linear 0s infinite; + background: transparent!important; + border: 2px solid #ff495e; + border-bottom-color: transparent; + border-radius: 100%; + height: 25px; + margin: 150rpx auto 0; + width: 25px; +} + +@-webkit-keyframes rotate { + 0% { + transform: rotate(0deg) scale(1); + } + + 100% { + transform: rotate(1turn) scale(1); + } +} + +@keyframes rotate { + 0% { + transform: rotate(0deg) scale(1); + } + + 100% { + transform: rotate(1turn) scale(1); + } +} + +.title-header { + font-weight: 700; + height: 100rpx; + line-height: 100rpx; + margin-left: -10rpx; +} + +.title-footer { + color: #888; + height: 80rpx; + line-height: 80rpx; + margin: 0 18rpx; + overflow: hidden; + position: relative; + text-align: center; + z-index: 1; +} + +.title-footer .cont { + background: #f7f7f7; + font-size: 28rpx; + padding: 0 12rpx; + z-index: 10; +} + +.title-footer .hr { + background: #eee; + border: 0; + height: 1rpx; + left: 10%; + margin-top: 1px; + position: absolute; + right: 10%; + top: 50%; + z-index: -1; +} + +.slide-image { + display: block; + height: 100%; + margin: 0 auto; + width: 100%; +} + +.index_sale { + background: #fff; + padding: 0 12px 12px; +} + +.index-list .nav_img,.index_sale .nav_img { + height: 30rpx; + padding: 30rpx 0 0; + width: 100%; +} + +.index_sale scroll-view { + white-space: nowrap; + width: 100%; +} + +.index_sale .sale_img { + border: 1rpx solid #f2f2f2; + border-radius: 4px; + height: 159rpx; + overflow: hidden; + width: 159rpx; +} + +.index_sale .sale_img image { + height: 100%; + width: 100%; +} + +.index_sale .price { + display: block; + margin-top: 10rpx; +} + +.index_sale .page-column { + padding: 0 11rpx 11rpx 0; +} + +.index_sale .content { + width: 140rpx; +} + +.index_sale .content text { + font-size: 26rpx; + margin: 5rpx 10rpx; + width: 100%; +} + +.goods-comment-box .admin { + color: #999; + font-size: 26rpx; + padding-right: 10rpx; +} + +.goods-comment-cont { + color: #333; + font-size: 30rpx; + margin: 10rpx 0; +} + +.footer-fixed { + background: #fff; + bottom: 0; + box-shadow: 1px 5px 15px rgba(50,50,50,.3); + display: flex; + height: 46px; + left: 0; + position: fixed; + right: 0; + z-index: 18; +} + +.order-bt { + background-color: #ff495e; + color: #fff; + line-height: 46px; + text-align: center; + width: 50%; +} + +.goods_comment_box .comment_btn { + margin: 0 auto; + padding: 20rpx 0; + width: 220rpx; +} + +.goods_comment_box .comment_btn text { + border: 1px solid #ff495e; + border-radius: 30rpx; + color: #ff495e; + display: block; + font-size: 26rpx; + padding: 5rpx 0; + text-align: center; +} + +.goods-detail-box { + min-height: 150px; + padding: 0; +} + +.com_xing .icon-shoucang1 { + color: #ccc; + font-size: 26rpx; + padding-right: 6rpx; +} + +.com_xing .icon-shoucang1.active { + color: #f4a213; +} + +.goods-comment-box .left { + flex: 3; + position: relative; +} + +.goods-comment-box .right { + flex: 3; +} + +.bright789-text { + color: red; + font-size: 40rpx; + line-height: 40px; +} + +.bright789_view_hide { + display: none; +} + +.bright789_view_show,.show { + display: block; +} + +.hide { + display: none; +} + +.com_xing { + display: inline-block; +} + +.flow-checkout-header { + background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAANCAYAAADVGpDCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3Yjk4M2ExYy1jMDhkLTQ1OTktYTI0Ny1kZjNjYzdiYTQ5ZTgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDQwNkY3RkU5N0NGMTFFNUI3N0M4NTU4MzM2RjlFODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDQwNkY3RkQ5N0NGMTFFNUI3N0M4NTU4MzM2RjlFODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowNzgwZWI1NS03OGFhLTQzOTUtODQ4OC1lOWI5YmVlYTY1ZDciIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo1OTRiYzUyMy1jMzc3LTExNzgtYTdkZS04NGY3YmM1ZGIxMDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz556PLxAAACBElEQVR42tyaSyhEYRTHP48imlKibDQeSSlkSlEWLCRFsZNH5FE2FqQ8ErIRC9lIkTwXSpMkWWChhEJCSnlkoUZGSsr78f98n43CMFPu/Z/6NZuZ2zn33/+cb869XkmLx8IDEQaGQJbgiytQDSY3MyL+LYnL/HxPXSoHDIJQQq2WQQk4Dbbb/yUB29LJ+6e3B66VB3ZITbUIEqSpCGoJBP1ghtBUD6ARpEtTGSEhXzd+awE9oJzQUPegWdf3QlBPMhgDMYRa7YNisGWkpP5qrBQtVBShUHugUE9hs4fUtwG0utlEjRivoA/Ug1sj3vjffr8FNJEK1auPFHcE9UTq5pdK2PwcoAzMG7mjuRrRYEIfK9jiDJSCBZJ6ynSTsBBqNQ0qgdPISbq6vJCFbJOaagrEk5gqWNczRGiqG1Ah1LLMafRkf5pYIUKtZnMJDXUNasAIST2ZYFioRx9ssQaKwJFZEv5uYmWDXVJTrYBEElP562PfPKGpnkAbSDOTqb6aWAGgW6iHol5kQj2CdtAJngnqkc1hHMQRNr9DPaXWzZj8Z2PZtFCxhEIdaKE2CGqRJ4060AH8CLUaALX6f5VpBZLhI9SaeZXQVHKNLt84SCIxVbhQi5YuQlNd6OVElZlN9TGxrGBUn2PZ4lyoTdIsST0FQj0UDSLUak6ot3gcBLVY3wQYAJoVXxmNERajAAAAAElFTkSuQmCC") 0 100% repeat-x; + background-size: 120rpx auto; + padding: 28rpx 0; + position: relative; +} + +.flow-header-left { + flex: 14; +} + +.flow-header-right { + flex: 1; +} + +.flow-header-right image { + float: right; + height: 34rpx; + margin-top: 20rpx; + width: 34rpx; +} + +.flow-checkout-header .flow-checkout-address { + color: #777; + font-size: 26rpx; + margin-top: 6rpx; +} + +.flow-shopList { + padding: 20rpx 0; +} + +.flow-shopList .flow-list-left { + flex: 2; +} + +.flow-shopList .flow-list-left image { + background: #fff; + border: 1rpx solid #eee; + height: 200rpx; + width: 200rpx; +} + +.flow-shopList .flow-list-right { + flex: 4; +} + +.flow-shopList .flow-list-right .h4 { + color: #333; + font-size: 30rpx; +} + +.flow-shopList .flow-list-right .flow-cont { + color: #ff495e; + font-size: 30rpx; +} + +.flow-shopList .flow-list-right .small { + color: #777; + float: right; + font-size: 26rpx; +} + +.flow-shopList .flow-list-right .flow-list-cont { + padding-top: 10rpx; +} + +.flow-fixed-footer { + background: #fff; + border-top: 1px solid #eee; + bottom: 0; + position: fixed; + width: 100%; + z-index: 11; +} + +.flow-num-box { + color: #777; + font-size: 30rpx; + padding: 15rpx 12px; + text-align: right; +} + +.flow-all-money { + color: #444; + padding: 8px 12px; +} + +.flow-all-money .flow-all-list { + border-bottom: 1rpx solid #f1f1f1; + font-size: 30rpx; + padding: 20rpx 0; +} + +.flow-all-money .flow-all-list:last-child { + border-bottom: none; +} + +.flow-all-money .flow-all-list-cont { + font-size: 28rpx; + padding: 6rpx 0; +} + +.flow-all-money .flow-arrow { + align-items: center; + justify-content: flex-end; +} + +.flow-fixed-footer .chackout-left { + color: #777; + flex: 4; + font-size: 32rpx; + line-height: 46px; + padding-left: 12px; +} + +.flow-fixed-footer .chackout-right { + flex: 2; + font-size: 34rpx; +} + +.flow-btn { + background-color: #ff495e; + color: #fff; + display: block; + line-height: 46px; + text-align: center; +} + +.flow-list .header .shop_name { + color: #333; + font-size: 30rpx; + padding-left: 10rpx; +} + +.flow-list .header .icon-dianpu2 { + color: #ff495e; + font-size: 32rpx; + padding-left: 20rpx; +} + +.flow-list .header image { + height: 37rpx; + left: 15px; + margin-top: -18rpx; + position: absolute; + top: 50%; + width: 34rpx; +} + +.flow-list .header { + background: #fdf9f9; + border-bottom: 1rpx solid #eee; + border-top: 1rpx solid #eee; + font-size: 30rpx; + padding: 24rpx 0; + position: relative; +} + +.addres-list custom-li,.flow-list custom-li { + display: block; + margin-top: 25rpx; +} + +.addres-list custom-li:first-child,.flow-list custom-li:first-child { + margin-top: 0; +} + +.flow-distribution-right .icon-xiangyoujiantou { + color: #999; + font-size: 26rpx; + margin-top: -16rpx; + position: absolute; + right: 15px; + top: 50%; +} + +.flow-checkout-address text { + padding-right: 5rpx; +} + +.flow-header-right .icon-xiangyoujiantou { + color: #999; + font-size: 32rpx; + margin-top: -13rpx; + position: absolute; + right: 15px; + top: 50%; +} + +.WxEmojiView,.wxParse-em { + color: #333; + display: inline-block; +} + +.flow-shopList .flow-list-left image { + height: 180rpx; + width: 180rpx; +} + +.profile-btn button { + margin-bottom: 20rpx; +} + +.flow-checkout-header .icon-dingwei1 { + color: #777; + font-size: 40rpx; + left: 15px; + margin-top: -20rpx; + position: absolute; + top: 50%; +} + +.index-cont-search { + background: #f1f1f1; + font-size: 28rpx; + position: relative; + width: 100%; +} + +.index-cont-search icon { + left: 50%; + margin-left: -70rpx; + margin-top: -15rpx; + position: absolute; + top: 50%; +} + +.index-cont-search text { + margin-left: 72rpx; +} + +@-webkit-keyframes shop { + 0% { + transform: translateY(-80px); + } + + 50% { + transform: translateY(0); + } + + 100% { + transform: translateY(-80px); + } +} + +@keyframes shop { + 0% { + transform: translateY(-80px); + } + + 50% { + transform: translateY(0); + } + + 100% { + transform: translateY(-80px); + } +} + +.user-order { + background: #fff; +} + +.user-orderIcon { + height: 46rpx; + margin-top: 15rpx; + padding-left: 15rpx; + width: 46rpx; +} + +.user-orderName { + color: #444; + font-size: 30rpx; + left: 90rpx; + margin-top: -21rpx; + position: absolute; + top: 50%; +} + +.user-orderJtou { + color: #777; + font-size: 26rpx; +} + +.user-orderCont { + color: #999; + font-size: 28rpx; +} + +.user-orderContBox { + float: right; + padding: 15rpx; +} + +.userinfo { + align-items: center; + display: flex; + flex-direction: column; +} + +.address-box .left-name { + width: 95px; +} + +.address-box .right-cont { + color: #444; + font-size: 30rpx; + padding-right: 15px; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.address-cont-box picker { + display: inline-block; + margin-right: 15px; + width: 100%; +} + +.button { + border: 1px solid #1aad19; + border-radius: 2px; +} + +.picker { + background-color: #fff; + padding: 13px; +} + +.profile-list { + border-bottom: 1px solid #f6f6f9; + padding: 24rpx 0; +} + +.profile-list .admin { + color: #333; + font-size: 30rpx; +} + +.profile-btn button { + background: #ff495e; + color: #fff; +} + +.profile-btn button[disabled] { + background: #f16474; + color: #fff; +} + +.search-box .left { + width: 28px; +} + +.search-box .left icon { + padding: 18rpx; +} + +.search-box .right { + flex: 1; +} + +.wxParse-img { + display: block; + margin: 0 auto; + width: 100%; +} + +.wxParse-inline { + font-size: 28rpx; + text-align: center; +} + +.wxParse-div { + overflow: hidden; +} + +.wxParse-div .kd_pic { + float: left; + margin: 0 auto; + width: 50%; +} + +.xEmojiView { + margin: 15rpx 0; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/components/imgDrag/imgDrag.js b/wx05cb767e6530b48f/components/imgDrag/imgDrag.js new file mode 100644 index 0000000..5043e3a --- /dev/null +++ b/wx05cb767e6530b48f/components/imgDrag/imgDrag.js @@ -0,0 +1,293 @@ +var e = require("../../@babel/runtime/helpers/interopRequireDefault")(require("../../@babel/runtime/regenerator")), t = require("../../@babel/runtime/helpers/asyncToGenerator"), a = require("../../@babel/runtime/helpers/toConsumableArray"), i = require("../../@babel/runtime/helpers/defineProperty"); + +Component({ + options: { + multipleSlots: !0 + }, + properties: { + previewSize: { + type: Number, + value: 100 + }, + defaultGoodsId: { + type: Number, + value: 0, + observer: function(e) { + console.log("id", e), null == this.data.goodsId ? this.setData({ + goodsId: e + }) : (console.log("来新的了"), this.setData({ + goodsId: e, + newGoods: !0 + })); + } + }, + defaultImgUrlList: { + type: Array, + value: [], + observer: function(e) { + null != e && e.length && !this.data.imageUrlList.length ? (console.log("初始化-defaultImgUrlList"), + this.setData({ + imageUrlList: e + })) : (console.log("未初始化aaa-defaultImgUrlList"), this.data.newGoods && (console.log("初始化bbb-defaultImgUrlList"), + this.setData({ + imageUrlList: e + }))); + } + }, + defaultImgList: { + type: Array, + value: [], + observer: function(e) { + if (null != e && e.length && !this.data.dragImgList.length) { + console.log("初始化-defaultImgList"); + var t = this.getDragImgList(e); + this.setUploaPosition(t.length), this.setData({ + dragImgList: t + }); + } else if (console.log("未初始化aaa-defaultImgList"), this.data.newGoods) { + console.log("初始化bbb-defaultImgList"); + var a = this.getDragImgList(e); + this.setUploaPosition(a.length), this.setData({ + dragImgList: a + }); + } + } + }, + maxCount: { + type: Number, + value: 9 + }, + columns: { + type: Number, + value: 3 + }, + gap: { + type: Number, + value: 9 + }, + deleteStyle: { + type: String, + value: "" + } + }, + data: { + goodsId: null, + newGoods: !1, + imageUrlList: [], + dragImgList: [], + containerRes: { + top: 0, + left: 0, + width: 0, + height: 0 + }, + currentKey: -1, + currentIndex: -1, + tranX: 0, + tranY: 0, + uploadPosition: { + tranX: 0, + tranY: 0 + } + }, + lifetimes: { + ready: function() { + var e = this; + this.createSelectorQuery().select(".drag-container").boundingClientRect(function(t) { + var a, r = t.top, n = t.left; + e.setData((i(a = {}, "containerRes.top", r), i(a, "containerRes.left", n), a)); + }).exec(); + } + }, + methods: { + longPress: function(e) { + var t = e.mark.index, a = e.touches[0], i = a.pageX, r = a.pageY, n = this.data, o = n.previewSize, s = n.containerRes, l = s.top, u = s.left; + this.setData({ + currentIndex: t, + tranX: i - o / 2 - u, + tranY: r - o / 2 - l + }); + }, + touchMove: function(e) { + if (!(this.data.currentIndex < 0)) { + var t = e.touches[0], a = t.pageX, i = t.pageY, r = this.data, n = r.previewSize, o = r.containerRes, s = o.top, l = a - n / 2 - o.left, u = i - n / 2 - s; + this.setData({ + tranX: l, + tranY: u + }); + var g = e.mark.key, c = this.getMoveKey(l, u); + g !== c && this.data.currentKey !== g && (this.data.currentKey = g, this.replace(g, c)); + } + }, + getMoveKey: function(e, t) { + var a = this.data, i = a.dragImgList, r = a.previewSize, n = a.columns, o = function(e, t) { + var a = Math.round(e / r); + return a >= t ? t - 1 : a < 0 ? 0 : a; + }, s = n * o(t, Math.ceil(i.length / n)) + o(e, n); + return s >= i.length ? i.length - 1 : s; + }, + replace: function(e, t) { + var a = this.data.dragImgList; + console.log("dragImgList", a), a.forEach(function(a) { + e < t ? a.key > e && a.key <= t ? a.key-- : a.key === e && (a.key = t) : e > t && (a.key >= t && a.key < e ? a.key++ : a.key === e && (a.key = t)); + }), this.getListPosition(a); + }, + getListPosition: function(e) { + var t = this.data, a = t.previewSize, i = t.columns, r = t.gap, n = e.map(function(e) { + return e.tranX = (a + r) * (e.key % i), e.tranY = Math.floor(e.key / i) * (a + r), + e; + }); + this.setData({ + dragImgList: n + }), this.updateEvent(n); + }, + touchEnd: function() { + this.setData({ + tranX: 0, + tranY: 0, + currentIndex: -1 + }), this.data.currentKey = -1; + }, + updateEvent: function(e) { + console.log(e); + var t = a(e).sort(function(e, t) { + return e.key - t.key; + }).map(function(e) { + return { + src: e.src, + image_id: e.imageId + }; + }); + this.triggerEvent("updateImageList", { + list: t + }); + }, + preview: function(e) { + var t = e.currentTarget.dataset.src; + console.log(t); + var a = this.data.imageUrlList; + console.log(a), wx.previewImage({ + current: t, + urls: a + }); + }, + uploadImage: function() { + var a = this; + return t(e.default.mark(function t() { + var i, r, n, o, s, l, u; + return e.default.wrap(function(e) { + for (;;) switch (e.prev = e.next) { + case 0: + return i = a, r = a.data, n = r.dragImgList, o = r.maxCount, e.prev = 2, e.next = 5, + wx.chooseMedia({ + count: o - n.length, + mediaType: [ "image" ], + sourceType: [ "album", "camera" ], + maxDuration: 30, + sizeType: [ "compressed" ], + camera: "back" + }); + + case 5: + if (s = e.sent, console.log("res", s), "chooseMedia:ok" == s.errMsg) { + e.next = 10; + break; + } + return wx.showToast({ + title: "上传失败", + icon: "none", + duration: 3e3 + }), e.abrupt("return"); + + case 10: + if ("image" == s.type) { + e.next = 13; + break; + } + return wx.showToast({ + title: "只能上传图片类型", + icon: "none", + duration: 3e3 + }), e.abrupt("return"); + + case 13: + for (wx.showLoading({ + title: "图片上传中" + }), l = s.tempFiles, u = 0; u < l.length; u++) wx.uploadFile({ + name: "iFile", + url: "https://wxminiapp.19year.cn/index.php?s=/api/upload/image&wxapp_id=10001", + filePath: l[u].tempFilePath, + success: function(e) { + console.log("resp", e); + var t = JSON.parse(e.data); + if (console.log("resp", t), 1 == t.code) { + var a = i.data.imageUrlList, r = { + file_path: t.data.file_path, + image_id: parseInt(t.data.file_id) + }; + console.log("imageObj", r); + var o = i.getDragImgList([ r ], !1); + n = n.concat(o), i.setUploaPosition(n.length), a.push(t.data.file_path), i.setData({ + dragImgList: n, + imageUrlList: a + }), i.updateEvent(n), wx.hideLoading(); + } else wx.hideLoading(), wx.showModal({ + title: "提示", + content: "上传失败", + showCancel: !1 + }); + } + }); + e.next = 21; + break; + + case 18: + e.prev = 18, e.t0 = e.catch(2), console.log(e.t0); + + case 21: + case "end": + return e.stop(); + } + }, t, null, [ [ 2, 18 ] ]); + }))(); + }, + getContainerRect: function(e) { + var t = this.data, a = t.columns, i = t.previewSize, r = t.maxCount, n = t.gap, o = e === r ? e : e + 1, s = Math.ceil(o / a); + return { + width: a * i + (a - 1) * n, + height: s * i + n * (s - 1) + }; + }, + getDragImgList: function(e) { + var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], a = this.data, i = a.dragImgList, r = a.previewSize, n = a.columns, o = a.gap; + return e.map(function(e, a) { + var s = (t ? 0 : i.length) + a; + return { + tranX: (r + o) * (s % n), + tranY: Math.floor(s / n) * (r + o), + src: e.file_path, + id: s, + key: s, + imageId: e.image_id + }; + }); + }, + setUploaPosition: function(e) { + var t, a = this.data, r = a.previewSize, n = a.columns, o = a.gap, s = { + tranX: e % n * (r + o), + tranY: Math.floor(e / n) * (r + o) + }, l = this.getContainerRect(e), u = l.width, g = l.height; + this.setData((i(t = { + uploadPosition: s + }, "containerRes.width", u), i(t, "containerRes.height", g), t)); + }, + deleteImg: function(e) { + var t = e.mark.key, a = this.data.dragImgList.filter(function(e) { + return e.key !== t; + }); + a.forEach(function(e) { + e.key > t && e.key--; + }), this.getListPosition(a), this.setUploaPosition(a.length); + } + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/components/imgDrag/imgDrag.json b/wx05cb767e6530b48f/components/imgDrag/imgDrag.json new file mode 100644 index 0000000..7e37c03 --- /dev/null +++ b/wx05cb767e6530b48f/components/imgDrag/imgDrag.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/components/imgDrag/imgDrag.wxml b/wx05cb767e6530b48f/components/imgDrag/imgDrag.wxml new file mode 100644 index 0000000..c3b6d7f --- /dev/null +++ b/wx05cb767e6530b48f/components/imgDrag/imgDrag.wxml @@ -0,0 +1,16 @@ + + + + + x + + + + diff --git a/wx05cb767e6530b48f/components/imgDrag/imgDrag.wxss b/wx05cb767e6530b48f/components/imgDrag/imgDrag.wxss new file mode 100644 index 0000000..cefa16b --- /dev/null +++ b/wx05cb767e6530b48f/components/imgDrag/imgDrag.wxss @@ -0,0 +1,52 @@ +.drag-container { + position: relative; +} + +.drag-item { + left: 0; + position: absolute; + top: 0; +} + +.drag-item-transition { + transition: transform .1s; + transition: transform .1s,-webkit-transform .1s; +} + +.drag-item-img { + height: 100%; + width: 100%; +} + +.drag-item-delete { + position: absolute; + right: 0; + top: 0; +} + +.drag-item-delete_default { + background-color: rgba(0,0,0,.7); + border-radius: 0 0 0 12px; + color: #fefefe; + display: flex; + height: 15px; + justify-content: center; + line-height: 10px; + width: 21px; +} + +.drag-upload .drag-upload_solt:empty+.drag-upload_default { + border: 2px dashed; + box-sizing: border-box; + display: block; + font-size: 70px; + font-weight: 700; + height: 100%; + line-height: 100%; + text-align: center; + width: 100%; +} + +.drag-upload .drag-upload_default { + display: none; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/components/shortcut/shortcut.js b/wx05cb767e6530b48f/components/shortcut/shortcut.js new file mode 100644 index 0000000..50afad9 --- /dev/null +++ b/wx05cb767e6530b48f/components/shortcut/shortcut.js @@ -0,0 +1,31 @@ +var t = getApp(); + +Component({ + options: { + multipleSlots: !0 + }, + properties: { + title: { + type: String, + value: "弹窗标题" + } + }, + data: { + isShow: !1, + transparent: !0 + }, + methods: { + _onToggleShow: function(t) { + this.setData({ + isShow: !this.data.isShow, + transparent: !1 + }); + }, + _onTargetPage: function(a) { + var e = t.getTabBarLinks(); + wx.switchTab({ + url: "/" + e[a.detail.target.dataset.index] + }); + } + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/components/shortcut/shortcut.json b/wx05cb767e6530b48f/components/shortcut/shortcut.json new file mode 100644 index 0000000..7e37c03 --- /dev/null +++ b/wx05cb767e6530b48f/components/shortcut/shortcut.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/components/shortcut/shortcut.wxml b/wx05cb767e6530b48f/components/shortcut/shortcut.wxml new file mode 100644 index 0000000..1fce7c9 --- /dev/null +++ b/wx05cb767e6530b48f/components/shortcut/shortcut.wxml @@ -0,0 +1,22 @@ + +
+ +
+
+ +
+
+ +
+
+ +
+
diff --git a/wx05cb767e6530b48f/components/shortcut/shortcut.wxss b/wx05cb767e6530b48f/components/shortcut/shortcut.wxss new file mode 100644 index 0000000..63b4ae3 --- /dev/null +++ b/wx05cb767e6530b48f/components/shortcut/shortcut.wxss @@ -0,0 +1,626 @@ +./utils/iconfont.wxssrpx.container,wx-input { + -webkit-font-smoothing: antialiased; + font-family: PingFang-Medium,PingFangSC-Regular,Heiti,Heiti SC,DroidSans,DroidSansFallback,Microsoft YaHei,sans-serif; +} + +.b-f { + background: #fff; +} + +.tf-180 { + transform: rotate(-180deg); +} + +.tf-90 { + transform: rotate(90deg); +} + +.dis-block { + display: block; +} + +.dis-flex { + display: flex!important; +} + +.flex-box { + flex: 1; +} + +.flex-dir-row { + flex-direction: row; +} + +.flex-dir-column { + flex-direction: column; +} + +.flex-x-center { + justify-content: center; +} + +.flex-x-between { + justify-content: space-between; +} + +.flex-x-around { + justify-content: space-around; +} + +.flex-x-end { + justify-content: flex-end; +} + +.flex-y-center { + align-items: center; +} + +.flex-y-end { + align-items: flex-end; +} + +.flex-five { + box-sizing: border-box; + flex: 0 0 50%; +} + +.flex-three { + float: left; + width: 33.3%; +} + +.flex-four { + box-sizing: border-box; + flex: 0 0 25%; +} + +.t-l { + text-align: left; +} + +.t-c { + text-align: center; +} + +.t-r { + text-align: right; +} + +.p-a { + position: absolute; +} + +.p-r { + position: relative; +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +.clear::after { + clear: both; + content: " "; + display: table; +} + +.oh { + overflow: hidden; +} + +.tb-lr-center { + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex!important; + display: flex!important; + justify-content: center; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-30 { + font-size: 30rpx; +} + +.f-29 { + font-size: 29rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-25 { + font-size: 25rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.f-w { + font-weight: 700; +} + +.f-n { + font-weight: 400; +} + +.col-f { + color: #fff; +} + +.col-3 { + color: #333; +} + +.col-6 { + color: #666; +} + +.col-7 { + color: #777; +} + +.col-8 { + color: #888; +} + +.col-9 { + color: #999; +} + +.col-m { + color: #ff495e!important; +} + +.col-s { + color: #be0117!important; +} + +.col-green { + color: #0ed339!important; +} + +.cont-box { + padding: 20rpx; +} + +.cont-bot { + margin-bottom: 120rpx; +} + +.padding-box { + box-sizing: border-box; + padding: 0 24rpx; +} + +.pl-12 { + padding-left: 12px; +} + +.pr-12 { + padding-right: 12px; +} + +.pr-6 { + padding-right: 6px; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.p-bottom { + padding-bottom: 112rpx; +} + +.onelist-hidden { + white-space: nowrap; +} + +.onelist-hidden,.twolist-hidden { + overflow: hidden; + text-overflow: ellipsis; +} + +.twolist-hidden { + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + display: -webkit-box; + word-break: break-all; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.ts-1 { + transition: all .1s; +} + +.ts-2 { + transition: all .2s; +} + +.ts-3 { + transition: all .3s; +} + +.ts-5 { + transition: all .5s; +} + +.btn-normal { + background: none; + border: none; + border-radius: 0; + box-shadow: none; + display: block; + font-size: unset; + line-height: normal; + margin: 0; + overflow: visible; + padding: 0; + text-align: unset; +} + +.btn-normal:after { + border: none; +} + +.btn-normal.button-hover { + color: inherit; +} + +.shortcut { + bottom: 250rpx; + line-height: 1; + position: fixed; + right: 12px; + z-index: 5; +} + +.nav-item,.shortcut { + border-radius: 50%; + width: 76rpx; +} + +.nav-item { + background: rgba(0,0,0,.4); + bottom: 0; + color: #fff; + height: 76rpx; + line-height: 76rpx; + opacity: 0; + padding: 0; + position: absolute; + text-align: center; + transform: rotate(0deg); +} + +.nav-item text { + font-size: 40rpx; +} + +.nav-item__switch { + opacity: 1; +} + +.shortcut_click_show { + background: #ff5454; + margin-bottom: 0; +} + +.show_80 { + animation: show_80 .3s forwards; + bottom: 384rpx; +} + +.show_60 { + animation: show_60 .3s forwards; + bottom: 288rpx; +} + +.show_40 { + animation: show_40 .3s forwards; + bottom: 192rpx; +} + +.show_20 { + animation: show_20 .3s forwards; + bottom: 96rpx; +} + +@-webkit-keyframes show_20 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_20 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@-webkit-keyframes show_40 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_40 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@-webkit-keyframes show_60 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_60 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@-webkit-keyframes show_80 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_80 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +.hide_80 { + animation: hide_80 .3s; +} + +.hide_60,.hide_80 { + bottom: 0; + opacity: 0; +} + +.hide_60 { + animation: hide_60 .3s; +} + +.hide_40 { + animation: hide_40 .3s; +} + +.hide_20,.hide_40 { + bottom: 0; + opacity: 0; +} + +.hide_20 { + animation: hide_20 .3s; +} + +@-webkit-keyframes hide_20 { + from { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_20 { + from { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@-webkit-keyframes hide_40 { + from { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_40 { + from { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@-webkit-keyframes hide_60 { + from { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_60 { + from { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@-webkit-keyframes hide_80 { + from { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_80 { + from { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/images/default-avatar.jpg b/wx05cb767e6530b48f/images/default-avatar.jpg new file mode 100644 index 0000000..599aa5d Binary files /dev/null and b/wx05cb767e6530b48f/images/default-avatar.jpg differ diff --git a/wx05cb767e6530b48f/images/no_content.png b/wx05cb767e6530b48f/images/no_content.png new file mode 100644 index 0000000..3520e86 Binary files /dev/null and b/wx05cb767e6530b48f/images/no_content.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/cart.png b/wx05cb767e6530b48f/images/tabBar/cart.png new file mode 100644 index 0000000..38d1e88 Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/cart.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/cart_on.png b/wx05cb767e6530b48f/images/tabBar/cart_on.png new file mode 100644 index 0000000..3632235 Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/cart_on.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/cate.png b/wx05cb767e6530b48f/images/tabBar/cate.png new file mode 100644 index 0000000..1118ad4 Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/cate.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/cate_on.png b/wx05cb767e6530b48f/images/tabBar/cate_on.png new file mode 100644 index 0000000..c224843 Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/cate_on.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/home.png b/wx05cb767e6530b48f/images/tabBar/home.png new file mode 100644 index 0000000..394d24a Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/home.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/home_on.png b/wx05cb767e6530b48f/images/tabBar/home_on.png new file mode 100644 index 0000000..53a5573 Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/home_on.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/user.png b/wx05cb767e6530b48f/images/tabBar/user.png new file mode 100644 index 0000000..216ba85 Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/user.png differ diff --git a/wx05cb767e6530b48f/images/tabBar/user_on.png b/wx05cb767e6530b48f/images/tabBar/user_on.png new file mode 100644 index 0000000..c772edc Binary files /dev/null and b/wx05cb767e6530b48f/images/tabBar/user_on.png differ diff --git a/wx05cb767e6530b48f/images/user-bg.png b/wx05cb767e6530b48f/images/user-bg.png new file mode 100644 index 0000000..f4a71d4 Binary files /dev/null and b/wx05cb767e6530b48f/images/user-bg.png differ diff --git a/wx05cb767e6530b48f/images/wechatapp.png b/wx05cb767e6530b48f/images/wechatapp.png new file mode 100644 index 0000000..3d9a991 Binary files /dev/null and b/wx05cb767e6530b48f/images/wechatapp.png differ diff --git a/wx05cb767e6530b48f/pages/address/createa.js b/wx05cb767e6530b48f/pages/address/createa.js new file mode 100644 index 0000000..4d3c6fc --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/createa.js @@ -0,0 +1,51 @@ +var e = getApp(); + +Page({ + data: { + disabled: !1, + nav_select: !1, + name: "", + region: "", + phone: "", + detail: "", + error: "" + }, + onLoad: function(e) {}, + saveData: function(a) { + var t = this, n = a.detail.value; + if (n.region = t.data.region, !t.validation(n)) return e.showError(t.data.error), + !1; + t.setData({ + disabled: !0 + }), e._post_form("address/add", n, function(a) { + e.showSuccess(a.msg, function() { + wx.navigateBack(); + }); + }, !1, function() { + t.setData({ + disabled: !1 + }); + }); + }, + webvue1: function() { + console.log(111), wx.navigateTo({ + url: "webvue?id=1" + }); + }, + webvue2: function() { + console.log(111), wx.navigateTo({ + url: "webvue?id=2" + }); + }, + validation: function(e) { + if ("" === e.name) return this.data.error = "收件人不能为空", !1; + if (e.phone.length < 1) return this.data.error = "手机号不能为空", !1; + return /^((0\d{2,3}-\d{7,8})|(1[3456789]\d{9}))$/.test(e.phone) ? this.data.region ? "" !== e.detail || (this.data.error = "详细地址不能为空", + !1) : (this.data.error = "省市区不能空", !1) : (this.data.error = "手机号不符合要求", !1); + }, + bindRegionChange: function(e) { + this.setData({ + region: e.detail.value + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/createa.json b/wx05cb767e6530b48f/pages/address/createa.json new file mode 100644 index 0000000..4a2b7e0 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/createa.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "新增收货地址", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/createa.wxml b/wx05cb767e6530b48f/pages/address/createa.wxml new file mode 100644 index 0000000..520be72 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/createa.wxml @@ -0,0 +1,52 @@ + + +
+ + + + 收货人 + + + + + + + + 手机号 + + + + + + + + + + 所在地区 + + + + {{region}} + 选择省、市、区 + + + + + + 详细地址 + + + + + + + + + +
+ + 《用户服务协议》 + 《隐私政策》 + +
+ diff --git a/wx05cb767e6530b48f/pages/address/createa.wxss b/wx05cb767e6530b48f/pages/address/createa.wxss new file mode 100644 index 0000000..b5fdea6 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/createa.wxss @@ -0,0 +1,172 @@ +.profile-list .admin { + color: #333; + font-size: 30rpx; + padding-left: 15px; +} + +.address-box .left-name { + width: 85px; +} + +.address-cont-title .list { + padding: 24rpx; + width: auto; +} + +.tui-picker-detail text { + padding: 0 10rpx; +} + +.infoText { + display: block; + line-height: 56rpx; +} + +picker-view { + background-color: #fff; + bottom: 0; + height: 480rpx; + padding: 0; + position: fixed; + width: 100%; +} + +picker-view-column view { + align-items: center; + display: flex; + font-size: 28rpx; + height: 100%; + justify-content: center; + line-height: 28rpx; + vertical-align: middle; +} + +.animation-element-wrapper { + height: 100%; + left: 0; + top: 0; + z-index: 21; +} + +.animation-element,.animation-element-wrapper { + display: flex; + position: fixed; + width: 100%; +} + +.animation-element { + background-color: #fff; + bottom: 0; + height: 570rpx; +} + +.animation-button { + align-items: center; + height: 100rpx; + line-height: 100rpx; + margin-top: 20rpx; + top: 20rpx; + width: 400rpx; +} + +.address-text { + color: #999; + display: inline-flex; + font-family: Arial,Helvetica,sans-serif; + font-size: 30rpx; + height: 50rpx; + line-height: 50rpx; + margin-top: 20rpx; + position: fixed; + text-align: center; +} + +.left-bt { + left: 30rpx; +} + +.right-bt { + color: #ec5151; + right: 30rpx; +} + +.line { + background-color: #eee; + display: block; + height: 1rpx; + margin-top: 89rpx; + position: fixed; + width: 100%; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.m-top35 { + margin-top: 35rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/detail.js b/wx05cb767e6530b48f/pages/address/detail.js new file mode 100644 index 0000000..862eb1a --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/detail.js @@ -0,0 +1,49 @@ +var a = getApp(); + +Page({ + data: { + disabled: !1, + nav_select: !1, + region: "", + detail: {}, + error: "" + }, + onLoad: function(a) { + this.getAddressDetail(a.address_id); + }, + getAddressDetail: function(t) { + var e = this; + a._get("address/detail", { + address_id: t + }, function(a) { + e.setData(a.data); + }); + }, + saveData: function(t) { + var e = this, d = t.detail.value; + if (d.region = e.data.region, !e.validation(d)) return a.showError(e.data.error), + !1; + e.setData({ + disabled: !0 + }), d.address_id = e.data.detail.address_id, a._post_form("address/edit", d, function(t) { + a.showSuccess(t.msg, function() { + wx.navigateBack(); + }); + }, !1, function() { + e.setData({ + disabled: !1 + }); + }); + }, + validation: function(a) { + if ("" === a.name) return this.data.error = "收件人不能为空", !1; + if (a.phone.length < 1) return this.data.error = "手机号不能为空", !1; + return /^((0\d{2,3}-\d{7,8})|(1[3456789]\d{9}))$/.test(a.phone) ? this.data.region ? "" !== a.detail || (this.data.error = "详细地址不能为空", + !1) : (this.data.error = "省市区不能空", !1) : (this.data.error = "手机号不符合要求", !1); + }, + bindRegionChange: function(a) { + this.setData({ + region: a.detail.value + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/detail.json b/wx05cb767e6530b48f/pages/address/detail.json new file mode 100644 index 0000000..9f4abce --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/detail.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "编辑收货地址", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/detail.wxml b/wx05cb767e6530b48f/pages/address/detail.wxml new file mode 100644 index 0000000..7798151 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/detail.wxml @@ -0,0 +1,48 @@ + + +
+ + + + 收货人 + + + + + + + + 手机号 + + + + + + + + + + 所在地区 + + + + {{region}} + 选择省、市、区 + + + + + + 详细地址 + + + + + + + + + +
+
+ diff --git a/wx05cb767e6530b48f/pages/address/detail.wxss b/wx05cb767e6530b48f/pages/address/detail.wxss new file mode 100644 index 0000000..b5fdea6 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/detail.wxss @@ -0,0 +1,172 @@ +.profile-list .admin { + color: #333; + font-size: 30rpx; + padding-left: 15px; +} + +.address-box .left-name { + width: 85px; +} + +.address-cont-title .list { + padding: 24rpx; + width: auto; +} + +.tui-picker-detail text { + padding: 0 10rpx; +} + +.infoText { + display: block; + line-height: 56rpx; +} + +picker-view { + background-color: #fff; + bottom: 0; + height: 480rpx; + padding: 0; + position: fixed; + width: 100%; +} + +picker-view-column view { + align-items: center; + display: flex; + font-size: 28rpx; + height: 100%; + justify-content: center; + line-height: 28rpx; + vertical-align: middle; +} + +.animation-element-wrapper { + height: 100%; + left: 0; + top: 0; + z-index: 21; +} + +.animation-element,.animation-element-wrapper { + display: flex; + position: fixed; + width: 100%; +} + +.animation-element { + background-color: #fff; + bottom: 0; + height: 570rpx; +} + +.animation-button { + align-items: center; + height: 100rpx; + line-height: 100rpx; + margin-top: 20rpx; + top: 20rpx; + width: 400rpx; +} + +.address-text { + color: #999; + display: inline-flex; + font-family: Arial,Helvetica,sans-serif; + font-size: 30rpx; + height: 50rpx; + line-height: 50rpx; + margin-top: 20rpx; + position: fixed; + text-align: center; +} + +.left-bt { + left: 30rpx; +} + +.right-bt { + color: #ec5151; + right: 30rpx; +} + +.line { + background-color: #eee; + display: block; + height: 1rpx; + margin-top: 89rpx; + position: fixed; + width: 100%; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.m-top35 { + margin-top: 35rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/index.js b/wx05cb767e6530b48f/pages/address/index.js new file mode 100644 index 0000000..9c31d12 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/index.js @@ -0,0 +1,54 @@ +var t = getApp(); + +Page({ + data: { + list: [], + default_id: null + }, + onLoad: function(t) { + this.data.options = t; + }, + onShow: function() { + this.getAddressList(); + }, + getAddressList: function() { + var e = this; + t._get("address/lists", {}, function(t) { + e.setData(t.data); + }); + }, + createAddress: function() { + wx.navigateTo({ + url: "./createa" + }); + }, + editAddress: function(t) { + wx.navigateTo({ + url: "./detail?address_id=" + t.currentTarget.dataset.id + }); + }, + removeAddress: function(e) { + var s = this, a = e.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "您确定要移除当前收货地址吗?", + success: function(e) { + e.confirm && t._post_form("address/delete", { + address_id: a + }, function(t) { + s.getAddressList(); + }); + } + }); + }, + setDefault: function(e) { + var s = this, a = e.detail.value; + return s.setData({ + default_id: parseInt(a) + }), t._post_form("address/setDefault", { + address_id: a + }, function(t) { + "flow" === s.data.options.from && wx.navigateBack(); + }), !1; + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/index.json b/wx05cb767e6530b48f/pages/address/index.json new file mode 100644 index 0000000..fd8b03a --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "收货地址", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/index.wxml b/wx05cb767e6530b48f/pages/address/index.wxml new file mode 100644 index 0000000..e76ca57 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/index.wxml @@ -0,0 +1,45 @@ + + + + + + + {{item.name}} {{item.phone}} + + {{item.region.province}} {{item.region.city}} {{item.region.region}} {{item.detail}} + + + + + + + + + + + + 编辑 + + + + 删除 + + + + + + + + + 亲,您还没有收货列表 + + + + 添加新地址 + + + diff --git a/wx05cb767e6530b48f/pages/address/index.wxss b/wx05cb767e6530b48f/pages/address/index.wxss new file mode 100644 index 0000000..93f368c --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/index.wxss @@ -0,0 +1,100 @@ +.address-list { + border-bottom: 1px solid #f6f6f9; +} + +.address-list .list { + padding: 15rpx; +} + +.address-list .list .title { + color: #666; + font-size: 30rpx; + padding: 0 24rpx 0 6rpx; +} + +.address-list .list .cont { + color: #333; + font-size: 30rpx; +} + +.address-list .list navigator { + display: inline-block; +} + +.address-list .list image { + height: 28rpx; + width: 28rpx; +} + +.address-left { + flex: 6; +} + +.address-right { + flex: 3.2; +} + +.address-right .iconfont { + color: #777; + font-size: 30rpx; +} + +.flow-fixed-footer { + background: #f42424; + bottom: 0; + position: fixed; + width: 100%; + z-index: 4999; +} + +.flow-fixed-footer .chackout-left { + color: #777; + font-size: 32rpx; + line-height: 44px; +} + +.flow-fixed-footer .chackout-right { + font-size: 34rpx; +} + +.address-header { + background-size: 120rpx auto; + border-bottom: 1px solid #f6f6f9; + font-size: 1.7rem; + padding: 28rpx 0; +} + +.flow-header-left { + flex: 14; + padding: 0rpx 20rpx; +} + +.flow-header-right { + flex: 1; +} + +.flow-header-right image { + float: right; + height: 34rpx; + margin-top: 20rpx; + width: 34rpx; +} + +.address-header .flow-checkout-admin { + color: #444; + font-size: 34rpx; +} + +.address-header .flow-checkout-admin text { + padding: 0 10rpx; +} + +.address-header .flow-checkout-address { + color: #777; + font-size: 26rpx; + margin-top: 6rpx; +} + +.radio-group raido { + color: #f42424; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/webvue.js b/wx05cb767e6530b48f/pages/address/webvue.js new file mode 100644 index 0000000..ad49dcd --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/webvue.js @@ -0,0 +1,14 @@ +Page({ + data: { + url2: "https://wxminiapp.19year.cn/2.html", + url1: "https://wxminiapp.19year.cn/1.html", + url: "" + }, + onLoad: function(t) { + console.log("id", t.id), "1" == t.id ? (console.log(1), this.setData({ + url: "https://wxminiapp.19year.cn/1.html?dat=" + Date.now() + })) : (console.log(2), this.setData({ + url: "https://wxminiapp.19year.cn/2.html?dat=" + Date.now() + })), console.log(this.url); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/webvue.json b/wx05cb767e6530b48f/pages/address/webvue.json new file mode 100644 index 0000000..bd373b9 --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/webvue.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "说明", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/address/webvue.wxml b/wx05cb767e6530b48f/pages/address/webvue.wxml new file mode 100644 index 0000000..34c346a --- /dev/null +++ b/wx05cb767e6530b48f/pages/address/webvue.wxml @@ -0,0 +1 @@ + diff --git a/wx05cb767e6530b48f/pages/address/webvue.wxss b/wx05cb767e6530b48f/pages/address/webvue.wxss new file mode 100644 index 0000000..e69de29 diff --git a/wx05cb767e6530b48f/pages/aftermarket/create.js b/wx05cb767e6530b48f/pages/aftermarket/create.js new file mode 100644 index 0000000..79bf581 --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/create.js @@ -0,0 +1,68 @@ +var e = getApp(); + +Page({ + data: { + disabled: !1, + nav_select: !1, + name: "", + region: "", + phone: "", + detail: "", + error: "", + order_goods_id: 0, + info: {} + }, + onLoad: function(e) { + this.data.order_goods_id = e.order_goods_id, this.getOrderDetail(e.order_goods_id); + }, + goodsDetail: function(e) { + var t = e.currentTarget.dataset.id; + wx.navigateTo({ + url: "../goods/index?goods_id=" + t + }); + }, + getOrderDetail: function(t) { + var a = this; + e._get("user.order_goods/getOrderGoods", { + order_goods_id: t + }, function(e) { + e.data.info.aftermarket_apply_date = a.formatDate(1e3 * e.data.info.aftermarket_apply_time), + e.data.info.aftermarket_dispose_date = a.formatDate(1e3 * e.data.info.aftermarket_dispose_time), + a.setData(e.data); + }); + }, + formatDate: function(e) { + var t = new Date(e), a = t.getFullYear(), r = t.getMonth() + 1; + r = r < 10 ? "0" + r : r; + var o = t.getDate(); + o = o < 10 ? "0" + o : o; + var d = t.getHours(); + d = d < 10 ? "0" + d : d; + var i = t.getMinutes(), n = t.getSeconds(); + return a + "-" + r + "-" + o + " " + d + ":" + (i = i < 10 ? "0" + i : i) + ":" + (n = n < 10 ? "0" + n : n); + }, + saveData: function(t) { + var a = this, r = t.detail.value; + if (r.order_goods_id = a.data.order_goods_id, !a.validation(r)) return e.showError(a.data.error), + !1; + a.setData({ + disabled: !0 + }), e._post_form("user.order_goods/submitAftermarket", r, function(t) { + if (console.log(t), 1 != t.code) return e.showError(t.msg), !1; + a.getOrderDetail(a.data.order_goods_id); + }, !1, function() { + a.setData({ + disabled: !1 + }); + }); + }, + validation: function(e) { + return "" === e.refund_reason ? (this.data.error = "退款原因不能为空", !1) : 20 != this.data.info.order.delivery_status || "" !== e.deliver_no || (this.data.error = "快递单号不能为空", + !1); + }, + bindRegionChange: function(e) { + this.setData({ + region: e.detail.value + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/aftermarket/create.json b/wx05cb767e6530b48f/pages/aftermarket/create.json new file mode 100644 index 0000000..a91d70d --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/create.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "售后详情", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/aftermarket/create.wxml b/wx05cb767e6530b48f/pages/aftermarket/create.wxml new file mode 100644 index 0000000..32e2365 --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/create.wxml @@ -0,0 +1,85 @@ + + + + + + + 商品详情 + + + + + + + + {{order.create_time}} + + + + + + + + + + + {{info.goods_name}} + {{info.goods_attr}} + + ¥{{info.goods_price}} + ×{{info.total_num}} + + + + + +
+ + + + 退款原因 + + + + + + + + 快递单号 + + + + + + + + + + +
+ + + 退款单号: {{info.refund_no}} + + + 退款原因: {{info.refund_reason}} + + + 快递单号: {{info.deliver_no}} + + + 退款状态: 已申请 + 退款状态: 已退款 + + + 申请时间: {{info.aftermarket_apply_date}} + + + 完成时间: {{info.aftermarket_dispose_date}} + + + 退款金额: ¥{{info.refund_price}} + + +
+ diff --git a/wx05cb767e6530b48f/pages/aftermarket/create.wxss b/wx05cb767e6530b48f/pages/aftermarket/create.wxss new file mode 100644 index 0000000..7000c72 --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/create.wxss @@ -0,0 +1,224 @@ +.profile-list .admin { + color: #333; + font-size: 30rpx; + padding-left: 15px; +} + +.address-box .left-name { + width: 85px; +} + +.address-cont-title .list { + padding: 24rpx; + width: auto; +} + +.tui-picker-detail text { + padding: 0 10rpx; +} + +.infoText { + display: block; + line-height: 56rpx; +} + +picker-view { + background-color: #fff; + bottom: 0; + height: 480rpx; + padding: 0; + position: fixed; + width: 100%; +} + +picker-view-column view { + align-items: center; + display: flex; + font-size: 28rpx; + height: 100%; + justify-content: center; + line-height: 28rpx; + vertical-align: middle; +} + +.animation-element-wrapper { + height: 100%; + left: 0; + top: 0; + z-index: 21; +} + +.animation-element,.animation-element-wrapper { + display: flex; + position: fixed; + width: 100%; +} + +.animation-element { + background-color: #fff; + bottom: 0; + height: 570rpx; +} + +.animation-button { + align-items: center; + height: 100rpx; + line-height: 100rpx; + margin-top: 20rpx; + top: 20rpx; + width: 400rpx; +} + +.address-text { + color: #999; + display: inline-flex; + font-family: Arial,Helvetica,sans-serif; + font-size: 30rpx; + height: 50rpx; + line-height: 50rpx; + margin-top: 20rpx; + position: fixed; + text-align: center; +} + +.left-bt { + left: 30rpx; +} + +.right-bt { + color: #ec5151; + right: 30rpx; +} + +.line { + background-color: #eee; + display: block; + height: 1rpx; + margin-top: 89rpx; + position: fixed; + width: 100%; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.m-top35 { + margin-top: 35rpx; +} + +.flow-list .header { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; + position: relative; +} + +.flow-list .header text { + font-size: 32rpx; + padding-left: 80rpx; +} + +.flow-list .header image { + height: 37rpx; + left: 15px; + margin-top: -18rpx; + position: absolute; + top: 50%; + width: 34rpx; +} + +.order-header { + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; +} + +.order-header text { + font-size: 28rpx; +} + +.order-header text.title { + color: #333; +} + +.order-cont { + justify-content: space-between; +} + +.order-cont .order-num text,.order-cont .time { + color: #888; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.flow-all-list-cont1 { + font-size: 32rpx; + padding: 10rpx 0; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/aftermarket/index.js b/wx05cb767e6530b48f/pages/aftermarket/index.js new file mode 100644 index 0000000..26a037b --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/index.js @@ -0,0 +1,86 @@ +var t = getApp(); + +Page({ + data: { + dataType: "all", + data: [] + }, + onLoad: function(t) { + this.data.dataType = t.type || "all", this.setData({ + dataType: this.data.dataType + }); + }, + onShow: function() { + this.getOrderList(this.data.dataType); + }, + formatDate: function(t) { + var e = new Date(t), a = e.getFullYear(), r = e.getMonth() + 1; + r = r < 10 ? "0" + r : r; + var d = e.getDate(); + d = d < 10 ? "0" + d : d; + var o = e.getHours(); + o = o < 10 ? "0" + o : o; + var n = e.getMinutes(), i = e.getSeconds(); + return a + "-" + r + "-" + d + " " + o + ":" + (n = n < 10 ? "0" + n : n) + ":" + (i = i < 10 ? "0" + i : i); + }, + getOrderList: function(e) { + var a = this; + t._get("user.order_goods/getOrderGoodsList", { + dataType: e + }, function(t) { + t.data.length && wx.pageScrollTo({ + scrollTop: 0 + }); + for (var e = 0; e < t.data.length; e++) t.data[e].aftermarket_apply_date = a.formatDate(1e3 * t.data[e].aftermarket_apply_time); + a.setData(t); + }); + }, + bindHeaderTap: function(t) { + this.setData({ + dataType: t.target.dataset.type + }), this.getOrderList(t.target.dataset.type); + }, + cancelOrder: function(e) { + var a = this, r = e.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认取消订单?", + success: function(e) { + e.confirm && t._post_form("user.order/cancel", { + order_id: r + }, function(t) { + a.getOrderList(a.data.dataType); + }); + } + }); + }, + receipt: function(e) { + var a = this, r = e.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认收到商品?", + success: function(e) { + e.confirm && t._post_form("user.order/receipt", { + order_id: r + }, function(t) { + a.getOrderList(a.data.dataType); + }); + } + }); + }, + detail: function(t) { + var e = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../aftermarket/create?order_goods_id=" + e + }); + }, + orderDetail: function(t) { + var e = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../order/detail?order_id=" + e + }); + }, + onPullDownRefresh: function() { + wx.stopPullDownRefresh(); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/aftermarket/index.json b/wx05cb767e6530b48f/pages/aftermarket/index.json new file mode 100644 index 0000000..9705daf --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "售后订单", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/aftermarket/index.wxml b/wx05cb767e6530b48f/pages/aftermarket/index.wxml new file mode 100644 index 0000000..47a65e8 --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/index.wxml @@ -0,0 +1,78 @@ + + + + 全部售后 + 已申请 + 已完成 + + + + + + + + + 商品信息 + + + 已完成 + 已申请 + + + + + + + 退款单号:{{item.refund_no}} + + + {{item.create_time}} + + + + + + + + + + + + + + + 共1件 + + + + + + + + + + 申请时间: + {{item.aftermarket_apply_date}} + + + + + + 订单详情 + + + + + + + + + + + 亲,您还没有售后信息哦! + + + + + + diff --git a/wx05cb767e6530b48f/pages/aftermarket/index.wxss b/wx05cb767e6530b48f/pages/aftermarket/index.wxss new file mode 100644 index 0000000..dd65cbb --- /dev/null +++ b/wx05cb767e6530b48f/pages/aftermarket/index.wxss @@ -0,0 +1,151 @@ +.header { + background: #fff; + border-bottom: 1rpx solid #e4e4e4; + display: flex; + height: 44px; + line-height: 44px; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.header view { + flex: 1; + text-align: center; +} + +.header .active { + color: #fd4a5f; +} + +.wrapper { + margin-top: 54px; +} + +.order-box { + padding: 0 15px; +} + +.order-header { + padding-top: 10rpx; +} + +.order-header .title { + color: #333; + font-size: 30rpx; +} + +.order-header .cont { + color: #fd4a5f; + font-size: 30rpx; +} + +.order-cont { + justify-content: space-between; + padding: 15rpx 0; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-shop { + padding: 16rpx 0; +} + +.order-shop-left,.order-shop-left image { + background: #fff; + display: inline-block; + height: 160rpx; + margin-right: 15rpx; + width: 160rpx; +} + +.order-shop .num { + float: right; +} + +.order-btn { + padding: 18rpx 0; +} + +.order-btn .order-left { + flex: 3; +} + +.order-btn .order-left .text,.order-btn .order-left text { + font-size: 30rpx; +} + +.order-btn .order-left .text { + color: #777; +} + +.order-btn .order-right { + flex: 1.5; +} + +.order-list-box .left { + flex: 4; + overflow: hidden; + position: relative; +} + +.order-list-box .right { + flex: 1; +} + +.goods-number { + color: #777; + font-size: 28rpx; + position: absolute; + right: 12px; + top: 35%; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; +} + +.btn-default,.btn-main { + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.btn-main { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + margin-left: 10rpx; +} + +.user-orderJtou { + color: #888; + font-size: 24rpx; + margin-top: -20rpx; + position: absolute; + right: 0; + top: 50%; +} + +.order-img_list { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + border-top: 1rpx solid #f1f1f1; +} + +.order-right-name { + color: #555; + font-size: 30rpx; + left: 180rpx; + line-height: 1.6; + margin-top: -46rpx; + position: absolute; + top: 50%; + width: 100%; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/category/index.js b/wx05cb767e6530b48f/pages/category/index.js new file mode 100644 index 0000000..7460540 --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/index.js @@ -0,0 +1,85 @@ +var t = getApp(); + +Page({ + data: { + searchColor: "rgba(0,0,0,0.4)", + searchSize: "15", + searchName: "搜索商品", + scrollHeight: 0, + curIndex: -1, + curCateId: 0, + categoryList: [], + goodsList: [], + noMore: !1, + isLoading: !0, + page: 1 + }, + onLoad: function() { + this.setListHeight(), this.getCategoryList(); + }, + onShow: function() {}, + setListHeight: function() { + var t = this; + wx.getSystemInfo({ + success: function(a) { + t.setData({ + scrollHeight: a.windowHeight - 47 + }); + } + }); + }, + getCategoryList: function() { + var a = this; + t._get("category/index", {}, function(t) { + var o = t.data; + a.setData({ + categoryList: o.categoryList, + goodsList: o.goodsList + }); + }); + }, + getGoodsList: function(a, o) { + var s = this; + t._get("goods/lists", { + page: o || 1, + category_id: s.data.curCateId + }, function(t) { + var o = t.data.list, e = s.data.goodsList; + 1 == a ? s.setData({ + "goodsList.data": e.data.concat(o.data), + isLoading: !1 + }) : s.setData({ + goodsList: o, + isLoading: !1 + }); + }); + }, + onTargetGoods: function(t) { + wx.navigateTo({ + url: "../goods/index?goods_id=" + t.detail.target.dataset.id + }); + }, + onSelectNav: function(t) { + var a = t.currentTarget.dataset.index; + this.setData({ + curIndex: a, + curCateId: a > -1 ? this.data.categoryList[a].category_id : 0, + goodsList: [], + page: 1, + noMore: !1, + isLoading: !0 + }), this.getGoodsList(); + }, + onDownLoad: function() { + if (this.data.page >= this.data.goodsList.last_page) return this.setData({ + noMore: !0 + }), !1; + this.getGoodsList(!0, ++this.data.page); + }, + onShareAppMessage: function() { + return { + title: "全部商品", + path: "/pages/category/index" + }; + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/category/index.json b/wx05cb767e6530b48f/pages/category/index.json new file mode 100644 index 0000000..bb41c37 --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "全部商品", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/category/index.wxml b/wx05cb767e6530b48f/pages/category/index.wxml new file mode 100644 index 0000000..31850b8 --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/index.wxml @@ -0,0 +1,53 @@ + + + + + + {{searchName}} + + + + + + 全部 + {{item.name}} + + + +
+ +
+
+ 亲, 没有更多了 + + + + 亲,此处暂无商品哦 + + +
+
+
diff --git a/wx05cb767e6530b48f/pages/category/index.wxss b/wx05cb767e6530b48f/pages/category/index.wxss new file mode 100644 index 0000000..850067e --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/index.wxss @@ -0,0 +1,132 @@ +.index-search-box { + background: #fff; + padding: 13rpx 13rpx 18rpx; +} + +.index-search { + border-bottom: 0; + border-radius: 50rpx; + box-sizing: border-box; + color: #999; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; + overflow: hidden; + position: relative; +} + +.index-search,page { + background: #fff; +} + +.no-more { + font-size: 28rpx; + padding-top: 0; +} + +.cate-content { + background: #fff; + width: 100%; +} + +.cate-left { + background: #f8f8f8; + color: #444; + display: flex; + flex-direction: column; + height: 100%; + width: 22.2222%; +} + +.cate-left .type-nav { + display: block; + font-size: 26rpx; + height: 90rpx; + line-height: 90rpx; + position: relative; + text-align: center; + z-index: 10; +} + +.cate-left .type-nav.selected { + background: #fff; + border-right: none; + color: #ff495e; + font-size: 28rpx; +} + +.cate-right { + width: 77.7778%; +} + +.goods-item { + background: #fff; + box-sizing: border-box; + margin-bottom: 10rpx; + padding: 16rpx; + width: 100%; +} + +.goods-item text { + line-height: 1.6; +} + +.goods-item:last-child { + margin-bottom: 0; +} + +.goods-item_left { + align-items: center; + background: #fff; + display: flex; + width: 36%; +} + +.goods-item_left image { + display: block; + height: 190rpx; + width: 190rpx; +} + +.goods-item_right { + padding-left: 20rpx; + position: relative; + width: 60%; +} + +.goods-item_right .goods-item_title { + color: #333; + font-size: 26rpx; + height: 72rpx; + margin-top: 20rpx; +} + +.goods-item_right .goods-item_title text { + line-height: 1.3; +} + +.goods-item_desc { + margin-top: 8rpx; +} + +.desc-selling_point { + color: #ff495e; + font-size: 24rpx; + width: 100%; +} + +.desc-goods_sales { + color: #999; + font-size: 24rpx; +} + +.desc_footer .price_x { + color: #f03c3c; + font-size: 27rpx; + margin-right: 16rpx; +} + +.desc_footer .price_y { + font-size: 24rpx; + text-decoration: line-through; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/category/list.js b/wx05cb767e6530b48f/pages/category/list.js new file mode 100644 index 0000000..d33a3af --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/list.js @@ -0,0 +1,90 @@ +var t = getApp(); + +Page({ + data: { + searchColor: "rgba(0,0,0,0.4)", + searchSize: "15", + searchName: "搜索商品", + scrollHeight: null, + showView: !1, + arrange: "", + sortType: "all", + sortPrice: !1, + option: {}, + list: {}, + noList: !0, + no_more: !1, + page: 1 + }, + onLoad: function(t) { + var a = this; + a.setListHeight(), a.setData({ + option: t + }, function() { + a.getGoodsList(!0); + }); + }, + getGoodsList: function(a, e) { + var s = this; + t._get("goods/lists", { + page: e || 1, + sortType: s.data.sortType, + sortPrice: s.data.sortPrice ? 1 : 0, + category_id: s.data.option.category_id || 0, + search: s.data.option.search || "" + }, function(t) { + var e = t.data.list, i = s.data.list; + !0 === a || void 0 === i.data ? s.setData({ + list: e, + noList: !1 + }) : s.setData({ + "list.data": i.data.concat(e.data) + }); + }); + }, + setListHeight: function() { + var t = this; + wx.getSystemInfo({ + success: function(a) { + t.setData({ + scrollHeight: a.windowHeight - 90 + }); + } + }); + }, + switchSortType: function(t) { + var a = this, e = t.currentTarget.dataset.type, s = "price" !== e || !a.data.sortPrice; + a.setData({ + list: {}, + page: 1, + sortType: e, + sortPrice: s + }, function() { + a.getGoodsList(!0); + }); + }, + toSynthesize: function(t) { + wx.navigateTo({ + url: "../category/screen?objectId=" + }); + }, + onChangeShowState: function() { + this.setData({ + showView: !this.data.showView, + arrange: this.data.arrange ? "" : "arrange" + }); + }, + bindDownLoad: function() { + if (this.data.page >= this.data.list.last_page) return this.setData({ + no_more: !0 + }), !1; + this.getGoodsList(!1, ++this.data.page); + }, + onShareAppMessage: function() { + return { + title: "全部分类", + desc: "", + path: "/pages/category/index" + }; + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/category/list.json b/wx05cb767e6530b48f/pages/category/list.json new file mode 100644 index 0000000..6acff2b --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/list.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "商品列表", + "enablePullDownRefresh": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/category/list.wxml b/wx05cb767e6530b48f/pages/category/list.wxml new file mode 100644 index 0000000..eef63b5 --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/list.wxml @@ -0,0 +1,56 @@ + + + + + + + 搜索商品 + + + + + + + + + + 综合 + + + 销量 + + + 价格 + + + + + + + + + + + + + + + + {{item.goods_name}} + ¥{{item.goods_min_price}} {{item.goods_sku.line_price}} + + + + + + + + + + + + + + 亲, 没有相关内容 + + diff --git a/wx05cb767e6530b48f/pages/category/list.wxss b/wx05cb767e6530b48f/pages/category/list.wxss new file mode 100644 index 0000000..0f34d7d --- /dev/null +++ b/wx05cb767e6530b48f/pages/category/list.wxss @@ -0,0 +1,159 @@ +.store_nav_cont { + padding: 10px 0; +} + +.store_nav_cont #list-true { + color: #ff495e; + font-size: 28rpx; +} + +.store_nav_cont #list-0 { + color: #333; + font-size: 28rpx; +} + +.store_nav_cont #list-0 .icon-fenlei { + color: #777; + font-size: 28rpx; + padding-left: 8rpx; +} + +.store_nav_cont #list-true .icon-fenlei { + color: #ff495e; + font-size: 28rpx; + padding-left: 8rpx; +} + +.store_nav_cont .price { + padding-right: 30rpx; +} + +.store_nav_cont #list-0 .top_jiantou,.store_nav_cont #list-true .top_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -16rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-0 .bot_jiantou,.store_nav_cont #list-true .bot_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -2rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-true .bot_jiantou.active,.store_nav_cont #list-true .top_jiantou.active { + color: #ff495e; +} + +.container { + position: relative; +} + +.cate-btn { + background: #ff495e; + bottom: 18rpx; + color: #fff; + font-size: 20rpx; + padding: 4px 18rpx; + right: 18rpx; +} + +.index-cont-search icon { + left: 0; + margin-left: 20rpx; +} + +.index-search-box { + background: #fff; + border-bottom: 1px solid #eee; + left: 0rpx; + padding: 18rpx 13rpx; + position: fixed; + right: 0rpx; + top: 1rpx; + z-index: 999; +} + +.index-search { + background: #fff; + border-bottom: 0; + border-radius: 50rpx; + box-sizing: border-box; + color: #999; + font-size: 32rpx; + height: 64rpx; + line-height: 64rpx; + margin: 0 10rpx; + overflow: hidden; + position: relative; +} + +.list-right { + width: 60rpx; +} + +.list-right text { + font-size: 40rpx; + height: 60rpx; + line-height: 60rpx; +} + +.list-header { + left: 0; + position: fixed; + right: 0; + top: 1rpx; +} + +.no-more { + color: #737373; + margin: 10px 0; + text-align: center; +} + +.category-list { + overflow: hidden; +} + +.category-list .list { + box-sizing: border-box; + float: left; + width: 50%; +} + +.category-list .list:nth-child(2n) { + border-bottom: 4px solid #f7f7f7; + border-left: 2px solid #f7f7f7; +} + +.category-list .list:nth-child(2n-1) { + border-bottom: 4px solid #f7f7f7; + border-right: 2px solid #f7f7f7; +} + +.category-list.arrange .list { + border-bottom: 1rpx solid #f7f7f7; + overflow: hidden; + padding: 15rpx; + width: 100%; +} + +.category-list.arrange .list .left { + float: left; + width: 35%; +} + +.category-list.arrange .list .right { + float: left; + width: 65%; +} + +.category-list.arrange .list .left .img image { + height: 220rpx; + width: 220rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/flow/checkout.js b/wx05cb767e6530b48f/pages/flow/checkout.js new file mode 100644 index 0000000..e9e4d37 --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/checkout.js @@ -0,0 +1,75 @@ +var o = getApp(); + +Page({ + data: { + nav_select: !1, + options: {}, + address: null, + exist_address: !1, + goods: {}, + disabled: !1, + hasError: !1, + error: "" + }, + onLoad: function(o) { + this.data.options = o, console.log(o); + }, + onShow: function() { + this.getOrderData(); + }, + getOrderData: function() { + var r = this, t = r.data.options, s = function(t) { + if (1 !== t.code) return o.showError(t.msg), !1; + t.data.has_error ? (r.data.hasError = !0, r.data.error = t.data.error_msg, o.showError(r.data.error)) : (r.data.hasError = !1, + r.data.error = ""), r.setData(t.data); + }; + "buyNow" === t.order_type ? o._get("order/buyNow", { + goods_id: t.goods_id, + goods_num: t.goods_num, + goods_sku_id: t.goods_sku_id + }, function(o) { + s(o); + }) : "cart" === t.order_type && o._get("order/cart", {}, function(o) { + s(o); + }); + }, + selectAddress: function() { + wx.navigateTo({ + url: "../address/" + (this.data.exist_address ? "index?from=flow" : "createa") + }); + }, + submitOrder: function() { + var r = this, t = r.data.options; + if (r.data.disabled) return !1; + if (r.data.hasError) return o.showError(r.data.error), !1; + var s = function(r) { + if (-10 === r.code) return o.showError(r.msg, function() { + wx.redirectTo({ + url: "../pays/pays" + }); + }), !1; + wx.redirectTo({ + url: "../pays/pays" + }); + }; + r.data.disabled = !0, wx.showLoading({ + title: "正在处理..." + }), "buyNow" === t.order_type ? o._post_form("order/buyNow", { + goods_id: t.goods_id, + goods_num: t.goods_num, + goods_sku_id: t.goods_sku_id + }, function(o) { + console.log("success"), s(o); + }, function(o) { + console.log("fail"); + }, function() { + console.log("complete"), r.data.disabled = !1; + }) : "cart" === t.order_type && o._post_form("order/cart", {}, function(o) { + console.log("success"), s(o); + }, function(o) { + console.log("fail"); + }, function() { + console.log("complete"), r.data.disabled = !1; + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/flow/checkout.json b/wx05cb767e6530b48f/pages/flow/checkout.json new file mode 100644 index 0000000..af86caf --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/checkout.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "订单确认", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/flow/checkout.wxml b/wx05cb767e6530b48f/pages/flow/checkout.wxml new file mode 100644 index 0000000..6b5cfca --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/checkout.wxml @@ -0,0 +1,74 @@ + + + + + + + + + {{address.name}} + {{address.phone}} + + + {{address.region.province}} {{address.region.city}} {{address.region.region}} {{address.detail}} + + + + + + + + + + + + 去选择配送地址 + + + + + + + + + + + + + + + + {{item.goods_name}} + {{item.goods_sku.goods_attr}} + + ¥{{item.goods_price}} + ×{{item.total_num}} + + + + + + + 共{{order_total_num}}件商品,合计: + ¥{{order_total_price}} + + + + + 商品总金额: + + ¥{{order_total_price}} + + + + + + 实付款: ¥{{order_pay_price}} + + + 提交订单 + + + + + diff --git a/wx05cb767e6530b48f/pages/flow/checkout.wxss b/wx05cb767e6530b48f/pages/flow/checkout.wxss new file mode 100644 index 0000000..d1cce0a --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/checkout.wxss @@ -0,0 +1,18 @@ +.checkout_list { + background: #fff; + border-bottom: 1rpx solid #eee; + padding: 10px 15px 2px; +} + +.checkout_list .flow-shopList { + border-bottom: 1rpx solid #eee; + padding: 5rpx 0 10rpx; +} + +.checkout_list .flow-shopList:last-child { + border-bottom: 0; +} + +.flow-header-left { + padding-left: 90rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/flow/index.js b/wx05cb767e6530b48f/pages/flow/index.js new file mode 100644 index 0000000..5d709db --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/index.js @@ -0,0 +1,119 @@ +var t = require("../../@babel/runtime/helpers/defineProperty"), o = getApp(); + +Page({ + data: { + goods_list: [], + order_total_num: 0, + order_total_price: 0, + colourList: [], + colour_id: 0, + hideNotice: !1, + storeInfo: {} + }, + onLoad: function(t) { + this.pays(), this.getColourList(), this.getStoreInfo(); + }, + onShow: function() { + this.setData({ + isLogin: o.checkIsLogin() + }), this.data.isLogin && this.getCartList(); + }, + pays: function() { + var t = this; + o._get("index/payList", {}, function(o) { + var a = o.data; + t.setData({ + payList: a + }); + }); + }, + getStoreInfo: function() { + var t = this; + o._get("index/getStoreInfo", {}, function(o) { + var a = o.data; + console.log(a), t.setData({ + storeInfo: a.store + }); + }); + }, + switchNotice: function() { + this.setData({ + hideNotice: !0 + }); + }, + getCartList: function() { + var t = this; + o._get("cart/lists", {}, function(o) { + t.setData(o.data); + }); + }, + getColourList: function() { + var t = this; + o._get("goods/getColourList", {}, function(o) { + var a = o.data; + t.setData({ + colourList: a.list + }); + }); + }, + addCount: function(a) { + var e = this, i = a.currentTarget.dataset.index, s = a.currentTarget.dataset.skuId, r = e.data.goods_list[i], n = e.data.order_total_price; + wx.showLoading({ + title: "加载中", + mask: !0 + }), o._post_form("cart/add", { + goods_id: r.goods_id, + goods_num: 1, + goods_sku_id: s + }, function() { + var o; + r.total_num++, e.setData((t(o = {}, "goods_list[" + i + "]", r), t(o, "order_total_price", e.mathadd(n, r.goods_price)), + o)); + }); + }, + minusCount: function(a) { + var e = this, i = a.currentTarget.dataset.index, s = a.currentTarget.dataset.skuId, r = e.data.goods_list[i], n = e.data.order_total_price; + r.total_num > 1 && (wx.showLoading({ + title: "加载中", + mask: !0 + }), o._post_form("cart/sub", { + goods_id: r.goods_id, + goods_sku_id: s + }, function() { + var o; + r.total_num--, r.total_num > 0 && e.setData((t(o = {}, "goods_list[" + i + "]", r), + t(o, "order_total_price", e.mathsub(n, r.goods_price)), o)); + })); + }, + del: function(t) { + var a = this, e = t.currentTarget.dataset.goodsId, i = t.currentTarget.dataset.skuId; + wx.showModal({ + title: "提示", + content: "您确定要移除当前商品吗?", + success: function(t) { + t.confirm && o._post_form("cart/delete", { + goods_id: e, + goods_sku_id: i + }, function(t) { + a.getCartList(); + }); + } + }); + }, + submit: function(t) { + wx.navigateTo({ + url: "../flow/checkout?order_type=cart" + }); + }, + mathadd: function(t, o) { + return (Number(t) + Number(o)).toFixed(2); + }, + mathsub: function(t, o) { + return (Number(t) - Number(o)).toFixed(2); + }, + goShopping: function() { + wx.switchTab({ + url: "../index/index" + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/flow/index.json b/wx05cb767e6530b48f/pages/flow/index.json new file mode 100644 index 0000000..bb6bf4b --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "购物车", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/flow/index.wxml b/wx05cb767e6530b48f/pages/flow/index.wxml new file mode 100644 index 0000000..7c75af0 --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/index.wxml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + {{colourList[item.colour]}}{{item.goods_name}} + {{item.goods_title.length>0?item.goods_title:' '}} + + + {{item.goods_sku.goods_attr}} + + ¥{{item.goods_price}} {{item.goods_sku.line_price}} + + + 请30分钟内提交结算,否则商品将自动移除 + + + + + + + + + + + + 合计:¥{{order_total_price}} + + + 去结算 + + + + + + + 亲,购物车还没有商品哦 + 去逛逛 + + + + diff --git a/wx05cb767e6530b48f/pages/flow/index.wxss b/wx05cb767e6530b48f/pages/flow/index.wxss new file mode 100644 index 0000000..b6ef394 --- /dev/null +++ b/wx05cb767e6530b48f/pages/flow/index.wxss @@ -0,0 +1,457 @@ +.wxParse { + color: #666; + font-family: Helvetica,sans-serif; + font-size: 28rpx; + line-height: 1.8; + margin: 0 5px; +} + +view { + overflow: auto; + word-break: break-all; +} + +.wxParse-inline { + display: inline; +} + +.wxParse-div,.wxParse-inline { + margin: 0; + padding: 0; +} + +.wxParse-h1 { + font-size: 2em; + margin: .67em 0; +} + +.wxParse-h2 { + font-size: 1.5em; + margin: .75em 0; +} + +.wxParse-h3 { + font-size: 1.17em; + margin: .83em 0; +} + +.wxParse-h4 { + margin: 1.12em 0; +} + +.wxParse-h5 { + font-size: .83em; + margin: 1.5em 0; +} + +.wxParse-h6 { + font-size: .75em; + margin: 1.67em 0; +} + +.wxParse-h1 { + font-size: 18px; + font-weight: 400; + margin-bottom: .9em; +} + +.wxParse-h2 { + font-size: 16px; +} + +.wxParse-h2,.wxParse-h3 { + font-weight: 400; + margin-bottom: .34em; +} + +.wxParse-h3 { + font-size: 15px; +} + +.wxParse-h4 { + font-size: 14px; + font-weight: 400; + margin-bottom: .24em; +} + +.wxParse-h5 { + font-size: 13px; + font-weight: 400; + margin-bottom: .14em; +} + +.wxParse-h6 { + font-size: 12px; + font-weight: 400; + margin-bottom: .04em; +} + +.wxParse-b,.wxParse-h1,.wxParse-h2,.wxParse-h3,.wxParse-h4,.wxParse-h5,.wxParse-h6,.wxParse-strong { + font-weight: bolder; +} + +.wxParse-address,.wxParse-cite,.wxParse-em,.wxParse-i,.wxParse-var { + font-style: italic; +} + +.wxParse-code,.wxParse-kbd,.wxParse-pre,.wxParse-samp,.wxParse-tt { + font-family: monospace; +} + +.wxParse-pre { + white-space: pre; +} + +.wxParse-big { + font-size: 1.17em; +} + +.wxParse-small,.wxParse-sub,.wxParse-sup { + font-size: .83em; +} + +.wxParse-sub { + vertical-align: sub; +} + +.wxParse-sup { + vertical-align: super; +} + +.wxParse-del,.wxParse-s,.wxParse-strike { + text-decoration: line-through; +} + +.wxParse-s,.wxParse-strong { + display: inline; +} + +.wxParse-a { + color: #00bfff; + overflow: auto; + word-break: break-all; +} + +.wxParse-video { + margin: 10px 0; + text-align: center; +} + +.wxParse-video-video { + width: 100%; +} + +.wxParse-img { + background-color: #efefef; + overflow: hidden; +} + +.wxParse-blockquote { + background: #f5f5f5; + border-left: 3px solid #dbdbdb; + font-family: Courier,Calibri,宋体; + margin: 0; + padding: 10px 0 10px 5px; +} + +.wxParse-code,.wxParse-wxxxcode-style { + background: #f5f5f5; + display: inline; +} + +.wxParse-ul { + margin: 20rpx 10rpx; +} + +.wxParse-li,.wxParse-li-inner { + align-items: baseline; + display: flex; + margin: 10rpx 0; +} + +.wxParse-li-text { + align-items: center; + line-height: 20px; +} + +.wxParse-li-circle { + background-color: #333; + display: inline-flex; + height: 5px; + margin-right: 5px; + width: 5px; +} + +.wxParse-li-square { + background-color: #333; +} + +.wxParse-li-ring,.wxParse-li-square { + display: inline-flex; + height: 10rpx; + margin-right: 5px; + width: 10rpx; +} + +.wxParse-li-ring { + background-color: #fff; + border: 2rpx solid #333; + border-radius: 50%; +} + +.wxParse-u { + text-decoration: underline; +} + +.wxParse-hide { + display: none; +} + +.WxEmojiView { + align-items: center; +} + +.wxEmoji { + height: 16px; + width: 16px; +} + +.wxParse-tr { + border-bottom: 1px solid #e0e0e0; + border-right: 1px solid #e0e0e0; + border-top: 1px solid #e0e0e0; + display: flex; +} + +.wxParse-td,.wxParse-th { + border-left: 1px solid #e0e0e0; + flex: 1; + font-size: 28rpx; + padding: 5px; + word-break: break-all; +} + +.wxParse-td:last { + border-top: 1px solid #e0e0e0; +} + +.wxParse-th { + background: #f0f0f0; + border-top: 1px solid #e0e0e0; +} + +.image { + height: 100%; + width: 100%; +} + +.cart-tab-item-btn { + background: #ff495e; + color: #fff; + display: block; + float: right; + font-size: 32rpx; + height: 100rpx; + line-height: 100rpx; + text-align: center; + width: 160rpx; +} + +.price { + margin-top: 10rpx; +} + +.colour-box { + background: #e64340; + color: #fff; + font-size: 26rpx; + line-height: 26rpx; + margin-right: 10rpx; + padding: 4rpx 8rpx; + text-align: center; +} + +.cart-tab-item { + width: 375rpx; +} + +.cart-tab-wrp { + background: #fff; + border-top: 1rpx solid #ddd; + bottom: 0rpx; + color: #000; + display: flex; + flex-direction: row; + height: 100rpx; + position: fixed; + width: 100%; + z-index: 10; +} + +.cart-tab-item { + line-height: 100rpx; + overflow: hidden; +} + +.cart-tab-item .cart-item-total-price { + float: left; +} + +.cart-item-total { + padding-left: 30rpx; +} + +.cart-item-total-price { + color: #ff495e; + font-size: 32rpx; + text-align: center; +} + +.cart-item-total-price em { + display: block; +} + +.cart-item-icon-wrp { + height: 90rpx; + position: absolute; + top: -4rpx; + width: 110rpx; +} + +.cart-item-icon { + height: 90rpx; + width: 90rpx; +} + +.dish-item { + background: #fff; + border-bottom: 1rpx solid #eee; + padding: 26rpx 0; + position: relative; + width: 100%; +} + +.dish-item-wrp { + display: flex; + flex-direction: row; + width: 100%; +} + +.dish-item-pic { + margin-left: 15px; + width: 100%; +} + +.dish-item-pic image { + background: #fff; + border: 1rpx solid #eee; + height: 200rpx; + margin: 0 auto; + width: 200rpx; +} + +.dish-item-info { + margin-right: 15px; + padding-left: 16rpx; + width: 68%; +} + +.dish-item-sales { + color: #ccc; + font-size: 20rpx; + line-height: 50rpx; +} + +.dish-item-money { + color: #ff495e; + font-size: 32rpx; + padding: 0 0 10rpx; +} + +.wx-goods_price .dish-item-money { + float: left; +} + +.wx-goods_price { + overflow: hidden; +} + +.flow-dete { + bottom: 25rpx; + position: absolute; + right: 30rpx; +} + +.flow-dete .icon-lajixiang { + color: #777; + font-size: 34rpx; +} + +.flow-btn-min { + background: #fff; + border: 1rpx solid #ccc; + border-radius: 5px; + color: #777; + font-size: 28rpx; + height: 30px; + line-height: 30px; + margin: 25rpx auto 0; + text-align: center; + width: 200rpx; +} + +@-webkit-keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +@keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +.tongzhitext { + margin-left: 10rpx; + margin-right: 80rpx; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.tongzhi-text { + animation: remindMessage 14s linear infinite; + display: block; +} + +.notice-wrap,.tongzhi-text { + color: #d09868; + font-size: 28rpx; + width: 100%; +} + +.notice-wrap { + background: #ffebda; + height: 60rpx; + line-height: 60rpx; +} + +.closeView { + font-size: 35rpx; + height: 45rpx; + line-height: 45rpx; + position: absolute; + right: 20rpx; + text-align: center; + top: 5rpx; + width: 45rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/gongzuo/index.js b/wx05cb767e6530b48f/pages/gongzuo/index.js new file mode 100644 index 0000000..11250cc --- /dev/null +++ b/wx05cb767e6530b48f/pages/gongzuo/index.js @@ -0,0 +1,196 @@ +var a = getApp(), t = require("../../wxParse/wxParse.js"); + +Page({ + data: { + imgList: [], + goodsNo: null, + fromData: null, + isShangJia: !1, + searchValue: "", + searchGoodsNoArray: [], + imageObjArray: [], + imageUrlArray: [], + cateObjArray: [], + indexCate: null, + colourObjList: [], + indexColour: null + }, + bindPickerChangeCate: function(a) { + var t = this.data.fromData; + t.category_id = this.data.cateObjArray[a.detail.value].category_id, this.setData({ + fromData: t, + indexCate: a.detail.value + }); + }, + bindPickerChangeColour: function(a) { + var t = this.data.fromData; + t.colour = this.data.colourObjList[a.detail.value].id, this.setData({ + fromData: t, + indexColour: a.detail.value + }); + }, + onLoad: function(a) { + var t = this; + wx.getStorage({ + key: "user_id", + success: function(a) { + 10984 != a.data && 10003 != a.data && 10004 != a.data && 10011 != a.data && wx.showModal({ + title: "提示", + content: "无权访问", + success: function(a) { + a.confirm, wx.navigateBack({ + delta: 1 + }); + } + }), t.CategoryList(), t.ColourList(); + } + }); + }, + onShow: function() {}, + bindFormSubmit: function(t) { + var o = t.detail.value.jieshao, e = t.detail.value.goods_price, s = this.data.fromData; + if (s.content = o, s.goods_price = e, s.goods_status = this.data.shangjiastatus, + null != s.colour && null != s.category_id) { + var i = {}, r = {}; + i.goods_id = s.goods_id, i.images = s.imageIdList, i.content = o, r.goods_no = this.data.goodsNo, + r.goods_price = e, i.spec = r, i.colour = s.colour, i.goods_status = s.goods_status, + i.category_id = s.category_id, console.log(i), wx.request({ + url: "https://wxminiapp.19year.cn/index.php?s=/api/goods/editGoods&wxapp_id=10001", + header: { + "content-type": "application/json" + }, + data: i, + method: "POST", + success: function(t) { + console.log(t.data), 1 == t.data.code ? a.showError("保存成功") : a.showError("保存失败"); + } + }); + } else a.showError("请选择分类与成色"); + }, + getSearchContent: function(t) { + var o = this, e = t.detail.value; + console.log(e), a._get("goods/likeGoodsNo", { + goods_no: e + }, function(a) { + console.log(a.data.list), o.setData({ + searchGoodsNoArray: a.data.list + }); + }), o.setData({ + searchValue: e + }); + }, + clearNo: function() { + this.setData({ + searchValue: "", + searchGoodsNoArray: [] + }); + }, + xuanze: function(t) { + var o = t.currentTarget.dataset.goodsId; + if (console.log(t.currentTarget.dataset.goodsId), o.length <= 0) return a.showError("没有选中数据"), + !1; + this.setData({ + searchValue: "", + searchGoodsNoArray: [] + }), this.getGoodsDetail(o); + }, + CategoryList: function() { + var t = this; + a._get("category/lists", {}, function(a) { + var o = a.data; + t.setData({ + cateObjArray: o.list + }); + }); + }, + ColourList: function() { + var t = this; + a._get("goods/getColourListV2", {}, function(a) { + var o = a.data; + t.setData({ + colourObjList: o.data + }); + }); + }, + onSaoMa: function() { + var t = this; + wx.scanCode({ + onlyFromCamera: !0, + scanType: [ "barCode" ], + success: function(a) { + t.getGoodsDetail(a.result); + }, + fail: function(t) { + a.showError(t.result + "扫码错误"); + } + }); + }, + getGoodsDetail: function(t) { + var o = this; + a._get("goods/infos", { + goods_no: t + }, function(a) { + var e = o.initGoodsDetailData(a.data); + o.setData(e), o.setData({ + goodsNo: t + }); + var s = [], i = []; + e.detail.image.forEach(function(a) { + s.push(a.file_path), i.push(a); + }), o.setData({ + imageUrlArray: s, + imageObjArray: i + }); + var r = { + imageIdList: [] + }; + r.goods_price = e.goods_price, r.content = o.delHtmlTag(e.detail.content), r.goods_id = e.detail.goods_id, + console.log(e.detail.category_id), o.setData({ + indexCate: null + }), o.data.cateObjArray.forEach(function(a, t) { + a.category_id == e.detail.category_id && (o.setData({ + indexCate: t + }), r.category_id = a.category_id); + }), console.log(e.detail.colour), o.setData({ + indexColour: null + }), o.data.colourObjList.forEach(function(a, t) { + a.id == parseInt(e.detail.colour) && (o.setData({ + indexColour: t + }), r.colour = a.id); + }), 10 == e.detail.goods_status.value ? (r.goods_status = 10, o.setData({ + isShangJia: !0, + fromData: r, + shangjiastatus: 10 + })) : (r.goods_status = 20, o.setData({ + isShangJia: !1, + fromData: r, + shangjiastatus: 20 + })); + }); + }, + initGoodsDetailData: function(a) { + return a.detail.content.length > 0 && t.wxParse("content", "html", a.detail.content, this, 0), + a.goods_sku_id = a.detail.spec[0].spec_sku_id, a.goods_price = a.detail.spec[0].goods_price, + a.line_price = a.detail.spec[0].line_price, a.stock_num = a.detail.spec[0].stock_num, + a; + }, + updateImageList: function(a) { + console.log("update", a); + var t = a.detail.list.map(function(a) { + return a.image_id; + }), o = this.data.fromData; + o.imageIdList = t, console.log(), this.setData({ + fromData: o + }); + }, + delHtmlTag: function(a) { + return a.replace(/<[^>]+>/g, ""); + }, + shangJiaSwitch: function(a) { + a.detail.value ? this.setData({ + shangjiastatus: 10 + }) : this.setData({ + shangjiastatus: 20 + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/gongzuo/index.json b/wx05cb767e6530b48f/pages/gongzuo/index.json new file mode 100644 index 0000000..7340808 --- /dev/null +++ b/wx05cb767e6530b48f/pages/gongzuo/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "工作台", + "usingComponents": { + "wxDragImg": "/components/imgDrag/imgDrag" + } +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/gongzuo/index.wxml b/wx05cb767e6530b48f/pages/gongzuo/index.wxml new file mode 100644 index 0000000..72d2d28 --- /dev/null +++ b/wx05cb767e6530b48f/pages/gongzuo/index.wxml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + {{item.goods_no}} + + + + + 名称:{{detail.goods_name}} + + + 价 格:{{goods_price}} + + + 标 题:{{detail.goods_title.length>0?detail.goods_title:' '}} + + + 状 态:{{detail.goods_status.text}} + + +
+ + + + + + + + + + + 分类:{{cateObjArray[indexCate].name}} + + + + + + 成色:{{colourObjList[indexColour].name}} + + + + + + + + + + + + + + +
+
+ + 请先扫码或根据串号查询商品 + +
diff --git a/wx05cb767e6530b48f/pages/gongzuo/index.wxss b/wx05cb767e6530b48f/pages/gongzuo/index.wxss new file mode 100644 index 0000000..1473ec6 --- /dev/null +++ b/wx05cb767e6530b48f/pages/gongzuo/index.wxss @@ -0,0 +1,142 @@ +.saoma { + align-items: center; + background-color: #f70000; + border-radius: 98rpx; + color: #fff; + display: flex; + flex-direction: row; + justify-content: center; + margin-top: 10rpx; + width: 80%; +} + +.search-input-box { + background: #f7f7f7; + height: 64rpx; + margin-right: 10rpx; + width: auto; +} + +.search-input { + background: #fff; + border-radius: 5px 0 0 5px; + box-sizing: border-box; + overflow: hidden; + padding-left: 10rpx; + width: 100%; +} + +.search-input input { + font-size: 30rpx; + height: 64rpx; + line-height: 64rpx; +} + +.serch-button { + box-sizing: border-box; + width: 20%; +} + +.serch-button button { + border-radius: 0 5px 5px 0; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; +} + +.search-cate-box { + height: 70rpx; +} + +.search-cate { + position: relative; + top: 30%; +} + +.sub { + align-items: center; + background-color: #50f85e; + border-radius: 98rpx; + color: #fff; + display: flex; + flex-direction: row; + justify-content: center; + margin-top: 10rpx; + width: 80%; +} + +.ipt-wrap { + line-height: 100rpx; + min-height: 100rpx; +} + +.ipt-wrap label { + min-width: 120rpx; +} + +.goods-title { + color: #333; + overflow: hidden; + padding: 0 0rpx 0 0; +} + +.money-box,.money-box .num { + margin-top: 10rpx; +} + +.money-box .num { + color: #ff495e; + font-size: 40rpx; +} + +.money-box .del { + TEXT-DECORATION: line-through; + color: #999; + font-size: 24rpx; + margin-left: 6rpx; +} + +.center-text { + align-items: center; + justify-content: center; + padding-top: 25rpx; +} + +.center-text,.img_box { + display: flex; +} + +.img_box { + flex-wrap: wrap; + margin: 20rpx; + width: 100%; +} + +.img_item_i { + display: block; + height: 100%; + width: 100%; +} + +.add_icon { + display: block; + height: 50%; + width: 50%; +} + +.img_item { + border: 1px solid #c0ccda; + height: 210rpx; + margin-bottom: 2%; + margin-right: 2%; + position: relative; + width: 30%; +} + +.closeImv { + height: 50rpx; + position: absolute; + right: 0rpx; + top: 0rpx; + width: 50rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/goods/index.js b/wx05cb767e6530b48f/pages/goods/index.js new file mode 100644 index 0000000..f5c9adc --- /dev/null +++ b/wx05cb767e6530b48f/pages/goods/index.js @@ -0,0 +1,175 @@ +var t = require("../../@babel/runtime/helpers/typeof"), o = getApp(), e = require("../../wxParse/wxParse.js"); + +Page({ + data: { + nav_select: !1, + indicatorDots: !0, + autoplay: !0, + interval: 3e3, + duration: 800, + currentIndex: 1, + floorstatus: !1, + showView: !0, + detail: {}, + goods_price: 0, + line_price: 0, + stock_num: 0, + goods_num: 1, + goods_sku_id: 0, + cart_total_num: 0, + specData: {}, + colourList: [], + colour_id: 0, + storeInfo: {}, + notice_image: "" + }, + goods_spec_arr: [], + onLoad: function(t) { + this.data.goods_id = t.goods_id, this.getGoodsDetail(), this.getColourList(), this.getStoreInfo(); + }, + imgYu: function(t) { + var o = t.currentTarget.dataset.src, e = t.currentTarget.dataset.list; + console.log(e); + var s = [], a = e.length; + if (a > 0) for (var i = 0; i < a; i++) s.push(e[i].file_path); + console.log(o), console.log(s), wx.previewImage({ + current: o, + urls: s + }); + }, + getColourList: function() { + var t = this; + o._get("goods/getColourList", {}, function(o) { + var e = o.data; + t.setData({ + colourList: e.list + }); + }); + }, + getStoreInfo: function() { + var t = this; + o._get("index/getStoreInfo", {}, function(o) { + var e = o.data; + console.log(e), t.setData({ + storeInfo: e.store, + notice_image: e.notice_image + }); + }); + }, + getGoodsDetail: function() { + var t = this; + o._get("goods/detail", { + goods_id: t.data.goods_id + }, function(o) { + var e = t.initGoodsDetailData(o.data); + t.setData(e); + }); + }, + initGoodsDetailData: function(t) { + return t.detail.content.length > 0 && e.wxParse("content", "html", t.detail.content, this, 0), + t.goods_sku_id = t.detail.spec[0].spec_sku_id, t.goods_price = t.detail.spec[0].goods_price, + t.line_price = t.detail.spec[0].line_price, t.stock_num = t.detail.spec[0].stock_num, + 20 == t.detail.spec_type && (t.specData = this.initManySpecData(t.specData)), t; + }, + initManySpecData: function(t) { + for (var o in t.spec_attr) for (var e in t.spec_attr[o].spec_items) e < 1 && (t.spec_attr[o].spec_items[0].checked = !0, + this.goods_spec_arr[o] = t.spec_attr[o].spec_items[0].item_id); + return t; + }, + modelTap: function(t) { + var o = t.currentTarget.dataset.attrIdx, e = t.currentTarget.dataset.itemIdx, s = this.data.specData; + for (var a in s.spec_attr) for (var i in s.spec_attr[a].spec_items) o == a && (s.spec_attr[a].spec_items[i].checked = !1, + e == i && (s.spec_attr[a].spec_items[e].checked = !0, this.goods_spec_arr[a] = s.spec_attr[a].spec_items[e].item_id)); + this.setData({ + specData: s + }), this.updateSpecGoods(); + }, + updateSpecGoods: function() { + var o = this.goods_spec_arr.join("_"), e = this.data.specData.spec_list.find(function(t) { + return t.spec_sku_id == o; + }); + "object" === t(e) && this.setData({ + goods_sku_id: e.spec_sku_id, + goods_price: e.form.goods_price, + line_price: e.form.line_price, + stock_num: e.form.stock_num + }); + }, + setCurrent: function(t) { + this.setData({ + currentIndex: t.detail.current + 1 + }); + }, + onChangeShowState: function() { + this.setData({ + showView: !this.data.showView + }); + }, + goTop: function(t) { + this.setData({ + scrollTop: 0 + }); + }, + scroll: function(t) { + this.setData({ + floorstatus: t.detail.scrollTop > 200 + }); + }, + up: function() { + this.setData({ + goods_num: ++this.data.goods_num + }); + }, + down: function() { + this.data.goods_num > 1 && this.setData({ + goods_num: --this.data.goods_num + }); + }, + flowCart: function() { + wx.switchTab({ + url: "../flow/index" + }); + }, + toIndex: function() { + wx.switchTab({ + url: "../index/index" + }); + }, + submit: function(t) { + var e = this, s = t.currentTarget.dataset.type; + o._post_form("cart/check", { + goods_id: e.data.goods_id, + goods_num: e.data.goods_num, + goods_sku_id: e.data.goods_sku_id + }, function(t) { + if (1 != t.code) return o.showSuccess(t.msg), !1; + "buyNow" === s ? wx.navigateTo({ + url: "../flow/checkout?" + o.urlEncode({ + order_type: "buyNow", + goods_id: e.data.goods_id, + goods_num: e.data.goods_num, + goods_sku_id: e.data.goods_sku_id + }) + }) : "addCart" === s && o._post_form("cart/add", { + goods_id: e.data.goods_id, + goods_num: e.data.goods_num, + goods_sku_id: e.data.goods_sku_id + }, function(t) { + o.showSuccess(t.msg), e.setData(t.data); + }); + }); + }, + onShareAppMessage: function() { + return { + title: this.data.detail.goods_name + " " + this.data.detail.goods_title, + path: "/pages/goods/index?goods_id=" + this.data.goods_id + }; + }, + onShareTimeline: function(t) { + return { + title: this.data.detail.goods_name + " " + this.data.detail.goods_title, + path: "/pages/goods/index?goods_id=" + this.data.goods_id, + imageUrl: this.data.detail.image[0].file_path + }; + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/goods/index.json b/wx05cb767e6530b48f/pages/goods/index.json new file mode 100644 index 0000000..e564663 --- /dev/null +++ b/wx05cb767e6530b48f/pages/goods/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "商品详情", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/goods/index.wxml b/wx05cb767e6530b48f/pages/goods/index.wxml new file mode 100644 index 0000000..3acf274 --- /dev/null +++ b/wx05cb767e6530b48f/pages/goods/index.wxml @@ -0,0 +1,82 @@ + + + + + + + {{currentIndex}} + /{{detail.image.length}} + + + + + + {{colourList[detail.colour]}} + {{detail.goods_name}} + + + + {{detail.goods_title.length>0?detail.goods_title:' '}} + + + ¥{{goods_price}} + ¥{{line_price}} + + + + {{storeInfo.notice}} + + + + + + + + + 商品描述 + + + + + + + + + + + + + + + + + {{cart_total_num}} + + + 加入购物车 + 立即购买 + + + + + + + diff --git a/wx05cb767e6530b48f/pages/goods/index.wxss b/wx05cb767e6530b48f/pages/goods/index.wxss new file mode 100644 index 0000000..5d8e8cf --- /dev/null +++ b/wx05cb767e6530b48f/pages/goods/index.wxss @@ -0,0 +1,330 @@ +.slide-image { + background: #fff; +} + +.banner-box { + border-bottom: 1rpx solid #e4e4e4; + height: 900rpx; +} + +.user-orderJtou { + color: #999; + font-size: 26rpx; + margin-top: -9rpx; + position: absolute; + top: 50%; +} + +.goods-title { + color: #333; + overflow: hidden; + padding: 0 0rpx 0 0; +} + +.money-box,.money-box .num { + margin-top: 10rpx; +} + +.money-box .num { + color: #ff495e; + font-size: 40rpx; +} + +.money-box .del { + TEXT-DECORATION: line-through; + color: #999; + font-size: 24rpx; + margin-left: 6rpx; +} + +.goods-sales-box { + color: #888; +} + +.goods-sales-box .stock { + display: block; + text-align: right; +} + +.goods-property-box { + padding: 12px; + position: relative; +} + +.goods-property-jianTou { + margin-top: -13rpx; + position: absolute; + right: 0; + top: 50%; + width: 52rpx; +} + +.goods-property-jianTou image { + height: 100%; + width: 100%; +} + +.modal_cont_box { + border-top: 1rpx solid #eee; + padding: 20rpx 12px; +} + +.buy_number { + justify-content: space-between; +} + +.buyNumber { + background: #fff; + border-radius: 10rpx; + color: #888; + margin-bottom: 10rpx; +} + +.tmall-types.mb20 { + margin-bottom: 20rpx; +} + +.tipstxt { + color: #888; + font-size: 28rpx; + margin-bottom: 10rpx; +} + +.cartypeitem,.cartypelist { + display: inline-block; +} + +.cartypeitem { + background: #f3f2f8; + border: 1rpx solid #f3f2f8; + border-radius: 10rpx; + color: #444; + font-size: 31rpx; + height: 60rpx; + line-height: 60rpx; + margin: 0 20rpx 20rpx 0; + overflow: hidden; + padding: 0 30rpx; + position: relative; +} + +.cartypeitem.cur { + background: #ff495e; + border: 1rpx solid #ff495e; + color: #fff; +} + +.cartypeitem.cur:after { + bottom: 0; + content: ""; + display: inline-block; + height: 16rpx; + position: absolute; + right: 0; + width: 16rpx; +} + +.cartypeitem.disabled { + background: #eee; + border: 2rpx dashed #dedede; + color: #dedede; + cursor: not-allowed; +} + +.number-banner { + background: rgba(0,0,0,.3); + border-radius: 50rpx; + color: #fff; + font-size: 32rpx; + margin-top: -70rpx; + padding: 0 18rpx; + position: absolute; + right: 30rpx; +} + +.number-banner text:last-child { + color: hsla(0,0%,100%,.6); + font-size: 26rpx; +} + +.cart { + background-color: #fff; +} + +.order-number { + background-color: #f4a213; + color: #fff; + line-height: 46px; + text-align: center; + width: 50%; +} + +.order-number button { + background: none; + border: 0; + border-radius: 0; + color: #fff; + font-size: 34rpx; + line-height: inherit; + padding: 0; +} + +.order-number button::after { + border: none; + border-radius: 0; + box-sizing: border-box; + content: " "; + height: 0; + left: 0; + position: absolute; + top: 0; + transform: scale(0); + transform-origin: 0 0; + width: 0; +} + +.default-btn { + background-color: #ccc; + color: #fff; + line-height: 46px; + text-align: center; + width: 50%; +} + +.user-orderJtou-1 { + color: #999; + font-size: 26rpx; + position: absolute; + transform: rotate(-90deg); +} + +.user-orderJtou-1,.user-orderJtou-2 { + transition: all .2s; +} + +.user-orderJtou-2 { + transform: rotate(90deg); +} + +.flow_num { + background: #ff495e; + border-radius: 30rpx; + height: 30rpx; + min-width: 30rpx; + position: absolute; + right: 20rpx; + top: 10rpx; +} + +.goods-cont-li .wxParse-inline { + padding: 20rpx 10rpx; +} + +.goods-cont-li image { + display: block; + margin: 0 auto; + width: 100%; +} + +.goods-cont-li .wxParse-inline { + font-size: 30rpx; +} + +.comment-num { + color: #333; + font-size: 28rpx; + margin-top: -20rpx; + position: absolute; + right: 34px; + top: 50%; +} + +.top-nav-bar { + display: flex; + flex-wrap: wrap; + font-size: 31rpx; + padding: 12px; +} + +#top-nav-bar-true text { + border: 1rpx solid #ff495e; + color: #ff495e; +} + +#top-nav-bar-0 span { + color: #444; +} + +.footer-fixed .goods-fixed-icon { + background: #fff; + border-left: 1rpx solid #eee; + height: 92rpx; + margin: 0 auto; + padding: 0 6rpx; + position: relative; + width: 150rpx; +} + +.footer-fixed .goods-fixed-icon:first-child { + border-left: none; +} + +.footer-fixed .goods-fixed-icon image { + display: block; + height: 56rpx; + left: 0; + margin-left: 30rpx; + margin-top: 17rpx; + position: absolute; + top: 0; + width: 56rpx; +} + +.footer-fixed .goods-fixed-icon text { + color: #7a7e83; + font-size: 48rpx; +} + +.footer-fixed .goods-fixed-icon .bargain-icon { + height: 50rpx; +} + +.footer-fixed .goods-fixed-icon .bargain-icon image { + height: 50rpx; + margin-top: -40rpx; + width: 50rpx; +} + +.footer-fixed .goods-fixed-icon .bargain-home { + margin-top: 6rpx; + text-align: center; +} + +.footer-fixed .goods-fixed-icon .flow_num text { + color: #fff; + display: block; + font-size: 22rpx; + text-align: center; +} + +.footer-fixed .goods-fixed-icon .icon-shoucang { + font-size: 40rpx; +} + +.footer-fixed .goods-fixed-icon .s_cont { + color: #ff495e; +} + +.colour-box { + background: #e64340; + color: #fff; + font-size: 26rpx; + line-height: 26rpx; + margin-right: 10rpx; + padding: 4rpx 8rpx; + text-align: center; +} + +.goods-title { + margin-top: 8rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index/index.js b/wx05cb767e6530b48f/pages/index/index.js new file mode 100644 index 0000000..c97b98e --- /dev/null +++ b/wx05cb767e6530b48f/pages/index/index.js @@ -0,0 +1,176 @@ +var t = require("../../@babel/runtime/helpers/defineProperty"), a = getApp(); + +Page({ + data: t({ + searchColor: "rgba(0,0,0,0.4)", + searchSize: "15", + searchName: "搜索商品", + scrollHeight: null, + showView: !1, + arrange: "arrange", + sortType: "all", + sortPrice: !1, + sortColour: !1, + option: {}, + list: {}, + noList: !0, + no_more: !1, + page: 1, + searchValue: "", + cateList: [], + cate_id: 0, + colourList: [], + colour_id: 0, + hideNotice: !1, + storeInfo: {}, + tabTxt: "成色", + tab: !0 + }, "colour_id", 0), + onLoad: function(t) { + a.setTitle(); + var e = this; + e.setListHeight(), e.getCategoryList(), e.getColourList(), e.getStoreInfo(), e.setData({ + option: t + }, function() { + e.getGoodsList(!0); + }); + }, + filterTab: function(t) { + this.setData({ + tab: !this.data.tab + }); + }, + filter: function(t) { + var a = t.currentTarget.dataset.id, e = t.currentTarget.dataset.txt, o = this.data.tabTxt; + o = e, this.setData({ + tab: !0, + tabTxt: o, + colour_id: a, + jiage_txt: e + }), this.getGoodsList(!0); + }, + getCategoryList: function() { + var t = this; + a._get("category/lists", {}, function(a) { + var e = a.data; + e.list.unshift({ + category_id: 0, + name: "全部" + }), t.setData({ + cateList: e.list + }); + }); + }, + getStoreInfo: function() { + var t = this; + a._get("index/getStoreInfo", {}, function(a) { + var e = a.data; + console.log(e), t.setData({ + storeInfo: e.store + }); + }); + }, + switchNotice: function() { + this.setData({ + hideNotice: !0 + }); + }, + getColourList: function() { + var t = this; + a._get("goods/getColourList", {}, function(a) { + var e = a.data; + t.setData({ + colourList: e.list + }); + }); + }, + getSearchContent: function(t) { + this.data.searchValue = t.detail.value; + }, + search: function() { + this.getGoodsList(!0); + }, + searchCate: function(t) { + console.log(t.currentTarget.dataset.category_id); + var a = this; + a.setData({ + list: {}, + page: 1, + cate_id: t.currentTarget.dataset.category_id, + tab: !0 + }, function() { + a.getGoodsList(!0); + }); + }, + getGoodsList: function(t, e) { + wx.showLoading({ + title: "刷新中..." + }), console.log(this.data.searchValue); + var o = this; + a._get("goods/lists", { + page: e || 1, + sortType: o.data.sortType, + sortPrice: o.data.sortPrice ? 1 : 0, + sortColour: o.data.sortColour ? 1 : 0, + category_id: o.data.cate_id || 0, + colour_id: o.data.colour_id || 0, + search: o.data.searchValue || "" + }, function(a) { + wx.hideLoading(); + var e = a.data.list, i = o.data.list; + !0 === t || void 0 === i.data ? o.setData({ + list: e, + noList: !1 + }) : o.setData({ + "list.data": i.data.concat(e.data) + }); + }); + }, + setListHeight: function() { + var t = this; + wx.getSystemInfo({ + success: function(a) { + t.setData({ + scrollHeight: a.windowHeight - 160 + }); + } + }); + }, + switchSortType: function(t) { + var a = this, e = t.currentTarget.dataset.type, o = "price" !== e || !a.data.sortPrice, i = "colour" !== e || !a.data.sortColour; + a.setData({ + list: {}, + page: 1, + sortType: e, + sortPrice: o, + sortColour: i, + tab: !0 + }, function() { + a.getGoodsList(!0); + }); + }, + toSynthesize: function(t) { + wx.navigateTo({ + url: "../category/screen?objectId=" + }); + }, + onChangeShowState: function() { + this.setData({ + showView: !this.data.showView, + arrange: this.data.arrange ? "" : "arrange" + }); + }, + bindDownLoad: function() { + if (this.data.page >= this.data.list.last_page) return this.setData({ + no_more: !0 + }), !1; + this.getGoodsList(!1, ++this.data.page); + }, + onShareAppMessage: function() { + return { + title: "小程序首页", + desc: "", + path: "/pages/index/index" + }; + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index/index.json b/wx05cb767e6530b48f/pages/index/index.json new file mode 100644 index 0000000..3928faa --- /dev/null +++ b/wx05cb767e6530b48f/pages/index/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index/index.wxml b/wx05cb767e6530b48f/pages/index/index.wxml new file mode 100644 index 0000000..f350efb --- /dev/null +++ b/wx05cb767e6530b48f/pages/index/index.wxml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.name}} + + + + + + + + + 发布时间 + + + 价格 + + + + + {{tabTxt}} + + + + + + + + + + + + + + + + {{colourList[item.colour]}} + {{item.goods_name}} + + {{item.goods_title.length>0?item.goods_title:' '}} + ¥{{item.goods_min_price}} {{item.goods_sku.line_price}} + + + + + + + + + + + + + + 亲, 没有相关内容 + + diff --git a/wx05cb767e6530b48f/pages/index/index.wxss b/wx05cb767e6530b48f/pages/index/index.wxss new file mode 100644 index 0000000..43481ec --- /dev/null +++ b/wx05cb767e6530b48f/pages/index/index.wxss @@ -0,0 +1,358 @@ +.store_nav_cont { + padding: 10px 0; +} + +.store_nav_cont #list-true { + color: #ff495e; + font-size: 28rpx; +} + +.store_nav_cont #list-0 { + color: #333; + font-size: 28rpx; +} + +.store_nav_cont #list-0 .icon-fenlei { + color: #777; + font-size: 28rpx; + padding-left: 8rpx; +} + +.store_nav_cont #list-true .icon-fenlei { + color: #ff495e; + font-size: 28rpx; + padding-left: 8rpx; +} + +.price { + margin-top: 10rpx; +} + +.title { + height: 50rpx!important; +} + +.store_nav_cont #list-0 .top_jiantou,.store_nav_cont #list-true .top_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -16rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-0 .bot_jiantou,.store_nav_cont #list-true .bot_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -2rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-true .bot_jiantou.active,.store_nav_cont #list-true .top_jiantou.active { + color: #ff495e; +} + +.container { + position: relative; +} + +.cate-btn { + background: #ff495e; + bottom: 18rpx; + color: #fff; + font-size: 20rpx; + padding: 4px 18rpx; + right: 18rpx; +} + +.index-cont-search icon { + left: 0; + margin-left: 20rpx; +} + +.index-search-box { + background: #fff; + border-bottom: 1px solid #eee; + left: 0rpx; + padding: 18rpx 13rpx; + position: fixed; + right: 0rpx; + top: 1rpx; + z-index: 999; +} + +.index-search { + background: #fff; + border-bottom: 0; + border-radius: 50rpx; + box-sizing: border-box; + color: #999; + font-size: 32rpx; + height: 64rpx; + line-height: 64rpx; + margin: 0 10rpx; + overflow: hidden; + position: relative; +} + +.list-right { + width: 60rpx; +} + +.list-right text { + font-size: 40rpx; + height: 64rpx; + line-height: 64rpx; +} + +.list-header { + left: 0; + position: fixed; + right: 0; + top: 1rpx; +} + +.no-more { + color: #737373; + margin: 10px 0; + text-align: center; +} + +.category-list { + overflow: hidden; +} + +.category-list .list { + box-sizing: border-box; + float: left; + width: 50%; +} + +.category-list .list:nth-child(2n) { + border-bottom: 4px solid #f7f7f7; + border-left: 2px solid #f7f7f7; +} + +.category-list .list:nth-child(2n-1) { + border-bottom: 4px solid #f7f7f7; + border-right: 2px solid #f7f7f7; +} + +.category-list.arrange .list { + border-bottom: 1rpx solid #f7f7f7; + overflow: hidden; + padding: 15rpx; + width: 100%; +} + +.category-list.arrange .list .left { + float: left; + width: 35%; +} + +.category-list.arrange .list .right { + float: left; + width: 65%; +} + +.category-list.arrange .list .left .img image { + height: 220rpx; + width: 220rpx; +} + +.search-input-box { + background: #f7f7f7; + height: 64rpx; + margin-right: 10rpx; + width: auto; +} + +.search-input { + border-radius: 5px 0 0 5px; + box-sizing: border-box; + overflow: hidden; + padding-left: 10rpx; + width: 80%; +} + +.search-input input { + font-size: 30rpx; + height: 64rpx; + line-height: 64rpx; +} + +.serch-button { + box-sizing: border-box; + width: 20%; +} + +.serch-button button { + border-radius: 0 5px 5px 0; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; +} + +.search-cate-box { + height: 70rpx; +} + +.search-cate { + position: relative; + top: 30%; +} + +.page-column { + background-color: #f7f7f7; + border-radius: 6rpx; + margin: 0 5rpx; + padding: 10rpx 0rpx!important; + text-align: center; +} + +.search-cate-activity { + background-color: #e64340; + color: #fff; +} + +.colour-box { + background: #e64340; + color: #fff; + font-size: 26rpx; + line-height: 26rpx; + margin-right: 10rpx; + padding: 4rpx 8rpx; + text-align: center; +} + +@-webkit-keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +@keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +.tongzhitext { + margin-left: 10rpx; + margin-right: 80rpx; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.tongzhi-text { + animation: remindMessage 14s linear infinite; + display: block; +} + +.notice-wrap,.tongzhi-text { + color: #d09868; + font-size: 28rpx; + width: 100%; +} + +.notice-wrap { + background: #ffebda; + height: 60rpx; + line-height: 60rpx; +} + +.closeView { + font-size: 35rpx; + height: 45rpx; + line-height: 45rpx; + position: absolute; + right: 20rpx; + text-align: center; + top: 5rpx; + width: 45rpx; +} + +.clear { + clear: both; + overflow: hidden; +} + +.tabTit { + background: #fff; + border-bottom: 1px solid #eee; + font-size: 15px; + height: 90rpx; + line-height: 90rpx; + position: fixed; + text-align: center; + top: 0; + width: 750rpx; + z-index: 1; +} + +.tabTit .active { + background: #fff; + color: #e64340; +} + +.tabTit .active image { + background: none; + transform: rotate(180deg); +} + +.tabTit image { + height: 26rpx; + margin-left: 5px; + vertical-align: middle; + width: 26rpx; +} + +.tabLayer { + background: #fff; + border-bottom: 1px solid #eee; + box-shadow: 0 5px 5px rgba(0,0,0,.15); + overflow: hidden; + padding-bottom: 40rpx; + position: fixed; + text-align: center; + top: 340rpx; + width: 750rpx; + z-index: 1; +} + +.tabLayer text { + border: 1px solid #eee; + float: left; + font-size: 15px; + height: 60rpx; + line-height: 60rpx; + margin: 20rpx 0 0 26rpx; + width: 210rpx; +} + +.tabLayer .active { + border-color: #e64340; + color: #e64340; +} + +.flex1 { + display: block; + flex: 1; + overflow: hidden; +} + +.box { + display: -ms-flexbox; + display: flex; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index_back/components/banner/banner.wxml b/wx05cb767e6530b48f/pages/index_back/components/banner/banner.wxml new file mode 100644 index 0000000..127d4f4 --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/components/banner/banner.wxml @@ -0,0 +1,9 @@ + + + diff --git a/wx05cb767e6530b48f/pages/index_back/components/banner/banner.wxss b/wx05cb767e6530b48f/pages/index_back/components/banner/banner.wxss new file mode 100644 index 0000000..66964b3 --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/components/banner/banner.wxss @@ -0,0 +1,32 @@ +.diy-banner { + position: relative; +} + +.diy-banner .linear { + background: linear-gradient(#111,transparent); + height: 3.4rem; + left: 0; + opacity: .6; + position: absolute; + top: 0; + width: 100%; + z-index: 9; +} + +.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal { + margin-bottom: 2rpx; +} + +.swiper-box .wx-swiper-dot { + height: 20rpx; + width: 20rpx; +} + +.swiper-box.dot-rectangle .wx-swiper-dot { + border-radius: unset; + width: 30rpx; +} + +.swiper-box.dot-square .wx-swiper-dot { + border-radius: unset; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index_back/components/search/search.wxml b/wx05cb767e6530b48f/pages/index_back/components/search/search.wxml new file mode 100644 index 0000000..3b39fb3 --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/components/search/search.wxml @@ -0,0 +1,10 @@ + + + + + + {{item.params.placeholder}} + + + + diff --git a/wx05cb767e6530b48f/pages/index_back/components/search/search.wxss b/wx05cb767e6530b48f/pages/index_back/components/search/search.wxss new file mode 100644 index 0000000..60c5a5e --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/components/search/search.wxss @@ -0,0 +1,43 @@ +.diy-search-box { + background: #f1f1f2; + padding: 10px 24rpx; + position: unset; +} + +.diy-search-box .diy-search { + background: #fff; + border-bottom: 0; + border-radius: unset; + box-sizing: border-box; + color: #fff; + line-height: 60rpx; + margin: 0 auto; + overflow: hidden; + padding: 0 10px; + position: relative; + width: 90%; +} + +.diy-search-box .diy-search .cont .icon-sousuo { + margin-right: 10rpx; +} + +.diy-search-box text { + color: #999; +} + +.diy-search-box .diy-search.angle-radius { + border-radius: 5px; +} + +.diy-search-box .diy-search.angle-round { + border-radius: 80rpx; +} + +.diy-search-box .diy-search.text-center { + text-align: center; +} + +.diy-search-box .diy-search.text-right { + text-align: right; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index_back/index.js b/wx05cb767e6530b48f/pages/index_back/index.js new file mode 100644 index 0000000..c07cc48 --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/index.js @@ -0,0 +1,61 @@ +var t = getApp(); + +Page({ + data: { + indicatorDots: !0, + autoplay: !0, + interval: 3e3, + duration: 800, + imgHeights: {}, + imgCurrent: {}, + items: {}, + newest: {}, + best: {}, + scrollTop: 0 + }, + onLoad: function() { + t.setTitle(), t.setNavigationBar(), this.getIndexData(); + }, + getIndexData: function() { + var a = this; + t._get("index/page", {}, function(t) { + a.setData(t.data); + }); + }, + imagesHeight: function(t) { + var a = t.target.dataset.id, e = t.target.dataset.itemKey, i = 750 / (t.detail.width / t.detail.height), s = this.data.imgHeights; + void 0 === s[e] && (s[e] = {}), s[e][a] = i; + var n = this.data.imgCurrent; + void 0 === n[e] && (n[e] = Object.keys(this.data.items[e].data)[0]), this.setData({ + imgHeights: s, + imgCurrent: n + }); + }, + bindChange: function(t) { + var a = t.target.dataset.itemKey, e = this.data.imgCurrent; + e[a] = t.detail.currentItemId, this.setData({ + imgCurrent: e + }); + }, + goTop: function(t) { + this.setData({ + scrollTop: 0 + }); + }, + scroll: function(t) { + this.setData({ + indexSearch: t.detail.scrollTop + }), t.detail.scrollTop > 300 ? this.setData({ + floorstatus: !0 + }) : this.setData({ + floorstatus: !1 + }); + }, + onShareAppMessage: function() { + return { + title: "小程序首页", + desc: "", + path: "/pages/index/index" + }; + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index_back/index.json b/wx05cb767e6530b48f/pages/index_back/index.json new file mode 100644 index 0000000..2b26880 --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/index.json @@ -0,0 +1,4 @@ +{ + "enablePullDownRefresh": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/index_back/index.wxml b/wx05cb767e6530b48f/pages/index_back/index.wxml new file mode 100644 index 0000000..a0b1261 --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/index.wxml @@ -0,0 +1,53 @@ + + + + + + + + 新品推荐 + + + + + + + + + + {{item.goods_name}} + + ¥{{item.spec[0].goods_price}} + + + + + + + 猜您喜欢 + + + + + + + + + + + + {{item.goods_name}} + ¥{{item.spec[0].goods_price}} + + + + + + 我是有底线的 + + + + + + + diff --git a/wx05cb767e6530b48f/pages/index_back/index.wxss b/wx05cb767e6530b48f/pages/index_back/index.wxss new file mode 100644 index 0000000..39b14d1 --- /dev/null +++ b/wx05cb767e6530b48f/pages/index_back/index.wxss @@ -0,0 +1,110 @@ +.diy-search-box { + background: #f1f1f2; + padding: 10px 24rpx; + position: unset; +} + +.diy-search-box .diy-search { + background: #fff; + border-bottom: 0; + border-radius: unset; + box-sizing: border-box; + color: #fff; + line-height: 60rpx; + margin: 0 auto; + overflow: hidden; + padding: 0 10px; + position: relative; + width: 90%; +} + +.diy-search-box .diy-search .cont .icon-sousuo { + margin-right: 10rpx; +} + +.diy-search-box text { + color: #999; +} + +.diy-search-box .diy-search.angle-radius { + border-radius: 5px; +} + +.diy-search-box .diy-search.angle-round { + border-radius: 80rpx; +} + +.diy-search-box .diy-search.text-center { + text-align: center; +} + +.diy-search-box .diy-search.text-right { + text-align: right; +} + +.diy-banner { + position: relative; +} + +.diy-banner .linear { + background: linear-gradient(#111,transparent); + height: 3.4rem; + left: 0; + opacity: .6; + position: absolute; + top: 0; + width: 100%; + z-index: 9; +} + +.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal { + margin-bottom: 2rpx; +} + +.swiper-box .wx-swiper-dot { + height: 20rpx; + width: 20rpx; +} + +.swiper-box.dot-rectangle .wx-swiper-dot { + border-radius: unset; + width: 30rpx; +} + +.swiper-box.dot-square .wx-swiper-dot { + border-radius: unset; +} + +.title-hrbg { + color: #888; + height: 80rpx; + line-height: 80rpx; + margin-top: 30rpx; + overflow: hidden; + position: relative; + text-align: center; + z-index: 1; +} + +.title-hrbg .cont { + background: #f7f7f7; + font-size: 28rpx; + padding: 1rem .6rem; + z-index: 10; +} + +.title-hrbg .cont .icon-huo { + padding-right: 10rpx; +} + +.title-hrbg .hr { + background: #ddd; + border: 0; + height: 1rpx; + left: 10%; + margin-top: 1px; + position: absolute; + right: 10%; + top: 50%; + z-index: -1; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/login/login.js b/wx05cb767e6530b48f/pages/login/login.js new file mode 100644 index 0000000..3806b1c --- /dev/null +++ b/wx05cb767e6530b48f/pages/login/login.js @@ -0,0 +1,39 @@ +var o = getApp(); + +Page({ + data: {}, + onLoad: function(o) {}, + getUserInfo: function(e) { + var n = this; + o.getUserInfo(e, function() { + n.onNavigateBack(); + }); + }, + getUserProfile: function() { + console.log("getUserProfile"); + var e = this; + try { + wx.getUserProfile({ + lang: "zh_CN", + desc: "获取用户相关信息", + success: function(n) { + var t = n.userInfo; + console.log("用户同意了授权"), console.log("userInfo:", t), o.getUserInfo(t, function() { + e.onNavigateBack(1); + }); + }, + fail: function() { + console.log("用户拒绝了授权"); + } + }); + } catch (e) { + console.log("error:", e.message), "wx.getUserProfile is not a function" === e.message ? o.showError("wx.getUserProfile 接口无法使用,请升级到最新版微信") : o.showError(error.message); + } + }, + onNotLogin: function() { + this.onNavigateBack(); + }, + onNavigateBack: function() { + wx.navigateBack(); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/login/login.json b/wx05cb767e6530b48f/pages/login/login.json new file mode 100644 index 0000000..c9ab6a8 --- /dev/null +++ b/wx05cb767e6530b48f/pages/login/login.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "授权登录", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/login/login.wxml b/wx05cb767e6530b48f/pages/login/login.wxml new file mode 100644 index 0000000..32a0dee --- /dev/null +++ b/wx05cb767e6530b48f/pages/login/login.wxml @@ -0,0 +1,15 @@ + + + + + + + 申请获取以下权限 + 获得你的公开信息(昵称、头像等) + + + + + + + diff --git a/wx05cb767e6530b48f/pages/login/login.wxss b/wx05cb767e6530b48f/pages/login/login.wxss new file mode 100644 index 0000000..e786745 --- /dev/null +++ b/wx05cb767e6530b48f/pages/login/login.wxss @@ -0,0 +1,66 @@ +page { + background: #fff; + font-size: 32rpx; +} + +.container { + padding: 0 60rpx; +} + +.wechatapp { + border-bottom: 1rpx solid #e3e3e3; + margin-bottom: 72rpx; + padding: 80rpx 0 48rpx; + text-align: center; +} + +.wechatapp .header { + border: 2px solid #fff; + border-radius: 50%; + box-shadow: 1px 0 5px rgba(50,50,50,.3); + height: 190rpx; + margin: 0rpx auto 0; + overflow: hidden; + width: 190rpx; +} + +.auth-title { + color: #585858; + font-size: 34rpx; + margin-bottom: 40rpx; +} + +.auth-subtitle { + color: #888; + font-size: 28rpx; + margin-bottom: 88rpx; +} + +.login-btn { + padding: 0 20rpx; +} + +.login-btn button { + background: #04be01; + border-radius: 999rpx; + color: #fff; + font-size: 30rpx; + height: 88rpx; + line-height: 88rpx; + text-align: center; +} + +.no-login-btn { + margin-top: 20rpx; + padding: 0 20rpx; +} + +.no-login-btn button { + background: #dfdfdf; + border-radius: 999rpx; + color: #fff; + font-size: 30rpx; + height: 88rpx; + line-height: 88rpx; + text-align: center; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/order/detail.js b/wx05cb767e6530b48f/pages/order/detail.js new file mode 100644 index 0000000..d077413 --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/detail.js @@ -0,0 +1,82 @@ +var r = getApp(); + +Page({ + data: { + order_id: null, + order: {} + }, + onLoad: function(r) { + this.data.order_id = r.order_id, this.getOrderDetail(r.order_id); + }, + getOrderDetail: function(t) { + var e = this; + r._get("user.order/detail", { + order_id: t + }, function(r) { + e.setData(r.data); + }); + }, + goodsDetail: function(r) { + var t = r.currentTarget.dataset.id; + wx.navigateTo({ + url: "../goods/index?goods_id=" + t + }); + }, + cancelOrder: function(t) { + var e = this.data.order_id; + wx.showModal({ + title: "提示", + content: "确认取消订单?", + success: function(t) { + t.confirm && r._post_form("user.order/cancel", { + order_id: e + }, function(r) { + wx.navigateBack(); + }); + } + }); + }, + aftermarketOrder: function(r) { + var t = r.currentTarget.dataset.id; + wx.navigateTo({ + url: "../aftermarket/create?order_goods_id=" + t + }); + }, + payOrder: function(t) { + var e = this, a = e.data.order_id; + wx.showLoading({ + title: "正在处理..." + }), r._post_form("user.order/pay", { + order_id: a + }, function(t) { + if (-10 === t.code) return r.showError(t.msg), !1; + wx.requestPayment({ + timeStamp: t.data.timeStamp, + nonceStr: t.data.nonceStr, + package: "prepay_id=" + t.data.prepay_id, + signType: "MD5", + paySign: t.data.paySign, + success: function(r) { + e.getOrderDetail(a); + }, + fail: function() { + r.showError("订单未支付"); + } + }); + }); + }, + receipt: function(t) { + var e = this, a = e.data.order_id; + wx.showModal({ + title: "提示", + content: "确认收到商品?", + success: function(t) { + t.confirm && r._post_form("user.order/receipt", { + order_id: a + }, function(r) { + e.getOrderDetail(a); + }); + } + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/order/detail.json b/wx05cb767e6530b48f/pages/order/detail.json new file mode 100644 index 0000000..a4c1f3d --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/detail.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "订单详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/order/detail.wxml b/wx05cb767e6530b48f/pages/order/detail.wxml new file mode 100644 index 0000000..e54e965 --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/detail.wxml @@ -0,0 +1,96 @@ + + + + + + {{order.address.name}} {{order.address.phone}} + + {{order.address.region.province}} {{order.address.region.city}} {{order.address.region.region}} {{order.address.detail}} + + + + + + 快递公司: {{order.express_company}} + + + 快递单号: {{order.express_no}} + + + + + + + 商品列表 + + + {{order.pay_status.text}} + {{order.delivery_status.text}} + {{order.receipt_status.text}} + {{order.order_status.text}} + + + + + + + 订单号:{{order.order_no}} + + + {{order.create_time}} + + + + + + + + + + + {{item.goods_name}} + {{item.goods_attr}} + + ¥{{item.goods_price}} + ×{{item.total_num}} + + + + 申请售后 + + + 售后详情 + + + + + + + 共{{order.goods.length}}件商品,合计: {{order.total_price}} + + + + + 订单金额 + + + 商品金额: + ¥{{order.total_price}} + + + 应付金额: + ¥{{order.pay_price}} + + + + + + + + + 确认收货 + + + diff --git a/wx05cb767e6530b48f/pages/order/detail.wxss b/wx05cb767e6530b48f/pages/order/detail.wxss new file mode 100644 index 0000000..3d2e08a --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/detail.wxss @@ -0,0 +1,140 @@ +.flow-distribution { + border-bottom: 1rpx solid #eee; + padding: 18rpx 0; +} + +.flow-distribution .flow-dis { + font-size: 30rpx; +} + +.flow-distribution-left { + flex: 14; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.flow-distribution-left .m-l { + color: #333; + float: right; +} + +.flow-distribution-right { + flex: 1; +} + +.flow-distribution image { + float: right; + height: 30rpx; + margin-top: 6rpx; + width: 30rpx; +} + +.flow-message-box { + padding: 20rpx 15px; + position: relative; +} + +.flow-message-box .flow-message-title { + color: #777; +} + +.flow-message-box textarea { + border-bottom: 1rpx solid #eee; + height: 100rpx; + margin-top: 10rpx; + padding: 10rpx 0; + width: 100%; +} + +.flow-message-box .flow-message-num { + bottom: 34rpx; + color: #777; + font-size: 26rpx; + position: absolute; + right: 30rpx; +} + +.flow-distribution .flow-dis { + padding-right: 15px; +} + +.flow-message-box { + border-bottom: 1rpx solid #f1f1f1; +} + +.flow-message-box .cont { + color: #000; + padding: 10px 0; +} + +.order-cont { + justify-content: space-between; +} + +.order-cont .order-num text,.order-cont .time { + color: #888; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-header { + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; +} + +.order-header text { + font-size: 28rpx; +} + +.order-header text.title { + color: #333; +} + +.flow-list .header { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; + position: relative; +} + +.flow-list .header text { + font-size: 32rpx; + padding-left: 80rpx; +} + +.flow-list .header image { + height: 37rpx; + left: 15px; + margin-top: -18rpx; + position: absolute; + top: 50%; + width: 34rpx; +} + +.chackout-left-detail,.chackout-right-detail { + color: #333; + font-size: 34rpx; +} + +.chackout-left-detail { + line-height: 44px; +} + +.btn-main1 { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/order/index.js b/wx05cb767e6530b48f/pages/order/index.js new file mode 100644 index 0000000..6556198 --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/index.js @@ -0,0 +1,93 @@ +var t = getApp(); + +Page({ + data: { + dataType: "all", + list: [] + }, + onLoad: function(t) { + this.data.dataType = t.type || "all", this.setData({ + dataType: this.data.dataType + }); + }, + onShow: function() { + this.getOrderList(this.data.dataType); + }, + getOrderList: function(a) { + var e = this; + t._get("user.order/lists", { + dataType: a + }, function(t) { + e.setData(t.data), t.data.list.length && wx.pageScrollTo({ + scrollTop: 0 + }); + }); + }, + bindHeaderTap: function(t) { + this.setData({ + dataType: t.target.dataset.type + }), this.getOrderList(t.target.dataset.type); + }, + cancelOrder: function(a) { + var e = this, r = a.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认取消订单?", + success: function(a) { + a.confirm && t._post_form("user.order/cancel", { + order_id: r + }, function(t) { + e.getOrderList(e.data.dataType); + }); + } + }); + }, + receipt: function(a) { + var e = this, r = a.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认收到商品?", + success: function(a) { + a.confirm && t._post_form("user.order/receipt", { + order_id: r + }, function(t) { + e.getOrderList(e.data.dataType); + }); + } + }); + }, + payOrder: function(a) { + var e = a.currentTarget.dataset.id; + wx.showLoading({ + title: "正在处理..." + }), t._post_form("user.order/pay", { + order_id: e + }, function(a) { + if (-10 === a.code) return t.showError(a.msg), !1; + wx.requestPayment({ + timeStamp: a.data.timeStamp, + nonceStr: a.data.nonceStr, + package: "prepay_id=" + a.data.prepay_id, + signType: "MD5", + paySign: a.data.paySign, + success: function(t) { + wx.navigateTo({ + url: "../order/detail?order_id=" + e + }); + }, + fail: function() { + t.showError("订单未支付"); + } + }); + }); + }, + detail: function(t) { + var a = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../order/detail?order_id=" + a + }); + }, + onPullDownRefresh: function() { + wx.stopPullDownRefresh(); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/order/index.json b/wx05cb767e6530b48f/pages/order/index.json new file mode 100644 index 0000000..f1612ce --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "我的订单", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/order/index.wxml b/wx05cb767e6530b48f/pages/order/index.wxml new file mode 100644 index 0000000..a3d9a33 --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/index.wxml @@ -0,0 +1,84 @@ + + + + 全部订单 + 待付款 + 待发货 + 待收货 + + + + + + + + + 商品列表 + + + {{item.pay_status.text}} + {{item.delivery_status.text}} + {{item.receipt_status.text}} + {{item.order_status.text}} + + + + + + + 订单号:{{item.order_no}} + + + {{item.create_time}} + + + + + + + + + + + + + + + 共{{item.goods.length}}件 + + + + + + + + + + 合计: + ¥{{item.pay_price}} + + + + + + + + + 确认收货 + + + + + + + + + + + 亲,您还没有订单信息哦! + + + + + + diff --git a/wx05cb767e6530b48f/pages/order/index.wxss b/wx05cb767e6530b48f/pages/order/index.wxss new file mode 100644 index 0000000..dd65cbb --- /dev/null +++ b/wx05cb767e6530b48f/pages/order/index.wxss @@ -0,0 +1,151 @@ +.header { + background: #fff; + border-bottom: 1rpx solid #e4e4e4; + display: flex; + height: 44px; + line-height: 44px; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.header view { + flex: 1; + text-align: center; +} + +.header .active { + color: #fd4a5f; +} + +.wrapper { + margin-top: 54px; +} + +.order-box { + padding: 0 15px; +} + +.order-header { + padding-top: 10rpx; +} + +.order-header .title { + color: #333; + font-size: 30rpx; +} + +.order-header .cont { + color: #fd4a5f; + font-size: 30rpx; +} + +.order-cont { + justify-content: space-between; + padding: 15rpx 0; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-shop { + padding: 16rpx 0; +} + +.order-shop-left,.order-shop-left image { + background: #fff; + display: inline-block; + height: 160rpx; + margin-right: 15rpx; + width: 160rpx; +} + +.order-shop .num { + float: right; +} + +.order-btn { + padding: 18rpx 0; +} + +.order-btn .order-left { + flex: 3; +} + +.order-btn .order-left .text,.order-btn .order-left text { + font-size: 30rpx; +} + +.order-btn .order-left .text { + color: #777; +} + +.order-btn .order-right { + flex: 1.5; +} + +.order-list-box .left { + flex: 4; + overflow: hidden; + position: relative; +} + +.order-list-box .right { + flex: 1; +} + +.goods-number { + color: #777; + font-size: 28rpx; + position: absolute; + right: 12px; + top: 35%; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; +} + +.btn-default,.btn-main { + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.btn-main { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + margin-left: 10rpx; +} + +.user-orderJtou { + color: #888; + font-size: 24rpx; + margin-top: -20rpx; + position: absolute; + right: 0; + top: 50%; +} + +.order-img_list { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + border-top: 1rpx solid #f1f1f1; +} + +.order-right-name { + color: #555; + font-size: 30rpx; + left: 180rpx; + line-height: 1.6; + margin-top: -46rpx; + position: absolute; + top: 50%; + width: 100%; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/pays/pays.js b/wx05cb767e6530b48f/pages/pays/pays.js new file mode 100644 index 0000000..014766f --- /dev/null +++ b/wx05cb767e6530b48f/pages/pays/pays.js @@ -0,0 +1,35 @@ +var t = getApp(); + +Page({ + data: { + imageUrlList: [] + }, + preview: function(t) { + var a = t.currentTarget.dataset.src; + console.log(a); + var e = this.data.imageUrlList; + console.log(e), wx.previewImage({ + current: a, + urls: e + }); + }, + pays: function() { + var a = this; + t._get("index/payList", {}, function(t) { + var e = t.data, r = []; + e.res.pays.forEach(function(t) { + r.push(t.url); + }), a.setData(e), a.setData({ + imageUrlList: r + }); + }); + }, + ToOrder: function() { + wx.redirectTo({ + url: "../order/index?type=payment" + }); + }, + onLoad: function(t) { + this.pays(); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/pays/pays.json b/wx05cb767e6530b48f/pages/pays/pays.json new file mode 100644 index 0000000..c427070 --- /dev/null +++ b/wx05cb767e6530b48f/pages/pays/pays.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "提示", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/pays/pays.wxml b/wx05cb767e6530b48f/pages/pays/pays.wxml new file mode 100644 index 0000000..1724ac5 --- /dev/null +++ b/wx05cb767e6530b48f/pages/pays/pays.wxml @@ -0,0 +1,21 @@ + + + + {{res.title}} + 请滑动到底部跳转到订单列表 + + + + {{item.name}} + {{item.content}} + + + + + {{res.title}} + + + + + + diff --git a/wx05cb767e6530b48f/pages/pays/pays.wxss b/wx05cb767e6530b48f/pages/pays/pays.wxss new file mode 100644 index 0000000..3442b60 --- /dev/null +++ b/wx05cb767e6530b48f/pages/pays/pays.wxss @@ -0,0 +1,11 @@ +.saoma { + align-items: center; + background-color: #f70000; + border-radius: 98rpx; + color: #fff; + display: flex; + flex-direction: row; + justify-content: center; + margin-top: 10rpx; + width: 80%; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/search/index.js b/wx05cb767e6530b48f/pages/search/index.js new file mode 100644 index 0000000..3ea4129 --- /dev/null +++ b/wx05cb767e6530b48f/pages/search/index.js @@ -0,0 +1,37 @@ +getApp(); + +Page({ + data: { + recentSearch: [], + searchValue: "" + }, + onLoad: function(e) {}, + onShow: function() { + this.getRecentSearch(); + }, + getRecentSearch: function() { + var e = wx.getStorageSync("recentSearch"); + this.setData({ + recentSearch: e + }); + }, + getSearchContent: function(e) { + this.data.searchValue = e.detail.value; + }, + search: function() { + if (this.data.searchValue) { + var e = wx.getStorageSync("recentSearch") || []; + e.unshift(this.data.searchValue), wx.setStorageSync("recentSearch", e), wx.navigateTo({ + url: "../category/list?search=" + this.data.searchValue + }); + } + }, + clearSearch: function() { + wx.removeStorageSync("recentSearch"), this.getRecentSearch(); + }, + goSearch: function(e) { + wx.navigateTo({ + url: "../category/list?search=" + e.target.dataset.text + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/search/index.json b/wx05cb767e6530b48f/pages/search/index.json new file mode 100644 index 0000000..2b94503 --- /dev/null +++ b/wx05cb767e6530b48f/pages/search/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "搜索", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/search/index.wxml b/wx05cb767e6530b48f/pages/search/index.wxml new file mode 100644 index 0000000..c17892c --- /dev/null +++ b/wx05cb767e6530b48f/pages/search/index.wxml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + 最近搜索 + + + + {{recent}} + + + + + diff --git a/wx05cb767e6530b48f/pages/search/index.wxss b/wx05cb767e6530b48f/pages/search/index.wxss new file mode 100644 index 0000000..83dd31f --- /dev/null +++ b/wx05cb767e6530b48f/pages/search/index.wxss @@ -0,0 +1,102 @@ +.seconds-kill-li { + float: left; + width: 33.3%; +} + +.title-box .icon-lajixiang { + float: right; +} + +.sale-button-box { + overflow: hidden; + padding: 10px 0; +} + +.recent-button,.sale-button { + border: 1px solid #eee; +} + +.serch-button button { + background: #ff495e; +} + +.search-input-box { + height: 64rpx; +} + +.search-input { + background: #fff; + border-radius: 5px 0 0 5px; + box-sizing: border-box; + overflow: hidden; + padding-left: 10rpx; + width: 80%; +} + +.search-input input { + font-size: 30rpx; + height: 64rpx; + line-height: 64rpx; +} + +.serch-button { + box-sizing: border-box; + width: 20%; +} + +.serch-button button { + border-radius: 0 5px 5px 0; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; +} + +.seconds-kill-li { + box-sizing: border-box; + padding: 10rpx; +} + +.title-box { + color: #777; + font-size: 10pt; + padding: 50rpx 0 0; +} + +.recent-button,.sale-button { + background: #fff; + border: 1px solid #ccc; + border-radius: 50px; + font-size: 26rpx; + height: 30rpx; + justify-content: center; + line-height: 30rpx; + overflow: hidden; + padding: 10rpx; + text-align: center; + text-overflow: ellipsis; + white-space: nowrap; +} + +.search-cont { + background: #fff; + padding: 0 15px; +} + +.search-box .left { + width: 28px; +} + +.search-box .right { + flex: 1; +} + +.sale-button-box .seconds-kill-li { + float: left; + width: 33.3%; +} + +.title-box image { + float: right; + height: 35rpx; + width: 35rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/user/help.js b/wx05cb767e6530b48f/pages/user/help.js new file mode 100644 index 0000000..2413393 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/help.js @@ -0,0 +1,17 @@ +var t = getApp(); + +Page({ + data: { + list: [] + }, + onLoad: function(t) {}, + onShow: function() { + this.getHelpList(); + }, + getHelpList: function() { + var a = this; + t._get("wxapp/help", {}, function(t) { + a.setData(t.data); + }); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/user/help.json b/wx05cb767e6530b48f/pages/user/help.json new file mode 100644 index 0000000..dea11e1 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/help.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "帮助", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/user/help.wxml b/wx05cb767e6530b48f/pages/user/help.wxml new file mode 100644 index 0000000..53d4051 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/help.wxml @@ -0,0 +1,10 @@ + + + + {{item.title}} + + + {{item.content}} + + + diff --git a/wx05cb767e6530b48f/pages/user/help.wxss b/wx05cb767e6530b48f/pages/user/help.wxss new file mode 100644 index 0000000..8ad9b62 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/help.wxss @@ -0,0 +1,14 @@ +.help { + border-bottom: 1px solid #f6f6f9; +} + +.help .h4 { + color: #333; + font-size: 32rpx; + margin-bottom: 5px; +} + +.help .p { + color: #666; + font-size: 26rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/user/index.js b/wx05cb767e6530b48f/pages/user/index.js new file mode 100644 index 0000000..f90dd96 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/index.js @@ -0,0 +1,60 @@ +var e = getApp(); + +Page({ + data: { + isadmin: !1, + isLogin: !1, + userInfo: {}, + orderCount: {} + }, + onLoad: function(e) { + this.pays(); + }, + pays: function() { + var t = this; + e._get("index/payList", {}, function(e) { + var n = e.data; + t.setData({ + payList: n + }); + }); + }, + onShow: function() { + this.setData({ + isLogin: e.checkIsLogin() + }), this.data.isLogin && this.getUserDetail(); + }, + getUserDetail: function() { + var t = this; + e._get("user.index/detail", {}, function(e) { + t.setData(e.data), 10984 != e.data.userInfo.user_id && 10003 != e.data.userInfo.user_id && 10004 != e.data.userInfo.user_id && 10011 != e.data.userInfo.user_id || t.setData({ + isadmin: !0 + }); + }); + }, + onTargetOrder: function(e) { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: { + all: "/pages/order/index?type=all", + payment: "/pages/order/index?type=payment", + delivery: "/pages/order/index?type=delivery", + received: "/pages/order/index?type=received" + }[e.currentTarget.dataset.type] + }); + }, + onTargetMenus: function(e) { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: "/" + e.currentTarget.dataset.url + }); + }, + onLogin: function() { + wx.navigateTo({ + url: "../login/login" + }); + }, + onCheckLogin: function() { + return !!this.data.isLogin || (e.showError("很抱歉,您还没有登录"), !1); + } +}); \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/user/index.json b/wx05cb767e6530b48f/pages/user/index.json new file mode 100644 index 0000000..fb7d953 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/index.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "个人中心", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/pages/user/index.wxml b/wx05cb767e6530b48f/pages/user/index.wxml new file mode 100644 index 0000000..a16ae67 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/index.wxml @@ -0,0 +1,135 @@ + + + + + + + + {{userInfo.nickName}} + + + + + + 点击登录 + + + +
+ +
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
diff --git a/wx05cb767e6530b48f/pages/user/index.wxss b/wx05cb767e6530b48f/pages/user/index.wxss new file mode 100644 index 0000000..95ca452 --- /dev/null +++ b/wx05cb767e6530b48f/pages/user/index.wxss @@ -0,0 +1,117 @@ +.user { + background: #fff; + margin-bottom: 150rpx; + position: relative; +} + +.user-header { + align-content: center; + background-color: #fd0; + background-position: 100%; + background-repeat: no-repeat; + background-size: auto 100%; + display: flex; + height: 310rpx; + padding-top: 1px; + width: 100%; +} + +.user-header .user-header-cont { + align-items: center; + display: flex; + margin: auto auto 135rpx; + width: 79%; +} + +.user-header .user-header-cont .user-header-avatar { + border: 5rpx solid #fff; + border-radius: 50%; + display: block; + height: 120rpx; + margin-right: 30rpx; + overflow: hidden; + width: 120rpx; +} + +.user-header .user-header-cont .user-header-avatar image { + border-radius: 50%; + height: 120rpx; + width: 120rpx; +} + +.user-header .user-header-cont .user-header-cont-name { + font-size: 32rpx; + padding: 20rpx 0; +} + +.order-navbar { + background: #fff; + border-radius: 5rpx; + border-top: 1rpx solid #eee; + bottom: -125rpx; + box-shadow: 0 1rpx 5rpx 0 rgba(0,0,0,.05); + font-size: 30rpx; + left: 19rpx; + margin: auto; + padding: 15rpx 0; + position: absolute; + width: 95%; +} + +.order-navbar-header { + align-items: center; + border-bottom: 1px solid #eee; + height: 70rpx; + justify-content: space-between; + margin: auto; + padding-bottom: 10rpx; + width: 91%; +} + +.order-navbar-footer { + padding: 10rpx 0; + width: 100%; +} + +.order-navbar-footer .order-navbar-item .order-navbar__icon { + color: #000; + display: block; + font-size: 36rpx; + margin: 0 auto; + padding: 10rpx 0; + text-align: center; +} + +.order-navbar-footer .order-navbar-item .order-navbar__name { + color: #666; + display: block; + font-size: 24rpx; + margin-right: 10rpx; + text-align: center; +} + +.order-navbar-footer .order-navbar-item .order-badge { + background: #ff495e; + border-radius: 100%; + color: #fff; + font-size: 22rpx; + line-height: 28rpx; + min-height: 30rpx; + min-width: 30rpx; + padding: 1rpx; + position: absolute; + right: 55rpx; + text-align: center; + top: 0; +} + +.menus-list .menus-item { + border-bottom: 1rpx solid #eee; + padding: 28rpx; + position: relative; +} + +.menus-list .menus-item .menus-item__name { + color: #444; + margin-left: 20rpx; +} \ No newline at end of file diff --git a/wx05cb767e6530b48f/siteinfo.js b/wx05cb767e6530b48f/siteinfo.js new file mode 100644 index 0000000..7302266 --- /dev/null +++ b/wx05cb767e6530b48f/siteinfo.js @@ -0,0 +1,4 @@ +module.exports = { + name: "小陈二手", + siteroot: "https://wxminiapp.19year.cn/" +}; \ No newline at end of file diff --git a/wx05cb767e6530b48f/wx05cb767e6530b48f.wxapkg b/wx05cb767e6530b48f/wx05cb767e6530b48f.wxapkg new file mode 100644 index 0000000..f9eed3c Binary files /dev/null and b/wx05cb767e6530b48f/wx05cb767e6530b48f.wxapkg differ diff --git a/wx05cb767e6530b48f/wxParse/html2json.js b/wx05cb767e6530b48f/wxParse/html2json.js new file mode 100644 index 0000000..3fff6ad --- /dev/null +++ b/wx05cb767e6530b48f/wxParse/html2json.js @@ -0,0 +1,93 @@ +function e(e) { + for (var t = {}, r = e.split(","), s = 0; s < r.length; s++) t[r[s]] = !0; + return t; +} + +function t(e) { + var t = []; + if (0 == r.length || !a) return (d = {}).node = "text", d.text = e, [ d ]; + e = e.replace(/\[([^\[\]]+)\]/g, ":$1:"); + for (var o = new RegExp("[:]"), n = e.split(o), i = 0; i < n.length; i++) { + var l = n[i], d = {}; + a[l] ? (d.node = "element", d.tag = "emoji", d.text = a[l], d.baseSrc = s) : (d.node = "text", + d.text = l), t.push(d); + } + return t; +} + +var r = "", s = "", a = {}, o = require("./wxDiscode.js"), n = require("./htmlparser.js"), i = (e("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"), +e("br,a,code,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video")), l = e("abbr,acronym,applet,b,basefont,bdo,big,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), d = e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); + +e("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), +e("wxxxcode-style,script,style,view,scroll-view,block"), module.exports = { + html2json: function(e, r) { + e = function(e) { + return e.replace(/<\?xml.*\?>\n/, "").replace(/<.*!doctype.*\>\n/, "").replace(/<.*!DOCTYPE.*\>\n/, ""); + }(e), e = o.strDiscode(e); + var s = [], a = { + node: r, + nodes: [], + images: [], + imageUrls: [] + }; + return n(e, { + start: function(e, t, n) { + var c = { + node: "element", + tag: e + }; + if (i[e] ? c.tagType = "block" : l[e] ? c.tagType = "inline" : d[e] && (c.tagType = "closeSelf"), + 0 !== t.length && (c.attr = t.reduce(function(e, t) { + var r = t.name, s = t.value; + return "class" == r && (console.log(s), c.classStr = s), "style" == r && (console.log(s), + c.styleStr = s), s.match(/ /) && (s = s.split(" ")), e[r] ? Array.isArray(e[r]) ? e[r].push(s) : e[r] = [ e[r], s ] : e[r] = s, + e; + }, {})), "img" === c.tag) { + c.imgIndex = a.images.length; + var u = c.attr.src; + u = o.urlToHttpUrl(u, "https"), c.attr.src = u, c.from = r, a.images.push(c), a.imageUrls.push(u); + } + if ("font" === c.tag) { + var p = [ "x-small", "small", "medium", "large", "x-large", "xx-large", "-webkit-xxx-large" ], m = { + color: "color", + face: "font-family", + size: "font-size" + }; + for (var f in c.attr.style || (c.attr.style = []), c.styleStr || (c.styleStr = ""), + m) if (c.attr[f]) { + var h = "size" === f ? p[c.attr[f] - 1] : c.attr[f]; + c.attr.style.push(m[f]), c.attr.style.push(h), c.styleStr += m[f] + ": " + h + ";"; + } + } + if ("source" === c.tag && (a.source = c.attr.src), n) { + var g = s[0] || a; + void 0 === g.nodes && (g.nodes = []), g.nodes.push(c); + } else s.unshift(c); + }, + end: function(e) { + var t = s.shift(); + if (t.tag !== e && console.error("invalid state: mismatch end tag"), "video" === t.tag && a.source && (t.attr.src = a.source, + delete result.source), 0 === s.length) a.nodes.push(t); else { + var r = s[0]; + void 0 === r.nodes && (r.nodes = []), r.nodes.push(t); + } + }, + chars: function(e) { + var r = { + node: "text", + text: e, + textArray: t(e) + }; + if (0 === s.length) a.nodes.push(r); else { + var o = s[0]; + void 0 === o.nodes && (o.nodes = []), o.nodes.push(r); + } + }, + comment: function(e) {} + }), a; + }, + emojisInit: function() { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "/wxParse/emojis/", o = arguments[2]; + r = e, s = t, a = o; + } +}; \ No newline at end of file diff --git a/wx05cb767e6530b48f/wxParse/htmlparser.js b/wx05cb767e6530b48f/wxParse/htmlparser.js new file mode 100644 index 0000000..de7b6e9 --- /dev/null +++ b/wx05cb767e6530b48f/wxParse/htmlparser.js @@ -0,0 +1,48 @@ +function e(e) { + for (var t = {}, r = e.split(","), s = 0; s < r.length; s++) t[r[s]] = !0; + return t; +} + +var t = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, r = /^<\/([-A-Za-z0-9_]+)[^>]*>/, s = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, a = e("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"), n = e("a,address,code,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"), i = e("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), o = e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), l = e("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), c = e("wxxxcode-style,script,style,view,scroll-view,block"); + +module.exports = function(e, d) { + function f(e, t) { + if (t) for (t = t.toLowerCase(), r = b.length - 1; r >= 0 && b[r] != t; r--) ; else var r = 0; + if (r >= 0) { + for (var s = b.length - 1; s >= r; s--) d.end && d.end(b[s]); + b.length = r; + } + } + var p, u, h, b = [], m = e; + for (b.last = function() { + return this[this.length - 1]; + }; e; ) { + if (u = !0, b.last() && c[b.last()]) e = e.replace(new RegExp("([\\s\\S]*?)]*>"), function(e, t) { + return t = t.replace(/|/g, "$1$2"), d.chars && d.chars(t), + ""; + }), f(0, b.last()); else if (0 == e.indexOf("\x3c!--") ? (p = e.indexOf("--\x3e")) >= 0 && (d.comment && d.comment(e.substring(4, p)), + e = e.substring(p + 3), u = !1) : 0 == e.indexOf("" : "Error in unnamed extension", n = { + valid: !0, + error: "" + }; + a.helper.isArray(e) || (e = [ e ]); + for (var o = 0; o < e.length; ++o) { + var i = t + " sub-extension " + o + ": ", l = e[o]; + if ("object" !== (void 0 === l ? "undefined" : s(l))) return n.valid = !1, n.error = i + "must be an object, but " + (void 0 === l ? "undefined" : s(l)) + " given", + n; + if (!a.helper.isString(l.type)) return n.valid = !1, n.error = i + 'property "type" must be a string, but ' + s(l.type) + " given", + n; + var c = l.type = l.type.toLowerCase(); + if ("language" === c && (c = l.type = "lang"), "html" === c && (c = l.type = "output"), + "lang" !== c && "output" !== c && "listener" !== c) return n.valid = !1, n.error = i + "type " + c + ' is not recognized. Valid values: "lang/language", "output/html" or "listener"', + n; + if ("listener" === c) { + if (a.helper.isUndefined(l.listeners)) return n.valid = !1, n.error = i + '. Extensions of type "listener" must have a property called "listeners"', + n; + } else if (a.helper.isUndefined(l.filter) && a.helper.isUndefined(l.regex)) return n.valid = !1, + n.error = i + c + ' extensions must define either a "regex" property or a "filter" method', + n; + if (l.listeners) { + if ("object" !== s(l.listeners)) return n.valid = !1, n.error = i + '"listeners" property must be an object but ' + s(l.listeners) + " given", + n; + for (var u in l.listeners) if (l.listeners.hasOwnProperty(u) && "function" != typeof l.listeners[u]) return n.valid = !1, + n.error = i + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + u + " must be a function but " + s(l.listeners[u]) + " given", + n; + } + if (l.filter) { + if ("function" != typeof l.filter) return n.valid = !1, n.error = i + '"filter" must be a function, but ' + s(l.filter) + " given", + n; + } else if (l.regex) { + if (a.helper.isString(l.regex) && (l.regex = new RegExp(l.regex, "g")), !l.regex instanceof RegExp) return n.valid = !1, + n.error = i + '"regex" property must either be a string or a RegExp object, but ' + s(l.regex) + " given", + n; + if (a.helper.isUndefined(l.replace)) return n.valid = !1, n.error = i + '"regex" extensions must implement a replace string or function', + n; + } + } + return n; +} + +function n(e, r) { + return "~E" + r.charCodeAt(0) + "E"; +} + +var s = "function" == typeof Symbol && "symbol" == e(Symbol.iterator) ? function(r) { + return e(r); +} : function(r) { + return r && "function" == typeof Symbol && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : e(r); +}, a = {}, o = {}, i = {}, l = r(!0), c = { + github: { + omitExtraWLInCodeBlocks: !0, + prefixHeaderId: "user-content-", + simplifiedAutoLink: !0, + literalMidWordUnderscores: !0, + strikethrough: !0, + tables: !0, + tablesHeaderId: !0, + ghCodeBlocks: !0, + tasklists: !0 + }, + vanilla: r(!0) +}; + +a.helper = {}, a.extensions = {}, a.setOption = function(e, r) { + return l[e] = r, this; +}, a.getOption = function(e) { + return l[e]; +}, a.getOptions = function() { + return l; +}, a.resetOptions = function() { + l = r(!0); +}, a.setFlavor = function(e) { + if (c.hasOwnProperty(e)) { + var r = c[e]; + for (var t in r) r.hasOwnProperty(t) && (l[t] = r[t]); + } +}, a.getDefaultOptions = function(e) { + return r(e); +}, a.subParser = function(e, r) { + if (a.helper.isString(e)) { + if (void 0 === r) { + if (o.hasOwnProperty(e)) return o[e]; + throw Error("SubParser named " + e + " not registered!"); + } + o[e] = r; + } +}, a.extension = function(e, r) { + if (!a.helper.isString(e)) throw Error("Extension 'name' must be a string"); + if (e = a.helper.stdExtName(e), a.helper.isUndefined(r)) { + if (!i.hasOwnProperty(e)) throw Error("Extension named " + e + " is not registered!"); + return i[e]; + } + "function" == typeof r && (r = r()), a.helper.isArray(r) || (r = [ r ]); + var n = t(r, e); + if (!n.valid) throw Error(n.error); + i[e] = r; +}, a.getAllExtensions = function() { + return i; +}, a.removeExtension = function(e) { + delete i[e]; +}, a.resetExtensions = function() { + i = {}; +}, a.validateExtension = function(e) { + var r = t(e, null); + return !!r.valid || (console.warn(r.error), !1); +}, a.hasOwnProperty("helper") || (a.helper = {}), a.helper.isString = function(e) { + return "string" == typeof e || e instanceof String; +}, a.helper.isFunction = function(e) { + return e && "[object Function]" === {}.toString.call(e); +}, a.helper.forEach = function(e, r) { + if ("function" == typeof e.forEach) e.forEach(r); else for (var t = 0; t < e.length; t++) r(e[t], t, e); +}, a.helper.isArray = function(e) { + return e.constructor === Array; +}, a.helper.isUndefined = function(e) { + return void 0 === e; +}, a.helper.stdExtName = function(e) { + return e.replace(/[_-]||\s/g, "").toLowerCase(); +}, a.helper.escapeCharactersCallback = n, a.helper.escapeCharacters = function(e, r, t) { + var s = "([" + r.replace(/([\[\]\\])/g, "\\$1") + "])"; + t && (s = "\\\\" + s); + var a = new RegExp(s, "g"); + return e.replace(a, n); +}; + +var u = function(e, r, t, n) { + var s, a, o, i, l, c = n || "", u = c.indexOf("g") > -1, p = new RegExp(r + "|" + t, "g" + c.replace(/g/g, "")), h = new RegExp(r, c.replace(/g/g, "")), d = []; + do { + for (s = 0; o = p.exec(e); ) if (h.test(o[0])) s++ || (i = (a = p.lastIndex) - o[0].length); else if (s && !--s) { + l = o.index + o[0].length; + var f = { + left: { + start: i, + end: a + }, + match: { + start: a, + end: o.index + }, + right: { + start: o.index, + end: l + }, + wholeMatch: { + start: i, + end: l + } + }; + if (d.push(f), !u) return d; + } + } while (s && (p.lastIndex = a)); + return d; +}; + +a.helper.matchRecursiveRegExp = function(e, r, t, n) { + for (var s = u(e, r, t, n), a = [], o = 0; o < s.length; ++o) a.push([ e.slice(s[o].wholeMatch.start, s[o].wholeMatch.end), e.slice(s[o].match.start, s[o].match.end), e.slice(s[o].left.start, s[o].left.end), e.slice(s[o].right.start, s[o].right.end) ]); + return a; +}, a.helper.replaceRecursiveRegExp = function(e, r, t, n, s) { + if (!a.helper.isFunction(r)) { + var o = r; + r = function() { + return o; + }; + } + var i = u(e, t, n, s), l = e, c = i.length; + if (c > 0) { + var p = []; + 0 !== i[0].wholeMatch.start && p.push(e.slice(0, i[0].wholeMatch.start)); + for (var h = 0; h < c; ++h) p.push(r(e.slice(i[h].wholeMatch.start, i[h].wholeMatch.end), e.slice(i[h].match.start, i[h].match.end), e.slice(i[h].left.start, i[h].left.end), e.slice(i[h].right.start, i[h].right.end))), + h < c - 1 && p.push(e.slice(i[h].wholeMatch.end, i[h + 1].wholeMatch.start)); + i[c - 1].wholeMatch.end < e.length && p.push(e.slice(i[c - 1].wholeMatch.end)), + l = p.join(""); + } + return l; +}, a.helper.isUndefined(console) && (console = { + warn: function(e) { + alert(e); + }, + log: function(e) { + alert(e); + }, + error: function(e) { + throw e; + } +}), a.Converter = function(e) { + function r(e, r) { + if (r = r || null, a.helper.isString(e)) { + if (r = e = a.helper.stdExtName(e), a.extensions[e]) return console.warn("DEPRECATION WARNING: " + e + " is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"), + void function(e, r) { + "function" == typeof e && (e = e(new a.Converter())), a.helper.isArray(e) || (e = [ e ]); + var n = t(e, r); + if (!n.valid) throw Error(n.error); + for (var s = 0; s < e.length; ++s) switch (e[s].type) { + case "lang": + u.push(e[s]); + break; + + case "output": + p.push(e[s]); + break; + + default: + throw Error("Extension loader error: Type unrecognized!!!"); + } + }(a.extensions[e], e); + if (a.helper.isUndefined(i[e])) throw Error('Extension "' + e + '" could not be loaded. It was either not found or is not a valid extension.'); + e = i[e]; + } + "function" == typeof e && (e = e()), a.helper.isArray(e) || (e = [ e ]); + var s = t(e, r); + if (!s.valid) throw Error(s.error); + for (var o = 0; o < e.length; ++o) { + switch (e[o].type) { + case "lang": + u.push(e[o]); + break; + + case "output": + p.push(e[o]); + } + if (e[o].hasOwnProperty(h)) for (var l in e[o].listeners) e[o].listeners.hasOwnProperty(l) && n(l, e[o].listeners[l]); + } + } + function n(e, r) { + if (!a.helper.isString(e)) throw Error("Invalid argument in converter.listen() method: name must be a string, but " + (void 0 === e ? "undefined" : s(e)) + " given"); + if ("function" != typeof r) throw Error("Invalid argument in converter.listen() method: callback must be a function, but " + (void 0 === r ? "undefined" : s(r)) + " given"); + h.hasOwnProperty(e) || (h[e] = []), h[e].push(r); + } + var o = {}, u = [], p = [], h = {}; + !function() { + for (var t in e = e || {}, l) l.hasOwnProperty(t) && (o[t] = l[t]); + if ("object" !== (void 0 === e ? "undefined" : s(e))) throw Error("Converter expects the passed parameter to be an object, but " + (void 0 === e ? "undefined" : s(e)) + " was passed instead."); + for (var n in e) e.hasOwnProperty(n) && (o[n] = e[n]); + o.extensions && a.helper.forEach(o.extensions, r); + }(), this._dispatch = function(e, r, t, n) { + if (h.hasOwnProperty(e)) for (var s = 0; s < h[e].length; ++s) { + var a = h[e][s](e, r, this, t, n); + a && void 0 !== a && (r = a); + } + return r; + }, this.listen = function(e, r) { + return n(e, r), this; + }, this.makeHtml = function(e) { + if (!e) return e; + var r = { + gHtmlBlocks: [], + gHtmlMdBlocks: [], + gHtmlSpans: [], + gUrls: {}, + gTitles: {}, + gDimensions: {}, + gListLevel: 0, + hashLinkCounts: {}, + langExtensions: u, + outputModifiers: p, + converter: this, + ghCodeBlocks: [] + }; + return e = (e = (e = (e = e.replace(/~/g, "~T")).replace(/\$/g, "~D")).replace(/\r\n/g, "\n")).replace(/\r/g, "\n"), + o.smartIndentationFix && (e = function(e) { + var r = e.match(/^\s*/)[0].length, t = new RegExp("^\\s{0," + r + "}", "gm"); + return e.replace(t, ""); + }(e)), e = e, e = a.subParser("detab")(e, o, r), e = a.subParser("stripBlankLines")(e, o, r), + a.helper.forEach(u, function(t) { + e = a.subParser("runExtension")(t, e, o, r); + }), e = a.subParser("hashPreCodeTags")(e, o, r), e = a.subParser("githubCodeBlocks")(e, o, r), + e = a.subParser("hashHTMLBlocks")(e, o, r), e = a.subParser("hashHTMLSpans")(e, o, r), + e = a.subParser("stripLinkDefinitions")(e, o, r), e = a.subParser("blockGamut")(e, o, r), + e = a.subParser("unhashHTMLSpans")(e, o, r), e = (e = (e = a.subParser("unescapeSpecialChars")(e, o, r)).replace(/~D/g, "$$")).replace(/~T/g, "~"), + a.helper.forEach(p, function(t) { + e = a.subParser("runExtension")(t, e, o, r); + }), e; + }, this.setOption = function(e, r) { + o[e] = r; + }, this.getOption = function(e) { + return o[e]; + }, this.getOptions = function() { + return o; + }, this.addExtension = function(e, t) { + r(e, t = t || null); + }, this.useExtension = function(e) { + r(e); + }, this.setFlavor = function(e) { + if (c.hasOwnProperty(e)) { + var r = c[e]; + for (var t in r) r.hasOwnProperty(t) && (o[t] = r[t]); + } + }, this.removeExtension = function(e) { + a.helper.isArray(e) || (e = [ e ]); + for (var r = 0; r < e.length; ++r) { + for (var t = e[r], n = 0; n < u.length; ++n) u[n] === t && u[n].splice(n, 1); + for (;0 < p.length; ++n) p[0] === t && p[0].splice(n, 1); + } + }, this.getAllExtensions = function() { + return { + language: u, + output: p + }; + }; +}, a.subParser("anchors", function(e, r, t) { + var n = function(e, r, n, s, o, i, l, c) { + a.helper.isUndefined(c) && (c = ""), e = r; + var u = n, p = s.toLowerCase(), h = o, d = c; + if (!h) if (p || (p = u.toLowerCase().replace(/ ?\n/g, " ")), h = "#" + p, a.helper.isUndefined(t.gUrls[p])) { + if (!(e.search(/\(\s*\)$/m) > -1)) return e; + h = ""; + } else h = t.gUrls[p], a.helper.isUndefined(t.gTitles[p]) || (d = t.gTitles[p]); + var f = '" + u + ""; + }; + return e = (e = (e = (e = t.converter._dispatch("anchors.before", e, r, t)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)][ ]?(?:\n[ ]*)?\[(.*?)])()()()()/g, n)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g, n)).replace(/(\[([^\[\]]+)])()()()()()/g, n), + t.converter._dispatch("anchors.after", e, r, t); +}), a.subParser("autoLinks", function(e, r, t) { + function n(e, r) { + var t = r; + return /^www\./i.test(r) && (r = r.replace(/^www\./i, "http://www.")), '' + t + ""; + } + function s(e, r) { + var t = a.subParser("unescapeSpecialChars")(r); + return a.subParser("encodeEmailAddress")(t); + } + return e = (e = (e = t.converter._dispatch("autoLinks.before", e, r, t)).replace(/<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)>/gi, n)).replace(/<(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, s), + r.simplifiedAutoLink && (e = (e = e.replace(/\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/gi, n)).replace(/(?:^|[ \n\t])([A-Za-z0-9!#$%&'*+-/=?^_`\{|}~\.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?:$|[ \n\t])/gi, s)), + t.converter._dispatch("autoLinks.after", e, r, t); +}), a.subParser("blockGamut", function(e, r, t) { + e = t.converter._dispatch("blockGamut.before", e, r, t), e = a.subParser("blockQuotes")(e, r, t), + e = a.subParser("headers")(e, r, t); + var n = a.subParser("hashBlock")("
", r, t); + return e = (e = (e = e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm, n)).replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm, n)).replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm, n), + e = a.subParser("lists")(e, r, t), e = a.subParser("codeBlocks")(e, r, t), e = a.subParser("tables")(e, r, t), + e = a.subParser("hashHTMLBlocks")(e, r, t), e = a.subParser("paragraphs")(e, r, t), + t.converter._dispatch("blockGamut.after", e, r, t); +}), a.subParser("blockQuotes", function(e, r, t) { + return e = (e = t.converter._dispatch("blockQuotes.before", e, r, t)).replace(/((^[ \t]{0,3}>[ \t]?.+\n(.+\n)*\n*)+)/gm, function(e, n) { + var s = n; + return s = (s = (s = s.replace(/^[ \t]*>[ \t]?/gm, "~0")).replace(/~0/g, "")).replace(/^[ \t]+$/gm, ""), + s = a.subParser("githubCodeBlocks")(s, r, t), s = (s = (s = a.subParser("blockGamut")(s, r, t)).replace(/(^|\n)/g, "$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm, function(e, r) {
+            var t = r;
+            return (t = t.replace(/^  /gm, "~0")).replace(/~0/g, "");
+        }), a.subParser("hashBlock")("
\n" + s + "\n
", r, t); + }), t.converter._dispatch("blockQuotes.after", e, r, t); +}), a.subParser("codeBlocks", function(e, r, t) { + e = t.converter._dispatch("codeBlocks.before", e, r, t); + return e = (e = (e += "~0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g, function(e, n, s) { + var o = n, i = s, l = "\n"; + return o = a.subParser("outdent")(o), o = a.subParser("encodeCode")(o), o = (o = (o = a.subParser("detab")(o)).replace(/^\n+/g, "")).replace(/\n+$/g, ""), + r.omitExtraWLInCodeBlocks && (l = ""), o = "
" + o + l + "
", + a.subParser("hashBlock")(o, r, t) + i; + })).replace(/~0/, ""), t.converter._dispatch("codeBlocks.after", e, r, t); +}), a.subParser("codeSpans", function(e, r, t) { + return void 0 === (e = t.converter._dispatch("codeSpans.before", e, r, t)) && (e = ""), + e = e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm, function(e, r, t, n) { + var s = n; + return s = (s = s.replace(/^([ \t]*)/g, "")).replace(/[ \t]*$/g, ""), r + "" + (s = a.subParser("encodeCode")(s)) + ""; + }), t.converter._dispatch("codeSpans.after", e, r, t); +}), a.subParser("detab", function(e) { + return (e = (e = (e = (e = e.replace(/\t(?=\t)/g, " ")).replace(/\t/g, "~A~B")).replace(/~B(.+?)~A/g, function(e, r) { + for (var t = r, n = 4 - t.length % 4, s = 0; s < n; s++) t += " "; + return t; + })).replace(/~A/g, " ")).replace(/~B/g, ""); +}), a.subParser("encodeAmpsAndAngles", function(e) { + return (e = e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&")).replace(/<(?![a-z\/?\$!])/gi, "<"); +}), a.subParser("encodeBackslashEscapes", function(e) { + return (e = e.replace(/\\(\\)/g, a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+-.!])/g, a.helper.escapeCharactersCallback); +}), a.subParser("encodeCode", function(e) { + return e = (e = (e = e.replace(/&/g, "&")).replace(//g, ">"), + a.helper.escapeCharacters(e, "*_{}[]\\", !1); +}), a.subParser("encodeEmailAddress", function(e) { + var r = [ function(e) { + return "&#" + e.charCodeAt(0) + ";"; + }, function(e) { + return "&#x" + e.charCodeAt(0).toString(16) + ";"; + }, function(e) { + return e; + } ]; + return (e = ' .9 ? r[2](e) : t > .45 ? r[1](e) : r[0](e); + } + return e; + })) + '">' + e + "").replace(/">.+:/g, '">'); +}), a.subParser("escapeSpecialCharsWithinTagAttributes", function(e) { + return e.replace(/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi, function(e) { + var r = e.replace(/(.)<\/?code>(?=.)/g, "$1`"); + return a.helper.escapeCharacters(r, "\\`*_", !1); + }); +}), a.subParser("githubCodeBlocks", function(e, r, t) { + return r.ghCodeBlocks ? (e = t.converter._dispatch("githubCodeBlocks.before", e, r, t), + e = (e = (e += "~0").replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g, function(e, n, s) { + var o = r.omitExtraWLInCodeBlocks ? "" : "\n"; + return s = a.subParser("encodeCode")(s), s = "
" + (s = (s = (s = a.subParser("detab")(s)).replace(/^\n+/g, "")).replace(/\n+$/g, "")) + o + "
", + s = a.subParser("hashBlock")(s, r, t), "\n\n~G" + (t.ghCodeBlocks.push({ + text: e, + codeblock: s + }) - 1) + "G\n\n"; + })).replace(/~0/, ""), t.converter._dispatch("githubCodeBlocks.after", e, r, t)) : e; +}), a.subParser("hashBlock", function(e, r, t) { + return e = e.replace(/(^\n+|\n+$)/g, ""), "\n\n~K" + (t.gHtmlBlocks.push(e) - 1) + "K\n\n"; +}), a.subParser("hashElement", function(e, r, t) { + return function(e, r) { + var n = r; + return n = (n = (n = n.replace(/\n\n/g, "\n")).replace(/^\n/, "")).replace(/\n+$/g, ""), + "\n\n~K" + (t.gHtmlBlocks.push(n) - 1) + "K\n\n"; + }; +}), a.subParser("hashHTMLBlocks", function(e, r, t) { + for (var n = [ "pre", "div", "h1", "h2", "h3", "h4", "h5", "h6", "blockquote", "table", "dl", "ol", "ul", "script", "noscript", "form", "fieldset", "iframe", "math", "style", "section", "header", "footer", "nav", "article", "aside", "address", "audio", "canvas", "figure", "hgroup", "output", "video", "p" ], s = 0; s < n.length; ++s) e = a.helper.replaceRecursiveRegExp(e, function(e, r, n, s) { + var a = e; + return -1 !== n.search(/\bmarkdown\b/) && (a = n + t.converter.makeHtml(r) + s), + "\n\n~K" + (t.gHtmlBlocks.push(a) - 1) + "K\n\n"; + }, "^(?: |\\t){0,3}<" + n[s] + "\\b[^>]*>", "", "gim"); + return (e = (e = e.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g, a.subParser("hashElement")(e, r, t))).replace(/()/g, a.subParser("hashElement")(e, r, t))).replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g, a.subParser("hashElement")(e, r, t)); +}), a.subParser("hashHTMLSpans", function(e, r, t) { + for (var n = a.helper.matchRecursiveRegExp(e, "]*>", "", "gi"), s = 0; s < n.length; ++s) e = e.replace(n[s][0], "~L" + (t.gHtmlSpans.push(n[s][0]) - 1) + "L"); + return e; +}), a.subParser("unhashHTMLSpans", function(e, r, t) { + for (var n = 0; n < t.gHtmlSpans.length; ++n) e = e.replace("~L" + n + "L", t.gHtmlSpans[n]); + return e; +}), a.subParser("hashPreCodeTags", function(e, r, t) { + return a.helper.replaceRecursiveRegExp(e, function(e, r, n, s) { + var o = n + a.subParser("encodeCode")(r) + s; + return "\n\n~G" + (t.ghCodeBlocks.push({ + text: e, + codeblock: o + }) - 1) + "G\n\n"; + }, "^(?: |\\t){0,3}]*>\\s*]*>", "^(?: |\\t){0,3}\\s*
", "gim"); +}), a.subParser("headers", function(e, r, t) { + function n(e) { + var r, n = e.replace(/[^\w]/g, "").toLowerCase(); + return t.hashLinkCounts[n] ? r = n + "-" + t.hashLinkCounts[n]++ : (r = n, t.hashLinkCounts[n] = 1), + !0 === s && (s = "section"), a.helper.isString(s) ? s + r : r; + } + e = t.converter._dispatch("headers.before", e, r, t); + var s = r.prefixHeaderId, o = isNaN(parseInt(r.headerLevelStart)) ? 1 : parseInt(r.headerLevelStart), i = r.smoothLivePreview ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, l = r.smoothLivePreview ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm; + return e = (e = (e = e.replace(i, function(e, s) { + var i = a.subParser("spanGamut")(s, r, t), l = r.noHeaderId ? "" : ' id="' + n(s) + '"', c = "" + i + ""; + return a.subParser("hashBlock")(c, r, t); + })).replace(l, function(e, s) { + var i = a.subParser("spanGamut")(s, r, t), l = r.noHeaderId ? "" : ' id="' + n(s) + '"', c = o + 1, u = "" + i + ""; + return a.subParser("hashBlock")(u, r, t); + })).replace(/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm, function(e, s, i) { + var l = a.subParser("spanGamut")(i, r, t), c = r.noHeaderId ? "" : ' id="' + n(i) + '"', u = o - 1 + s.length, p = "" + l + ""; + return a.subParser("hashBlock")(p, r, t); + }), t.converter._dispatch("headers.after", e, r, t); +}), a.subParser("images", function(e, r, t) { + function n(e, r, n, s, o, i, l, c) { + var u = t.gUrls, p = t.gTitles, h = t.gDimensions; + if (n = n.toLowerCase(), c || (c = ""), "" === s || null === s) { + if ("" !== n && null !== n || (n = r.toLowerCase().replace(/ ?\n/g, " ")), s = "#" + n, + a.helper.isUndefined(u[n])) return e; + s = u[n], a.helper.isUndefined(p[n]) || (c = p[n]), a.helper.isUndefined(h[n]) || (o = h[n].width, + i = h[n].height); + } + r = r.replace(/"/g, """), r = a.helper.escapeCharacters(r, "*_", !1); + var d = '' + r + '"; + } + return e = (e = (e = t.converter._dispatch("images.before", e, r, t)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[(.*?)]()()()()()/g, n)).replace(/!\[(.*?)]\s?\([ \t]*()?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g, n), + t.converter._dispatch("images.after", e, r, t); +}), a.subParser("italicsAndBold", function(e, r, t) { + return e = t.converter._dispatch("italicsAndBold.before", e, r, t), e = r.literalMidWordUnderscores ? (e = (e = (e = e.replace(/(^|\s|>|\b)__(?=\S)([\s\S]+?)__(?=\b|<|\s|$)/gm, "$1$2")).replace(/(^|\s|>|\b)_(?=\S)([\s\S]+?)_(?=\b|<|\s|$)/gm, "$1$2")).replace(/(\*\*)(?=\S)([^\r]*?\S[*]*)\1/g, "$2")).replace(/(\*)(?=\S)([^\r]*?\S)\1/g, "$2") : (e = e.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g, "$2")).replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, "$2"), + t.converter._dispatch("italicsAndBold.after", e, r, t); +}), a.subParser("lists", function(e, r, t) { + function n(e, n) { + t.gListLevel++, e = e.replace(/\n{2,}$/, "\n"); + var s = /\n[ \t]*\n(?!~0)/.test(e += "~0"); + return e = (e = e.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm, function(e, n, o, i, l, c, u) { + u = u && "" !== u.trim(); + var p = a.subParser("outdent")(l, r, t), h = ""; + return c && r.tasklists && (h = ' class="task-list-item" style="list-style-type: none;"', + p = p.replace(/^[ \t]*\[(x|X| )?]/m, function() { + var e = '"; + })), n || p.search(/\n{2,}/) > -1 ? (p = a.subParser("githubCodeBlocks")(p, r, t), + p = a.subParser("blockGamut")(p, r, t)) : (p = (p = a.subParser("lists")(p, r, t)).replace(/\n$/, ""), + p = s ? a.subParser("paragraphs")(p, r, t) : a.subParser("spanGamut")(p, r, t)), + "\n" + p + "\n"; + })).replace(/~0/g, ""), t.gListLevel--, n && (e = e.replace(/\s+$/, "")), e; + } + function s(e, r, t) { + var s = "ul" === r ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm, a = [], o = ""; + if (-1 !== e.search(s)) { + !function e(a) { + var i = a.search(s); + -1 !== i ? (o += "\n\n<" + r + ">" + n(a.slice(0, i), !!t) + "\n\n", + s = "ul" == (r = "ul" === r ? "ol" : "ul") ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm, + e(a.slice(i))) : o += "\n\n<" + r + ">" + n(a, !!t) + "\n\n"; + }(e); + for (var i = 0; i < a.length; ++i) ; + } else o = "\n\n<" + r + ">" + n(e, !!t) + "\n\n"; + return o; + } + e = t.converter._dispatch("lists.before", e, r, t), e += "~0"; + var o = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm; + return t.gListLevel ? e = e.replace(o, function(e, r, t) { + return s(r, t.search(/[*+-]/g) > -1 ? "ul" : "ol", !0); + }) : (o = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm, + e = e.replace(o, function(e, r, t, n) { + return s(t, n.search(/[*+-]/g) > -1 ? "ul" : "ol"); + })), e = e.replace(/~0/, ""), t.converter._dispatch("lists.after", e, r, t); +}), a.subParser("outdent", function(e) { + return (e = e.replace(/^(\t|[ ]{1,4})/gm, "~0")).replace(/~0/g, ""); +}), a.subParser("paragraphs", function(e, r, t) { + for (var n = (e = (e = (e = t.converter._dispatch("paragraphs.before", e, r, t)).replace(/^\n+/g, "")).replace(/\n+$/g, "")).split(/\n{2,}/g), s = [], o = n.length, i = 0; i < o; i++) { + var l = n[i]; + l.search(/~(K|G)(\d+)\1/g) >= 0 || (l = (l = a.subParser("spanGamut")(l, r, t)).replace(/^([ \t]*)/g, "

"), + l += "

"), s.push(l); + } + for (o = s.length, i = 0; i < o; i++) { + for (var c = "", u = s[i], p = !1; u.search(/~(K|G)(\d+)\1/) >= 0; ) { + var h = RegExp.$1, d = RegExp.$2; + c = (c = "K" === h ? t.gHtmlBlocks[d] : p ? a.subParser("encodeCode")(t.ghCodeBlocks[d].text) : t.ghCodeBlocks[d].codeblock).replace(/\$/g, "$$$$"), + u = u.replace(/(\n\n)?~(K|G)\d+\2(\n\n)?/, c), /^]*>\s*]*>/.test(u) && (p = !0); + } + s[i] = u; + } + return e = (e = (e = s.join("\n\n")).replace(/^\n+/g, "")).replace(/\n+$/g, ""), + t.converter._dispatch("paragraphs.after", e, r, t); +}), a.subParser("runExtension", function(e, r, t, n) { + if (e.filter) r = e.filter(r, n.converter, t); else if (e.regex) { + var s = e.regex; + !s instanceof RegExp && (s = new RegExp(s, "g")), r = r.replace(s, e.replace); + } + return r; +}), a.subParser("spanGamut", function(e, r, t) { + return e = t.converter._dispatch("spanGamut.before", e, r, t), e = a.subParser("codeSpans")(e, r, t), + e = a.subParser("escapeSpecialCharsWithinTagAttributes")(e, r, t), e = a.subParser("encodeBackslashEscapes")(e, r, t), + e = a.subParser("images")(e, r, t), e = a.subParser("anchors")(e, r, t), e = a.subParser("autoLinks")(e, r, t), + e = a.subParser("encodeAmpsAndAngles")(e, r, t), e = a.subParser("italicsAndBold")(e, r, t), + e = (e = a.subParser("strikethrough")(e, r, t)).replace(/ +\n/g, "
\n"), + t.converter._dispatch("spanGamut.after", e, r, t); +}), a.subParser("strikethrough", function(e, r, t) { + return r.strikethrough && (e = (e = t.converter._dispatch("strikethrough.before", e, r, t)).replace(/(?:~T){2}([\s\S]+?)(?:~T){2}/g, "$1"), + e = t.converter._dispatch("strikethrough.after", e, r, t)), e; +}), a.subParser("stripBlankLines", function(e) { + return e.replace(/^[ \t]+$/gm, ""); +}), a.subParser("stripLinkDefinitions", function(e, r, t) { + return (e = (e += "~0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=~0))/gm, function(e, n, s, o, i, l, c) { + return n = n.toLowerCase(), t.gUrls[n] = a.subParser("encodeAmpsAndAngles")(s), + l ? l + c : (c && (t.gTitles[n] = c.replace(/"|'/g, """)), r.parseImgDimensions && o && i && (t.gDimensions[n] = { + width: o, + height: i + }), ""); + })).replace(/~0/, ""); +}), a.subParser("tables", function(e, r, t) { + function n(e) { + return /^:[ \t]*--*$/.test(e) ? ' style="text-align:left;"' : /^--*[ \t]*:[ \t]*$/.test(e) ? ' style="text-align:right;"' : /^:[ \t]*--*[ \t]*:$/.test(e) ? ' style="text-align:center;"' : ""; + } + function s(e, n) { + var s = ""; + return e = e.trim(), r.tableHeaderId && (s = ' id="' + e.replace(/ /g, "_").toLowerCase() + '"'), + "" + (e = a.subParser("spanGamut")(e, r, t)) + "\n"; + } + function o(e, n) { + return "" + a.subParser("spanGamut")(e, r, t) + "\n"; + } + if (!r.tables) return e; + return e = (e = t.converter._dispatch("tables.before", e, r, t)).replace(/^[ \t]{0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|~0)/gm, function(e) { + var r, t = e.split("\n"); + for (r = 0; r < t.length; ++r) /^[ \t]{0,3}\|/.test(t[r]) && (t[r] = t[r].replace(/^[ \t]{0,3}\|/, "")), + /\|[ \t]*$/.test(t[r]) && (t[r] = t[r].replace(/\|[ \t]*$/, "")); + var i = t[0].split("|").map(function(e) { + return e.trim(); + }), l = t[1].split("|").map(function(e) { + return e.trim(); + }), c = [], u = [], p = [], h = []; + for (t.shift(), t.shift(), r = 0; r < t.length; ++r) "" !== t[r].trim() && c.push(t[r].split("|").map(function(e) { + return e.trim(); + })); + if (i.length < l.length) return e; + for (r = 0; r < l.length; ++r) p.push(n(l[r])); + for (r = 0; r < i.length; ++r) a.helper.isUndefined(p[r]) && (p[r] = ""), u.push(s(i[r], p[r])); + for (r = 0; r < c.length; ++r) { + for (var d = [], f = 0; f < u.length; ++f) a.helper.isUndefined(c[r][f]), d.push(o(c[r][f], p[f])); + h.push(d); + } + return function(e, r) { + for (var t = "\n\n\n", n = e.length, s = 0; s < n; ++s) t += e[s]; + for (t += "\n\n\n", s = 0; s < r.length; ++s) { + t += "\n"; + for (var a = 0; a < n; ++a) t += r[s][a]; + t += "\n"; + } + return t + "\n
\n"; + }(u, h); + }), t.converter._dispatch("tables.after", e, r, t); +}), a.subParser("unescapeSpecialChars", function(e) { + return e.replace(/~E(\d+)E/g, function(e, r) { + var t = parseInt(r); + return String.fromCharCode(t); + }); +}), module.exports = a; \ No newline at end of file diff --git a/wx05cb767e6530b48f/wxParse/wxDiscode.js b/wx05cb767e6530b48f/wxParse/wxDiscode.js new file mode 100644 index 0000000..4a14dd1 --- /dev/null +++ b/wx05cb767e6530b48f/wxParse/wxDiscode.js @@ -0,0 +1,18 @@ +module.exports = { + strDiscode: function(e) { + return function(e) { + return (e = (e = e.replace(/\r\n/g, "")).replace(/\n/g, "")).replace(/code/g, "wxxxcode-style"); + }(e = function(e) { + return (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = e.replace(/Œ/g, "Œ")).replace(/œ/g, "œ")).replace(/Š/g, "Š")).replace(/š/g, "š")).replace(/Ÿ/g, "Ÿ")).replace(/ƒ/g, "ƒ")).replace(/ˆ/g, "ˆ")).replace(/˜/g, "˜")).replace(/ /g, "")).replace(/ /g, "")).replace(/ /g, "")).replace(/‌/g, "")).replace(/‍/g, "")).replace(/‎/g, "")).replace(/‏/g, "")).replace(/–/g, "–")).replace(/—/g, "—")).replace(/‘/g, "‘")).replace(/’/g, "’")).replace(/‚/g, "‚")).replace(/“/g, "“")).replace(/”/g, "”")).replace(/„/g, "„")).replace(/†/g, "†")).replace(/‡/g, "‡")).replace(/•/g, "•")).replace(/…/g, "…")).replace(/‰/g, "‰")).replace(/′/g, "′")).replace(/″/g, "″")).replace(/‹/g, "‹")).replace(/›/g, "›")).replace(/‾/g, "‾")).replace(/€/g, "€")).replace(/™/g, "™")).replace(/←/g, "←")).replace(/↑/g, "↑")).replace(/→/g, "→")).replace(/↓/g, "↓")).replace(/↔/g, "↔")).replace(/↵/g, "↵")).replace(/⌈/g, "⌈")).replace(/⌉/g, "⌉")).replace(/⌊/g, "⌊")).replace(/⌋/g, "⌋")).replace(/◊/g, "◊")).replace(/♠/g, "♠")).replace(/♣/g, "♣")).replace(/♥/g, "♥")).replace(/♦/g, "♦"); + }(e = function(e) { + return (e = (e = (e = (e = e.replace(/ /g, " ")).replace(/"/g, "'")).replace(/&/g, "&")).replace(/</g, "<")).replace(/>/g, ">"); + }(e = function(e) { + return (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = e.replace(/Α/g, "Α")).replace(/Β/g, "Β")).replace(/Γ/g, "Γ")).replace(/Δ/g, "Δ")).replace(/Ε/g, "Ε")).replace(/Ζ/g, "Ζ")).replace(/Η/g, "Η")).replace(/Θ/g, "Θ")).replace(/Ι/g, "Ι")).replace(/Κ/g, "Κ")).replace(/Λ/g, "Λ")).replace(/Μ/g, "Μ")).replace(/Ν/g, "Ν")).replace(/Ξ/g, "Ν")).replace(/Ο/g, "Ο")).replace(/Π/g, "Π")).replace(/Ρ/g, "Ρ")).replace(/Σ/g, "Σ")).replace(/Τ/g, "Τ")).replace(/Υ/g, "Υ")).replace(/Φ/g, "Φ")).replace(/Χ/g, "Χ")).replace(/Ψ/g, "Ψ")).replace(/Ω/g, "Ω")).replace(/α/g, "α")).replace(/β/g, "β")).replace(/γ/g, "γ")).replace(/δ/g, "δ")).replace(/ε/g, "ε")).replace(/ζ/g, "ζ")).replace(/η/g, "η")).replace(/θ/g, "θ")).replace(/ι/g, "ι")).replace(/κ/g, "κ")).replace(/λ/g, "λ")).replace(/μ/g, "μ")).replace(/ν/g, "ν")).replace(/ξ/g, "ξ")).replace(/ο/g, "ο")).replace(/π/g, "π")).replace(/ρ/g, "ρ")).replace(/ς/g, "ς")).replace(/σ/g, "σ")).replace(/τ/g, "τ")).replace(/υ/g, "υ")).replace(/φ/g, "φ")).replace(/χ/g, "χ")).replace(/ψ/g, "ψ")).replace(/ω/g, "ω")).replace(/ϑ/g, "ϑ")).replace(/ϒ/g, "ϒ")).replace(/ϖ/g, "ϖ")).replace(/·/g, "·"); + }(e = function(e) { + return (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = e.replace(/∀/g, "∀")).replace(/∂/g, "∂")).replace(/&exists;/g, "∃")).replace(/∅/g, "∅")).replace(/∇/g, "∇")).replace(/∈/g, "∈")).replace(/∉/g, "∉")).replace(/∋/g, "∋")).replace(/∏/g, "∏")).replace(/∑/g, "∑")).replace(/−/g, "−")).replace(/∗/g, "∗")).replace(/√/g, "√")).replace(/∝/g, "∝")).replace(/∞/g, "∞")).replace(/∠/g, "∠")).replace(/∧/g, "∧")).replace(/∨/g, "∨")).replace(/∩/g, "∩")).replace(/∩/g, "∪")).replace(/∫/g, "∫")).replace(/∴/g, "∴")).replace(/∼/g, "∼")).replace(/≅/g, "≅")).replace(/≈/g, "≈")).replace(/≠/g, "≠")).replace(/≤/g, "≤")).replace(/≥/g, "≥")).replace(/⊂/g, "⊂")).replace(/⊃/g, "⊃")).replace(/⊄/g, "⊄")).replace(/⊆/g, "⊆")).replace(/⊇/g, "⊇")).replace(/⊕/g, "⊕")).replace(/⊗/g, "⊗")).replace(/⊥/g, "⊥")).replace(/⋅/g, "⋅"); + }(e))))); + }, + urlToHttpUrl: function(e, a) { + return new RegExp("^//").test(e) && (e = a + ":" + e), e; + } +}; \ No newline at end of file diff --git a/wx05cb767e6530b48f/wxParse/wxParse.js b/wx05cb767e6530b48f/wxParse/wxParse.js new file mode 100644 index 0000000..add32c9 --- /dev/null +++ b/wx05cb767e6530b48f/wxParse/wxParse.js @@ -0,0 +1,43 @@ +function e(e) { + return e && e.__esModule ? e : { + default: e + }; +} + +function a(e) { + var a = e.target.dataset.src, t = e.target.dataset.from; + void 0 !== t && t.length > 0 && wx.previewImage({ + current: a, + urls: this.data[t].imageUrls + }); +} + +function t(e) { + return !1; +} + +var r = e(require("./showdown.js")), i = e(require("./html2json.js")); + +module.exports = { + wxParse: function() { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "wxParseData", n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "html", s = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : '
数据不能为空
', o = arguments[3], d = arguments[4], l = o, m = {}; + if ("html" == n) m = i.default.html2json(s, e); else if ("md" == n || "markdown" == n) { + var u = new r.default.Converter().makeHtml(s); + m = i.default.html2json(u, e); + } + m.view = {}, m.view.imagePadding = 0, void 0 !== d && (m.view.imagePadding = d); + var v = {}; + v[e] = m, l.setData(v), l.wxParseImgLoad = t, l.wxParseImgTap = a; + }, + wxParseTemArray: function(e, a, t, r) { + for (var i = [], n = r.data, s = null, o = 0; o < t; o++) { + var d = n[a + o].nodes; + i.push(d); + } + e = e || "wxParseTemArray", (s = JSON.parse('{"' + e + '":""}'))[e] = i, r.setData(s); + }, + emojisInit: function() { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "/wxParse/emojis/", t = arguments[2]; + i.default.emojisInit(e, a, t); + } +}; \ No newline at end of file diff --git a/wx05cb767e6530b48f/wxParse/wxParse.wxml b/wx05cb767e6530b48f/wxParse/wxParse.wxml new file mode 100644 index 0000000..7b4d37e --- /dev/null +++ b/wx05cb767e6530b48f/wxParse/wxParse.wxml @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + diff --git a/wx05cb767e6530b48f/wxParse/wxParse.wxss b/wx05cb767e6530b48f/wxParse/wxParse.wxss new file mode 100644 index 0000000..0119728 --- /dev/null +++ b/wx05cb767e6530b48f/wxParse/wxParse.wxss @@ -0,0 +1,241 @@ +.wxParse { + color: #666; + font-family: Helvetica,sans-serif; + font-size: 28rpx; + line-height: 1.8; + margin: 0 5px; +} + +view { + overflow: auto; + word-break: break-all; +} + +.wxParse-inline { + display: inline; +} + +.wxParse-div,.wxParse-inline { + margin: 0; + padding: 0; +} + +.wxParse-h1 { + font-size: 2em; + margin: .67em 0; +} + +.wxParse-h2 { + font-size: 1.5em; + margin: .75em 0; +} + +.wxParse-h3 { + font-size: 1.17em; + margin: .83em 0; +} + +.wxParse-h4 { + margin: 1.12em 0; +} + +.wxParse-h5 { + font-size: .83em; + margin: 1.5em 0; +} + +.wxParse-h6 { + font-size: .75em; + margin: 1.67em 0; +} + +.wxParse-h1 { + font-size: 18px; + font-weight: 400; + margin-bottom: .9em; +} + +.wxParse-h2 { + font-size: 16px; +} + +.wxParse-h2,.wxParse-h3 { + font-weight: 400; + margin-bottom: .34em; +} + +.wxParse-h3 { + font-size: 15px; +} + +.wxParse-h4 { + font-size: 14px; + font-weight: 400; + margin-bottom: .24em; +} + +.wxParse-h5 { + font-size: 13px; + font-weight: 400; + margin-bottom: .14em; +} + +.wxParse-h6 { + font-size: 12px; + font-weight: 400; + margin-bottom: .04em; +} + +.wxParse-b,.wxParse-h1,.wxParse-h2,.wxParse-h3,.wxParse-h4,.wxParse-h5,.wxParse-h6,.wxParse-strong { + font-weight: bolder; +} + +.wxParse-address,.wxParse-cite,.wxParse-em,.wxParse-i,.wxParse-var { + font-style: italic; +} + +.wxParse-code,.wxParse-kbd,.wxParse-pre,.wxParse-samp,.wxParse-tt { + font-family: monospace; +} + +.wxParse-pre { + white-space: pre; +} + +.wxParse-big { + font-size: 1.17em; +} + +.wxParse-small,.wxParse-sub,.wxParse-sup { + font-size: .83em; +} + +.wxParse-sub { + vertical-align: sub; +} + +.wxParse-sup { + vertical-align: super; +} + +.wxParse-del,.wxParse-s,.wxParse-strike { + text-decoration: line-through; +} + +.wxParse-s,.wxParse-strong { + display: inline; +} + +.wxParse-a { + color: #00bfff; + overflow: auto; + word-break: break-all; +} + +.wxParse-video { + margin: 10px 0; + text-align: center; +} + +.wxParse-video-video { + width: 100%; +} + +.wxParse-img { + background-color: #efefef; + overflow: hidden; +} + +.wxParse-blockquote { + background: #f5f5f5; + border-left: 3px solid #dbdbdb; + font-family: Courier,Calibri,宋体; + margin: 0; + padding: 10px 0 10px 5px; +} + +.wxParse-code,.wxParse-wxxxcode-style { + background: #f5f5f5; + display: inline; +} + +.wxParse-ul { + margin: 20rpx 10rpx; +} + +.wxParse-li,.wxParse-li-inner { + align-items: baseline; + display: flex; + margin: 10rpx 0; +} + +.wxParse-li-text { + align-items: center; + line-height: 20px; +} + +.wxParse-li-circle { + background-color: #333; + display: inline-flex; + height: 5px; + margin-right: 5px; + width: 5px; +} + +.wxParse-li-square { + background-color: #333; +} + +.wxParse-li-ring,.wxParse-li-square { + display: inline-flex; + height: 10rpx; + margin-right: 5px; + width: 10rpx; +} + +.wxParse-li-ring { + background-color: #fff; + border: 2rpx solid #333; + border-radius: 50%; +} + +.wxParse-u { + text-decoration: underline; +} + +.wxParse-hide { + display: none; +} + +.WxEmojiView { + align-items: center; +} + +.wxEmoji { + height: 16px; + width: 16px; +} + +.wxParse-tr { + border-bottom: 1px solid #e0e0e0; + border-right: 1px solid #e0e0e0; + border-top: 1px solid #e0e0e0; + display: flex; +} + +.wxParse-td,.wxParse-th { + border-left: 1px solid #e0e0e0; + flex: 1; + font-size: 28rpx; + padding: 5px; + word-break: break-all; +} + +.wxParse-td:last { + border-top: 1px solid #e0e0e0; +} + +.wxParse-th { + background: #f0f0f0; + border-top: 1px solid #e0e0e0; +} \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/Arrayincludes.js b/wx214944c362629fc7/@babel/runtime/helpers/Arrayincludes.js new file mode 100644 index 0000000..2d9055d --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/Arrayincludes.js @@ -0,0 +1,12 @@ +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; + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/arrayLikeToArray.js b/wx214944c362629fc7/@babel/runtime/helpers/arrayLikeToArray.js new file mode 100644 index 0000000..1c5f132 --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/arrayLikeToArray.js @@ -0,0 +1,7 @@ +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; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/arrayWithoutHoles.js b/wx214944c362629fc7/@babel/runtime/helpers/arrayWithoutHoles.js new file mode 100644 index 0000000..1a850a8 --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/arrayWithoutHoles.js @@ -0,0 +1,7 @@ +var arrayLikeToArray = require("./arrayLikeToArray"); + +function _arrayWithoutHoles(r) { + if (Array.isArray(r)) return arrayLikeToArray(r); +} + +module.exports = _arrayWithoutHoles; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/asyncToGenerator.js b/wx214944c362629fc7/@babel/runtime/helpers/asyncToGenerator.js new file mode 100644 index 0000000..080f2bb --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/asyncToGenerator.js @@ -0,0 +1,26 @@ +function asyncGeneratorStep(n, e, r, t, o, a, c) { + try { + var i = n[a](c), u = i.value; + } catch (n) { + return void r(n); + } + i.done ? e(u) : Promise.resolve(u).then(t, o); +} + +function _asyncToGenerator(n) { + return function() { + var e = this, r = arguments; + return new Promise(function(t, o) { + var a = n.apply(e, r); + function c(n) { + asyncGeneratorStep(a, t, o, c, i, "next", n); + } + function i(n) { + asyncGeneratorStep(a, t, o, c, i, "throw", n); + } + c(void 0); + }); + }; +} + +module.exports = _asyncToGenerator; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/defineProperty.js b/wx214944c362629fc7/@babel/runtime/helpers/defineProperty.js new file mode 100644 index 0000000..6a29aa9 --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/defineProperty.js @@ -0,0 +1,10 @@ +function _defineProperty(e, r, n) { + return r in e ? Object.defineProperty(e, r, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = n, e; +} + +module.exports = _defineProperty; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/interopRequireDefault.js b/wx214944c362629fc7/@babel/runtime/helpers/interopRequireDefault.js new file mode 100644 index 0000000..44ddf0a --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/interopRequireDefault.js @@ -0,0 +1,7 @@ +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { + default: e + }; +} + +module.exports = _interopRequireDefault; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/iterableToArray.js b/wx214944c362629fc7/@babel/runtime/helpers/iterableToArray.js new file mode 100644 index 0000000..0332bea --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/iterableToArray.js @@ -0,0 +1,5 @@ +function _iterableToArray(r) { + if ("undefined" != typeof Symbol && Symbol.iterator in Object(r)) return Array.from(r); +} + +module.exports = _iterableToArray; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/nonIterableSpread.js b/wx214944c362629fc7/@babel/runtime/helpers/nonIterableSpread.js new file mode 100644 index 0000000..bfc8a87 --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/nonIterableSpread.js @@ -0,0 +1,5 @@ +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; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/toConsumableArray.js b/wx214944c362629fc7/@babel/runtime/helpers/toConsumableArray.js new file mode 100644 index 0000000..3eaf17a --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/toConsumableArray.js @@ -0,0 +1,7 @@ +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; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/typeof.js b/wx214944c362629fc7/@babel/runtime/helpers/typeof.js new file mode 100644 index 0000000..0a7d54d --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/typeof.js @@ -0,0 +1,9 @@ +function _typeof(o) { + return "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? module.exports = _typeof = function(o) { + return typeof o; + } : module.exports = _typeof = function(o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, _typeof(o); +} + +module.exports = _typeof; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/helpers/unsupportedIterableToArray.js b/wx214944c362629fc7/@babel/runtime/helpers/unsupportedIterableToArray.js new file mode 100644 index 0000000..8ced7d7 --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/helpers/unsupportedIterableToArray.js @@ -0,0 +1,11 @@ +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; \ No newline at end of file diff --git a/wx214944c362629fc7/@babel/runtime/regenerator.js b/wx214944c362629fc7/@babel/runtime/regenerator.js new file mode 100644 index 0000000..a78ec5e --- /dev/null +++ b/wx214944c362629fc7/@babel/runtime/regenerator.js @@ -0,0 +1,273 @@ +!function(t) { + "use strict"; + var r, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", c = o.toStringTag || "@@toStringTag", u = "object" == typeof module, h = t.regeneratorRuntime; + if (h) u && (module.exports = h); else { + (h = t.regeneratorRuntime = u ? module.exports : {}).wrap = w; + var f = "suspendedStart", s = "suspendedYield", l = "executing", p = "completed", y = {}, v = {}; + v[i] = function() { + return this; + }; + var d = Object.getPrototypeOf, g = d && d(d(P([]))); + g && g !== e && n.call(g, i) && (v = g); + var m = b.prototype = x.prototype = Object.create(v); + E.prototype = m.constructor = b, b.constructor = E, b[c] = E.displayName = "GeneratorFunction", + h.isGeneratorFunction = function(t) { + var r = "function" == typeof t && t.constructor; + return !!r && (r === E || "GeneratorFunction" === (r.displayName || r.name)); + }, h.mark = function(t) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t, b) : (t.__proto__ = b, c in t || (t[c] = "GeneratorFunction")), + t.prototype = Object.create(m), t; + }, h.awrap = function(t) { + return { + __await: t + }; + }, _(j.prototype), j.prototype[a] = function() { + return this; + }, h.AsyncIterator = j, h.async = function(t, r, e, n) { + var o = new j(w(t, r, e, n)); + return h.isGeneratorFunction(r) ? o : o.next().then(function(t) { + return t.done ? t.value : o.next(); + }); + }, _(m), m[c] = "Generator", m[i] = function() { + return this; + }, m.toString = function() { + return "[object Generator]"; + }, h.keys = function(t) { + var r = []; + for (var e in t) r.push(e); + return r.reverse(), function e() { + for (;r.length; ) { + var n = r.pop(); + if (n in t) return e.value = n, e.done = !1, e; + } + return e.done = !0, e; + }; + }, h.values = P, N.prototype = { + constructor: N, + reset: function(t) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = r, this.done = !1, this.delegate = null, + this.method = "next", this.arg = r, this.tryEntries.forEach(G), !t) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = r); + }, + stop: function() { + this.done = !0; + var t = this.tryEntries[0].completion; + if ("throw" === t.type) throw t.arg; + return this.rval; + }, + dispatchException: function(t) { + if (this.done) throw t; + var e = this; + function o(n, o) { + return c.type = "throw", c.arg = t, e.next = n, o && (e.method = "next", e.arg = r), + !!o; + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var a = this.tryEntries[i], c = a.completion; + if ("root" === a.tryLoc) return o("end"); + if (a.tryLoc <= this.prev) { + var u = n.call(a, "catchLoc"), h = n.call(a, "finallyLoc"); + if (u && h) { + if (this.prev < a.catchLoc) return o(a.catchLoc, !0); + if (this.prev < a.finallyLoc) return o(a.finallyLoc); + } else if (u) { + if (this.prev < a.catchLoc) return o(a.catchLoc, !0); + } else { + if (!h) throw new Error("try statement without catch or finally"); + if (this.prev < a.finallyLoc) return o(a.finallyLoc); + } + } + } + }, + abrupt: function(t, r) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var o = this.tryEntries[e]; + if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { + var i = o; + break; + } + } + i && ("break" === t || "continue" === t) && i.tryLoc <= r && r <= i.finallyLoc && (i = null); + var a = i ? i.completion : {}; + return a.type = t, a.arg = r, i ? (this.method = "next", this.next = i.finallyLoc, + y) : this.complete(a); + }, + complete: function(t, r) { + if ("throw" === t.type) throw t.arg; + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, + this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), + y; + }, + finish: function(t) { + for (var r = this.tryEntries.length - 1; r >= 0; --r) { + var e = this.tryEntries[r]; + if (e.finallyLoc === t) return this.complete(e.completion, e.afterLoc), G(e), y; + } + }, + catch: function(t) { + for (var r = this.tryEntries.length - 1; r >= 0; --r) { + var e = this.tryEntries[r]; + if (e.tryLoc === t) { + var n = e.completion; + if ("throw" === n.type) { + var o = n.arg; + G(e); + } + return o; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function(t, e, n) { + return this.delegate = { + iterator: P(t), + resultName: e, + nextLoc: n + }, "next" === this.method && (this.arg = r), y; + } + }; + } + function w(t, r, e, n) { + var o = r && r.prototype instanceof x ? r : x, i = Object.create(o.prototype), a = new N(n || []); + return i._invoke = function(t, r, e) { + var n = f; + return function(o, i) { + if (n === l) throw new Error("Generator is already running"); + if (n === p) { + if ("throw" === o) throw i; + return F(); + } + for (e.method = o, e.arg = i; ;) { + var a = e.delegate; + if (a) { + var c = O(a, e); + if (c) { + if (c === y) continue; + return c; + } + } + if ("next" === e.method) e.sent = e._sent = e.arg; else if ("throw" === e.method) { + if (n === f) throw n = p, e.arg; + e.dispatchException(e.arg); + } else "return" === e.method && e.abrupt("return", e.arg); + n = l; + var u = L(t, r, e); + if ("normal" === u.type) { + if (n = e.done ? p : s, u.arg === y) continue; + return { + value: u.arg, + done: e.done + }; + } + "throw" === u.type && (n = p, e.method = "throw", e.arg = u.arg); + } + }; + }(t, e, a), i; + } + function L(t, r, e) { + try { + return { + type: "normal", + arg: t.call(r, e) + }; + } catch (t) { + return { + type: "throw", + arg: t + }; + } + } + function x() {} + function E() {} + function b() {} + function _(t) { + [ "next", "throw", "return" ].forEach(function(r) { + t[r] = function(t) { + return this._invoke(r, t); + }; + }); + } + function j(t) { + var r; + this._invoke = function(e, o) { + function i() { + return new Promise(function(r, i) { + !function r(e, o, i, a) { + var c = L(t[e], t, o); + if ("throw" !== c.type) { + var u = c.arg, h = u.value; + return h && "object" == typeof h && n.call(h, "__await") ? Promise.resolve(h.__await).then(function(t) { + r("next", t, i, a); + }, function(t) { + r("throw", t, i, a); + }) : Promise.resolve(h).then(function(t) { + u.value = t, i(u); + }, function(t) { + return r("throw", t, i, a); + }); + } + a(c.arg); + }(e, o, r, i); + }); + } + return r = r ? r.then(i, i) : i(); + }; + } + function O(t, e) { + var n = t.iterator[e.method]; + if (n === r) { + if (e.delegate = null, "throw" === e.method) { + if (t.iterator.return && (e.method = "return", e.arg = r, O(t, e), "throw" === e.method)) return y; + e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return y; + } + var o = L(n, t.iterator, e.arg); + if ("throw" === o.type) return e.method = "throw", e.arg = o.arg, e.delegate = null, + y; + var i = o.arg; + return i ? i.done ? (e[t.resultName] = i.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", + e.arg = r), e.delegate = null, y) : i : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), + e.delegate = null, y); + } + function k(t) { + var r = { + tryLoc: t[0] + }; + 1 in t && (r.catchLoc = t[1]), 2 in t && (r.finallyLoc = t[2], r.afterLoc = t[3]), + this.tryEntries.push(r); + } + function G(t) { + var r = t.completion || {}; + r.type = "normal", delete r.arg, t.completion = r; + } + function N(t) { + this.tryEntries = [ { + tryLoc: "root" + } ], t.forEach(k, this), this.reset(!0); + } + function P(t) { + if (t) { + var e = t[i]; + if (e) return e.call(t); + if ("function" == typeof t.next) return t; + if (!isNaN(t.length)) { + var o = -1, a = function e() { + for (;++o < t.length; ) if (n.call(t, o)) return e.value = t[o], e.done = !1, e; + return e.value = r, e.done = !0, e; + }; + return a.next = a; + } + } + return { + next: F + }; + } + function F() { + return { + value: r, + done: !0 + }; + } +}(function() { + return this || "object" == typeof self && self; +}() || Function("return this")()); \ No newline at end of file diff --git a/wx214944c362629fc7/app.js b/wx214944c362629fc7/app.js new file mode 100644 index 0000000..a29f0e5 --- /dev/null +++ b/wx214944c362629fc7/app.js @@ -0,0 +1,178 @@ +var t = require("@babel/runtime/helpers/interopRequireDefault"), o = require("@babel/runtime/helpers/typeof"), e = t(require("siteinfo.js")), n = [ "pages/index/index", "pages/category/index", "pages/flow/index", "pages/user/index" ]; + +App({ + globalData: { + user_id: null + }, + api_root: "", + onLaunch: function() { + this.setApiRoot(); + }, + onShow: function(t) {}, + setApiRoot: function() { + this.api_root = "".concat(e.default.siteroot, "index.php?s=/api/"); + }, + getWxappBase: function(t) { + this._get("wxapp/base", {}, function(o) { + wx.setStorageSync("wxapp", o.data.wxapp), console.log("sss", o), wx.setStorageSync("storedata", o.data.shdata), + wx.setStorageSync("values", o.data.values), t && t(o.data.wxapp); + }, !1, !1); + }, + doLogin: function() { + var t = getCurrentPages(); + if (t.length) { + var o = t[t.length - 1]; + "pages/login/login" != o.route && wx.setStorageSync("currentPage", o); + } + wx.navigateTo({ + url: "/pages/login/login" + }); + }, + getUserId: function() { + return wx.getStorageSync("user_id") || 0; + }, + showSuccess: function(t, o) { + wx.showToast({ + title: t, + icon: "success", + success: function() { + o && setTimeout(function() { + o(); + }, 1500); + } + }); + }, + showError: function(t, o) { + wx.showModal({ + title: "友情提示", + content: t, + showCancel: !1, + success: function(t) { + o && o(); + } + }); + }, + _get: function(t, e, n, a, i, r) { + var s = this; + wx.showNavigationBarLoading(), e = Object.assign({ + wxapp_id: 10001, + token: wx.getStorageSync("token") + }, e); + var c = function() { + e.token = wx.getStorageSync("token"), wx.request({ + url: s.api_root + t, + header: { + "content-type": "application/json" + }, + data: e, + success: function(t) { + if (200 !== t.statusCode || "object" !== o(t.data)) return console.log(t), s.showError("网络请求出错"), + !1; + if (-1 === t.data.code) wx.hideNavigationBarLoading(), s.doLogin(); else { + if (0 === t.data.code) return s.showError(t.data.msg), !1; + n && n(t.data); + } + }, + fail: function(t) { + s.showError(t.errMsg, function() { + a && a(t); + }); + }, + complete: function(t) { + wx.hideNavigationBarLoading(), i && i(t); + } + }); + }; + r ? s.doLogin(c) : c(); + }, + _post_form: function(t, e, n, a, i) { + wx.showNavigationBarLoading(); + var r = this; + e = Object.assign({ + wxapp_id: 10001, + token: wx.getStorageSync("token") + }, e), wx.request({ + url: r.api_root + t, + header: { + "content-type": "application/x-www-form-urlencoded" + }, + method: "POST", + data: e, + success: function(i) { + return 200 !== i.statusCode || "object" !== o(i.data) ? (r.showError("网络请求出错"), + !1) : -1 === i.data.code ? (r.doLogin(function() { + r._post_form(t, e, n, a); + }), !1) : 0 === i.data.code ? (r.showError(i.data.msg, function() { + a && a(i); + }), !1) : void (n && n(i.data)); + }, + fail: function(t) { + r.showError(t.errMsg, function() { + a && a(t); + }); + }, + complete: function(t) { + wx.hideLoading(), wx.hideNavigationBarLoading(), i && i(t); + } + }); + }, + validateUserInfo: function() { + wx.getStorageSync("user_info"); + return !!wx.getStorageSync("user_info"); + }, + urlEncode: function(t) { + var o = []; + for (var e in t) { + var n = t[e]; + n.constructor == Array ? n.forEach(function(t) { + o.push(e + "=" + t); + }) : o.push(e + "=" + n); + } + return o.join("&"); + }, + setTitle: function() { + var t, o = this; + (t = wx.getStorageSync("wxapp")) ? wx.setNavigationBarTitle({ + title: t.navbar.wxapp_title + }) : o.getWxappBase(function() { + o.setTitle(); + }); + }, + setNavigationBar: function() { + this.getWxappBase(function(t) { + wx.setNavigationBarColor({ + frontColor: t.navbar.top_text_color.text, + backgroundColor: t.navbar.top_background_color + }); + }); + }, + getTabBarLinks: function() { + return n; + }, + checkIsLogin: function() { + return "" != wx.getStorageSync("token") && "" != wx.getStorageSync("user_id"); + }, + getUserInfo: function(t, o) { + var e = this; + wx.showLoading({ + title: "正在登录", + mask: !0 + }); + var n = wx.getStorageSync("she"); + wx.login({ + success: function(a) { + e._post_form("user/login", { + code: a.code, + user_info: JSON.stringify(t), + she: JSON.stringify(n) + }, function(t) { + wx.setStorageSync("token", t.data.token), wx.setStorageSync("user_id", t.data.user_id), + wx.setStorageSync("phone", t.data.user.phone), wx.setStorageSync("utype", t.data.user.utype), + o && o(); + }, !1, function() { + wx.hideLoading(); + }); + } + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/app.json b/wx214944c362629fc7/app.json new file mode 100644 index 0000000..3665d2d --- /dev/null +++ b/wx214944c362629fc7/app.json @@ -0,0 +1,66 @@ +{ + "pages": [ + "pages/index/index", + "pages/index_back/index", + "pages/category/index", + "pages/category/list", + "pages/goods/index", + "pages/search/index", + "pages/flow/index", + "pages/flow/checkout", + "pages/user/index", + "pages/user/help", + "pages/order/index", + "pages/order/detail", + "pages/address/index", + "pages/address/create", + "pages/address/detail", + "pages/login/login", + "pages/aftermarket/create", + "pages/aftermarket/index", + "pages/gongzuo/index", + "pages/pays/pays", + "pages/phone/phone", + "pages/address/webvue", + "pages/user/she", + "pages/user/daililist", + "pages/user/yonghulist", + "pages/user/onyongjinjilu", + "pages/user/tx", + "pages/user/txlist" + ], + "window": { + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTitleText": "", + "navigationBarTextStyle": "black", + "backgroundTextStyle": "dark" + }, + "tabBar": { + "color": "#6e6d6b", + "selectedColor": "#ff9966", + "borderStyle": "black", + "backgroundColor": "#ffffff", + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "images/tabBar/home.png", + "selectedIconPath": "images/tabBar/home_on.png" + }, + { + "pagePath": "pages/flow/index", + "text": "购物车", + "iconPath": "images/tabBar/cart.png", + "selectedIconPath": "images/tabBar/cart_on.png" + }, + { + "pagePath": "pages/user/index", + "text": "我的", + "iconPath": "images/tabBar/user.png", + "selectedIconPath": "images/tabBar/user_on.png" + } + ], + "position": "bottom" + }, + "debug": false +} \ No newline at end of file diff --git a/wx214944c362629fc7/app.wxss b/wx214944c362629fc7/app.wxss new file mode 100644 index 0000000..07b0813 --- /dev/null +++ b/wx214944c362629fc7/app.wxss @@ -0,0 +1,1195 @@ +./utils/iconfont.wxssrpx.container,wx-input { + -webkit-font-smoothing: antialiased; + font-family: PingFang-Medium,PingFangSC-Regular,Heiti,Heiti SC,DroidSans,DroidSansFallback,Microsoft YaHei,sans-serif; +} + +.b-f { + background: #fff; +} + +.tf-180 { + transform: rotate(-180deg); +} + +.tf-90 { + transform: rotate(90deg); +} + +.dis-block { + display: block; +} + +.dis-flex { + display: flex!important; +} + +.flex-box { + flex: 1; +} + +.flex-dir-row { + flex-direction: row; +} + +.flex-dir-column { + flex-direction: column; +} + +.flex-x-center { + justify-content: center; +} + +.flex-x-between { + justify-content: space-between; +} + +.flex-x-around { + justify-content: space-around; +} + +.flex-x-end { + justify-content: flex-end; +} + +.flex-y-center { + align-items: center; +} + +.flex-y-end { + align-items: flex-end; +} + +.flex-five { + box-sizing: border-box; + flex: 0 0 50%; +} + +.flex-three { + float: left; + width: 33.3%; +} + +.flex-four { + box-sizing: border-box; + flex: 0 0 25%; +} + +.t-l { + text-align: left; +} + +.t-c { + text-align: center; +} + +.t-r { + text-align: right; +} + +.p-a { + position: absolute; +} + +.p-r { + position: relative; +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +.clear::after { + clear: both; + content: " "; + display: table; +} + +.oh { + overflow: hidden; +} + +.tb-lr-center { + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex!important; + display: flex!important; + justify-content: center; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-30 { + font-size: 30rpx; +} + +.f-29 { + font-size: 29rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-25 { + font-size: 25rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.f-w { + font-weight: 700; +} + +.f-n { + font-weight: 400; +} + +.col-f { + color: #fff; +} + +.col-3 { + color: #333; +} + +.col-6 { + color: #666; +} + +.col-7 { + color: #777; +} + +.col-8 { + color: #888; +} + +.col-9 { + color: #999; +} + +.col-m { + color: #ff495e!important; +} + +.col-s { + color: #be0117!important; +} + +.col-green { + color: #0ed339!important; +} + +.cont-box { + padding: 20rpx; +} + +.cont-bot { + margin-bottom: 120rpx; +} + +.padding-box { + box-sizing: border-box; + padding: 0 24rpx; +} + +.pl-12 { + padding-left: 12px; +} + +.pr-12 { + padding-right: 12px; +} + +.pr-6 { + padding-right: 6px; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.p-bottom { + padding-bottom: 112rpx; +} + +.onelist-hidden { + white-space: nowrap; +} + +.onelist-hidden,.twolist-hidden { + overflow: hidden; + text-overflow: ellipsis; +} + +.twolist-hidden { + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + display: -webkit-box; + word-break: break-all; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.ts-1 { + transition: all .1s; +} + +.ts-2 { + transition: all .2s; +} + +.ts-3 { + transition: all .3s; +} + +.ts-5 { + transition: all .5s; +} + +.btn-normal { + background: none; + border: none; + border-radius: 0; + box-shadow: none; + display: block; + font-size: unset; + line-height: normal; + margin: 0; + overflow: visible; + padding: 0; + text-align: unset; +} + +.btn-normal:after { + border: none; +} + +.btn-normal.button-hover { + color: inherit; +} + +page { + background: #f7f7f7; +} + +.common-header-xian { + border-top: 1rpx solid #eee; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.del { + color: #999; + padding-left: 10rpx; + text-decoration: line-through; +} + +.no-more { + color: #737373; + padding: 20rpx 0; + text-align: center; +} + +.yoshop-notcont { + margin: 130rpx 100rpx; +} + +.yoshop-notcont .cont { + color: #999; + display: block; + font-size: 30rpx; + margin-top: 20rpx; + text-align: center; +} + +.yoshop-notcont .iconfont { + color: #ccc; + display: block; + font-size: 150rpx; + margin-bottom: 24rpx; + text-align: center; +} + +.yoshop-notcont .img { + height: 120px; + margin: 0 auto; + width: 200px; +} + +.yoshop-notcont .img image { + height: 100%; + width: 100%; +} + +.category-list { + overflow: hidden; +} + +.category-list .list { + box-sizing: border-box; + float: left; + width: 50%; +} + +.category-list .list:nth-child(2n) { + border-bottom: 4px solid #f7f7f7; + border-left: 2px solid #f7f7f7; +} + +.category-list .list:nth-child(2n-1) { + border-bottom: 4px solid #f7f7f7; + border-right: 2px solid #f7f7f7; +} + +.category-list .list .left,.category-list .right { + width: 100%; +} + +.category-list .list .left .img image { + display: block; + height: 375rpx; + width: 100%; +} + +.category-list .right .cont { + padding: 0 12rpx; +} + +.category-list .right .cont .title { + height: 76rpx; + line-height: 1.3; +} + +.category-list.arrange .list { + border-bottom: 1rpx solid #f7f7f7; + overflow: hidden; + padding: 15rpx; + width: 100%; +} + +.category-list.arrange .list .left { + float: left; + width: 35%; +} + +.category-list.arrange .list .right { + float: left; + width: 65%; +} + +.category-list.arrange .list .left .img image { + height: 220rpx; + width: 220rpx; +} + +.button-common button { + background: none; + border: 0; + border-radius: 0; + font-size: 30rpx; + line-height: inherit; +} + +.button-common button[disabled]:not([type]) { + background-color: #ff495e; + color: #fff; +} + +.button-common button::after { + border: none; + border-radius: 0; + box-sizing: border-box; + content: " "; + height: 0; + transform: scale(0); + transform-origin: 0 0; + width: 0; +} + +.commont-fixed-footer { + background: #fff; + border-top: 1rpx solid #ddd; + bottom: 0; + left: 0; + padding: 3px 0; + position: fixed; + right: 0; + z-index: 1000; +} + +.commont-fixed-footer .li { + color: #666; +} + +.commont-fixed-footer .li.active { + color: #ff495e; +} + +.commont-fixed-footer .li image { + height: 50rpx; + width: 50rpx; +} + +.bargain-mol { + background: #fff; + bottom: -100%; + left: 0; + position: fixed; + right: 0; + visibility: hidden; + z-index: 120; +} + +.bargain-mol.active { + bottom: 0; + visibility: visible; +} + +.bargain-mol .header { + background: #f1f1f5; +} + +.bargain-mol .footer { + background: #ff495e; + color: #fff; + padding: 26rpx 0; +} + +.bargain-mol .max-cont { + height: 600rpx; +} + +.bargain-mol .icon-guanbi { + color: #999; + float: right; + font-size: 34rpx; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.selectNumber { + border: 1rpx solid #eee; + border-radius: 10rpx; + display: inline-block; + flex-direction: row; + height: 34px; +} + +.selectNumber .default { + background: #fff; + color: #444; + float: left; + font-size: 48rpx; + height: 34px; + line-height: 32px; + padding: 0; + width: 34px; +} + +.selectNumber .default-active { + background: #f7f7f7; + color: #ddd; +} + +.selectNumber button:after { + border: none; + content: none; +} + +.selectNumber input { + border-left: 1rpx solid #eee; + border-right: 1rpx solid #eee; + color: #444; + float: left; + font-size: 28rpx; + height: 34px; + line-height: 34px; + text-align: center; + width: 50px; +} + +.widget-goTop { + background: hsla(0,0%,100%,.9); + border: 1rpx solid #eee; + border-radius: 76rpx; + bottom: 150rpx; + height: 76rpx; + position: fixed; + right: 12px; + width: 76rpx; + z-index: 20; +} + +.widget-goTop .icon-fanhuidingbu { + color: #666; + display: block; + font-size: 32rpx; + line-height: 76rpx; + text-align: center; +} + +.index-loading .loading { + animation-fill-mode: both; + animation: rotate .75s linear 0s infinite; + background: transparent!important; + border: 2px solid #ff495e; + border-bottom-color: transparent; + border-radius: 100%; + height: 25px; + margin: 150rpx auto 0; + width: 25px; +} + +@-webkit-keyframes rotate { + 0% { + transform: rotate(0deg) scale(1); + } + + 100% { + transform: rotate(1turn) scale(1); + } +} + +@keyframes rotate { + 0% { + transform: rotate(0deg) scale(1); + } + + 100% { + transform: rotate(1turn) scale(1); + } +} + +.title-header { + font-weight: 700; + height: 100rpx; + line-height: 100rpx; + margin-left: -10rpx; +} + +.title-footer { + color: #888; + height: 80rpx; + line-height: 80rpx; + margin: 0 18rpx; + overflow: hidden; + position: relative; + text-align: center; + z-index: 1; +} + +.title-footer .cont { + background: #f7f7f7; + font-size: 28rpx; + padding: 0 12rpx; + z-index: 10; +} + +.title-footer .hr { + background: #eee; + border: 0; + height: 1rpx; + left: 10%; + margin-top: 1px; + position: absolute; + right: 10%; + top: 50%; + z-index: -1; +} + +.slide-image { + display: block; + height: 100%; + margin: 0 auto; + width: 100%; +} + +.index_sale { + background: #fff; + padding: 0 12px 12px; +} + +.index-list .nav_img,.index_sale .nav_img { + height: 30rpx; + padding: 30rpx 0 0; + width: 100%; +} + +.index_sale scroll-view { + white-space: nowrap; + width: 100%; +} + +.index_sale .sale_img { + border: 1rpx solid #f2f2f2; + border-radius: 4px; + height: 159rpx; + overflow: hidden; + width: 159rpx; +} + +.index_sale .sale_img image { + height: 100%; + width: 100%; +} + +.index_sale .price { + display: block; + margin-top: 10rpx; +} + +.index_sale .page-column { + padding: 0 11rpx 11rpx 0; +} + +.index_sale .content { + width: 170rpx; +} + +.index_sale .content text { + font-size: 26rpx; + margin: 5rpx 10rpx; + width: 100%; +} + +.goods-comment-box .admin { + color: #999; + font-size: 26rpx; + padding-right: 10rpx; +} + +.goods-comment-cont { + color: #333; + font-size: 30rpx; + margin: 10rpx 0; +} + +.footer-fixed { + background: #fff; + bottom: 0; + box-shadow: 1px 5px 15px rgba(50,50,50,.3); + display: flex; + height: 46px; + left: 0; + position: fixed; + right: 0; + z-index: 18; +} + +.order-bt { + background-color: #ff495e; + color: #fff; + line-height: 46px; + text-align: center; + width: 50%; +} + +.goods_comment_box .comment_btn { + margin: 0 auto; + padding: 20rpx 0; + width: 220rpx; +} + +.goods_comment_box .comment_btn text { + border: 1px solid #ff495e; + border-radius: 30rpx; + color: #ff495e; + display: block; + font-size: 26rpx; + padding: 5rpx 0; + text-align: center; +} + +.goods-detail-box { + min-height: 150px; + padding: 0; +} + +.com_xing .icon-shoucang1 { + color: #ccc; + font-size: 26rpx; + padding-right: 6rpx; +} + +.com_xing .icon-shoucang1.active { + color: #f4a213; +} + +.goods-comment-box .left { + flex: 3; + position: relative; +} + +.goods-comment-box .right { + flex: 3; +} + +.bright789-text { + color: red; + font-size: 40rpx; + line-height: 40px; +} + +.bright789_view_hide { + display: none; +} + +.bright789_view_show,.show { + display: block; +} + +.hide { + display: none; +} + +.com_xing { + display: inline-block; +} + +.flow-checkout-header { + background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAANCAYAAADVGpDCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3Yjk4M2ExYy1jMDhkLTQ1OTktYTI0Ny1kZjNjYzdiYTQ5ZTgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDQwNkY3RkU5N0NGMTFFNUI3N0M4NTU4MzM2RjlFODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDQwNkY3RkQ5N0NGMTFFNUI3N0M4NTU4MzM2RjlFODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowNzgwZWI1NS03OGFhLTQzOTUtODQ4OC1lOWI5YmVlYTY1ZDciIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo1OTRiYzUyMy1jMzc3LTExNzgtYTdkZS04NGY3YmM1ZGIxMDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz556PLxAAACBElEQVR42tyaSyhEYRTHP48imlKibDQeSSlkSlEWLCRFsZNH5FE2FqQ8ErIRC9lIkTwXSpMkWWChhEJCSnlkoUZGSsr78f98n43CMFPu/Z/6NZuZ2zn33/+cb869XkmLx8IDEQaGQJbgiytQDSY3MyL+LYnL/HxPXSoHDIJQQq2WQQk4Dbbb/yUB29LJ+6e3B66VB3ZITbUIEqSpCGoJBP1ghtBUD6ARpEtTGSEhXzd+awE9oJzQUPegWdf3QlBPMhgDMYRa7YNisGWkpP5qrBQtVBShUHugUE9hs4fUtwG0utlEjRivoA/Ug1sj3vjffr8FNJEK1auPFHcE9UTq5pdK2PwcoAzMG7mjuRrRYEIfK9jiDJSCBZJ6ynSTsBBqNQ0qgdPISbq6vJCFbJOaagrEk5gqWNczRGiqG1Ah1LLMafRkf5pYIUKtZnMJDXUNasAIST2ZYFioRx9ssQaKwJFZEv5uYmWDXVJTrYBEElP562PfPKGpnkAbSDOTqb6aWAGgW6iHol5kQj2CdtAJngnqkc1hHMQRNr9DPaXWzZj8Z2PZtFCxhEIdaKE2CGqRJ4060AH8CLUaALX6f5VpBZLhI9SaeZXQVHKNLt84SCIxVbhQi5YuQlNd6OVElZlN9TGxrGBUn2PZ4lyoTdIsST0FQj0UDSLUak6ot3gcBLVY3wQYAJoVXxmNERajAAAAAElFTkSuQmCC") 0 100% repeat-x; + background-size: 120rpx auto; + padding: 28rpx 0; + position: relative; +} + +.flow-header-left { + flex: 14; +} + +.flow-header-right { + flex: 1; +} + +.flow-header-right image { + float: right; + height: 34rpx; + margin-top: 20rpx; + width: 34rpx; +} + +.flow-checkout-header .flow-checkout-address { + color: #777; + font-size: 26rpx; + margin-top: 6rpx; +} + +.flow-shopList { + padding: 20rpx 0; +} + +.flow-shopList .flow-list-left { + flex: 2; +} + +.flow-shopList .flow-list-left image { + background: #fff; + border: 1rpx solid #eee; + height: 200rpx; + width: 200rpx; +} + +.flow-shopList .flow-list-right { + flex: 4; +} + +.flow-shopList .flow-list-right .h4 { + color: #333; + font-size: 30rpx; +} + +.flow-shopList .flow-list-right .flow-cont { + color: #ff495e; + font-size: 30rpx; +} + +.flow-shopList .flow-list-right .small { + color: #777; + float: right; + font-size: 26rpx; +} + +.flow-shopList .flow-list-right .flow-list-cont { + padding-top: 10rpx; +} + +.flow-fixed-footer { + background: #fff; + border-top: 1px solid #eee; + bottom: 0; + position: fixed; + width: 100%; + z-index: 11; +} + +.flow-num-box { + color: #777; + font-size: 30rpx; + padding: 15rpx 12px; + text-align: right; +} + +.flow-all-money { + color: #444; + padding: 8px 12px; +} + +.flow-all-money .flow-all-list { + border-bottom: 1rpx solid #f1f1f1; + font-size: 30rpx; + padding: 20rpx 0; +} + +.flow-all-money .flow-all-list:last-child { + border-bottom: none; +} + +.flow-all-money .flow-all-list-cont { + font-size: 28rpx; + padding: 6rpx 0; +} + +.flow-all-money .flow-arrow { + align-items: center; + justify-content: flex-end; +} + +.flow-fixed-footer .chackout-left { + color: #777; + flex: 4; + font-size: 32rpx; + line-height: 46px; + padding-left: 12px; +} + +.flow-fixed-footer .chackout-right { + flex: 2; + font-size: 34rpx; +} + +.flow-btn { + background-color: #ff495e; + color: #fff; + display: block; + line-height: 46px; + text-align: center; +} + +.flow-list .header .shop_name { + color: #333; + font-size: 30rpx; + padding-left: 10rpx; +} + +.flow-list .header .icon-dianpu2 { + color: #ff495e; + font-size: 32rpx; + padding-left: 20rpx; +} + +.flow-list .header image { + height: 37rpx; + left: 15px; + margin-top: -18rpx; + position: absolute; + top: 50%; + width: 34rpx; +} + +.flow-list .header { + background: #fdf9f9; + border-bottom: 1rpx solid #eee; + border-top: 1rpx solid #eee; + font-size: 30rpx; + padding: 24rpx 0; + position: relative; +} + +.addres-list custom-li,.flow-list custom-li { + display: block; + margin-top: 25rpx; +} + +.addres-list custom-li:first-child,.flow-list custom-li:first-child { + margin-top: 0; +} + +.flow-distribution-right .icon-xiangyoujiantou { + color: #999; + font-size: 26rpx; + margin-top: -16rpx; + position: absolute; + right: 15px; + top: 50%; +} + +.flow-checkout-address text { + padding-right: 5rpx; +} + +.flow-header-right .icon-xiangyoujiantou { + color: #999; + font-size: 32rpx; + margin-top: -13rpx; + position: absolute; + right: 15px; + top: 50%; +} + +.WxEmojiView,.wxParse-em { + color: #333; + display: inline-block; +} + +.flow-shopList .flow-list-left image { + height: 180rpx; + width: 180rpx; +} + +.profile-btn button { + margin-bottom: 20rpx; +} + +.flow-checkout-header .icon-dingwei1 { + color: #777; + font-size: 40rpx; + left: 15px; + margin-top: -20rpx; + position: absolute; + top: 50%; +} + +.index-cont-search { + background: #f1f1f1; + font-size: 28rpx; + position: relative; + width: 100%; +} + +.index-cont-search icon { + left: 50%; + margin-left: -70rpx; + margin-top: -15rpx; + position: absolute; + top: 50%; +} + +.index-cont-search text { + margin-left: 72rpx; +} + +@-webkit-keyframes shop { + 0% { + transform: translateY(-80px); + } + + 50% { + transform: translateY(0); + } + + 100% { + transform: translateY(-80px); + } +} + +@keyframes shop { + 0% { + transform: translateY(-80px); + } + + 50% { + transform: translateY(0); + } + + 100% { + transform: translateY(-80px); + } +} + +.user-order { + background: #fff; +} + +.user-orderIcon { + height: 46rpx; + margin-top: 15rpx; + padding-left: 15rpx; + width: 46rpx; +} + +.user-orderName { + color: #444; + font-size: 30rpx; + left: 90rpx; + margin-top: -21rpx; + position: absolute; + top: 50%; +} + +.user-orderJtou { + color: #777; + font-size: 26rpx; +} + +.user-orderCont { + color: #999; + font-size: 28rpx; +} + +.user-orderContBox { + float: right; + padding: 15rpx; +} + +.userinfo { + align-items: center; + display: flex; + flex-direction: column; +} + +.address-box .left-name { + width: 95px; +} + +.address-box .right-cont { + color: #444; + font-size: 30rpx; + padding-right: 15px; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.address-cont-box picker { + display: inline-block; + margin-right: 15px; + width: 100%; +} + +.button { + border: 1px solid #1aad19; + border-radius: 2px; +} + +.picker { + background-color: #fff; + padding: 13px; +} + +.profile-list { + border-bottom: 1px solid #f6f6f9; + padding: 24rpx 0; +} + +.profile-list .admin { + color: #333; + font-size: 30rpx; +} + +.profile-btn button { + background: #ff495e; + color: #fff; +} + +.profile-btn button[disabled] { + background: #f16474; + color: #fff; +} + +.search-box .left { + width: 28px; +} + +.search-box .left icon { + padding: 18rpx; +} + +.search-box .right { + flex: 1; +} + +.wxParse-img { + display: block; + margin: 0 auto; + width: 100%; +} + +.wxParse-inline { + font-size: 28rpx; + text-align: center; +} + +.wxParse-div { + overflow: hidden; +} + +.wxParse-div .kd_pic { + float: left; + margin: 0 auto; + width: 50%; +} + +.xEmojiView { + margin: 15rpx 0; +} \ No newline at end of file diff --git a/wx214944c362629fc7/components/imgDrag/imgDrag.js b/wx214944c362629fc7/components/imgDrag/imgDrag.js new file mode 100644 index 0000000..b92382d --- /dev/null +++ b/wx214944c362629fc7/components/imgDrag/imgDrag.js @@ -0,0 +1,293 @@ +var e = require("../../@babel/runtime/helpers/interopRequireDefault")(require("../../@babel/runtime/regenerator")), t = require("../../@babel/runtime/helpers/asyncToGenerator"), a = require("../../@babel/runtime/helpers/toConsumableArray"), i = require("../../@babel/runtime/helpers/defineProperty"); + +Component({ + options: { + multipleSlots: !0 + }, + properties: { + previewSize: { + type: Number, + value: 100 + }, + defaultGoodsId: { + type: Number, + value: 0, + observer: function(e) { + console.log("id", e), null == this.data.goodsId ? this.setData({ + goodsId: e + }) : (console.log("来新的了"), this.setData({ + goodsId: e, + newGoods: !0 + })); + } + }, + defaultImgUrlList: { + type: Array, + value: [], + observer: function(e) { + null != e && e.length && !this.data.imageUrlList.length ? (console.log("初始化-defaultImgUrlList"), + this.setData({ + imageUrlList: e + })) : (console.log("未初始化aaa-defaultImgUrlList"), this.data.newGoods && (console.log("初始化bbb-defaultImgUrlList"), + this.setData({ + imageUrlList: e + }))); + } + }, + defaultImgList: { + type: Array, + value: [], + observer: function(e) { + if (null != e && e.length && !this.data.dragImgList.length) { + console.log("初始化-defaultImgList"); + var t = this.getDragImgList(e); + this.setUploaPosition(t.length), this.setData({ + dragImgList: t + }); + } else if (console.log("未初始化aaa-defaultImgList"), this.data.newGoods) { + console.log("初始化bbb-defaultImgList"); + var a = this.getDragImgList(e); + this.setUploaPosition(a.length), this.setData({ + dragImgList: a + }); + } + } + }, + maxCount: { + type: Number, + value: 9 + }, + columns: { + type: Number, + value: 3 + }, + gap: { + type: Number, + value: 9 + }, + deleteStyle: { + type: String, + value: "" + } + }, + data: { + goodsId: null, + newGoods: !1, + imageUrlList: [], + dragImgList: [], + containerRes: { + top: 0, + left: 0, + width: 0, + height: 0 + }, + currentKey: -1, + currentIndex: -1, + tranX: 0, + tranY: 0, + uploadPosition: { + tranX: 0, + tranY: 0 + } + }, + lifetimes: { + ready: function() { + var e = this; + this.createSelectorQuery().select(".drag-container").boundingClientRect(function(t) { + var a, r = t.top, n = t.left; + e.setData((i(a = {}, "containerRes.top", r), i(a, "containerRes.left", n), a)); + }).exec(); + } + }, + methods: { + longPress: function(e) { + var t = e.mark.index, a = e.touches[0], i = a.pageX, r = a.pageY, n = this.data, o = n.previewSize, s = n.containerRes, l = s.top, u = s.left; + this.setData({ + currentIndex: t, + tranX: i - o / 2 - u, + tranY: r - o / 2 - l + }); + }, + touchMove: function(e) { + if (!(this.data.currentIndex < 0)) { + var t = e.touches[0], a = t.pageX, i = t.pageY, r = this.data, n = r.previewSize, o = r.containerRes, s = o.top, l = a - n / 2 - o.left, u = i - n / 2 - s; + this.setData({ + tranX: l, + tranY: u + }); + var g = e.mark.key, c = this.getMoveKey(l, u); + g !== c && this.data.currentKey !== g && (this.data.currentKey = g, this.replace(g, c)); + } + }, + getMoveKey: function(e, t) { + var a = this.data, i = a.dragImgList, r = a.previewSize, n = a.columns, o = function(e, t) { + var a = Math.round(e / r); + return a >= t ? t - 1 : a < 0 ? 0 : a; + }, s = n * o(t, Math.ceil(i.length / n)) + o(e, n); + return s >= i.length ? i.length - 1 : s; + }, + replace: function(e, t) { + var a = this.data.dragImgList; + console.log("dragImgList", a), a.forEach(function(a) { + e < t ? a.key > e && a.key <= t ? a.key-- : a.key === e && (a.key = t) : e > t && (a.key >= t && a.key < e ? a.key++ : a.key === e && (a.key = t)); + }), this.getListPosition(a); + }, + getListPosition: function(e) { + var t = this.data, a = t.previewSize, i = t.columns, r = t.gap, n = e.map(function(e) { + return e.tranX = (a + r) * (e.key % i), e.tranY = Math.floor(e.key / i) * (a + r), + e; + }); + this.setData({ + dragImgList: n + }), this.updateEvent(n); + }, + touchEnd: function() { + this.setData({ + tranX: 0, + tranY: 0, + currentIndex: -1 + }), this.data.currentKey = -1; + }, + updateEvent: function(e) { + console.log(e); + var t = a(e).sort(function(e, t) { + return e.key - t.key; + }).map(function(e) { + return { + src: e.src, + image_id: e.imageId + }; + }); + this.triggerEvent("updateImageList", { + list: t + }); + }, + preview: function(e) { + var t = e.currentTarget.dataset.src; + console.log(t); + var a = this.data.imageUrlList; + console.log(a), wx.previewImage({ + current: t, + urls: a + }); + }, + uploadImage: function() { + var a = this; + return t(e.default.mark(function t() { + var i, r, n, o, s, l, u; + return e.default.wrap(function(e) { + for (;;) switch (e.prev = e.next) { + case 0: + return i = a, r = a.data, n = r.dragImgList, o = r.maxCount, e.prev = 2, e.next = 5, + wx.chooseMedia({ + count: o - n.length, + mediaType: [ "image" ], + sourceType: [ "album", "camera" ], + maxDuration: 30, + sizeType: [ "compressed" ], + camera: "back" + }); + + case 5: + if (s = e.sent, console.log("res", s), "chooseMedia:ok" == s.errMsg) { + e.next = 10; + break; + } + return wx.showToast({ + title: "上传失败", + icon: "none", + duration: 3e3 + }), e.abrupt("return"); + + case 10: + if ("image" == s.type) { + e.next = 13; + break; + } + return wx.showToast({ + title: "只能上传图片类型", + icon: "none", + duration: 3e3 + }), e.abrupt("return"); + + case 13: + for (wx.showLoading({ + title: "图片上传中" + }), l = s.tempFiles, u = 0; u < l.length; u++) wx.uploadFile({ + name: "iFile", + url: "https://ltwxminiapp.19year.cn/index.php?s=/api/upload/image&wxapp_id=10001", + filePath: l[u].tempFilePath, + success: function(e) { + console.log("resp", e); + var t = JSON.parse(e.data); + if (console.log("resp", t), 1 == t.code) { + var a = i.data.imageUrlList, r = { + file_path: t.data.file_path, + image_id: parseInt(t.data.file_id) + }; + console.log("imageObj", r); + var o = i.getDragImgList([ r ], !1); + n = n.concat(o), i.setUploaPosition(n.length), a.push(t.data.file_path), i.setData({ + dragImgList: n, + imageUrlList: a + }), i.updateEvent(n), wx.hideLoading(); + } else wx.hideLoading(), wx.showModal({ + title: "提示", + content: "上传失败", + showCancel: !1 + }); + } + }); + e.next = 21; + break; + + case 18: + e.prev = 18, e.t0 = e.catch(2), console.log(e.t0); + + case 21: + case "end": + return e.stop(); + } + }, t, null, [ [ 2, 18 ] ]); + }))(); + }, + getContainerRect: function(e) { + var t = this.data, a = t.columns, i = t.previewSize, r = t.maxCount, n = t.gap, o = e === r ? e : e + 1, s = Math.ceil(o / a); + return { + width: a * i + (a - 1) * n, + height: s * i + n * (s - 1) + }; + }, + getDragImgList: function(e) { + var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], a = this.data, i = a.dragImgList, r = a.previewSize, n = a.columns, o = a.gap; + return e.map(function(e, a) { + var s = (t ? 0 : i.length) + a; + return { + tranX: (r + o) * (s % n), + tranY: Math.floor(s / n) * (r + o), + src: e.file_path, + id: s, + key: s, + imageId: e.image_id + }; + }); + }, + setUploaPosition: function(e) { + var t, a = this.data, r = a.previewSize, n = a.columns, o = a.gap, s = { + tranX: e % n * (r + o), + tranY: Math.floor(e / n) * (r + o) + }, l = this.getContainerRect(e), u = l.width, g = l.height; + this.setData((i(t = { + uploadPosition: s + }, "containerRes.width", u), i(t, "containerRes.height", g), t)); + }, + deleteImg: function(e) { + var t = e.mark.key, a = this.data.dragImgList.filter(function(e) { + return e.key !== t; + }); + a.forEach(function(e) { + e.key > t && e.key--; + }), this.getListPosition(a), this.setUploaPosition(a.length); + } + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/components/imgDrag/imgDrag.json b/wx214944c362629fc7/components/imgDrag/imgDrag.json new file mode 100644 index 0000000..7e37c03 --- /dev/null +++ b/wx214944c362629fc7/components/imgDrag/imgDrag.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/components/imgDrag/imgDrag.wxml b/wx214944c362629fc7/components/imgDrag/imgDrag.wxml new file mode 100644 index 0000000..c3b6d7f --- /dev/null +++ b/wx214944c362629fc7/components/imgDrag/imgDrag.wxml @@ -0,0 +1,16 @@ + + + + + x + + + + diff --git a/wx214944c362629fc7/components/imgDrag/imgDrag.wxss b/wx214944c362629fc7/components/imgDrag/imgDrag.wxss new file mode 100644 index 0000000..cefa16b --- /dev/null +++ b/wx214944c362629fc7/components/imgDrag/imgDrag.wxss @@ -0,0 +1,52 @@ +.drag-container { + position: relative; +} + +.drag-item { + left: 0; + position: absolute; + top: 0; +} + +.drag-item-transition { + transition: transform .1s; + transition: transform .1s,-webkit-transform .1s; +} + +.drag-item-img { + height: 100%; + width: 100%; +} + +.drag-item-delete { + position: absolute; + right: 0; + top: 0; +} + +.drag-item-delete_default { + background-color: rgba(0,0,0,.7); + border-radius: 0 0 0 12px; + color: #fefefe; + display: flex; + height: 15px; + justify-content: center; + line-height: 10px; + width: 21px; +} + +.drag-upload .drag-upload_solt:empty+.drag-upload_default { + border: 2px dashed; + box-sizing: border-box; + display: block; + font-size: 70px; + font-weight: 700; + height: 100%; + line-height: 100%; + text-align: center; + width: 100%; +} + +.drag-upload .drag-upload_default { + display: none; +} \ No newline at end of file diff --git a/wx214944c362629fc7/components/shortcut/shortcut.js b/wx214944c362629fc7/components/shortcut/shortcut.js new file mode 100644 index 0000000..50afad9 --- /dev/null +++ b/wx214944c362629fc7/components/shortcut/shortcut.js @@ -0,0 +1,31 @@ +var t = getApp(); + +Component({ + options: { + multipleSlots: !0 + }, + properties: { + title: { + type: String, + value: "弹窗标题" + } + }, + data: { + isShow: !1, + transparent: !0 + }, + methods: { + _onToggleShow: function(t) { + this.setData({ + isShow: !this.data.isShow, + transparent: !1 + }); + }, + _onTargetPage: function(a) { + var e = t.getTabBarLinks(); + wx.switchTab({ + url: "/" + e[a.detail.target.dataset.index] + }); + } + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/components/shortcut/shortcut.json b/wx214944c362629fc7/components/shortcut/shortcut.json new file mode 100644 index 0000000..7e37c03 --- /dev/null +++ b/wx214944c362629fc7/components/shortcut/shortcut.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/components/shortcut/shortcut.wxml b/wx214944c362629fc7/components/shortcut/shortcut.wxml new file mode 100644 index 0000000..1fce7c9 --- /dev/null +++ b/wx214944c362629fc7/components/shortcut/shortcut.wxml @@ -0,0 +1,22 @@ + +
+ +
+
+ +
+
+ +
+
+ +
+
diff --git a/wx214944c362629fc7/components/shortcut/shortcut.wxss b/wx214944c362629fc7/components/shortcut/shortcut.wxss new file mode 100644 index 0000000..63b4ae3 --- /dev/null +++ b/wx214944c362629fc7/components/shortcut/shortcut.wxss @@ -0,0 +1,626 @@ +./utils/iconfont.wxssrpx.container,wx-input { + -webkit-font-smoothing: antialiased; + font-family: PingFang-Medium,PingFangSC-Regular,Heiti,Heiti SC,DroidSans,DroidSansFallback,Microsoft YaHei,sans-serif; +} + +.b-f { + background: #fff; +} + +.tf-180 { + transform: rotate(-180deg); +} + +.tf-90 { + transform: rotate(90deg); +} + +.dis-block { + display: block; +} + +.dis-flex { + display: flex!important; +} + +.flex-box { + flex: 1; +} + +.flex-dir-row { + flex-direction: row; +} + +.flex-dir-column { + flex-direction: column; +} + +.flex-x-center { + justify-content: center; +} + +.flex-x-between { + justify-content: space-between; +} + +.flex-x-around { + justify-content: space-around; +} + +.flex-x-end { + justify-content: flex-end; +} + +.flex-y-center { + align-items: center; +} + +.flex-y-end { + align-items: flex-end; +} + +.flex-five { + box-sizing: border-box; + flex: 0 0 50%; +} + +.flex-three { + float: left; + width: 33.3%; +} + +.flex-four { + box-sizing: border-box; + flex: 0 0 25%; +} + +.t-l { + text-align: left; +} + +.t-c { + text-align: center; +} + +.t-r { + text-align: right; +} + +.p-a { + position: absolute; +} + +.p-r { + position: relative; +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +.clear::after { + clear: both; + content: " "; + display: table; +} + +.oh { + overflow: hidden; +} + +.tb-lr-center { + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex!important; + display: flex!important; + justify-content: center; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-30 { + font-size: 30rpx; +} + +.f-29 { + font-size: 29rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-25 { + font-size: 25rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.f-w { + font-weight: 700; +} + +.f-n { + font-weight: 400; +} + +.col-f { + color: #fff; +} + +.col-3 { + color: #333; +} + +.col-6 { + color: #666; +} + +.col-7 { + color: #777; +} + +.col-8 { + color: #888; +} + +.col-9 { + color: #999; +} + +.col-m { + color: #ff495e!important; +} + +.col-s { + color: #be0117!important; +} + +.col-green { + color: #0ed339!important; +} + +.cont-box { + padding: 20rpx; +} + +.cont-bot { + margin-bottom: 120rpx; +} + +.padding-box { + box-sizing: border-box; + padding: 0 24rpx; +} + +.pl-12 { + padding-left: 12px; +} + +.pr-12 { + padding-right: 12px; +} + +.pr-6 { + padding-right: 6px; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.p-bottom { + padding-bottom: 112rpx; +} + +.onelist-hidden { + white-space: nowrap; +} + +.onelist-hidden,.twolist-hidden { + overflow: hidden; + text-overflow: ellipsis; +} + +.twolist-hidden { + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + display: -webkit-box; + word-break: break-all; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.ts-1 { + transition: all .1s; +} + +.ts-2 { + transition: all .2s; +} + +.ts-3 { + transition: all .3s; +} + +.ts-5 { + transition: all .5s; +} + +.btn-normal { + background: none; + border: none; + border-radius: 0; + box-shadow: none; + display: block; + font-size: unset; + line-height: normal; + margin: 0; + overflow: visible; + padding: 0; + text-align: unset; +} + +.btn-normal:after { + border: none; +} + +.btn-normal.button-hover { + color: inherit; +} + +.shortcut { + bottom: 250rpx; + line-height: 1; + position: fixed; + right: 12px; + z-index: 5; +} + +.nav-item,.shortcut { + border-radius: 50%; + width: 76rpx; +} + +.nav-item { + background: rgba(0,0,0,.4); + bottom: 0; + color: #fff; + height: 76rpx; + line-height: 76rpx; + opacity: 0; + padding: 0; + position: absolute; + text-align: center; + transform: rotate(0deg); +} + +.nav-item text { + font-size: 40rpx; +} + +.nav-item__switch { + opacity: 1; +} + +.shortcut_click_show { + background: #ff5454; + margin-bottom: 0; +} + +.show_80 { + animation: show_80 .3s forwards; + bottom: 384rpx; +} + +.show_60 { + animation: show_60 .3s forwards; + bottom: 288rpx; +} + +.show_40 { + animation: show_40 .3s forwards; + bottom: 192rpx; +} + +.show_20 { + animation: show_20 .3s forwards; + bottom: 96rpx; +} + +@-webkit-keyframes show_20 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_20 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@-webkit-keyframes show_40 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_40 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@-webkit-keyframes show_60 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_60 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@-webkit-keyframes show_80 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +@keyframes show_80 { + from { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } + + to { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } +} + +.hide_80 { + animation: hide_80 .3s; +} + +.hide_60,.hide_80 { + bottom: 0; + opacity: 0; +} + +.hide_60 { + animation: hide_60 .3s; +} + +.hide_40 { + animation: hide_40 .3s; +} + +.hide_20,.hide_40 { + bottom: 0; + opacity: 0; +} + +.hide_20 { + animation: hide_20 .3s; +} + +@-webkit-keyframes hide_20 { + from { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_20 { + from { + bottom: 96rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@-webkit-keyframes hide_40 { + from { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_40 { + from { + bottom: 192rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@-webkit-keyframes hide_60 { + from { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_60 { + from { + bottom: 288rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@-webkit-keyframes hide_80 { + from { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} + +@keyframes hide_80 { + from { + bottom: 384rpx; + opacity: 1; + transform: rotate(1turn); + } + + to { + bottom: 0; + opacity: 0; + transform: rotate(0deg); + } +} \ No newline at end of file diff --git a/wx214944c362629fc7/images/default-avatar.jpg b/wx214944c362629fc7/images/default-avatar.jpg new file mode 100644 index 0000000..599aa5d Binary files /dev/null and b/wx214944c362629fc7/images/default-avatar.jpg differ diff --git a/wx214944c362629fc7/images/no_content.png b/wx214944c362629fc7/images/no_content.png new file mode 100644 index 0000000..3520e86 Binary files /dev/null and b/wx214944c362629fc7/images/no_content.png differ diff --git a/wx214944c362629fc7/images/tabBar/cart.png b/wx214944c362629fc7/images/tabBar/cart.png new file mode 100644 index 0000000..38d1e88 Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/cart.png differ diff --git a/wx214944c362629fc7/images/tabBar/cart_on.png b/wx214944c362629fc7/images/tabBar/cart_on.png new file mode 100644 index 0000000..3632235 Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/cart_on.png differ diff --git a/wx214944c362629fc7/images/tabBar/cate.png b/wx214944c362629fc7/images/tabBar/cate.png new file mode 100644 index 0000000..1118ad4 Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/cate.png differ diff --git a/wx214944c362629fc7/images/tabBar/cate_on.png b/wx214944c362629fc7/images/tabBar/cate_on.png new file mode 100644 index 0000000..c224843 Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/cate_on.png differ diff --git a/wx214944c362629fc7/images/tabBar/home.png b/wx214944c362629fc7/images/tabBar/home.png new file mode 100644 index 0000000..394d24a Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/home.png differ diff --git a/wx214944c362629fc7/images/tabBar/home_on.png b/wx214944c362629fc7/images/tabBar/home_on.png new file mode 100644 index 0000000..53a5573 Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/home_on.png differ diff --git a/wx214944c362629fc7/images/tabBar/user.png b/wx214944c362629fc7/images/tabBar/user.png new file mode 100644 index 0000000..216ba85 Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/user.png differ diff --git a/wx214944c362629fc7/images/tabBar/user_on.png b/wx214944c362629fc7/images/tabBar/user_on.png new file mode 100644 index 0000000..c772edc Binary files /dev/null and b/wx214944c362629fc7/images/tabBar/user_on.png differ diff --git a/wx214944c362629fc7/images/user-bg.png b/wx214944c362629fc7/images/user-bg.png new file mode 100644 index 0000000..f4a71d4 Binary files /dev/null and b/wx214944c362629fc7/images/user-bg.png differ diff --git a/wx214944c362629fc7/images/wechatapp.png b/wx214944c362629fc7/images/wechatapp.png new file mode 100644 index 0000000..3d9a991 Binary files /dev/null and b/wx214944c362629fc7/images/wechatapp.png differ diff --git a/wx214944c362629fc7/pages/address/create.js b/wx214944c362629fc7/pages/address/create.js new file mode 100644 index 0000000..a1543b4 --- /dev/null +++ b/wx214944c362629fc7/pages/address/create.js @@ -0,0 +1,51 @@ +var e = getApp(); + +Page({ + data: { + disabled: !1, + nav_select: !1, + name: "", + region: "", + phone: "", + detail: "", + error: "" + }, + onLoad: function(e) {}, + saveData: function(a) { + var t = this, n = a.detail.value; + if (n.region = t.data.region, !t.validation(n)) return e.showError(t.data.error), + !1; + t.setData({ + disabled: !0 + }), e._post_form("address/add", n, function(a) { + e.showSuccess(a.msg, function() { + wx.navigateBack(); + }); + }, !1, function() { + t.setData({ + disabled: !1 + }); + }); + }, + validation: function(e) { + if ("" === e.name) return this.data.error = "收件人不能为空", !1; + if (e.phone.length < 1) return this.data.error = "手机号不能为空", !1; + return /^((0\d{2,3}-\d{7,8})|(1[3456789]\d{9}))$/.test(e.phone) ? this.data.region ? "" !== e.detail || (this.data.error = "详细地址不能为空", + !1) : (this.data.error = "省市区不能空", !1) : (this.data.error = "手机号不符合要求", !1); + }, + bindRegionChange: function(e) { + this.setData({ + region: e.detail.value + }); + }, + webvue1: function() { + console.log(111), wx.navigateTo({ + url: "webvue?id=1" + }); + }, + webvue2: function() { + console.log(111), wx.navigateTo({ + url: "webvue?id=2" + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/create.json b/wx214944c362629fc7/pages/address/create.json new file mode 100644 index 0000000..4a2b7e0 --- /dev/null +++ b/wx214944c362629fc7/pages/address/create.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "新增收货地址", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/create.wxml b/wx214944c362629fc7/pages/address/create.wxml new file mode 100644 index 0000000..520be72 --- /dev/null +++ b/wx214944c362629fc7/pages/address/create.wxml @@ -0,0 +1,52 @@ + + +
+ + + + 收货人 + + + + + + + + 手机号 + + + + + + + + + + 所在地区 + + + + {{region}} + 选择省、市、区 + + + + + + 详细地址 + + + + + + + + + +
+ + 《用户服务协议》 + 《隐私政策》 + +
+ diff --git a/wx214944c362629fc7/pages/address/create.wxss b/wx214944c362629fc7/pages/address/create.wxss new file mode 100644 index 0000000..b5fdea6 --- /dev/null +++ b/wx214944c362629fc7/pages/address/create.wxss @@ -0,0 +1,172 @@ +.profile-list .admin { + color: #333; + font-size: 30rpx; + padding-left: 15px; +} + +.address-box .left-name { + width: 85px; +} + +.address-cont-title .list { + padding: 24rpx; + width: auto; +} + +.tui-picker-detail text { + padding: 0 10rpx; +} + +.infoText { + display: block; + line-height: 56rpx; +} + +picker-view { + background-color: #fff; + bottom: 0; + height: 480rpx; + padding: 0; + position: fixed; + width: 100%; +} + +picker-view-column view { + align-items: center; + display: flex; + font-size: 28rpx; + height: 100%; + justify-content: center; + line-height: 28rpx; + vertical-align: middle; +} + +.animation-element-wrapper { + height: 100%; + left: 0; + top: 0; + z-index: 21; +} + +.animation-element,.animation-element-wrapper { + display: flex; + position: fixed; + width: 100%; +} + +.animation-element { + background-color: #fff; + bottom: 0; + height: 570rpx; +} + +.animation-button { + align-items: center; + height: 100rpx; + line-height: 100rpx; + margin-top: 20rpx; + top: 20rpx; + width: 400rpx; +} + +.address-text { + color: #999; + display: inline-flex; + font-family: Arial,Helvetica,sans-serif; + font-size: 30rpx; + height: 50rpx; + line-height: 50rpx; + margin-top: 20rpx; + position: fixed; + text-align: center; +} + +.left-bt { + left: 30rpx; +} + +.right-bt { + color: #ec5151; + right: 30rpx; +} + +.line { + background-color: #eee; + display: block; + height: 1rpx; + margin-top: 89rpx; + position: fixed; + width: 100%; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.m-top35 { + margin-top: 35rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/detail.js b/wx214944c362629fc7/pages/address/detail.js new file mode 100644 index 0000000..862eb1a --- /dev/null +++ b/wx214944c362629fc7/pages/address/detail.js @@ -0,0 +1,49 @@ +var a = getApp(); + +Page({ + data: { + disabled: !1, + nav_select: !1, + region: "", + detail: {}, + error: "" + }, + onLoad: function(a) { + this.getAddressDetail(a.address_id); + }, + getAddressDetail: function(t) { + var e = this; + a._get("address/detail", { + address_id: t + }, function(a) { + e.setData(a.data); + }); + }, + saveData: function(t) { + var e = this, d = t.detail.value; + if (d.region = e.data.region, !e.validation(d)) return a.showError(e.data.error), + !1; + e.setData({ + disabled: !0 + }), d.address_id = e.data.detail.address_id, a._post_form("address/edit", d, function(t) { + a.showSuccess(t.msg, function() { + wx.navigateBack(); + }); + }, !1, function() { + e.setData({ + disabled: !1 + }); + }); + }, + validation: function(a) { + if ("" === a.name) return this.data.error = "收件人不能为空", !1; + if (a.phone.length < 1) return this.data.error = "手机号不能为空", !1; + return /^((0\d{2,3}-\d{7,8})|(1[3456789]\d{9}))$/.test(a.phone) ? this.data.region ? "" !== a.detail || (this.data.error = "详细地址不能为空", + !1) : (this.data.error = "省市区不能空", !1) : (this.data.error = "手机号不符合要求", !1); + }, + bindRegionChange: function(a) { + this.setData({ + region: a.detail.value + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/detail.json b/wx214944c362629fc7/pages/address/detail.json new file mode 100644 index 0000000..9f4abce --- /dev/null +++ b/wx214944c362629fc7/pages/address/detail.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "编辑收货地址", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/detail.wxml b/wx214944c362629fc7/pages/address/detail.wxml new file mode 100644 index 0000000..7798151 --- /dev/null +++ b/wx214944c362629fc7/pages/address/detail.wxml @@ -0,0 +1,48 @@ + + +
+ + + + 收货人 + + + + + + + + 手机号 + + + + + + + + + + 所在地区 + + + + {{region}} + 选择省、市、区 + + + + + + 详细地址 + + + + + + + + + +
+
+ diff --git a/wx214944c362629fc7/pages/address/detail.wxss b/wx214944c362629fc7/pages/address/detail.wxss new file mode 100644 index 0000000..b5fdea6 --- /dev/null +++ b/wx214944c362629fc7/pages/address/detail.wxss @@ -0,0 +1,172 @@ +.profile-list .admin { + color: #333; + font-size: 30rpx; + padding-left: 15px; +} + +.address-box .left-name { + width: 85px; +} + +.address-cont-title .list { + padding: 24rpx; + width: auto; +} + +.tui-picker-detail text { + padding: 0 10rpx; +} + +.infoText { + display: block; + line-height: 56rpx; +} + +picker-view { + background-color: #fff; + bottom: 0; + height: 480rpx; + padding: 0; + position: fixed; + width: 100%; +} + +picker-view-column view { + align-items: center; + display: flex; + font-size: 28rpx; + height: 100%; + justify-content: center; + line-height: 28rpx; + vertical-align: middle; +} + +.animation-element-wrapper { + height: 100%; + left: 0; + top: 0; + z-index: 21; +} + +.animation-element,.animation-element-wrapper { + display: flex; + position: fixed; + width: 100%; +} + +.animation-element { + background-color: #fff; + bottom: 0; + height: 570rpx; +} + +.animation-button { + align-items: center; + height: 100rpx; + line-height: 100rpx; + margin-top: 20rpx; + top: 20rpx; + width: 400rpx; +} + +.address-text { + color: #999; + display: inline-flex; + font-family: Arial,Helvetica,sans-serif; + font-size: 30rpx; + height: 50rpx; + line-height: 50rpx; + margin-top: 20rpx; + position: fixed; + text-align: center; +} + +.left-bt { + left: 30rpx; +} + +.right-bt { + color: #ec5151; + right: 30rpx; +} + +.line { + background-color: #eee; + display: block; + height: 1rpx; + margin-top: 89rpx; + position: fixed; + width: 100%; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.m-top35 { + margin-top: 35rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/index.js b/wx214944c362629fc7/pages/address/index.js new file mode 100644 index 0000000..c93b855 --- /dev/null +++ b/wx214944c362629fc7/pages/address/index.js @@ -0,0 +1,54 @@ +var t = getApp(); + +Page({ + data: { + list: [], + default_id: null + }, + onLoad: function(t) { + this.data.options = t; + }, + onShow: function() { + this.getAddressList(); + }, + getAddressList: function() { + var e = this; + t._get("address/lists", {}, function(t) { + e.setData(t.data); + }); + }, + createAddress: function() { + wx.navigateTo({ + url: "./create" + }); + }, + editAddress: function(t) { + wx.navigateTo({ + url: "./detail?address_id=" + t.currentTarget.dataset.id + }); + }, + removeAddress: function(e) { + var s = this, a = e.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "您确定要移除当前收货地址吗?", + success: function(e) { + e.confirm && t._post_form("address/delete", { + address_id: a + }, function(t) { + s.getAddressList(); + }); + } + }); + }, + setDefault: function(e) { + var s = this, a = e.detail.value; + return s.setData({ + default_id: parseInt(a) + }), t._post_form("address/setDefault", { + address_id: a + }, function(t) { + "flow" === s.data.options.from && wx.navigateBack(); + }), !1; + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/index.json b/wx214944c362629fc7/pages/address/index.json new file mode 100644 index 0000000..fd8b03a --- /dev/null +++ b/wx214944c362629fc7/pages/address/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "收货地址", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/index.wxml b/wx214944c362629fc7/pages/address/index.wxml new file mode 100644 index 0000000..e76ca57 --- /dev/null +++ b/wx214944c362629fc7/pages/address/index.wxml @@ -0,0 +1,45 @@ + + + + + + + {{item.name}} {{item.phone}} + + {{item.region.province}} {{item.region.city}} {{item.region.region}} {{item.detail}} + + + + + + + + + + + + 编辑 + + + + 删除 + + + + + + + + + 亲,您还没有收货列表 + + + + 添加新地址 + + + diff --git a/wx214944c362629fc7/pages/address/index.wxss b/wx214944c362629fc7/pages/address/index.wxss new file mode 100644 index 0000000..93f368c --- /dev/null +++ b/wx214944c362629fc7/pages/address/index.wxss @@ -0,0 +1,100 @@ +.address-list { + border-bottom: 1px solid #f6f6f9; +} + +.address-list .list { + padding: 15rpx; +} + +.address-list .list .title { + color: #666; + font-size: 30rpx; + padding: 0 24rpx 0 6rpx; +} + +.address-list .list .cont { + color: #333; + font-size: 30rpx; +} + +.address-list .list navigator { + display: inline-block; +} + +.address-list .list image { + height: 28rpx; + width: 28rpx; +} + +.address-left { + flex: 6; +} + +.address-right { + flex: 3.2; +} + +.address-right .iconfont { + color: #777; + font-size: 30rpx; +} + +.flow-fixed-footer { + background: #f42424; + bottom: 0; + position: fixed; + width: 100%; + z-index: 4999; +} + +.flow-fixed-footer .chackout-left { + color: #777; + font-size: 32rpx; + line-height: 44px; +} + +.flow-fixed-footer .chackout-right { + font-size: 34rpx; +} + +.address-header { + background-size: 120rpx auto; + border-bottom: 1px solid #f6f6f9; + font-size: 1.7rem; + padding: 28rpx 0; +} + +.flow-header-left { + flex: 14; + padding: 0rpx 20rpx; +} + +.flow-header-right { + flex: 1; +} + +.flow-header-right image { + float: right; + height: 34rpx; + margin-top: 20rpx; + width: 34rpx; +} + +.address-header .flow-checkout-admin { + color: #444; + font-size: 34rpx; +} + +.address-header .flow-checkout-admin text { + padding: 0 10rpx; +} + +.address-header .flow-checkout-address { + color: #777; + font-size: 26rpx; + margin-top: 6rpx; +} + +.radio-group raido { + color: #f42424; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/webvue.js b/wx214944c362629fc7/pages/address/webvue.js new file mode 100644 index 0000000..666ab1c --- /dev/null +++ b/wx214944c362629fc7/pages/address/webvue.js @@ -0,0 +1,14 @@ +Page({ + data: { + url2: "https://ltwxminiapp.19year.cn/2.html", + url1: "https://ltwxminiapp.19year.cn/1.html", + url: "" + }, + onLoad: function(t) { + console.log("id", t.id), "1" == t.id ? (console.log(1), this.setData({ + url: "https://ltwxminiapp.19year.cn/1.html?dat=" + Date.now() + })) : (console.log(2), this.setData({ + url: "https://ltwxminiapp.19year.cn/2.html?dat=" + Date.now() + })), console.log(this.url); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/webvue.json b/wx214944c362629fc7/pages/address/webvue.json new file mode 100644 index 0000000..bd373b9 --- /dev/null +++ b/wx214944c362629fc7/pages/address/webvue.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "说明", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/address/webvue.wxml b/wx214944c362629fc7/pages/address/webvue.wxml new file mode 100644 index 0000000..34c346a --- /dev/null +++ b/wx214944c362629fc7/pages/address/webvue.wxml @@ -0,0 +1 @@ + diff --git a/wx214944c362629fc7/pages/address/webvue.wxss b/wx214944c362629fc7/pages/address/webvue.wxss new file mode 100644 index 0000000..e69de29 diff --git a/wx214944c362629fc7/pages/aftermarket/create.js b/wx214944c362629fc7/pages/aftermarket/create.js new file mode 100644 index 0000000..79bf581 --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/create.js @@ -0,0 +1,68 @@ +var e = getApp(); + +Page({ + data: { + disabled: !1, + nav_select: !1, + name: "", + region: "", + phone: "", + detail: "", + error: "", + order_goods_id: 0, + info: {} + }, + onLoad: function(e) { + this.data.order_goods_id = e.order_goods_id, this.getOrderDetail(e.order_goods_id); + }, + goodsDetail: function(e) { + var t = e.currentTarget.dataset.id; + wx.navigateTo({ + url: "../goods/index?goods_id=" + t + }); + }, + getOrderDetail: function(t) { + var a = this; + e._get("user.order_goods/getOrderGoods", { + order_goods_id: t + }, function(e) { + e.data.info.aftermarket_apply_date = a.formatDate(1e3 * e.data.info.aftermarket_apply_time), + e.data.info.aftermarket_dispose_date = a.formatDate(1e3 * e.data.info.aftermarket_dispose_time), + a.setData(e.data); + }); + }, + formatDate: function(e) { + var t = new Date(e), a = t.getFullYear(), r = t.getMonth() + 1; + r = r < 10 ? "0" + r : r; + var o = t.getDate(); + o = o < 10 ? "0" + o : o; + var d = t.getHours(); + d = d < 10 ? "0" + d : d; + var i = t.getMinutes(), n = t.getSeconds(); + return a + "-" + r + "-" + o + " " + d + ":" + (i = i < 10 ? "0" + i : i) + ":" + (n = n < 10 ? "0" + n : n); + }, + saveData: function(t) { + var a = this, r = t.detail.value; + if (r.order_goods_id = a.data.order_goods_id, !a.validation(r)) return e.showError(a.data.error), + !1; + a.setData({ + disabled: !0 + }), e._post_form("user.order_goods/submitAftermarket", r, function(t) { + if (console.log(t), 1 != t.code) return e.showError(t.msg), !1; + a.getOrderDetail(a.data.order_goods_id); + }, !1, function() { + a.setData({ + disabled: !1 + }); + }); + }, + validation: function(e) { + return "" === e.refund_reason ? (this.data.error = "退款原因不能为空", !1) : 20 != this.data.info.order.delivery_status || "" !== e.deliver_no || (this.data.error = "快递单号不能为空", + !1); + }, + bindRegionChange: function(e) { + this.setData({ + region: e.detail.value + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/aftermarket/create.json b/wx214944c362629fc7/pages/aftermarket/create.json new file mode 100644 index 0000000..a91d70d --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/create.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "售后详情", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/aftermarket/create.wxml b/wx214944c362629fc7/pages/aftermarket/create.wxml new file mode 100644 index 0000000..32e2365 --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/create.wxml @@ -0,0 +1,85 @@ + + + + + + + 商品详情 + + + + + + + + {{order.create_time}} + + + + + + + + + + + {{info.goods_name}} + {{info.goods_attr}} + + ¥{{info.goods_price}} + ×{{info.total_num}} + + + + + +
+ + + + 退款原因 + + + + + + + + 快递单号 + + + + + + + + + + +
+ + + 退款单号: {{info.refund_no}} + + + 退款原因: {{info.refund_reason}} + + + 快递单号: {{info.deliver_no}} + + + 退款状态: 已申请 + 退款状态: 已退款 + + + 申请时间: {{info.aftermarket_apply_date}} + + + 完成时间: {{info.aftermarket_dispose_date}} + + + 退款金额: ¥{{info.refund_price}} + + +
+ diff --git a/wx214944c362629fc7/pages/aftermarket/create.wxss b/wx214944c362629fc7/pages/aftermarket/create.wxss new file mode 100644 index 0000000..7000c72 --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/create.wxss @@ -0,0 +1,224 @@ +.profile-list .admin { + color: #333; + font-size: 30rpx; + padding-left: 15px; +} + +.address-box .left-name { + width: 85px; +} + +.address-cont-title .list { + padding: 24rpx; + width: auto; +} + +.tui-picker-detail text { + padding: 0 10rpx; +} + +.infoText { + display: block; + line-height: 56rpx; +} + +picker-view { + background-color: #fff; + bottom: 0; + height: 480rpx; + padding: 0; + position: fixed; + width: 100%; +} + +picker-view-column view { + align-items: center; + display: flex; + font-size: 28rpx; + height: 100%; + justify-content: center; + line-height: 28rpx; + vertical-align: middle; +} + +.animation-element-wrapper { + height: 100%; + left: 0; + top: 0; + z-index: 21; +} + +.animation-element,.animation-element-wrapper { + display: flex; + position: fixed; + width: 100%; +} + +.animation-element { + background-color: #fff; + bottom: 0; + height: 570rpx; +} + +.animation-button { + align-items: center; + height: 100rpx; + line-height: 100rpx; + margin-top: 20rpx; + top: 20rpx; + width: 400rpx; +} + +.address-text { + color: #999; + display: inline-flex; + font-family: Arial,Helvetica,sans-serif; + font-size: 30rpx; + height: 50rpx; + line-height: 50rpx; + margin-top: 20rpx; + position: fixed; + text-align: center; +} + +.left-bt { + left: 30rpx; +} + +.right-bt { + color: #ec5151; + right: 30rpx; +} + +.line { + background-color: #eee; + display: block; + height: 1rpx; + margin-top: 89rpx; + position: fixed; + width: 100%; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.m-top35 { + margin-top: 35rpx; +} + +.flow-list .header { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; + position: relative; +} + +.flow-list .header text { + font-size: 32rpx; + padding-left: 80rpx; +} + +.flow-list .header image { + height: 37rpx; + left: 15px; + margin-top: -18rpx; + position: absolute; + top: 50%; + width: 34rpx; +} + +.order-header { + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; +} + +.order-header text { + font-size: 28rpx; +} + +.order-header text.title { + color: #333; +} + +.order-cont { + justify-content: space-between; +} + +.order-cont .order-num text,.order-cont .time { + color: #888; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.flow-all-list-cont1 { + font-size: 32rpx; + padding: 10rpx 0; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/aftermarket/index.js b/wx214944c362629fc7/pages/aftermarket/index.js new file mode 100644 index 0000000..26a037b --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/index.js @@ -0,0 +1,86 @@ +var t = getApp(); + +Page({ + data: { + dataType: "all", + data: [] + }, + onLoad: function(t) { + this.data.dataType = t.type || "all", this.setData({ + dataType: this.data.dataType + }); + }, + onShow: function() { + this.getOrderList(this.data.dataType); + }, + formatDate: function(t) { + var e = new Date(t), a = e.getFullYear(), r = e.getMonth() + 1; + r = r < 10 ? "0" + r : r; + var d = e.getDate(); + d = d < 10 ? "0" + d : d; + var o = e.getHours(); + o = o < 10 ? "0" + o : o; + var n = e.getMinutes(), i = e.getSeconds(); + return a + "-" + r + "-" + d + " " + o + ":" + (n = n < 10 ? "0" + n : n) + ":" + (i = i < 10 ? "0" + i : i); + }, + getOrderList: function(e) { + var a = this; + t._get("user.order_goods/getOrderGoodsList", { + dataType: e + }, function(t) { + t.data.length && wx.pageScrollTo({ + scrollTop: 0 + }); + for (var e = 0; e < t.data.length; e++) t.data[e].aftermarket_apply_date = a.formatDate(1e3 * t.data[e].aftermarket_apply_time); + a.setData(t); + }); + }, + bindHeaderTap: function(t) { + this.setData({ + dataType: t.target.dataset.type + }), this.getOrderList(t.target.dataset.type); + }, + cancelOrder: function(e) { + var a = this, r = e.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认取消订单?", + success: function(e) { + e.confirm && t._post_form("user.order/cancel", { + order_id: r + }, function(t) { + a.getOrderList(a.data.dataType); + }); + } + }); + }, + receipt: function(e) { + var a = this, r = e.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认收到商品?", + success: function(e) { + e.confirm && t._post_form("user.order/receipt", { + order_id: r + }, function(t) { + a.getOrderList(a.data.dataType); + }); + } + }); + }, + detail: function(t) { + var e = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../aftermarket/create?order_goods_id=" + e + }); + }, + orderDetail: function(t) { + var e = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../order/detail?order_id=" + e + }); + }, + onPullDownRefresh: function() { + wx.stopPullDownRefresh(); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/aftermarket/index.json b/wx214944c362629fc7/pages/aftermarket/index.json new file mode 100644 index 0000000..9705daf --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "售后订单", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/aftermarket/index.wxml b/wx214944c362629fc7/pages/aftermarket/index.wxml new file mode 100644 index 0000000..47a65e8 --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/index.wxml @@ -0,0 +1,78 @@ + + + + 全部售后 + 已申请 + 已完成 + + + + + + + + + 商品信息 + + + 已完成 + 已申请 + + + + + + + 退款单号:{{item.refund_no}} + + + {{item.create_time}} + + + + + + + + + + + + + + + 共1件 + + + + + + + + + + 申请时间: + {{item.aftermarket_apply_date}} + + + + + + 订单详情 + + + + + + + + + + + 亲,您还没有售后信息哦! + + + + + + diff --git a/wx214944c362629fc7/pages/aftermarket/index.wxss b/wx214944c362629fc7/pages/aftermarket/index.wxss new file mode 100644 index 0000000..dd65cbb --- /dev/null +++ b/wx214944c362629fc7/pages/aftermarket/index.wxss @@ -0,0 +1,151 @@ +.header { + background: #fff; + border-bottom: 1rpx solid #e4e4e4; + display: flex; + height: 44px; + line-height: 44px; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.header view { + flex: 1; + text-align: center; +} + +.header .active { + color: #fd4a5f; +} + +.wrapper { + margin-top: 54px; +} + +.order-box { + padding: 0 15px; +} + +.order-header { + padding-top: 10rpx; +} + +.order-header .title { + color: #333; + font-size: 30rpx; +} + +.order-header .cont { + color: #fd4a5f; + font-size: 30rpx; +} + +.order-cont { + justify-content: space-between; + padding: 15rpx 0; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-shop { + padding: 16rpx 0; +} + +.order-shop-left,.order-shop-left image { + background: #fff; + display: inline-block; + height: 160rpx; + margin-right: 15rpx; + width: 160rpx; +} + +.order-shop .num { + float: right; +} + +.order-btn { + padding: 18rpx 0; +} + +.order-btn .order-left { + flex: 3; +} + +.order-btn .order-left .text,.order-btn .order-left text { + font-size: 30rpx; +} + +.order-btn .order-left .text { + color: #777; +} + +.order-btn .order-right { + flex: 1.5; +} + +.order-list-box .left { + flex: 4; + overflow: hidden; + position: relative; +} + +.order-list-box .right { + flex: 1; +} + +.goods-number { + color: #777; + font-size: 28rpx; + position: absolute; + right: 12px; + top: 35%; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; +} + +.btn-default,.btn-main { + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.btn-main { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + margin-left: 10rpx; +} + +.user-orderJtou { + color: #888; + font-size: 24rpx; + margin-top: -20rpx; + position: absolute; + right: 0; + top: 50%; +} + +.order-img_list { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + border-top: 1rpx solid #f1f1f1; +} + +.order-right-name { + color: #555; + font-size: 30rpx; + left: 180rpx; + line-height: 1.6; + margin-top: -46rpx; + position: absolute; + top: 50%; + width: 100%; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/category/index.js b/wx214944c362629fc7/pages/category/index.js new file mode 100644 index 0000000..7460540 --- /dev/null +++ b/wx214944c362629fc7/pages/category/index.js @@ -0,0 +1,85 @@ +var t = getApp(); + +Page({ + data: { + searchColor: "rgba(0,0,0,0.4)", + searchSize: "15", + searchName: "搜索商品", + scrollHeight: 0, + curIndex: -1, + curCateId: 0, + categoryList: [], + goodsList: [], + noMore: !1, + isLoading: !0, + page: 1 + }, + onLoad: function() { + this.setListHeight(), this.getCategoryList(); + }, + onShow: function() {}, + setListHeight: function() { + var t = this; + wx.getSystemInfo({ + success: function(a) { + t.setData({ + scrollHeight: a.windowHeight - 47 + }); + } + }); + }, + getCategoryList: function() { + var a = this; + t._get("category/index", {}, function(t) { + var o = t.data; + a.setData({ + categoryList: o.categoryList, + goodsList: o.goodsList + }); + }); + }, + getGoodsList: function(a, o) { + var s = this; + t._get("goods/lists", { + page: o || 1, + category_id: s.data.curCateId + }, function(t) { + var o = t.data.list, e = s.data.goodsList; + 1 == a ? s.setData({ + "goodsList.data": e.data.concat(o.data), + isLoading: !1 + }) : s.setData({ + goodsList: o, + isLoading: !1 + }); + }); + }, + onTargetGoods: function(t) { + wx.navigateTo({ + url: "../goods/index?goods_id=" + t.detail.target.dataset.id + }); + }, + onSelectNav: function(t) { + var a = t.currentTarget.dataset.index; + this.setData({ + curIndex: a, + curCateId: a > -1 ? this.data.categoryList[a].category_id : 0, + goodsList: [], + page: 1, + noMore: !1, + isLoading: !0 + }), this.getGoodsList(); + }, + onDownLoad: function() { + if (this.data.page >= this.data.goodsList.last_page) return this.setData({ + noMore: !0 + }), !1; + this.getGoodsList(!0, ++this.data.page); + }, + onShareAppMessage: function() { + return { + title: "全部商品", + path: "/pages/category/index" + }; + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/category/index.json b/wx214944c362629fc7/pages/category/index.json new file mode 100644 index 0000000..bb41c37 --- /dev/null +++ b/wx214944c362629fc7/pages/category/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "全部商品", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/category/index.wxml b/wx214944c362629fc7/pages/category/index.wxml new file mode 100644 index 0000000..31850b8 --- /dev/null +++ b/wx214944c362629fc7/pages/category/index.wxml @@ -0,0 +1,53 @@ + + + + + + {{searchName}} + + + + + + 全部 + {{item.name}} + + + +
+ +
+
+ 亲, 没有更多了 + + + + 亲,此处暂无商品哦 + + +
+
+
diff --git a/wx214944c362629fc7/pages/category/index.wxss b/wx214944c362629fc7/pages/category/index.wxss new file mode 100644 index 0000000..850067e --- /dev/null +++ b/wx214944c362629fc7/pages/category/index.wxss @@ -0,0 +1,132 @@ +.index-search-box { + background: #fff; + padding: 13rpx 13rpx 18rpx; +} + +.index-search { + border-bottom: 0; + border-radius: 50rpx; + box-sizing: border-box; + color: #999; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; + overflow: hidden; + position: relative; +} + +.index-search,page { + background: #fff; +} + +.no-more { + font-size: 28rpx; + padding-top: 0; +} + +.cate-content { + background: #fff; + width: 100%; +} + +.cate-left { + background: #f8f8f8; + color: #444; + display: flex; + flex-direction: column; + height: 100%; + width: 22.2222%; +} + +.cate-left .type-nav { + display: block; + font-size: 26rpx; + height: 90rpx; + line-height: 90rpx; + position: relative; + text-align: center; + z-index: 10; +} + +.cate-left .type-nav.selected { + background: #fff; + border-right: none; + color: #ff495e; + font-size: 28rpx; +} + +.cate-right { + width: 77.7778%; +} + +.goods-item { + background: #fff; + box-sizing: border-box; + margin-bottom: 10rpx; + padding: 16rpx; + width: 100%; +} + +.goods-item text { + line-height: 1.6; +} + +.goods-item:last-child { + margin-bottom: 0; +} + +.goods-item_left { + align-items: center; + background: #fff; + display: flex; + width: 36%; +} + +.goods-item_left image { + display: block; + height: 190rpx; + width: 190rpx; +} + +.goods-item_right { + padding-left: 20rpx; + position: relative; + width: 60%; +} + +.goods-item_right .goods-item_title { + color: #333; + font-size: 26rpx; + height: 72rpx; + margin-top: 20rpx; +} + +.goods-item_right .goods-item_title text { + line-height: 1.3; +} + +.goods-item_desc { + margin-top: 8rpx; +} + +.desc-selling_point { + color: #ff495e; + font-size: 24rpx; + width: 100%; +} + +.desc-goods_sales { + color: #999; + font-size: 24rpx; +} + +.desc_footer .price_x { + color: #f03c3c; + font-size: 27rpx; + margin-right: 16rpx; +} + +.desc_footer .price_y { + font-size: 24rpx; + text-decoration: line-through; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/category/list.js b/wx214944c362629fc7/pages/category/list.js new file mode 100644 index 0000000..d33a3af --- /dev/null +++ b/wx214944c362629fc7/pages/category/list.js @@ -0,0 +1,90 @@ +var t = getApp(); + +Page({ + data: { + searchColor: "rgba(0,0,0,0.4)", + searchSize: "15", + searchName: "搜索商品", + scrollHeight: null, + showView: !1, + arrange: "", + sortType: "all", + sortPrice: !1, + option: {}, + list: {}, + noList: !0, + no_more: !1, + page: 1 + }, + onLoad: function(t) { + var a = this; + a.setListHeight(), a.setData({ + option: t + }, function() { + a.getGoodsList(!0); + }); + }, + getGoodsList: function(a, e) { + var s = this; + t._get("goods/lists", { + page: e || 1, + sortType: s.data.sortType, + sortPrice: s.data.sortPrice ? 1 : 0, + category_id: s.data.option.category_id || 0, + search: s.data.option.search || "" + }, function(t) { + var e = t.data.list, i = s.data.list; + !0 === a || void 0 === i.data ? s.setData({ + list: e, + noList: !1 + }) : s.setData({ + "list.data": i.data.concat(e.data) + }); + }); + }, + setListHeight: function() { + var t = this; + wx.getSystemInfo({ + success: function(a) { + t.setData({ + scrollHeight: a.windowHeight - 90 + }); + } + }); + }, + switchSortType: function(t) { + var a = this, e = t.currentTarget.dataset.type, s = "price" !== e || !a.data.sortPrice; + a.setData({ + list: {}, + page: 1, + sortType: e, + sortPrice: s + }, function() { + a.getGoodsList(!0); + }); + }, + toSynthesize: function(t) { + wx.navigateTo({ + url: "../category/screen?objectId=" + }); + }, + onChangeShowState: function() { + this.setData({ + showView: !this.data.showView, + arrange: this.data.arrange ? "" : "arrange" + }); + }, + bindDownLoad: function() { + if (this.data.page >= this.data.list.last_page) return this.setData({ + no_more: !0 + }), !1; + this.getGoodsList(!1, ++this.data.page); + }, + onShareAppMessage: function() { + return { + title: "全部分类", + desc: "", + path: "/pages/category/index" + }; + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/category/list.json b/wx214944c362629fc7/pages/category/list.json new file mode 100644 index 0000000..6acff2b --- /dev/null +++ b/wx214944c362629fc7/pages/category/list.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "商品列表", + "enablePullDownRefresh": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/category/list.wxml b/wx214944c362629fc7/pages/category/list.wxml new file mode 100644 index 0000000..eef63b5 --- /dev/null +++ b/wx214944c362629fc7/pages/category/list.wxml @@ -0,0 +1,56 @@ + + + + + + + 搜索商品 + + + + + + + + + + 综合 + + + 销量 + + + 价格 + + + + + + + + + + + + + + + + {{item.goods_name}} + ¥{{item.goods_min_price}} {{item.goods_sku.line_price}} + + + + + + + + + + + + + + 亲, 没有相关内容 + + diff --git a/wx214944c362629fc7/pages/category/list.wxss b/wx214944c362629fc7/pages/category/list.wxss new file mode 100644 index 0000000..0f34d7d --- /dev/null +++ b/wx214944c362629fc7/pages/category/list.wxss @@ -0,0 +1,159 @@ +.store_nav_cont { + padding: 10px 0; +} + +.store_nav_cont #list-true { + color: #ff495e; + font-size: 28rpx; +} + +.store_nav_cont #list-0 { + color: #333; + font-size: 28rpx; +} + +.store_nav_cont #list-0 .icon-fenlei { + color: #777; + font-size: 28rpx; + padding-left: 8rpx; +} + +.store_nav_cont #list-true .icon-fenlei { + color: #ff495e; + font-size: 28rpx; + padding-left: 8rpx; +} + +.store_nav_cont .price { + padding-right: 30rpx; +} + +.store_nav_cont #list-0 .top_jiantou,.store_nav_cont #list-true .top_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -16rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-0 .bot_jiantou,.store_nav_cont #list-true .bot_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -2rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-true .bot_jiantou.active,.store_nav_cont #list-true .top_jiantou.active { + color: #ff495e; +} + +.container { + position: relative; +} + +.cate-btn { + background: #ff495e; + bottom: 18rpx; + color: #fff; + font-size: 20rpx; + padding: 4px 18rpx; + right: 18rpx; +} + +.index-cont-search icon { + left: 0; + margin-left: 20rpx; +} + +.index-search-box { + background: #fff; + border-bottom: 1px solid #eee; + left: 0rpx; + padding: 18rpx 13rpx; + position: fixed; + right: 0rpx; + top: 1rpx; + z-index: 999; +} + +.index-search { + background: #fff; + border-bottom: 0; + border-radius: 50rpx; + box-sizing: border-box; + color: #999; + font-size: 32rpx; + height: 64rpx; + line-height: 64rpx; + margin: 0 10rpx; + overflow: hidden; + position: relative; +} + +.list-right { + width: 60rpx; +} + +.list-right text { + font-size: 40rpx; + height: 60rpx; + line-height: 60rpx; +} + +.list-header { + left: 0; + position: fixed; + right: 0; + top: 1rpx; +} + +.no-more { + color: #737373; + margin: 10px 0; + text-align: center; +} + +.category-list { + overflow: hidden; +} + +.category-list .list { + box-sizing: border-box; + float: left; + width: 50%; +} + +.category-list .list:nth-child(2n) { + border-bottom: 4px solid #f7f7f7; + border-left: 2px solid #f7f7f7; +} + +.category-list .list:nth-child(2n-1) { + border-bottom: 4px solid #f7f7f7; + border-right: 2px solid #f7f7f7; +} + +.category-list.arrange .list { + border-bottom: 1rpx solid #f7f7f7; + overflow: hidden; + padding: 15rpx; + width: 100%; +} + +.category-list.arrange .list .left { + float: left; + width: 35%; +} + +.category-list.arrange .list .right { + float: left; + width: 65%; +} + +.category-list.arrange .list .left .img image { + height: 220rpx; + width: 220rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/flow/checkout.js b/wx214944c362629fc7/pages/flow/checkout.js new file mode 100644 index 0000000..6faf2a0 --- /dev/null +++ b/wx214944c362629fc7/pages/flow/checkout.js @@ -0,0 +1,84 @@ +var o = getApp(); + +Page({ + data: { + nav_select: !1, + options: {}, + address: null, + exist_address: !1, + goods: {}, + disabled: !1, + hasError: !1, + error: "", + utype: 0 + }, + onLoad: function(o) { + this.data.options = o, console.log(o), this.getUserDetail(); + }, + onShow: function() { + this.getOrderData(), this.getUserDetail(); + }, + getUserDetail: function() { + var r = this; + o._get("user.index/detail", {}, function(o) { + console.log(o), r.setData({ + utype: o.data.userInfo.utype + }); + }); + }, + getOrderData: function() { + var r = this, t = r.data.options, e = function(t) { + if (1 !== t.code) return o.showError(t.msg), !1; + t.data.has_error ? (r.data.hasError = !0, r.data.error = t.data.error_msg, o.showError(r.data.error)) : (r.data.hasError = !1, + r.data.error = ""), r.setData(t.data); + }; + "buyNow" === t.order_type ? o._get("order/buyNow", { + goods_id: t.goods_id, + goods_num: t.goods_num, + goods_sku_id: t.goods_sku_id + }, function(o) { + e(o); + }) : "cart" === t.order_type && o._get("order/cart", {}, function(o) { + e(o); + }); + }, + selectAddress: function() { + wx.navigateTo({ + url: "../address/" + (this.data.exist_address ? "index?from=flow" : "create") + }); + }, + submitOrder: function() { + var r = this, t = r.data.options; + if (r.data.disabled) return !1; + if (r.data.hasError) return o.showError(r.data.error), !1; + var e = function(r) { + if (-10 === r.code) return o.showError(r.msg, function() { + wx.redirectTo({ + url: "../pays/pays" + }); + }), !1; + wx.redirectTo({ + url: "../pays/pays" + }); + }; + r.data.disabled = !0, wx.showLoading({ + title: "正在处理..." + }), "buyNow" === t.order_type ? o._post_form("order/buyNow", { + goods_id: t.goods_id, + goods_num: t.goods_num, + goods_sku_id: t.goods_sku_id + }, function(o) { + console.log("success"), e(o); + }, function(o) { + console.log("fail"); + }, function() { + console.log("complete"), r.data.disabled = !1; + }) : "cart" === t.order_type && o._post_form("order/cart", {}, function(o) { + console.log("success"), e(o); + }, function(o) { + console.log("fail"); + }, function() { + console.log("complete"), r.data.disabled = !1; + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/flow/checkout.json b/wx214944c362629fc7/pages/flow/checkout.json new file mode 100644 index 0000000..af86caf --- /dev/null +++ b/wx214944c362629fc7/pages/flow/checkout.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "订单确认", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/flow/checkout.wxml b/wx214944c362629fc7/pages/flow/checkout.wxml new file mode 100644 index 0000000..3293160 --- /dev/null +++ b/wx214944c362629fc7/pages/flow/checkout.wxml @@ -0,0 +1,76 @@ + + + + + + + + + {{address.name}} + {{address.phone}} + + + {{address.region.province}} {{address.region.city}} {{address.region.region}} {{address.detail}} + + + + + + + + + + + + 去选择配送地址 + + + + + + + + + + + + + + + + {{item.goods_name}} + {{item.goods_sku.goods_attr}} + + ¥{{item.goods_price}} + ¥{{item.l_a}} + ¥{{item.l_b}} + ×{{item.total_num}} + + + + + + + 共{{order_total_num}}件商品,合计: + ¥{{order_total_price}} + + + + + 商品总金额: + + ¥{{order_total_price}} + + + + + + 实付款: ¥{{order_pay_price}} + + + 提交订单 + + + + + diff --git a/wx214944c362629fc7/pages/flow/checkout.wxss b/wx214944c362629fc7/pages/flow/checkout.wxss new file mode 100644 index 0000000..d1cce0a --- /dev/null +++ b/wx214944c362629fc7/pages/flow/checkout.wxss @@ -0,0 +1,18 @@ +.checkout_list { + background: #fff; + border-bottom: 1rpx solid #eee; + padding: 10px 15px 2px; +} + +.checkout_list .flow-shopList { + border-bottom: 1rpx solid #eee; + padding: 5rpx 0 10rpx; +} + +.checkout_list .flow-shopList:last-child { + border-bottom: 0; +} + +.flow-header-left { + padding-left: 90rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/flow/index.js b/wx214944c362629fc7/pages/flow/index.js new file mode 100644 index 0000000..ebefacc --- /dev/null +++ b/wx214944c362629fc7/pages/flow/index.js @@ -0,0 +1,119 @@ +var t = require("../../@babel/runtime/helpers/defineProperty"), o = getApp(); + +Page({ + data: { + goods_list: [], + order_total_num: 0, + order_total_price: 0, + colourList: [], + colour_id: 0, + hideNotice: !1, + storeInfo: {}, + utype: 0 + }, + onLoad: function(t) { + this.getColourList(), this.getStoreInfo(), this.getUserDetail(); + }, + onShow: function() { + this.setData({ + isLogin: o.checkIsLogin() + }), this.data.isLogin && (this.getCartList(), this.getUserDetail()); + }, + getUserDetail: function() { + var t = this; + o._get("user.index/detail", {}, function(o) { + console.log(o), t.setData({ + utype: o.data.userInfo.utype + }); + }); + }, + getStoreInfo: function() { + var t = this; + o._get("index/getStoreInfo", {}, function(o) { + var e = o.data; + console.log(e), t.setData({ + storeInfo: e.store + }); + }); + }, + switchNotice: function() { + this.setData({ + hideNotice: !0 + }); + }, + getCartList: function() { + var t = this; + o._get("cart/lists", {}, function(o) { + t.setData(o.data); + }); + }, + getColourList: function() { + var t = this; + o._get("goods/getColourList", {}, function(o) { + var e = o.data; + t.setData({ + colourList: e.list + }); + }); + }, + addCount: function(e) { + var a = this, i = e.currentTarget.dataset.index, s = e.currentTarget.dataset.skuId, r = a.data.goods_list[i], n = a.data.order_total_price; + wx.showLoading({ + title: "加载中", + mask: !0 + }), o._post_form("cart/add", { + goods_id: r.goods_id, + goods_num: 1, + goods_sku_id: s + }, function() { + var o; + r.total_num++, a.setData((t(o = {}, "goods_list[" + i + "]", r), t(o, "order_total_price", a.mathadd(n, r.goods_price)), + o)); + }); + }, + minusCount: function(e) { + var a = this, i = e.currentTarget.dataset.index, s = e.currentTarget.dataset.skuId, r = a.data.goods_list[i], n = a.data.order_total_price; + r.total_num > 1 && (wx.showLoading({ + title: "加载中", + mask: !0 + }), o._post_form("cart/sub", { + goods_id: r.goods_id, + goods_sku_id: s + }, function() { + var o; + r.total_num--, r.total_num > 0 && a.setData((t(o = {}, "goods_list[" + i + "]", r), + t(o, "order_total_price", a.mathsub(n, r.goods_price)), o)); + })); + }, + del: function(t) { + var e = this, a = t.currentTarget.dataset.goodsId, i = t.currentTarget.dataset.skuId; + wx.showModal({ + title: "提示", + content: "您确定要移除当前商品吗?", + success: function(t) { + t.confirm && o._post_form("cart/delete", { + goods_id: a, + goods_sku_id: i + }, function(t) { + e.getCartList(); + }); + } + }); + }, + submit: function(t) { + wx.navigateTo({ + url: "../flow/checkout?order_type=cart" + }); + }, + mathadd: function(t, o) { + return (Number(t) + Number(o)).toFixed(2); + }, + mathsub: function(t, o) { + return (Number(t) - Number(o)).toFixed(2); + }, + goShopping: function() { + wx.switchTab({ + url: "../index/index" + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/flow/index.json b/wx214944c362629fc7/pages/flow/index.json new file mode 100644 index 0000000..bb6bf4b --- /dev/null +++ b/wx214944c362629fc7/pages/flow/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "购物车", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/flow/index.wxml b/wx214944c362629fc7/pages/flow/index.wxml new file mode 100644 index 0000000..a60d4f6 --- /dev/null +++ b/wx214944c362629fc7/pages/flow/index.wxml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + {{colourList[item.colour]}}{{item.goods_name}} + {{item.goods_title.length>0?item.goods_title:' '}} + + + {{item.goods_sku.goods_attr}} + + ¥{{item.goods_price}} {{item.goods_sku.line_price}} + + ¥{{item.l_a}} {{item.goods_sku.line_price}} + + ¥{{item.l_b}} {{item.goods_sku.line_price}} + + + + + + + + + + + + 合计:¥{{order_total_price}} + + + 去结算 + + + + + + + 亲,购物车还没有商品哦 + 去逛逛 + + + + diff --git a/wx214944c362629fc7/pages/flow/index.wxss b/wx214944c362629fc7/pages/flow/index.wxss new file mode 100644 index 0000000..b6ef394 --- /dev/null +++ b/wx214944c362629fc7/pages/flow/index.wxss @@ -0,0 +1,457 @@ +.wxParse { + color: #666; + font-family: Helvetica,sans-serif; + font-size: 28rpx; + line-height: 1.8; + margin: 0 5px; +} + +view { + overflow: auto; + word-break: break-all; +} + +.wxParse-inline { + display: inline; +} + +.wxParse-div,.wxParse-inline { + margin: 0; + padding: 0; +} + +.wxParse-h1 { + font-size: 2em; + margin: .67em 0; +} + +.wxParse-h2 { + font-size: 1.5em; + margin: .75em 0; +} + +.wxParse-h3 { + font-size: 1.17em; + margin: .83em 0; +} + +.wxParse-h4 { + margin: 1.12em 0; +} + +.wxParse-h5 { + font-size: .83em; + margin: 1.5em 0; +} + +.wxParse-h6 { + font-size: .75em; + margin: 1.67em 0; +} + +.wxParse-h1 { + font-size: 18px; + font-weight: 400; + margin-bottom: .9em; +} + +.wxParse-h2 { + font-size: 16px; +} + +.wxParse-h2,.wxParse-h3 { + font-weight: 400; + margin-bottom: .34em; +} + +.wxParse-h3 { + font-size: 15px; +} + +.wxParse-h4 { + font-size: 14px; + font-weight: 400; + margin-bottom: .24em; +} + +.wxParse-h5 { + font-size: 13px; + font-weight: 400; + margin-bottom: .14em; +} + +.wxParse-h6 { + font-size: 12px; + font-weight: 400; + margin-bottom: .04em; +} + +.wxParse-b,.wxParse-h1,.wxParse-h2,.wxParse-h3,.wxParse-h4,.wxParse-h5,.wxParse-h6,.wxParse-strong { + font-weight: bolder; +} + +.wxParse-address,.wxParse-cite,.wxParse-em,.wxParse-i,.wxParse-var { + font-style: italic; +} + +.wxParse-code,.wxParse-kbd,.wxParse-pre,.wxParse-samp,.wxParse-tt { + font-family: monospace; +} + +.wxParse-pre { + white-space: pre; +} + +.wxParse-big { + font-size: 1.17em; +} + +.wxParse-small,.wxParse-sub,.wxParse-sup { + font-size: .83em; +} + +.wxParse-sub { + vertical-align: sub; +} + +.wxParse-sup { + vertical-align: super; +} + +.wxParse-del,.wxParse-s,.wxParse-strike { + text-decoration: line-through; +} + +.wxParse-s,.wxParse-strong { + display: inline; +} + +.wxParse-a { + color: #00bfff; + overflow: auto; + word-break: break-all; +} + +.wxParse-video { + margin: 10px 0; + text-align: center; +} + +.wxParse-video-video { + width: 100%; +} + +.wxParse-img { + background-color: #efefef; + overflow: hidden; +} + +.wxParse-blockquote { + background: #f5f5f5; + border-left: 3px solid #dbdbdb; + font-family: Courier,Calibri,宋体; + margin: 0; + padding: 10px 0 10px 5px; +} + +.wxParse-code,.wxParse-wxxxcode-style { + background: #f5f5f5; + display: inline; +} + +.wxParse-ul { + margin: 20rpx 10rpx; +} + +.wxParse-li,.wxParse-li-inner { + align-items: baseline; + display: flex; + margin: 10rpx 0; +} + +.wxParse-li-text { + align-items: center; + line-height: 20px; +} + +.wxParse-li-circle { + background-color: #333; + display: inline-flex; + height: 5px; + margin-right: 5px; + width: 5px; +} + +.wxParse-li-square { + background-color: #333; +} + +.wxParse-li-ring,.wxParse-li-square { + display: inline-flex; + height: 10rpx; + margin-right: 5px; + width: 10rpx; +} + +.wxParse-li-ring { + background-color: #fff; + border: 2rpx solid #333; + border-radius: 50%; +} + +.wxParse-u { + text-decoration: underline; +} + +.wxParse-hide { + display: none; +} + +.WxEmojiView { + align-items: center; +} + +.wxEmoji { + height: 16px; + width: 16px; +} + +.wxParse-tr { + border-bottom: 1px solid #e0e0e0; + border-right: 1px solid #e0e0e0; + border-top: 1px solid #e0e0e0; + display: flex; +} + +.wxParse-td,.wxParse-th { + border-left: 1px solid #e0e0e0; + flex: 1; + font-size: 28rpx; + padding: 5px; + word-break: break-all; +} + +.wxParse-td:last { + border-top: 1px solid #e0e0e0; +} + +.wxParse-th { + background: #f0f0f0; + border-top: 1px solid #e0e0e0; +} + +.image { + height: 100%; + width: 100%; +} + +.cart-tab-item-btn { + background: #ff495e; + color: #fff; + display: block; + float: right; + font-size: 32rpx; + height: 100rpx; + line-height: 100rpx; + text-align: center; + width: 160rpx; +} + +.price { + margin-top: 10rpx; +} + +.colour-box { + background: #e64340; + color: #fff; + font-size: 26rpx; + line-height: 26rpx; + margin-right: 10rpx; + padding: 4rpx 8rpx; + text-align: center; +} + +.cart-tab-item { + width: 375rpx; +} + +.cart-tab-wrp { + background: #fff; + border-top: 1rpx solid #ddd; + bottom: 0rpx; + color: #000; + display: flex; + flex-direction: row; + height: 100rpx; + position: fixed; + width: 100%; + z-index: 10; +} + +.cart-tab-item { + line-height: 100rpx; + overflow: hidden; +} + +.cart-tab-item .cart-item-total-price { + float: left; +} + +.cart-item-total { + padding-left: 30rpx; +} + +.cart-item-total-price { + color: #ff495e; + font-size: 32rpx; + text-align: center; +} + +.cart-item-total-price em { + display: block; +} + +.cart-item-icon-wrp { + height: 90rpx; + position: absolute; + top: -4rpx; + width: 110rpx; +} + +.cart-item-icon { + height: 90rpx; + width: 90rpx; +} + +.dish-item { + background: #fff; + border-bottom: 1rpx solid #eee; + padding: 26rpx 0; + position: relative; + width: 100%; +} + +.dish-item-wrp { + display: flex; + flex-direction: row; + width: 100%; +} + +.dish-item-pic { + margin-left: 15px; + width: 100%; +} + +.dish-item-pic image { + background: #fff; + border: 1rpx solid #eee; + height: 200rpx; + margin: 0 auto; + width: 200rpx; +} + +.dish-item-info { + margin-right: 15px; + padding-left: 16rpx; + width: 68%; +} + +.dish-item-sales { + color: #ccc; + font-size: 20rpx; + line-height: 50rpx; +} + +.dish-item-money { + color: #ff495e; + font-size: 32rpx; + padding: 0 0 10rpx; +} + +.wx-goods_price .dish-item-money { + float: left; +} + +.wx-goods_price { + overflow: hidden; +} + +.flow-dete { + bottom: 25rpx; + position: absolute; + right: 30rpx; +} + +.flow-dete .icon-lajixiang { + color: #777; + font-size: 34rpx; +} + +.flow-btn-min { + background: #fff; + border: 1rpx solid #ccc; + border-radius: 5px; + color: #777; + font-size: 28rpx; + height: 30px; + line-height: 30px; + margin: 25rpx auto 0; + text-align: center; + width: 200rpx; +} + +@-webkit-keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +@keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +.tongzhitext { + margin-left: 10rpx; + margin-right: 80rpx; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.tongzhi-text { + animation: remindMessage 14s linear infinite; + display: block; +} + +.notice-wrap,.tongzhi-text { + color: #d09868; + font-size: 28rpx; + width: 100%; +} + +.notice-wrap { + background: #ffebda; + height: 60rpx; + line-height: 60rpx; +} + +.closeView { + font-size: 35rpx; + height: 45rpx; + line-height: 45rpx; + position: absolute; + right: 20rpx; + text-align: center; + top: 5rpx; + width: 45rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/gongzuo/index.js b/wx214944c362629fc7/pages/gongzuo/index.js new file mode 100644 index 0000000..5d7fd03 --- /dev/null +++ b/wx214944c362629fc7/pages/gongzuo/index.js @@ -0,0 +1,201 @@ +require("../../@babel/runtime/helpers/Arrayincludes"); + +var a = getApp(), t = require("../../wxParse/wxParse.js"); + +Page({ + data: { + imgList: [], + goodsNo: null, + fromData: null, + isShangJia: !1, + searchValue: "", + searchGoodsNoArray: [], + imageObjArray: [], + imageUrlArray: [], + cateObjArray: [], + indexCate: null, + colourObjList: [], + indexColour: null + }, + bindPickerChangeCate: function(a) { + var t = this.data.fromData; + t.category_id = this.data.cateObjArray[a.detail.value].category_id, this.setData({ + fromData: t, + indexCate: a.detail.value + }); + }, + bindPickerChangeColour: function(a) { + var t = this.data.fromData; + t.colour = this.data.colourObjList[a.detail.value].id, this.setData({ + fromData: t, + indexColour: a.detail.value + }); + }, + onLoad: function(a) { + var t = this, o = wx.getStorageSync("values"); + wx.getStorage({ + key: "phone", + success: function(a) { + "" != a.data && o.includes(a.data) || wx.showModal({ + title: "提示", + content: "无权访问", + success: function(a) { + a.confirm, wx.navigateBack({ + delta: 1 + }); + } + }), t.CategoryList(), t.ColourList(); + } + }); + }, + onShow: function() {}, + bindFormSubmit: function(t) { + var o = t.detail.value.jieshao, e = t.detail.value.goods_price, s = t.detail.value.l_a, i = t.detail.value.l_b, r = t.detail.value.stock_num; + console.log(r); + var n = this.data.fromData; + if (n.content = o, n.goods_price = e, n.l_b = i, n.l_a = s, n.goods_status = this.data.shangjiastatus, + null != n.colour && null != n.category_id) { + var l = {}, d = {}; + l.goods_id = n.goods_id, l.images = n.imageIdList, l.content = o, d.goods_no = this.data.goodsNo, + d.goods_price = e, d.l_b = i, d.l_a = s, d.stock_num = r, l.spec = d, l.colour = n.colour, + l.goods_status = n.goods_status, l.category_id = n.category_id, console.log(l), + wx.request({ + url: "https://ltwxminiapp.19year.cn/index.php?s=/api/goods/editGoods&wxapp_id=10001", + header: { + "content-type": "application/json" + }, + data: l, + method: "POST", + success: function(t) { + console.log(t.data), 1 == t.data.code ? a.showError("保存成功") : a.showError("保存失败"); + } + }); + } else a.showError("请选择分类与成色"); + }, + getSearchContent: function(t) { + var o = this, e = t.detail.value; + console.log(e), a._get("goods/likeGoodsNo", { + goods_no: e + }, function(a) { + console.log(a.data.list), o.setData({ + searchGoodsNoArray: a.data.list + }); + }), o.setData({ + searchValue: e + }); + }, + clearNo: function() { + this.setData({ + searchValue: "", + searchGoodsNoArray: [] + }); + }, + xuanze: function(t) { + var o = t.currentTarget.dataset.goodsId; + if (console.log(t.currentTarget.dataset.goodsId), o.length <= 0) return a.showError("没有选中数据"), + !1; + this.setData({ + searchValue: "", + searchGoodsNoArray: [] + }), this.getGoodsDetail(o); + }, + CategoryList: function() { + var t = this; + a._get("category/lists", {}, function(a) { + var o = a.data; + t.setData({ + cateObjArray: o.list + }); + }); + }, + ColourList: function() { + var t = this; + a._get("goods/getColourListV2", {}, function(a) { + var o = a.data; + t.setData({ + colourObjList: o.data + }); + }); + }, + onSaoMa: function() { + var t = this; + wx.scanCode({ + onlyFromCamera: !0, + scanType: [ "barCode" ], + success: function(a) { + t.getGoodsDetail(a.result); + }, + fail: function(t) { + a.showError(t.result + "扫码错误"); + } + }); + }, + getGoodsDetail: function(t) { + var o = this; + a._get("goods/infos", { + goods_no: t + }, function(a) { + var e = o.initGoodsDetailData(a.data); + o.setData(e), o.setData({ + goodsNo: t + }); + var s = [], i = []; + e.detail.image.forEach(function(a) { + s.push(a.file_path), i.push(a); + }), o.setData({ + imageUrlArray: s, + imageObjArray: i + }), console.log(e); + var r = { + imageIdList: [] + }; + r.goods_price = e.goods_price, r.l_a = e.l_a, r.l_b = e.l_b, r.content = o.delHtmlTag(e.detail.content), + r.goods_id = e.detail.goods_id, console.log(e.detail.category_id), o.setData({ + indexCate: null + }), o.data.cateObjArray.forEach(function(a, t) { + a.category_id == e.detail.category_id && (o.setData({ + indexCate: t + }), r.category_id = a.category_id); + }), console.log(e.detail.colour), o.setData({ + indexColour: null + }), o.data.colourObjList.forEach(function(a, t) { + a.id == parseInt(e.detail.colour) && (o.setData({ + indexColour: t + }), r.colour = a.id); + }), 10 == e.detail.goods_status.value ? (r.goods_status = 10, o.setData({ + isShangJia: !0, + fromData: r, + shangjiastatus: 10 + })) : (r.goods_status = 20, o.setData({ + isShangJia: !1, + fromData: r, + shangjiastatus: 20 + })); + }); + }, + initGoodsDetailData: function(a) { + return a.detail.content.length > 0 && t.wxParse("content", "html", a.detail.content, this, 0), + a.goods_sku_id = a.detail.spec[0].spec_sku_id, a.goods_price = a.detail.spec[0].goods_price, + a.l_a = a.detail.spec[0].l_a, a.l_b = a.detail.spec[0].l_b, a.line_price = a.detail.spec[0].line_price, + a.stock_num = a.detail.spec[0].stock_num, a; + }, + updateImageList: function(a) { + console.log("update", a); + var t = a.detail.list.map(function(a) { + return a.image_id; + }), o = this.data.fromData; + o.imageIdList = t, console.log(), this.setData({ + fromData: o + }); + }, + delHtmlTag: function(a) { + return a.replace(/<[^>]+>/g, ""); + }, + shangJiaSwitch: function(a) { + a.detail.value ? this.setData({ + shangjiastatus: 10 + }) : this.setData({ + shangjiastatus: 20 + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/gongzuo/index.json b/wx214944c362629fc7/pages/gongzuo/index.json new file mode 100644 index 0000000..7340808 --- /dev/null +++ b/wx214944c362629fc7/pages/gongzuo/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "工作台", + "usingComponents": { + "wxDragImg": "/components/imgDrag/imgDrag" + } +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/gongzuo/index.wxml b/wx214944c362629fc7/pages/gongzuo/index.wxml new file mode 100644 index 0000000..2632e93 --- /dev/null +++ b/wx214944c362629fc7/pages/gongzuo/index.wxml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + {{item.goods_no}} + + + + + 名称:{{detail.goods_name}} + + + 价 格:{{goods_price}} + + + 数 量:{{stock_num}} + + + 标 题:{{detail.goods_title.length>0?detail.goods_title:' '}} + + + 状 态:{{detail.goods_status.text}} + + +
+ + + + + + + + + + + + + + + + + + + + + + + 分类:{{cateObjArray[indexCate].name}} + + + + + + 成色:{{colourObjList[indexColour].name}} + + + + + + + + + + + + + + +
+
+ + 请先扫码或根据串号查询商品 + +
diff --git a/wx214944c362629fc7/pages/gongzuo/index.wxss b/wx214944c362629fc7/pages/gongzuo/index.wxss new file mode 100644 index 0000000..1473ec6 --- /dev/null +++ b/wx214944c362629fc7/pages/gongzuo/index.wxss @@ -0,0 +1,142 @@ +.saoma { + align-items: center; + background-color: #f70000; + border-radius: 98rpx; + color: #fff; + display: flex; + flex-direction: row; + justify-content: center; + margin-top: 10rpx; + width: 80%; +} + +.search-input-box { + background: #f7f7f7; + height: 64rpx; + margin-right: 10rpx; + width: auto; +} + +.search-input { + background: #fff; + border-radius: 5px 0 0 5px; + box-sizing: border-box; + overflow: hidden; + padding-left: 10rpx; + width: 100%; +} + +.search-input input { + font-size: 30rpx; + height: 64rpx; + line-height: 64rpx; +} + +.serch-button { + box-sizing: border-box; + width: 20%; +} + +.serch-button button { + border-radius: 0 5px 5px 0; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; +} + +.search-cate-box { + height: 70rpx; +} + +.search-cate { + position: relative; + top: 30%; +} + +.sub { + align-items: center; + background-color: #50f85e; + border-radius: 98rpx; + color: #fff; + display: flex; + flex-direction: row; + justify-content: center; + margin-top: 10rpx; + width: 80%; +} + +.ipt-wrap { + line-height: 100rpx; + min-height: 100rpx; +} + +.ipt-wrap label { + min-width: 120rpx; +} + +.goods-title { + color: #333; + overflow: hidden; + padding: 0 0rpx 0 0; +} + +.money-box,.money-box .num { + margin-top: 10rpx; +} + +.money-box .num { + color: #ff495e; + font-size: 40rpx; +} + +.money-box .del { + TEXT-DECORATION: line-through; + color: #999; + font-size: 24rpx; + margin-left: 6rpx; +} + +.center-text { + align-items: center; + justify-content: center; + padding-top: 25rpx; +} + +.center-text,.img_box { + display: flex; +} + +.img_box { + flex-wrap: wrap; + margin: 20rpx; + width: 100%; +} + +.img_item_i { + display: block; + height: 100%; + width: 100%; +} + +.add_icon { + display: block; + height: 50%; + width: 50%; +} + +.img_item { + border: 1px solid #c0ccda; + height: 210rpx; + margin-bottom: 2%; + margin-right: 2%; + position: relative; + width: 30%; +} + +.closeImv { + height: 50rpx; + position: absolute; + right: 0rpx; + top: 0rpx; + width: 50rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/goods/index.js b/wx214944c362629fc7/pages/goods/index.js new file mode 100644 index 0000000..0852742 --- /dev/null +++ b/wx214944c362629fc7/pages/goods/index.js @@ -0,0 +1,177 @@ +var t = require("../../@babel/runtime/helpers/typeof"), o = getApp(), e = require("../../wxParse/wxParse.js"); + +Page({ + data: { + nav_select: !1, + indicatorDots: !0, + autoplay: !0, + interval: 3e3, + duration: 800, + currentIndex: 1, + floorstatus: !1, + showView: !0, + detail: {}, + goods_price: 0, + line_price: 0, + stock_num: 0, + goods_num: 1, + goods_sku_id: 0, + cart_total_num: 0, + specData: {}, + colourList: [], + colour_id: 0, + storeInfo: {}, + notice_image: "" + }, + preview: function(t) { + var o = t.currentTarget.dataset.index; + console.log(o); + for (var e = [], a = 0; a < this.data.detail.image.length; a++) { + var s = this.data.detail.image[a]; + e.push(s.file_path); + } + console.log(e), console.log(this.data.detail.image), wx.previewImage({ + current: e[o], + urls: e + }); + }, + goods_spec_arr: [], + onLoad: function(t) { + this.data.goods_id = t.goods_id, this.getGoodsDetail(), this.getColourList(), this.getStoreInfo(); + }, + getColourList: function() { + var t = this; + o._get("goods/getColourList", {}, function(o) { + var e = o.data; + t.setData({ + colourList: e.list + }); + }); + }, + getStoreInfo: function() { + var t = this; + o._get("index/getStoreInfo", {}, function(o) { + var e = o.data; + console.log(e), t.setData({ + storeInfo: e.store, + notice_image: e.notice_image + }); + }); + }, + getGoodsDetail: function() { + var t = this; + o._get("goods/detail", { + goods_id: t.data.goods_id + }, function(o) { + var e = t.initGoodsDetailData(o.data); + t.setData(e); + }); + }, + initGoodsDetailData: function(t) { + return t.detail.content.length > 0 && e.wxParse("content", "html", t.detail.content, this, 0), + t.goods_sku_id = t.detail.spec[0].spec_sku_id, t.goods_price = t.detail.spec[0].goods_price, + t.line_price = t.detail.spec[0].line_price, t.stock_num = t.detail.spec[0].stock_num, + 20 == t.detail.spec_type && (t.specData = this.initManySpecData(t.specData)), t; + }, + initManySpecData: function(t) { + for (var o in t.spec_attr) for (var e in t.spec_attr[o].spec_items) e < 1 && (t.spec_attr[o].spec_items[0].checked = !0, + this.goods_spec_arr[o] = t.spec_attr[o].spec_items[0].item_id); + return t; + }, + modelTap: function(t) { + var o = t.currentTarget.dataset.attrIdx, e = t.currentTarget.dataset.itemIdx, a = this.data.specData; + for (var s in a.spec_attr) for (var i in a.spec_attr[s].spec_items) o == s && (a.spec_attr[s].spec_items[i].checked = !1, + e == i && (a.spec_attr[s].spec_items[e].checked = !0, this.goods_spec_arr[s] = a.spec_attr[s].spec_items[e].item_id)); + this.setData({ + specData: a + }), this.updateSpecGoods(); + }, + updateSpecGoods: function() { + var o = this.goods_spec_arr.join("_"), e = this.data.specData.spec_list.find(function(t) { + return t.spec_sku_id == o; + }); + "object" === t(e) && this.setData({ + goods_sku_id: e.spec_sku_id, + goods_price: e.form.goods_price, + line_price: e.form.line_price, + stock_num: e.form.stock_num + }); + }, + setCurrent: function(t) { + this.setData({ + currentIndex: t.detail.current + 1 + }); + }, + onChangeShowState: function() { + console.log(1111), console.log(this.data.showView), this.setData({ + showView: this.data.showView + }); + }, + goTop: function(t) { + this.setData({ + scrollTop: 0 + }); + }, + scroll: function(t) { + this.setData({ + floorstatus: t.detail.scrollTop > 200 + }); + }, + up: function() { + this.data.goods_num < this.data.stock_num && this.setData({ + goods_num: ++this.data.goods_num + }); + }, + down: function() { + this.data.goods_num > 1 && this.setData({ + goods_num: --this.data.goods_num + }); + }, + flowCart: function() { + wx.switchTab({ + url: "../flow/index" + }); + }, + toIndex: function() { + wx.switchTab({ + url: "../index/index" + }); + }, + submit: function(t) { + var e = this, a = t.currentTarget.dataset.type; + o._post_form("cart/check", { + goods_id: e.data.goods_id, + goods_num: e.data.goods_num, + goods_sku_id: e.data.goods_sku_id + }, function(t) { + if (1 != t.code) return o.showSuccess(t.msg), !1; + "buyNow" === a ? wx.navigateTo({ + url: "../flow/checkout?" + o.urlEncode({ + order_type: "buyNow", + goods_id: e.data.goods_id, + goods_num: e.data.goods_num, + goods_sku_id: e.data.goods_sku_id + }) + }) : "addCart" === a && o._post_form("cart/add", { + goods_id: e.data.goods_id, + goods_num: e.data.goods_num, + goods_sku_id: e.data.goods_sku_id + }, function(t) { + o.showSuccess(t.msg), e.setData(t.data); + }); + }); + }, + onShareAppMessage: function() { + return { + title: this.data.detail.goods_name + " " + this.data.detail.goods_title, + path: "/pages/goods/index?goods_id=" + this.data.goods_id + }; + }, + onShareTimeline: function(t) { + return { + title: this.data.detail.goods_name + " " + this.data.detail.goods_title, + path: "/pages/goods/index?goods_id=" + this.data.goods_id, + imageUrl: this.data.detail.image[0].file_path + }; + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/goods/index.json b/wx214944c362629fc7/pages/goods/index.json new file mode 100644 index 0000000..e564663 --- /dev/null +++ b/wx214944c362629fc7/pages/goods/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "商品详情", + "usingComponents": { + "shortcut": "/components/shortcut/shortcut" + } +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/goods/index.wxml b/wx214944c362629fc7/pages/goods/index.wxml new file mode 100644 index 0000000..c0884c5 --- /dev/null +++ b/wx214944c362629fc7/pages/goods/index.wxml @@ -0,0 +1,101 @@ + + + + + + + {{currentIndex}} + /{{detail.image.length}} + + + + + + {{colourList[detail.colour]}} + {{detail.goods_name}} + + + + {{detail.goods_title.length>0?detail.goods_title:' '}} + + + ¥{{goods_price}} + ¥{{line_price}} + + + 库存:{{stock_num}} + + + + + + + + 购买数量 + + + + + + + + + + + + {{storeInfo.notice}} + + + + + + + + + 商品描述 + + + + + + + + + + + + + + + + + {{cart_total_num}} + + + 加入购物车 + 立即购买 + + + + + + + diff --git a/wx214944c362629fc7/pages/goods/index.wxss b/wx214944c362629fc7/pages/goods/index.wxss new file mode 100644 index 0000000..4f9c8f0 --- /dev/null +++ b/wx214944c362629fc7/pages/goods/index.wxss @@ -0,0 +1,330 @@ +.slide-image { + background: #fff; +} + +.banner-box { + border-bottom: 1rpx solid #e4e4e4; + height: 750rpx; +} + +.user-orderJtou { + color: #999; + font-size: 26rpx; + margin-top: -9rpx; + position: absolute; + top: 50%; +} + +.goods-title { + color: #333; + overflow: hidden; + padding: 0 0rpx 0 0; +} + +.money-box,.money-box .num { + margin-top: 10rpx; +} + +.money-box .num { + color: #ff495e; + font-size: 40rpx; +} + +.money-box .del { + TEXT-DECORATION: line-through; + color: #999; + font-size: 24rpx; + margin-left: 6rpx; +} + +.goods-sales-box { + color: #888; +} + +.goods-sales-box .stock { + display: block; + text-align: right; +} + +.goods-property-box { + padding: 12px; + position: relative; +} + +.goods-property-jianTou { + margin-top: -13rpx; + position: absolute; + right: 0; + top: 50%; + width: 52rpx; +} + +.goods-property-jianTou image { + height: 100%; + width: 100%; +} + +.modal_cont_box { + border-top: 1rpx solid #eee; + padding: 20rpx 12px; +} + +.buy_number { + justify-content: space-between; +} + +.buyNumber { + background: #fff; + border-radius: 10rpx; + color: #888; + margin-bottom: 10rpx; +} + +.tmall-types.mb20 { + margin-bottom: 20rpx; +} + +.tipstxt { + color: #888; + font-size: 28rpx; + margin-bottom: 10rpx; +} + +.cartypeitem,.cartypelist { + display: inline-block; +} + +.cartypeitem { + background: #f3f2f8; + border: 1rpx solid #f3f2f8; + border-radius: 10rpx; + color: #444; + font-size: 31rpx; + height: 60rpx; + line-height: 60rpx; + margin: 0 20rpx 20rpx 0; + overflow: hidden; + padding: 0 30rpx; + position: relative; +} + +.cartypeitem.cur { + background: #ff495e; + border: 1rpx solid #ff495e; + color: #fff; +} + +.cartypeitem.cur:after { + bottom: 0; + content: ""; + display: inline-block; + height: 16rpx; + position: absolute; + right: 0; + width: 16rpx; +} + +.cartypeitem.disabled { + background: #eee; + border: 2rpx dashed #dedede; + color: #dedede; + cursor: not-allowed; +} + +.number-banner { + background: rgba(0,0,0,.3); + border-radius: 50rpx; + color: #fff; + font-size: 32rpx; + margin-top: -70rpx; + padding: 0 18rpx; + position: absolute; + right: 30rpx; +} + +.number-banner text:last-child { + color: hsla(0,0%,100%,.6); + font-size: 26rpx; +} + +.cart { + background-color: #fff; +} + +.order-number { + background-color: #f4a213; + color: #fff; + line-height: 46px; + text-align: center; + width: 50%; +} + +.order-number button { + background: none; + border: 0; + border-radius: 0; + color: #fff; + font-size: 34rpx; + line-height: inherit; + padding: 0; +} + +.order-number button::after { + border: none; + border-radius: 0; + box-sizing: border-box; + content: " "; + height: 0; + left: 0; + position: absolute; + top: 0; + transform: scale(0); + transform-origin: 0 0; + width: 0; +} + +.default-btn { + background-color: #ccc; + color: #fff; + line-height: 46px; + text-align: center; + width: 50%; +} + +.user-orderJtou-1 { + color: #999; + font-size: 26rpx; + position: absolute; + transform: rotate(-90deg); +} + +.user-orderJtou-1,.user-orderJtou-2 { + transition: all .2s; +} + +.user-orderJtou-2 { + transform: rotate(90deg); +} + +.flow_num { + background: #ff495e; + border-radius: 30rpx; + height: 30rpx; + min-width: 30rpx; + position: absolute; + right: 20rpx; + top: 10rpx; +} + +.goods-cont-li .wxParse-inline { + padding: 20rpx 10rpx; +} + +.goods-cont-li image { + display: block; + margin: 0 auto; + width: 100%; +} + +.goods-cont-li .wxParse-inline { + font-size: 30rpx; +} + +.comment-num { + color: #333; + font-size: 28rpx; + margin-top: -20rpx; + position: absolute; + right: 34px; + top: 50%; +} + +.top-nav-bar { + display: flex; + flex-wrap: wrap; + font-size: 31rpx; + padding: 12px; +} + +#top-nav-bar-true text { + border: 1rpx solid #ff495e; + color: #ff495e; +} + +#top-nav-bar-0 span { + color: #444; +} + +.footer-fixed .goods-fixed-icon { + background: #fff; + border-left: 1rpx solid #eee; + height: 92rpx; + margin: 0 auto; + padding: 0 6rpx; + position: relative; + width: 150rpx; +} + +.footer-fixed .goods-fixed-icon:first-child { + border-left: none; +} + +.footer-fixed .goods-fixed-icon image { + display: block; + height: 56rpx; + left: 0; + margin-left: 30rpx; + margin-top: 17rpx; + position: absolute; + top: 0; + width: 56rpx; +} + +.footer-fixed .goods-fixed-icon text { + color: #7a7e83; + font-size: 48rpx; +} + +.footer-fixed .goods-fixed-icon .bargain-icon { + height: 50rpx; +} + +.footer-fixed .goods-fixed-icon .bargain-icon image { + height: 50rpx; + margin-top: -40rpx; + width: 50rpx; +} + +.footer-fixed .goods-fixed-icon .bargain-home { + margin-top: 6rpx; + text-align: center; +} + +.footer-fixed .goods-fixed-icon .flow_num text { + color: #fff; + display: block; + font-size: 22rpx; + text-align: center; +} + +.footer-fixed .goods-fixed-icon .icon-shoucang { + font-size: 40rpx; +} + +.footer-fixed .goods-fixed-icon .s_cont { + color: #ff495e; +} + +.colour-box { + background: #e64340; + color: #fff; + font-size: 26rpx; + line-height: 26rpx; + margin-right: 10rpx; + padding: 4rpx 8rpx; + text-align: center; +} + +.goods-title { + margin-top: 8rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index/index.js b/wx214944c362629fc7/pages/index/index.js new file mode 100644 index 0000000..b5c9328 --- /dev/null +++ b/wx214944c362629fc7/pages/index/index.js @@ -0,0 +1,192 @@ +var t = require("../../@babel/runtime/helpers/defineProperty"), a = getApp(); + +Page({ + data: t({ + searchColor: "rgba(0,0,0,0.4)", + searchSize: "15", + searchName: "搜索商品", + pageTriggered: !1, + scrollHeight: null, + showView: !1, + arrange: "arrange", + sortType: "all", + sortPrice: !1, + sortColour: !1, + option: {}, + list: {}, + noList: !0, + no_more: !1, + page: 1, + searchValue: "", + cateList: [], + cate_id: 0, + colourList: [], + colour_id: 0, + hideNotice: !1, + storeInfo: {}, + tabTxt: "成色", + tab: !0 + }, "colour_id", 0), + onLoad: function(t) { + a.setTitle(); + var e = this; + e.setListHeight(), e.getCategoryList(), e.getColourList(), e.getStoreInfo(), e.setData({ + option: t + }, function() { + e.getGoodsList(!0); + }); + }, + onPullDownRefresh: function() { + var t = this; + wx.showLoading({ + title: "刷新中..." + }), setTimeout(function() { + t.onRefresh(); + }, 1e3), wx.showNavigationBarLoading(), this.setData({ + pageTriggered: !0, + page: 1 + }); + }, + onRefresh: function() { + var t = this; + t.getGoodsList(!0), setTimeout(function() { + wx.hideLoading(), wx.hideNavigationBarLoading(), t.setData({ + pageTriggered: !1 + }); + }, 500); + }, + filterTab: function(t) { + console.log(111), this.setData({ + tab: !this.data.tab, + page: 1 + }); + }, + filter: function(t) { + var a = t.currentTarget.dataset.id, e = t.currentTarget.dataset.txt, o = this.data.tabTxt; + o = e, this.setData({ + tab: !0, + tabTxt: o, + colour_id: a, + jiage_txt: e + }), this.getGoodsList(!0); + }, + getCategoryList: function() { + var t = this; + a._get("category/lists", {}, function(a) { + var e = a.data; + e.list.unshift({ + category_id: 0, + name: "全部" + }), t.setData({ + cateList: e.list + }); + }); + }, + getStoreInfo: function() { + var t = this; + a._get("index/getStoreInfo", {}, function(a) { + var e = a.data; + console.log(e), t.setData({ + storeInfo: e.store + }); + }); + }, + switchNotice: function() { + this.setData({ + hideNotice: !0 + }); + }, + getColourList: function() { + var t = this; + a._get("goods/getColourList", {}, function(a) { + var e = a.data; + t.setData({ + colourList: e.list + }); + }); + }, + getSearchContent: function(t) { + this.data.searchValue = t.detail.value; + }, + search: function() { + this.getGoodsList(!0); + }, + searchCate: function(t) { + console.log("栏目ID"), console.log(t.currentTarget.dataset.category_id), this.setData({ + cate_id: t.currentTarget.dataset.category_id, + page: 1 + }), this.getGoodsList(!0); + }, + getGoodsList: function(t, e) { + wx.showLoading({ + title: "刷新中..." + }), console.log(this.data.searchValue); + var o = this; + a._get("goods/lists", { + page: e || 1, + sortType: o.data.sortType, + sortPrice: o.data.sortPrice ? 1 : 0, + sortColour: o.data.sortColour ? 1 : 0, + category_id: o.data.cate_id || 0, + colour_id: o.data.colour_id || 0, + search: o.data.searchValue || "" + }, function(a) { + wx.hideLoading(), console.log(a); + var e = a.data.list, i = o.data.list; + !0 === t || void 0 === i.data ? o.setData({ + list: e, + noList: !1 + }) : o.setData({ + "list.data": i.data.concat(e.data) + }); + }); + }, + setListHeight: function() { + var t = this; + wx.getSystemInfo({ + success: function(a) { + t.setData({ + scrollHeight: a.windowHeight - 160 + }); + } + }); + }, + switchSortType: function(t) { + var a = this, e = t.currentTarget.dataset.type, o = "price" !== e || !a.data.sortPrice, i = "colour" !== e || !a.data.sortColour; + a.setData({ + list: {}, + page: 1, + sortType: e, + sortPrice: o, + sortColour: i, + tab: !0 + }, function() { + a.getGoodsList(!0); + }); + }, + toSynthesize: function(t) { + wx.navigateTo({ + url: "../category/screen?objectId=" + }); + }, + onChangeShowState: function() { + this.setData({ + showView: !this.data.showView, + arrange: this.data.arrange ? "" : "arrange" + }); + }, + bindDownLoad: function() { + if (console.log("this.data.page", this.data.page), console.log("this.data.list.last_page", this.data.list.last_page), + this.data.page >= this.data.list.last_page) return this.setData({ + no_more: !0 + }), !1; + this.getGoodsList(!1, ++this.data.page); + }, + onShareAppMessage: function() { + return { + title: "小程序首页", + desc: "", + path: "/pages/index/index" + }; + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index/index.json b/wx214944c362629fc7/pages/index/index.json new file mode 100644 index 0000000..3928faa --- /dev/null +++ b/wx214944c362629fc7/pages/index/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index/index.wxml b/wx214944c362629fc7/pages/index/index.wxml new file mode 100644 index 0000000..64d9204 --- /dev/null +++ b/wx214944c362629fc7/pages/index/index.wxml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.name}} + + + + + + + + + 发布时间 + + + 价格 + + + + + {{tabTxt}} + + + + + + + + + + + + + + + + {{colourList[item.colour]}} + {{item.goods_name}} + + {{item.goods_title.length>0?item.goods_title:' '}} + ¥{{item.goods_min_price}} {{item.goods_sku.line_price}} + + + + + + + + + + + + + + 亲, 没有相关内容 + + diff --git a/wx214944c362629fc7/pages/index/index.wxss b/wx214944c362629fc7/pages/index/index.wxss new file mode 100644 index 0000000..2eee647 --- /dev/null +++ b/wx214944c362629fc7/pages/index/index.wxss @@ -0,0 +1,358 @@ +.store_nav_cont { + padding: 10px 0; +} + +.store_nav_cont #list-true { + color: #ff495e; + font-size: 28rpx; +} + +.store_nav_cont #list-0 { + color: #333; + font-size: 28rpx; +} + +.store_nav_cont #list-0 .icon-fenlei { + color: #777; + font-size: 28rpx; + padding-left: 8rpx; +} + +.store_nav_cont #list-true .icon-fenlei { + color: #ff495e; + font-size: 28rpx; + padding-left: 8rpx; +} + +.price { + margin-top: 10rpx; +} + +.title { + height: 75rpx!important; +} + +.store_nav_cont #list-0 .top_jiantou,.store_nav_cont #list-true .top_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -16rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-0 .bot_jiantou,.store_nav_cont #list-true .bot_jiantou { + color: #777; + font-size: 18rpx; + margin-top: -2rpx; + position: absolute; + right: 52rpx; + top: 50%; +} + +.store_nav_cont #list-true .bot_jiantou.active,.store_nav_cont #list-true .top_jiantou.active { + color: #ff495e; +} + +.container { + position: relative; +} + +.cate-btn { + background: #ff495e; + bottom: 18rpx; + color: #fff; + font-size: 20rpx; + padding: 4px 18rpx; + right: 18rpx; +} + +.index-cont-search icon { + left: 0; + margin-left: 20rpx; +} + +.index-search-box { + background: #fff; + border-bottom: 1px solid #eee; + left: 0rpx; + padding: 18rpx 13rpx; + position: fixed; + right: 0rpx; + top: 1rpx; + z-index: 999; +} + +.index-search { + background: #fff; + border-bottom: 0; + border-radius: 50rpx; + box-sizing: border-box; + color: #999; + font-size: 32rpx; + height: 64rpx; + line-height: 64rpx; + margin: 0 10rpx; + overflow: hidden; + position: relative; +} + +.list-right { + width: 60rpx; +} + +.list-right text { + font-size: 40rpx; + height: 64rpx; + line-height: 64rpx; +} + +.list-header { + left: 0; + position: fixed; + right: 0; + top: 1rpx; +} + +.no-more { + color: #737373; + margin: 10px 0; + text-align: center; +} + +.category-list { + overflow: hidden; +} + +.category-list .list { + box-sizing: border-box; + float: left; + width: 50%; +} + +.category-list .list:nth-child(2n) { + border-bottom: 4px solid #f7f7f7; + border-left: 2px solid #f7f7f7; +} + +.category-list .list:nth-child(2n-1) { + border-bottom: 4px solid #f7f7f7; + border-right: 2px solid #f7f7f7; +} + +.category-list.arrange .list { + border-bottom: 1rpx solid #f7f7f7; + overflow: hidden; + padding: 15rpx; + width: 100%; +} + +.category-list.arrange .list .left { + float: left; + width: 35%; +} + +.category-list.arrange .list .right { + float: left; + width: 65%; +} + +.category-list.arrange .list .left .img image { + height: 220rpx; + width: 220rpx; +} + +.search-input-box { + background: #f7f7f7; + height: 64rpx; + margin-right: 10rpx; + width: auto; +} + +.search-input { + border-radius: 5px 0 0 5px; + box-sizing: border-box; + overflow: hidden; + padding-left: 10rpx; + width: 80%; +} + +.search-input input { + font-size: 30rpx; + height: 64rpx; + line-height: 64rpx; +} + +.serch-button { + box-sizing: border-box; + width: 20%; +} + +.serch-button button { + border-radius: 0 5px 5px 0; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; +} + +.search-cate-box { + height: 70rpx; +} + +.search-cate { + position: relative; + top: 30%; +} + +.page-column { + background-color: #f7f7f7; + border-radius: 6rpx; + margin: 0 20rpx; + padding: 10rpx 0rpx!important; + text-align: center; +} + +.search-cate-activity { + background-color: #e64340; + color: #fff; +} + +.colour-box { + background: #e64340; + color: #fff; + font-size: 26rpx; + line-height: 26rpx; + margin-right: 10rpx; + padding: 4rpx 8rpx; + text-align: center; +} + +@-webkit-keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +@keyframes remindMessage { + 0% { + -webkit-transform: translateX(90%); + } + + 100% { + -webkit-transform: translateX(-180%); + } +} + +.tongzhitext { + margin-left: 10rpx; + margin-right: 80rpx; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.tongzhi-text { + animation: remindMessage 14s linear infinite; + display: block; +} + +.notice-wrap,.tongzhi-text { + color: #d09868; + font-size: 28rpx; + width: 100%; +} + +.notice-wrap { + background: #ffebda; + height: 60rpx; + line-height: 60rpx; +} + +.closeView { + font-size: 35rpx; + height: 45rpx; + line-height: 45rpx; + position: absolute; + right: 20rpx; + text-align: center; + top: 5rpx; + width: 45rpx; +} + +.clear { + clear: both; + overflow: hidden; +} + +.tabTit { + background: #fff; + border-bottom: 1px solid #eee; + font-size: 15px; + height: 90rpx; + line-height: 90rpx; + position: fixed; + text-align: center; + top: 0; + width: 750rpx; + z-index: 1; +} + +.tabTit .active { + background: #fff; + color: #e64340; +} + +.tabTit .active image { + background: none; + transform: rotate(180deg); +} + +.tabTit image { + height: 26rpx; + margin-left: 5px; + vertical-align: middle; + width: 26rpx; +} + +.tabLayer { + background: #fff; + border-bottom: 1px solid #eee; + box-shadow: 0 5px 5px rgba(0,0,0,.15); + overflow: hidden; + padding-bottom: 40rpx; + position: fixed; + text-align: center; + top: 340rpx; + width: 750rpx; + z-index: 1; +} + +.tabLayer text { + border: 1px solid #eee; + float: left; + font-size: 15px; + height: 60rpx; + line-height: 60rpx; + margin: 20rpx 0 0 26rpx; + width: 210rpx; +} + +.tabLayer .active { + border-color: #e64340; + color: #e64340; +} + +.flex1 { + display: block; + flex: 1; + overflow: hidden; +} + +.box { + display: -ms-flexbox; + display: flex; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index_back/components/banner/banner.wxml b/wx214944c362629fc7/pages/index_back/components/banner/banner.wxml new file mode 100644 index 0000000..127d4f4 --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/components/banner/banner.wxml @@ -0,0 +1,9 @@ + + + diff --git a/wx214944c362629fc7/pages/index_back/components/banner/banner.wxss b/wx214944c362629fc7/pages/index_back/components/banner/banner.wxss new file mode 100644 index 0000000..66964b3 --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/components/banner/banner.wxss @@ -0,0 +1,32 @@ +.diy-banner { + position: relative; +} + +.diy-banner .linear { + background: linear-gradient(#111,transparent); + height: 3.4rem; + left: 0; + opacity: .6; + position: absolute; + top: 0; + width: 100%; + z-index: 9; +} + +.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal { + margin-bottom: 2rpx; +} + +.swiper-box .wx-swiper-dot { + height: 20rpx; + width: 20rpx; +} + +.swiper-box.dot-rectangle .wx-swiper-dot { + border-radius: unset; + width: 30rpx; +} + +.swiper-box.dot-square .wx-swiper-dot { + border-radius: unset; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index_back/components/search/search.wxml b/wx214944c362629fc7/pages/index_back/components/search/search.wxml new file mode 100644 index 0000000..3b39fb3 --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/components/search/search.wxml @@ -0,0 +1,10 @@ + + + + + + {{item.params.placeholder}} + + + + diff --git a/wx214944c362629fc7/pages/index_back/components/search/search.wxss b/wx214944c362629fc7/pages/index_back/components/search/search.wxss new file mode 100644 index 0000000..60c5a5e --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/components/search/search.wxss @@ -0,0 +1,43 @@ +.diy-search-box { + background: #f1f1f2; + padding: 10px 24rpx; + position: unset; +} + +.diy-search-box .diy-search { + background: #fff; + border-bottom: 0; + border-radius: unset; + box-sizing: border-box; + color: #fff; + line-height: 60rpx; + margin: 0 auto; + overflow: hidden; + padding: 0 10px; + position: relative; + width: 90%; +} + +.diy-search-box .diy-search .cont .icon-sousuo { + margin-right: 10rpx; +} + +.diy-search-box text { + color: #999; +} + +.diy-search-box .diy-search.angle-radius { + border-radius: 5px; +} + +.diy-search-box .diy-search.angle-round { + border-radius: 80rpx; +} + +.diy-search-box .diy-search.text-center { + text-align: center; +} + +.diy-search-box .diy-search.text-right { + text-align: right; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index_back/index.js b/wx214944c362629fc7/pages/index_back/index.js new file mode 100644 index 0000000..c07cc48 --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/index.js @@ -0,0 +1,61 @@ +var t = getApp(); + +Page({ + data: { + indicatorDots: !0, + autoplay: !0, + interval: 3e3, + duration: 800, + imgHeights: {}, + imgCurrent: {}, + items: {}, + newest: {}, + best: {}, + scrollTop: 0 + }, + onLoad: function() { + t.setTitle(), t.setNavigationBar(), this.getIndexData(); + }, + getIndexData: function() { + var a = this; + t._get("index/page", {}, function(t) { + a.setData(t.data); + }); + }, + imagesHeight: function(t) { + var a = t.target.dataset.id, e = t.target.dataset.itemKey, i = 750 / (t.detail.width / t.detail.height), s = this.data.imgHeights; + void 0 === s[e] && (s[e] = {}), s[e][a] = i; + var n = this.data.imgCurrent; + void 0 === n[e] && (n[e] = Object.keys(this.data.items[e].data)[0]), this.setData({ + imgHeights: s, + imgCurrent: n + }); + }, + bindChange: function(t) { + var a = t.target.dataset.itemKey, e = this.data.imgCurrent; + e[a] = t.detail.currentItemId, this.setData({ + imgCurrent: e + }); + }, + goTop: function(t) { + this.setData({ + scrollTop: 0 + }); + }, + scroll: function(t) { + this.setData({ + indexSearch: t.detail.scrollTop + }), t.detail.scrollTop > 300 ? this.setData({ + floorstatus: !0 + }) : this.setData({ + floorstatus: !1 + }); + }, + onShareAppMessage: function() { + return { + title: "小程序首页", + desc: "", + path: "/pages/index/index" + }; + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index_back/index.json b/wx214944c362629fc7/pages/index_back/index.json new file mode 100644 index 0000000..2b26880 --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/index.json @@ -0,0 +1,4 @@ +{ + "enablePullDownRefresh": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/index_back/index.wxml b/wx214944c362629fc7/pages/index_back/index.wxml new file mode 100644 index 0000000..a0b1261 --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/index.wxml @@ -0,0 +1,53 @@ + + + + + + + + 新品推荐 + + + + + + + + + + {{item.goods_name}} + + ¥{{item.spec[0].goods_price}} + + + + + + + 猜您喜欢 + + + + + + + + + + + + {{item.goods_name}} + ¥{{item.spec[0].goods_price}} + + + + + + 我是有底线的 + + + + + + + diff --git a/wx214944c362629fc7/pages/index_back/index.wxss b/wx214944c362629fc7/pages/index_back/index.wxss new file mode 100644 index 0000000..39b14d1 --- /dev/null +++ b/wx214944c362629fc7/pages/index_back/index.wxss @@ -0,0 +1,110 @@ +.diy-search-box { + background: #f1f1f2; + padding: 10px 24rpx; + position: unset; +} + +.diy-search-box .diy-search { + background: #fff; + border-bottom: 0; + border-radius: unset; + box-sizing: border-box; + color: #fff; + line-height: 60rpx; + margin: 0 auto; + overflow: hidden; + padding: 0 10px; + position: relative; + width: 90%; +} + +.diy-search-box .diy-search .cont .icon-sousuo { + margin-right: 10rpx; +} + +.diy-search-box text { + color: #999; +} + +.diy-search-box .diy-search.angle-radius { + border-radius: 5px; +} + +.diy-search-box .diy-search.angle-round { + border-radius: 80rpx; +} + +.diy-search-box .diy-search.text-center { + text-align: center; +} + +.diy-search-box .diy-search.text-right { + text-align: right; +} + +.diy-banner { + position: relative; +} + +.diy-banner .linear { + background: linear-gradient(#111,transparent); + height: 3.4rem; + left: 0; + opacity: .6; + position: absolute; + top: 0; + width: 100%; + z-index: 9; +} + +.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal { + margin-bottom: 2rpx; +} + +.swiper-box .wx-swiper-dot { + height: 20rpx; + width: 20rpx; +} + +.swiper-box.dot-rectangle .wx-swiper-dot { + border-radius: unset; + width: 30rpx; +} + +.swiper-box.dot-square .wx-swiper-dot { + border-radius: unset; +} + +.title-hrbg { + color: #888; + height: 80rpx; + line-height: 80rpx; + margin-top: 30rpx; + overflow: hidden; + position: relative; + text-align: center; + z-index: 1; +} + +.title-hrbg .cont { + background: #f7f7f7; + font-size: 28rpx; + padding: 1rem .6rem; + z-index: 10; +} + +.title-hrbg .cont .icon-huo { + padding-right: 10rpx; +} + +.title-hrbg .hr { + background: #ddd; + border: 0; + height: 1rpx; + left: 10%; + margin-top: 1px; + position: absolute; + right: 10%; + top: 50%; + z-index: -1; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/login/login.js b/wx214944c362629fc7/pages/login/login.js new file mode 100644 index 0000000..3806b1c --- /dev/null +++ b/wx214944c362629fc7/pages/login/login.js @@ -0,0 +1,39 @@ +var o = getApp(); + +Page({ + data: {}, + onLoad: function(o) {}, + getUserInfo: function(e) { + var n = this; + o.getUserInfo(e, function() { + n.onNavigateBack(); + }); + }, + getUserProfile: function() { + console.log("getUserProfile"); + var e = this; + try { + wx.getUserProfile({ + lang: "zh_CN", + desc: "获取用户相关信息", + success: function(n) { + var t = n.userInfo; + console.log("用户同意了授权"), console.log("userInfo:", t), o.getUserInfo(t, function() { + e.onNavigateBack(1); + }); + }, + fail: function() { + console.log("用户拒绝了授权"); + } + }); + } catch (e) { + console.log("error:", e.message), "wx.getUserProfile is not a function" === e.message ? o.showError("wx.getUserProfile 接口无法使用,请升级到最新版微信") : o.showError(error.message); + } + }, + onNotLogin: function() { + this.onNavigateBack(); + }, + onNavigateBack: function() { + wx.navigateBack(); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/login/login.json b/wx214944c362629fc7/pages/login/login.json new file mode 100644 index 0000000..c9ab6a8 --- /dev/null +++ b/wx214944c362629fc7/pages/login/login.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "授权登录", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/login/login.wxml b/wx214944c362629fc7/pages/login/login.wxml new file mode 100644 index 0000000..32a0dee --- /dev/null +++ b/wx214944c362629fc7/pages/login/login.wxml @@ -0,0 +1,15 @@ + + + + + + + 申请获取以下权限 + 获得你的公开信息(昵称、头像等) + + + diff --git a/wx214944c362629fc7/pages/login/login.wxss b/wx214944c362629fc7/pages/login/login.wxss new file mode 100644 index 0000000..e786745 --- /dev/null +++ b/wx214944c362629fc7/pages/login/login.wxss @@ -0,0 +1,66 @@ +page { + background: #fff; + font-size: 32rpx; +} + +.container { + padding: 0 60rpx; +} + +.wechatapp { + border-bottom: 1rpx solid #e3e3e3; + margin-bottom: 72rpx; + padding: 80rpx 0 48rpx; + text-align: center; +} + +.wechatapp .header { + border: 2px solid #fff; + border-radius: 50%; + box-shadow: 1px 0 5px rgba(50,50,50,.3); + height: 190rpx; + margin: 0rpx auto 0; + overflow: hidden; + width: 190rpx; +} + +.auth-title { + color: #585858; + font-size: 34rpx; + margin-bottom: 40rpx; +} + +.auth-subtitle { + color: #888; + font-size: 28rpx; + margin-bottom: 88rpx; +} + +.login-btn { + padding: 0 20rpx; +} + +.login-btn button { + background: #04be01; + border-radius: 999rpx; + color: #fff; + font-size: 30rpx; + height: 88rpx; + line-height: 88rpx; + text-align: center; +} + +.no-login-btn { + margin-top: 20rpx; + padding: 0 20rpx; +} + +.no-login-btn button { + background: #dfdfdf; + border-radius: 999rpx; + color: #fff; + font-size: 30rpx; + height: 88rpx; + line-height: 88rpx; + text-align: center; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/order/detail.js b/wx214944c362629fc7/pages/order/detail.js new file mode 100644 index 0000000..280b53b --- /dev/null +++ b/wx214944c362629fc7/pages/order/detail.js @@ -0,0 +1,94 @@ +var t = getApp(); + +Page({ + data: { + order_id: null, + order: {}, + utype: 0 + }, + onLoad: function(t) { + this.data.order_id = t.order_id, this.getOrderDetail(t.order_id), this.getUserDetail(); + }, + onShow: function() { + this.getUserDetail(); + }, + getOrderDetail: function(e) { + var r = this; + t._get("user.order/detail", { + order_id: e + }, function(t) { + r.setData(t.data); + }); + }, + getUserDetail: function() { + var e = this; + t._get("user.index/detail", {}, function(t) { + console.log(t), e.setData({ + utype: t.data.userInfo.utype + }); + }); + }, + goodsDetail: function(t) { + var e = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../goods/index?goods_id=" + e + }); + }, + cancelOrder: function(e) { + var r = this.data.order_id; + wx.showModal({ + title: "提示", + content: "确认取消订单?", + success: function(e) { + e.confirm && t._post_form("user.order/cancel", { + order_id: r + }, function(t) { + wx.navigateBack(); + }); + } + }); + }, + aftermarketOrder: function(t) { + var e = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../aftermarket/create?order_goods_id=" + e + }); + }, + payOrder: function(e) { + var r = this, a = r.data.order_id; + wx.showLoading({ + title: "正在处理..." + }), t._post_form("user.order/pay", { + order_id: a + }, function(e) { + if (-10 === e.code) return t.showError(e.msg), !1; + wx.requestPayment({ + timeStamp: e.data.timeStamp, + nonceStr: e.data.nonceStr, + package: "prepay_id=" + e.data.prepay_id, + signType: "MD5", + paySign: e.data.paySign, + success: function(t) { + r.getOrderDetail(a); + }, + fail: function() { + t.showError("订单未支付"); + } + }); + }); + }, + receipt: function(e) { + var r = this, a = r.data.order_id; + wx.showModal({ + title: "提示", + content: "确认收到商品?", + success: function(e) { + e.confirm && t._post_form("user.order/receipt", { + order_id: a + }, function(t) { + r.getOrderDetail(a); + }); + } + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/order/detail.json b/wx214944c362629fc7/pages/order/detail.json new file mode 100644 index 0000000..a4c1f3d --- /dev/null +++ b/wx214944c362629fc7/pages/order/detail.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "订单详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/order/detail.wxml b/wx214944c362629fc7/pages/order/detail.wxml new file mode 100644 index 0000000..76a0f10 --- /dev/null +++ b/wx214944c362629fc7/pages/order/detail.wxml @@ -0,0 +1,98 @@ + + + + + + {{order.address.name}} {{order.address.phone}} + + {{order.address.region.province}} {{order.address.region.city}} {{order.address.region.region}} {{order.address.detail}} + + + + + + 快递公司: {{order.express_company}} + + + 快递单号: {{order.express_no}} + + + + + + + 商品列表 + + + {{order.pay_status.text}} + {{order.delivery_status.text}} + {{order.receipt_status.text}} + {{order.order_status.text}} + + + + + + + 订单号:{{order.order_no}} + + + {{order.create_time}} + + + + + + + + + + + {{item.goods_name}} + {{item.goods_attr}} + + ¥{{item.goods_price}} + ¥{{item.l_a}} + ¥{{item.l_b}} + ×{{item.total_num}} + + + + 申请售后 + + + 售后详情 + + + + + + + 共{{order.goods.length}}件商品,合计: {{order.total_price}} + + + + + 订单金额 + + + 商品金额: + ¥{{order.total_price}} + + + 应付金额: + ¥{{order.pay_price}} + + + + + + + + + 确认收货 + + + diff --git a/wx214944c362629fc7/pages/order/detail.wxss b/wx214944c362629fc7/pages/order/detail.wxss new file mode 100644 index 0000000..3d2e08a --- /dev/null +++ b/wx214944c362629fc7/pages/order/detail.wxss @@ -0,0 +1,140 @@ +.flow-distribution { + border-bottom: 1rpx solid #eee; + padding: 18rpx 0; +} + +.flow-distribution .flow-dis { + font-size: 30rpx; +} + +.flow-distribution-left { + flex: 14; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.flow-distribution-left .m-l { + color: #333; + float: right; +} + +.flow-distribution-right { + flex: 1; +} + +.flow-distribution image { + float: right; + height: 30rpx; + margin-top: 6rpx; + width: 30rpx; +} + +.flow-message-box { + padding: 20rpx 15px; + position: relative; +} + +.flow-message-box .flow-message-title { + color: #777; +} + +.flow-message-box textarea { + border-bottom: 1rpx solid #eee; + height: 100rpx; + margin-top: 10rpx; + padding: 10rpx 0; + width: 100%; +} + +.flow-message-box .flow-message-num { + bottom: 34rpx; + color: #777; + font-size: 26rpx; + position: absolute; + right: 30rpx; +} + +.flow-distribution .flow-dis { + padding-right: 15px; +} + +.flow-message-box { + border-bottom: 1rpx solid #f1f1f1; +} + +.flow-message-box .cont { + color: #000; + padding: 10px 0; +} + +.order-cont { + justify-content: space-between; +} + +.order-cont .order-num text,.order-cont .time { + color: #888; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-header { + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; +} + +.order-header text { + font-size: 28rpx; +} + +.order-header text.title { + color: #333; +} + +.flow-list .header { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + padding: 15rpx 0; + position: relative; +} + +.flow-list .header text { + font-size: 32rpx; + padding-left: 80rpx; +} + +.flow-list .header image { + height: 37rpx; + left: 15px; + margin-top: -18rpx; + position: absolute; + top: 50%; + width: 34rpx; +} + +.chackout-left-detail,.chackout-right-detail { + color: #333; + font-size: 34rpx; +} + +.chackout-left-detail { + line-height: 44px; +} + +.btn-main1 { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/order/index.js b/wx214944c362629fc7/pages/order/index.js new file mode 100644 index 0000000..6556198 --- /dev/null +++ b/wx214944c362629fc7/pages/order/index.js @@ -0,0 +1,93 @@ +var t = getApp(); + +Page({ + data: { + dataType: "all", + list: [] + }, + onLoad: function(t) { + this.data.dataType = t.type || "all", this.setData({ + dataType: this.data.dataType + }); + }, + onShow: function() { + this.getOrderList(this.data.dataType); + }, + getOrderList: function(a) { + var e = this; + t._get("user.order/lists", { + dataType: a + }, function(t) { + e.setData(t.data), t.data.list.length && wx.pageScrollTo({ + scrollTop: 0 + }); + }); + }, + bindHeaderTap: function(t) { + this.setData({ + dataType: t.target.dataset.type + }), this.getOrderList(t.target.dataset.type); + }, + cancelOrder: function(a) { + var e = this, r = a.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认取消订单?", + success: function(a) { + a.confirm && t._post_form("user.order/cancel", { + order_id: r + }, function(t) { + e.getOrderList(e.data.dataType); + }); + } + }); + }, + receipt: function(a) { + var e = this, r = a.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确认收到商品?", + success: function(a) { + a.confirm && t._post_form("user.order/receipt", { + order_id: r + }, function(t) { + e.getOrderList(e.data.dataType); + }); + } + }); + }, + payOrder: function(a) { + var e = a.currentTarget.dataset.id; + wx.showLoading({ + title: "正在处理..." + }), t._post_form("user.order/pay", { + order_id: e + }, function(a) { + if (-10 === a.code) return t.showError(a.msg), !1; + wx.requestPayment({ + timeStamp: a.data.timeStamp, + nonceStr: a.data.nonceStr, + package: "prepay_id=" + a.data.prepay_id, + signType: "MD5", + paySign: a.data.paySign, + success: function(t) { + wx.navigateTo({ + url: "../order/detail?order_id=" + e + }); + }, + fail: function() { + t.showError("订单未支付"); + } + }); + }); + }, + detail: function(t) { + var a = t.currentTarget.dataset.id; + wx.navigateTo({ + url: "../order/detail?order_id=" + a + }); + }, + onPullDownRefresh: function() { + wx.stopPullDownRefresh(); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/order/index.json b/wx214944c362629fc7/pages/order/index.json new file mode 100644 index 0000000..f1612ce --- /dev/null +++ b/wx214944c362629fc7/pages/order/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "我的订单", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/order/index.wxml b/wx214944c362629fc7/pages/order/index.wxml new file mode 100644 index 0000000..a3d9a33 --- /dev/null +++ b/wx214944c362629fc7/pages/order/index.wxml @@ -0,0 +1,84 @@ + + + + 全部订单 + 待付款 + 待发货 + 待收货 + + + + + + + + + 商品列表 + + + {{item.pay_status.text}} + {{item.delivery_status.text}} + {{item.receipt_status.text}} + {{item.order_status.text}} + + + + + + + 订单号:{{item.order_no}} + + + {{item.create_time}} + + + + + + + + + + + + + + + 共{{item.goods.length}}件 + + + + + + + + + + 合计: + ¥{{item.pay_price}} + + + + + + + + + 确认收货 + + + + + + + + + + + 亲,您还没有订单信息哦! + + + + + + diff --git a/wx214944c362629fc7/pages/order/index.wxss b/wx214944c362629fc7/pages/order/index.wxss new file mode 100644 index 0000000..dd65cbb --- /dev/null +++ b/wx214944c362629fc7/pages/order/index.wxss @@ -0,0 +1,151 @@ +.header { + background: #fff; + border-bottom: 1rpx solid #e4e4e4; + display: flex; + height: 44px; + line-height: 44px; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.header view { + flex: 1; + text-align: center; +} + +.header .active { + color: #fd4a5f; +} + +.wrapper { + margin-top: 54px; +} + +.order-box { + padding: 0 15px; +} + +.order-header { + padding-top: 10rpx; +} + +.order-header .title { + color: #333; + font-size: 30rpx; +} + +.order-header .cont { + color: #fd4a5f; + font-size: 30rpx; +} + +.order-cont { + justify-content: space-between; + padding: 15rpx 0; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-shop { + padding: 16rpx 0; +} + +.order-shop-left,.order-shop-left image { + background: #fff; + display: inline-block; + height: 160rpx; + margin-right: 15rpx; + width: 160rpx; +} + +.order-shop .num { + float: right; +} + +.order-btn { + padding: 18rpx 0; +} + +.order-btn .order-left { + flex: 3; +} + +.order-btn .order-left .text,.order-btn .order-left text { + font-size: 30rpx; +} + +.order-btn .order-left .text { + color: #777; +} + +.order-btn .order-right { + flex: 1.5; +} + +.order-list-box .left { + flex: 4; + overflow: hidden; + position: relative; +} + +.order-list-box .right { + flex: 1; +} + +.goods-number { + color: #777; + font-size: 28rpx; + position: absolute; + right: 12px; + top: 35%; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; +} + +.btn-default,.btn-main { + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.btn-main { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + margin-left: 10rpx; +} + +.user-orderJtou { + color: #888; + font-size: 24rpx; + margin-top: -20rpx; + position: absolute; + right: 0; + top: 50%; +} + +.order-img_list { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + border-top: 1rpx solid #f1f1f1; +} + +.order-right-name { + color: #555; + font-size: 30rpx; + left: 180rpx; + line-height: 1.6; + margin-top: -46rpx; + position: absolute; + top: 50%; + width: 100%; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/pays/pays.js b/wx214944c362629fc7/pages/pays/pays.js new file mode 100644 index 0000000..014766f --- /dev/null +++ b/wx214944c362629fc7/pages/pays/pays.js @@ -0,0 +1,35 @@ +var t = getApp(); + +Page({ + data: { + imageUrlList: [] + }, + preview: function(t) { + var a = t.currentTarget.dataset.src; + console.log(a); + var e = this.data.imageUrlList; + console.log(e), wx.previewImage({ + current: a, + urls: e + }); + }, + pays: function() { + var a = this; + t._get("index/payList", {}, function(t) { + var e = t.data, r = []; + e.res.pays.forEach(function(t) { + r.push(t.url); + }), a.setData(e), a.setData({ + imageUrlList: r + }); + }); + }, + ToOrder: function() { + wx.redirectTo({ + url: "../order/index?type=payment" + }); + }, + onLoad: function(t) { + this.pays(); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/pays/pays.json b/wx214944c362629fc7/pages/pays/pays.json new file mode 100644 index 0000000..c427070 --- /dev/null +++ b/wx214944c362629fc7/pages/pays/pays.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "提示", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/pays/pays.wxml b/wx214944c362629fc7/pages/pays/pays.wxml new file mode 100644 index 0000000..1724ac5 --- /dev/null +++ b/wx214944c362629fc7/pages/pays/pays.wxml @@ -0,0 +1,21 @@ + + + + {{res.title}} + 请滑动到底部跳转到订单列表 + + + + {{item.name}} + {{item.content}} + + + + + {{res.title}} + + + + + + diff --git a/wx214944c362629fc7/pages/pays/pays.wxss b/wx214944c362629fc7/pages/pays/pays.wxss new file mode 100644 index 0000000..3442b60 --- /dev/null +++ b/wx214944c362629fc7/pages/pays/pays.wxss @@ -0,0 +1,11 @@ +.saoma { + align-items: center; + background-color: #f70000; + border-radius: 98rpx; + color: #fff; + display: flex; + flex-direction: row; + justify-content: center; + margin-top: 10rpx; + width: 80%; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/phone/phone.js b/wx214944c362629fc7/pages/phone/phone.js new file mode 100644 index 0000000..a93a9fd --- /dev/null +++ b/wx214944c362629fc7/pages/phone/phone.js @@ -0,0 +1,30 @@ +var n = getApp(); + +Page({ + data: {}, + onLoad: function(n) {}, + getPhoneNumber: function(o) { + console.log(o.detail.code); + var e = this, t = o.detail.code; + n._post_form("user/getphone", { + code: t + }, function(n) { + console.log(n), wx.setStorageSync("phone", n.phone), e.onNavigateBack(1); + }, !1, function() {}); + }, + onNavigateBack: function() { + wx.navigateBack(); + }, + onNotLogin: function() { + wx.redirectTo({ + url: "/pages/index/index" + }); + }, + onReady: function() {}, + onShow: function() {}, + onHide: function() {}, + onUnload: function() {}, + onPullDownRefresh: function() {}, + onReachBottom: function() {}, + onShareAppMessage: function() {} +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/phone/phone.json b/wx214944c362629fc7/pages/phone/phone.json new file mode 100644 index 0000000..3928faa --- /dev/null +++ b/wx214944c362629fc7/pages/phone/phone.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/phone/phone.wxml b/wx214944c362629fc7/pages/phone/phone.wxml new file mode 100644 index 0000000..4d4b5c3 --- /dev/null +++ b/wx214944c362629fc7/pages/phone/phone.wxml @@ -0,0 +1,11 @@ + + + 申请获取以下权限 + 授权获取微信手机号 + + + diff --git a/wx214944c362629fc7/pages/phone/phone.wxss b/wx214944c362629fc7/pages/phone/phone.wxss new file mode 100644 index 0000000..e786745 --- /dev/null +++ b/wx214944c362629fc7/pages/phone/phone.wxss @@ -0,0 +1,66 @@ +page { + background: #fff; + font-size: 32rpx; +} + +.container { + padding: 0 60rpx; +} + +.wechatapp { + border-bottom: 1rpx solid #e3e3e3; + margin-bottom: 72rpx; + padding: 80rpx 0 48rpx; + text-align: center; +} + +.wechatapp .header { + border: 2px solid #fff; + border-radius: 50%; + box-shadow: 1px 0 5px rgba(50,50,50,.3); + height: 190rpx; + margin: 0rpx auto 0; + overflow: hidden; + width: 190rpx; +} + +.auth-title { + color: #585858; + font-size: 34rpx; + margin-bottom: 40rpx; +} + +.auth-subtitle { + color: #888; + font-size: 28rpx; + margin-bottom: 88rpx; +} + +.login-btn { + padding: 0 20rpx; +} + +.login-btn button { + background: #04be01; + border-radius: 999rpx; + color: #fff; + font-size: 30rpx; + height: 88rpx; + line-height: 88rpx; + text-align: center; +} + +.no-login-btn { + margin-top: 20rpx; + padding: 0 20rpx; +} + +.no-login-btn button { + background: #dfdfdf; + border-radius: 999rpx; + color: #fff; + font-size: 30rpx; + height: 88rpx; + line-height: 88rpx; + text-align: center; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/search/index.js b/wx214944c362629fc7/pages/search/index.js new file mode 100644 index 0000000..3ea4129 --- /dev/null +++ b/wx214944c362629fc7/pages/search/index.js @@ -0,0 +1,37 @@ +getApp(); + +Page({ + data: { + recentSearch: [], + searchValue: "" + }, + onLoad: function(e) {}, + onShow: function() { + this.getRecentSearch(); + }, + getRecentSearch: function() { + var e = wx.getStorageSync("recentSearch"); + this.setData({ + recentSearch: e + }); + }, + getSearchContent: function(e) { + this.data.searchValue = e.detail.value; + }, + search: function() { + if (this.data.searchValue) { + var e = wx.getStorageSync("recentSearch") || []; + e.unshift(this.data.searchValue), wx.setStorageSync("recentSearch", e), wx.navigateTo({ + url: "../category/list?search=" + this.data.searchValue + }); + } + }, + clearSearch: function() { + wx.removeStorageSync("recentSearch"), this.getRecentSearch(); + }, + goSearch: function(e) { + wx.navigateTo({ + url: "../category/list?search=" + e.target.dataset.text + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/search/index.json b/wx214944c362629fc7/pages/search/index.json new file mode 100644 index 0000000..2b94503 --- /dev/null +++ b/wx214944c362629fc7/pages/search/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "搜索", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/search/index.wxml b/wx214944c362629fc7/pages/search/index.wxml new file mode 100644 index 0000000..c17892c --- /dev/null +++ b/wx214944c362629fc7/pages/search/index.wxml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + 最近搜索 + + + + {{recent}} + + + + + diff --git a/wx214944c362629fc7/pages/search/index.wxss b/wx214944c362629fc7/pages/search/index.wxss new file mode 100644 index 0000000..83dd31f --- /dev/null +++ b/wx214944c362629fc7/pages/search/index.wxss @@ -0,0 +1,102 @@ +.seconds-kill-li { + float: left; + width: 33.3%; +} + +.title-box .icon-lajixiang { + float: right; +} + +.sale-button-box { + overflow: hidden; + padding: 10px 0; +} + +.recent-button,.sale-button { + border: 1px solid #eee; +} + +.serch-button button { + background: #ff495e; +} + +.search-input-box { + height: 64rpx; +} + +.search-input { + background: #fff; + border-radius: 5px 0 0 5px; + box-sizing: border-box; + overflow: hidden; + padding-left: 10rpx; + width: 80%; +} + +.search-input input { + font-size: 30rpx; + height: 64rpx; + line-height: 64rpx; +} + +.serch-button { + box-sizing: border-box; + width: 20%; +} + +.serch-button button { + border-radius: 0 5px 5px 0; + font-size: 28rpx; + height: 64rpx; + line-height: 64rpx; +} + +.seconds-kill-li { + box-sizing: border-box; + padding: 10rpx; +} + +.title-box { + color: #777; + font-size: 10pt; + padding: 50rpx 0 0; +} + +.recent-button,.sale-button { + background: #fff; + border: 1px solid #ccc; + border-radius: 50px; + font-size: 26rpx; + height: 30rpx; + justify-content: center; + line-height: 30rpx; + overflow: hidden; + padding: 10rpx; + text-align: center; + text-overflow: ellipsis; + white-space: nowrap; +} + +.search-cont { + background: #fff; + padding: 0 15px; +} + +.search-box .left { + width: 28px; +} + +.search-box .right { + flex: 1; +} + +.sale-button-box .seconds-kill-li { + float: left; + width: 33.3%; +} + +.title-box image { + float: right; + height: 35rpx; + width: 35rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/daililist.js b/wx214944c362629fc7/pages/user/daililist.js new file mode 100644 index 0000000..f1d19ff --- /dev/null +++ b/wx214944c362629fc7/pages/user/daililist.js @@ -0,0 +1,21 @@ +var t = getApp(); + +Page({ + data: { + data: [] + }, + onLoad: function(t) {}, + onShow: function() { + this.getDailiList(); + }, + getDailiList: function(a) { + var i = this; + t._get("user/getdaililist", {}, function(t) { + t.data.list.length && wx.pageScrollTo({ + scrollTop: 0 + }), i.setData({ + data: t.data.list + }); + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/daililist.json b/wx214944c362629fc7/pages/user/daililist.json new file mode 100644 index 0000000..569335e --- /dev/null +++ b/wx214944c362629fc7/pages/user/daililist.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "下级代理列表", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/daililist.wxml b/wx214944c362629fc7/pages/user/daililist.wxml new file mode 100644 index 0000000..2022fdf --- /dev/null +++ b/wx214944c362629fc7/pages/user/daililist.wxml @@ -0,0 +1,37 @@ + + + + + + + + + + {{item.nickName}} + + + + + + + + 手机号:{{item.phone}} + + + 注册时间:{{item.create_time}} + + + + + + + + + + 亲,您还没有下级哦! + + + + + + diff --git a/wx214944c362629fc7/pages/user/daililist.wxss b/wx214944c362629fc7/pages/user/daililist.wxss new file mode 100644 index 0000000..dd65cbb --- /dev/null +++ b/wx214944c362629fc7/pages/user/daililist.wxss @@ -0,0 +1,151 @@ +.header { + background: #fff; + border-bottom: 1rpx solid #e4e4e4; + display: flex; + height: 44px; + line-height: 44px; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.header view { + flex: 1; + text-align: center; +} + +.header .active { + color: #fd4a5f; +} + +.wrapper { + margin-top: 54px; +} + +.order-box { + padding: 0 15px; +} + +.order-header { + padding-top: 10rpx; +} + +.order-header .title { + color: #333; + font-size: 30rpx; +} + +.order-header .cont { + color: #fd4a5f; + font-size: 30rpx; +} + +.order-cont { + justify-content: space-between; + padding: 15rpx 0; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-shop { + padding: 16rpx 0; +} + +.order-shop-left,.order-shop-left image { + background: #fff; + display: inline-block; + height: 160rpx; + margin-right: 15rpx; + width: 160rpx; +} + +.order-shop .num { + float: right; +} + +.order-btn { + padding: 18rpx 0; +} + +.order-btn .order-left { + flex: 3; +} + +.order-btn .order-left .text,.order-btn .order-left text { + font-size: 30rpx; +} + +.order-btn .order-left .text { + color: #777; +} + +.order-btn .order-right { + flex: 1.5; +} + +.order-list-box .left { + flex: 4; + overflow: hidden; + position: relative; +} + +.order-list-box .right { + flex: 1; +} + +.goods-number { + color: #777; + font-size: 28rpx; + position: absolute; + right: 12px; + top: 35%; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; +} + +.btn-default,.btn-main { + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.btn-main { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + margin-left: 10rpx; +} + +.user-orderJtou { + color: #888; + font-size: 24rpx; + margin-top: -20rpx; + position: absolute; + right: 0; + top: 50%; +} + +.order-img_list { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + border-top: 1rpx solid #f1f1f1; +} + +.order-right-name { + color: #555; + font-size: 30rpx; + left: 180rpx; + line-height: 1.6; + margin-top: -46rpx; + position: absolute; + top: 50%; + width: 100%; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/help.js b/wx214944c362629fc7/pages/user/help.js new file mode 100644 index 0000000..2413393 --- /dev/null +++ b/wx214944c362629fc7/pages/user/help.js @@ -0,0 +1,17 @@ +var t = getApp(); + +Page({ + data: { + list: [] + }, + onLoad: function(t) {}, + onShow: function() { + this.getHelpList(); + }, + getHelpList: function() { + var a = this; + t._get("wxapp/help", {}, function(t) { + a.setData(t.data); + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/help.json b/wx214944c362629fc7/pages/user/help.json new file mode 100644 index 0000000..dea11e1 --- /dev/null +++ b/wx214944c362629fc7/pages/user/help.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "帮助", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/help.wxml b/wx214944c362629fc7/pages/user/help.wxml new file mode 100644 index 0000000..53d4051 --- /dev/null +++ b/wx214944c362629fc7/pages/user/help.wxml @@ -0,0 +1,10 @@ + + + + {{item.title}} + + + {{item.content}} + + + diff --git a/wx214944c362629fc7/pages/user/help.wxss b/wx214944c362629fc7/pages/user/help.wxss new file mode 100644 index 0000000..8ad9b62 --- /dev/null +++ b/wx214944c362629fc7/pages/user/help.wxss @@ -0,0 +1,14 @@ +.help { + border-bottom: 1px solid #f6f6f9; +} + +.help .h4 { + color: #333; + font-size: 32rpx; + margin-bottom: 5px; +} + +.help .p { + color: #666; + font-size: 26rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/index.js b/wx214944c362629fc7/pages/user/index.js new file mode 100644 index 0000000..d6af83e --- /dev/null +++ b/wx214944c362629fc7/pages/user/index.js @@ -0,0 +1,134 @@ +require("../../@babel/runtime/helpers/Arrayincludes"); + +var e = getApp(); + +Page({ + data: { + isadmin: !1, + isLogin: !1, + nocancel: !1, + showCodeImg: !0, + qrcode: "", + qrcodeTitle: "", + userInfo: {}, + orderCount: {}, + sh: !1, + yu: "00.00" + }, + onLoad: function(e) { + var t = wx.getStorageSync("storedata"); + t && (console.log(t), this.setData({ + sh: t.sh + })), this.getqian(); + }, + cancel: function() { + this.setData({ + showCodeImg: !0 + }); + }, + confirm: function() { + this.setData({ + showCodeImg: !0 + }); + }, + onShow: function() { + if (this.setData({ + isLogin: e.checkIsLogin() + }), this.data.isLogin) { + var t = wx.getStorageSync("phone"), n = wx.getStorageSync("storedata"); + if (!t && n.sh) return void wx.navigateTo({ + url: "../phone/phone" + }); + this.getUserDetail(), this.getqian(); + } + }, + getUserDetail: function() { + var t = this, n = wx.getStorageSync("values"); + e._get("user.index/detail", {}, function(e) { + t.setData(e.data), "" != e.data.userInfo.phone && n.includes(e.data.userInfo.phone) && t.setData({ + isadmin: !0 + }); + }); + }, + getCode: function(t) { + var n = this; + if (!n.onCheckLogin()) return !1; + n.setData({ + qrcode: "" + }); + var i = wx.getStorageSync("user_id"), o = t.currentTarget.dataset.type, a = ""; + "a" == o || "b" == o ? a = "邀请经销商" : "c" == o && (a = "邀请分销商"), e._get("user.index/getCode", { + codeType: o, + uid: i + }, function(e) { + console.log(e), 1 == e.code && n.setData({ + showCodeImg: !1, + qrcodeTitle: a, + qrcode: e.data.base64String.replace(/[\r\n]/g, "") + }); + }); + }, + onTargetOrder: function(e) { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: { + all: "/pages/order/index?type=all", + payment: "/pages/order/index?type=payment", + delivery: "/pages/order/index?type=delivery", + received: "/pages/order/index?type=received" + }[e.currentTarget.dataset.type] + }); + }, + getqian: function() { + var t = this; + e._get("user/userqian", {}, function(e) { + t.setData({ + yu: e.data.yu + }); + }); + }, + ontx: function() { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: "/pages/user/tx" + }); + }, + ontxlist: function() { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: "/pages/user/txlist" + }); + }, + onyongjinjilu: function() { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: "/pages/user/onyongjinjilu" + }); + }, + onTargetDailiList: function(e) { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: "/pages/user/daililist" + }); + }, + onTargetYonghuList: function(e) { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: "/pages/user/yonghulist" + }); + }, + onTargetMenus: function(e) { + if (!this.onCheckLogin()) return !1; + wx.navigateTo({ + url: "/" + e.currentTarget.dataset.url + }); + }, + onLogin: function() { + wx.navigateTo({ + url: "../login/login" + }); + }, + onCheckLogin: function() { + return !!this.data.isLogin || (e.showError("很抱歉,您还没有登录"), !1); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/index.json b/wx214944c362629fc7/pages/user/index.json new file mode 100644 index 0000000..fb7d953 --- /dev/null +++ b/wx214944c362629fc7/pages/user/index.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "个人中心", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/index.wxml b/wx214944c362629fc7/pages/user/index.wxml new file mode 100644 index 0000000..207aaf3 --- /dev/null +++ b/wx214944c362629fc7/pages/user/index.wxml @@ -0,0 +1,225 @@ + + + + + + + + + 昵称:{{userInfo.nickName}} + 用户ID:{{userInfo.user_id}} + 手机号:{{userInfo.phone}} + 用户身份: 经销商 + 分销商 + 一级分销商 + + + + + + + + 点击登录 + + + +
+ +
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
diff --git a/wx214944c362629fc7/pages/user/index.wxss b/wx214944c362629fc7/pages/user/index.wxss new file mode 100644 index 0000000..225dfdb --- /dev/null +++ b/wx214944c362629fc7/pages/user/index.wxss @@ -0,0 +1,123 @@ +.user { + background: #fff; + margin-bottom: 150rpx; + position: relative; +} + +.user-header { + align-content: center; + background-color: #fd0; + background-position: 100%; + background-repeat: no-repeat; + background-size: auto 100%; + display: flex; + height: 310rpx; + padding-top: 1px; + width: 100%; +} + +.user-header .user-header-cont { + align-items: center; + display: flex; + margin: auto auto 135rpx; + width: 79%; +} + +.user-header .user-header-cont .user-header-avatar { + border: 5rpx solid #fff; + border-radius: 50%; + display: block; + height: 120rpx; + margin-right: 30rpx; + overflow: hidden; + width: 120rpx; +} + +.user-header .user-header-cont .user-header-avatar image { + border-radius: 50%; + height: 120rpx; + width: 120rpx; +} + +.user-header .user-header-cont .user-header-cont-name { + font-size: 32rpx; + padding: 20rpx 0; +} + +.order-navbar { + background: #fff; + border-radius: 5rpx; + border-top: 1rpx solid #eee; + bottom: -370rpx; + box-shadow: 0 1rpx 5rpx 0 rgba(0,0,0,.05); + font-size: 30rpx; + left: 19rpx; + margin: auto; + padding: 15rpx 0; + position: absolute; + width: 95%; +} + +.order-navbar-header { + align-items: center; + border-bottom: 1px solid #eee; + height: 70rpx; + justify-content: space-between; + margin: auto; + padding-bottom: 10rpx; + width: 91%; +} + +.order-navbar-footer { + padding: 10rpx 0; + width: 100%; +} + +.order-navbar-footer .order-navbar-item .order-navbar__icon { + color: #000; + display: block; + font-size: 36rpx; + margin: 0 auto; + padding: 10rpx 0; + text-align: center; +} + +.order-navbar-footer .order-navbar-item .order-navbar__name { + color: #666; + display: block; + font-size: 24rpx; + margin-right: 10rpx; + text-align: center; +} + +.order-navbar-footer .order-navbar-item .order-badge { + background: #ff495e; + border-radius: 100%; + color: #fff; + font-size: 22rpx; + line-height: 28rpx; + min-height: 30rpx; + min-width: 30rpx; + padding: 1rpx; + position: absolute; + right: 55rpx; + text-align: center; + top: 0; +} + +.menus-list .menus-item { + border-bottom: 1rpx solid #eee; + padding: 28rpx; + position: relative; +} + +.menus-list .menus-item .menus-item__name { + color: #444; + margin-left: 20rpx; +} + +.qrimg { + height: 540rpx; + margin-left: -33rpx; + width: 620rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/onyongjinjilu.js b/wx214944c362629fc7/pages/user/onyongjinjilu.js new file mode 100644 index 0000000..4e981d5 --- /dev/null +++ b/wx214944c362629fc7/pages/user/onyongjinjilu.js @@ -0,0 +1,43 @@ +var t = getApp(); + +Page({ + data: { + data: [], + isLogin: !1, + userInfo: {} + }, + onLoad: function(t) { + this.getYonghuList(); + }, + onShow: function() { + this.getYonghuList(); + }, + toDate: function(t, e) { + var n = new Date(t), o = n.getFullYear(), i = n.getMonth() + 1 < 10 ? "0" + (n.getMonth() + 1) : n.getMonth() + 1, s = n.getDate() < 10 ? "0" + n.getDate() : n.getDate(), g = n.getHours() < 10 ? "0" + n.getHours() : n.getHours(), a = n.getMinutes() < 10 ? "0" + n.getMinutes() : n.getMinutes(), u = n.getSeconds() < 10 ? "0" + n.getSeconds() : n.getSeconds(); + return "1" == e ? o + "-" + i + "-" + s + " " + g + ":" + a + ":" + u : "2" == e ? o + "-" + i + "-" + s : void 0; + }, + getYonghuList: function(e) { + var n = this; + t._get("user/yongjinjilu", {}, function(t) { + t.data.list.length && wx.pageScrollTo({ + scrollTop: 0 + }); + var e = t.data.list, o = []; + e.forEach(function(t, e) { + t.commission = t.commission / 100, 2 == t.status && (t.settlement_time = n.toDate(1e3 * t.settlement_time, 1)), + o.push(t); + }), n.setData({ + data: o + }); + }); + }, + getUserDetail: function() {}, + onLogin: function() { + wx.navigateTo({ + url: "../login/login" + }); + }, + onCheckLogin: function() { + return !!this.data.isLogin || (t.showError("很抱歉,您还没有登录"), !1); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/onyongjinjilu.json b/wx214944c362629fc7/pages/user/onyongjinjilu.json new file mode 100644 index 0000000..469e3b8 --- /dev/null +++ b/wx214944c362629fc7/pages/user/onyongjinjilu.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "佣金记录", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/onyongjinjilu.wxml b/wx214944c362629fc7/pages/user/onyongjinjilu.wxml new file mode 100644 index 0000000..eba4be1 --- /dev/null +++ b/wx214944c362629fc7/pages/user/onyongjinjilu.wxml @@ -0,0 +1,46 @@ + + + + + + + + + + {{item.nickName}} + + + + + + + + 金额:{{item.commission}} + + + 分佣时间:{{item.create_time}} + + + 状态: 未结算 + 已结算 + 无效 + + + + 结算时间:{{item.settlement_time}} + + + + + + + + + + 亲,您还没有记录哦! + + + + + + diff --git a/wx214944c362629fc7/pages/user/onyongjinjilu.wxss b/wx214944c362629fc7/pages/user/onyongjinjilu.wxss new file mode 100644 index 0000000..e69de29 diff --git a/wx214944c362629fc7/pages/user/she.js b/wx214944c362629fc7/pages/user/she.js new file mode 100644 index 0000000..9a6e439 --- /dev/null +++ b/wx214944c362629fc7/pages/user/she.js @@ -0,0 +1,67 @@ +require("../../@babel/runtime/helpers/Arrayincludes"); + +var e = getApp(); + +Page({ + data: { + isLogin: !1, + userInfo: {} + }, + onLoad: function(o) { + if (console.log(o), o.scene) { + var t = decodeURIComponent(o.scene), n = this.urlParamToJson(t); + wx.setStorageSync("she", n), console.log(n), console.log(t); + } + if (e._get("wxapp/base", {}, function(e) { + wx.setStorageSync("wxapp", e.data.wxapp), console.log("sss", e), wx.setStorageSync("storedata", e.data.shdata), + wx.setStorageSync("values", e.data.values); + }, !1, !1), console.log(123), this.setData({ + isLogin: e.checkIsLogin() + }), this.data.isLogin) { + console.log(222); + var a = wx.getStorageSync("phone"), s = wx.getStorageSync("storedata"); + if (!a && s.sh) return void wx.navigateTo({ + url: "../phone/phone" + }); + this.getUserDetail(), console.log("xxxxxxx"), wx.switchTab({ + url: "../index/index" + }); + } + }, + urlParamToJson: function(e) { + var o = {}; + return e.trim().split("&").forEach(function(e) { + return o[e.split("=")[0]] = e.split("=")[1]; + }), o; + }, + onShow: function() { + console.log("show"); + if (this.setData({ + isLogin: e.checkIsLogin() + }), this.data.isLogin) { + var o = wx.getStorageSync("phone"), t = wx.getStorageSync("storedata"); + if (!o && t.sh) return void wx.navigateTo({ + url: "../phone/phone" + }); + console.log("show获取当前用户信息"), this.getUserDetail(), console.log("show准备跳转主页了"), wx.switchTab({ + url: "../index/index" + }); + } + }, + getUserDetail: function() { + var o = this, t = wx.getStorageSync("values"); + e._get("user.index/detail", {}, function(e) { + o.setData(e.data), "" != e.data.userInfo.phone && t.includes(e.data.userInfo.phone) && o.setData({ + isadmin: !0 + }); + }); + }, + onLogin: function() { + wx.navigateTo({ + url: "../login/login" + }); + }, + onCheckLogin: function() { + return !!this.data.isLogin || (e.showError("很抱歉,您还没有登录"), !1); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/she.json b/wx214944c362629fc7/pages/user/she.json new file mode 100644 index 0000000..2168796 --- /dev/null +++ b/wx214944c362629fc7/pages/user/she.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "跳转页面", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/she.wxml b/wx214944c362629fc7/pages/user/she.wxml new file mode 100644 index 0000000..a0313b8 --- /dev/null +++ b/wx214944c362629fc7/pages/user/she.wxml @@ -0,0 +1,8 @@ + + + 123 + + 点击登录 + + + diff --git a/wx214944c362629fc7/pages/user/she.wxss b/wx214944c362629fc7/pages/user/she.wxss new file mode 100644 index 0000000..e69de29 diff --git a/wx214944c362629fc7/pages/user/tx.js b/wx214944c362629fc7/pages/user/tx.js new file mode 100644 index 0000000..221d25e --- /dev/null +++ b/wx214944c362629fc7/pages/user/tx.js @@ -0,0 +1,26 @@ +var a = getApp(); + +Page({ + data: { + disabled: !1, + zfb: "", + phone: "", + je: "", + error: "" + }, + onLoad: function(a) {}, + saveData: function(e) { + var t = this, o = e.detail.value; + "" !== o.zfb ? o.phone.length < 1 ? a.showError("手机号不能为空") : o.je.length < 1 ? a.showError("提现金额不能为空") : (t.setData({ + disabled: !0 + }), a._post_form("user/tx", o, function(e) { + a.showSuccess(e.msg, function() { + wx.navigateBack(); + }); + }, !1, function() { + t.setData({ + disabled: !1 + }); + })) : a.showError("支福包帐号为空"); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/tx.json b/wx214944c362629fc7/pages/user/tx.json new file mode 100644 index 0000000..d580664 --- /dev/null +++ b/wx214944c362629fc7/pages/user/tx.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "申请提现", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/tx.wxml b/wx214944c362629fc7/pages/user/tx.wxml new file mode 100644 index 0000000..ee5fc07 --- /dev/null +++ b/wx214944c362629fc7/pages/user/tx.wxml @@ -0,0 +1,35 @@ + + +
+ + + + 支福包 + + + + + + + + 手机号 + + + + + + + + 金额 + + + + + + + + + +
+
+ diff --git a/wx214944c362629fc7/pages/user/tx.wxss b/wx214944c362629fc7/pages/user/tx.wxss new file mode 100644 index 0000000..b5fdea6 --- /dev/null +++ b/wx214944c362629fc7/pages/user/tx.wxss @@ -0,0 +1,172 @@ +.profile-list .admin { + color: #333; + font-size: 30rpx; + padding-left: 15px; +} + +.address-box .left-name { + width: 85px; +} + +.address-cont-title .list { + padding: 24rpx; + width: auto; +} + +.tui-picker-detail text { + padding: 0 10rpx; +} + +.infoText { + display: block; + line-height: 56rpx; +} + +picker-view { + background-color: #fff; + bottom: 0; + height: 480rpx; + padding: 0; + position: fixed; + width: 100%; +} + +picker-view-column view { + align-items: center; + display: flex; + font-size: 28rpx; + height: 100%; + justify-content: center; + line-height: 28rpx; + vertical-align: middle; +} + +.animation-element-wrapper { + height: 100%; + left: 0; + top: 0; + z-index: 21; +} + +.animation-element,.animation-element-wrapper { + display: flex; + position: fixed; + width: 100%; +} + +.animation-element { + background-color: #fff; + bottom: 0; + height: 570rpx; +} + +.animation-button { + align-items: center; + height: 100rpx; + line-height: 100rpx; + margin-top: 20rpx; + top: 20rpx; + width: 400rpx; +} + +.address-text { + color: #999; + display: inline-flex; + font-family: Arial,Helvetica,sans-serif; + font-size: 30rpx; + height: 50rpx; + line-height: 50rpx; + margin-top: 20rpx; + position: fixed; + text-align: center; +} + +.left-bt { + left: 30rpx; +} + +.right-bt { + color: #ec5151; + right: 30rpx; +} + +.line { + background-color: #eee; + display: block; + height: 1rpx; + margin-top: 89rpx; + position: fixed; + width: 100%; +} + +.address-box .right-cont input { + color: #444; + font-size: 30rpx; + width: 100%; +} + +.bargain-commont-bg { + background: rgba(0,0,0,.6); + bottom: 0; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 20; +} + +.f-34 { + font-size: 34rpx; +} + +.f-32 { + font-size: 32rpx; +} + +.f-31 { + font-size: 31rpx; +} + +.f-28 { + font-size: 28rpx; +} + +.f-26 { + font-size: 26rpx; +} + +.f-24 { + font-size: 24rpx; +} + +.f-22 { + font-size: 22rpx; +} + +.b-r { + border-right: 1rpx solid #eee; +} + +.b-b { + border-bottom: 1rpx solid #eee; +} + +.b-t { + border-top: 1rpx solid #eee; +} + +.m-top4 { + margin-top: 4rpx; +} + +.m-top10 { + margin-top: 10rpx; +} + +.m-top20 { + margin-top: 25rpx; +} + +.m-top35 { + margin-top: 35rpx; +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/txlist.js b/wx214944c362629fc7/pages/user/txlist.js new file mode 100644 index 0000000..63f931d --- /dev/null +++ b/wx214944c362629fc7/pages/user/txlist.js @@ -0,0 +1,42 @@ +var t = getApp(); + +Page({ + data: { + data: [], + isLogin: !1, + userInfo: {} + }, + onLoad: function(t) { + this.getYonghuList(); + }, + onShow: function() { + this.getYonghuList(); + }, + toDate: function(t, e) { + var n = new Date(t), o = n.getFullYear(), i = n.getMonth() + 1 < 10 ? "0" + (n.getMonth() + 1) : n.getMonth() + 1, g = n.getDate() < 10 ? "0" + n.getDate() : n.getDate(), a = n.getHours() < 10 ? "0" + n.getHours() : n.getHours(), s = n.getMinutes() < 10 ? "0" + n.getMinutes() : n.getMinutes(), u = n.getSeconds() < 10 ? "0" + n.getSeconds() : n.getSeconds(); + return "1" == e ? o + "-" + i + "-" + g + " " + a + ":" + s + ":" + u : "2" == e ? o + "-" + i + "-" + g : void 0; + }, + getYonghuList: function(e) { + var n = this; + t._get("user/txjilu", {}, function(t) { + t.data.list.length && wx.pageScrollTo({ + scrollTop: 0 + }); + var e = t.data.list, o = []; + e.forEach(function(t, e) { + t.qian = t.qian / 100, o.push(t); + }), n.setData({ + data: o + }); + }); + }, + getUserDetail: function() {}, + onLogin: function() { + wx.navigateTo({ + url: "../login/login" + }); + }, + onCheckLogin: function() { + return !!this.data.isLogin || (t.showError("很抱歉,您还没有登录"), !1); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/txlist.json b/wx214944c362629fc7/pages/user/txlist.json new file mode 100644 index 0000000..e60ad26 --- /dev/null +++ b/wx214944c362629fc7/pages/user/txlist.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "提现记录", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/txlist.wxml b/wx214944c362629fc7/pages/user/txlist.wxml new file mode 100644 index 0000000..c106e58 --- /dev/null +++ b/wx214944c362629fc7/pages/user/txlist.wxml @@ -0,0 +1,52 @@ + + + + + + + + + + {{item.nickName}} + + + + + + + + 提现金额:{{item.qian}} 元 + + + 支福包:{{item.zfb}} + + + 手机号:{{item.phone}} + + + 申请时间:{{item.create_time}} + + + 状态: 拒绝 + 已打款 + 等待审核中 + + + + 拒绝原因:{{item.msg}} + + + + + + + + + + 亲,您还没有记录哦! + + + + + + diff --git a/wx214944c362629fc7/pages/user/txlist.wxss b/wx214944c362629fc7/pages/user/txlist.wxss new file mode 100644 index 0000000..e69de29 diff --git a/wx214944c362629fc7/pages/user/yonghulist.js b/wx214944c362629fc7/pages/user/yonghulist.js new file mode 100644 index 0000000..ff7bd9c --- /dev/null +++ b/wx214944c362629fc7/pages/user/yonghulist.js @@ -0,0 +1,21 @@ +var t = getApp(); + +Page({ + data: { + data: [] + }, + onLoad: function(t) {}, + onShow: function() { + this.getYonghuList(); + }, + getYonghuList: function(a) { + var o = this; + t._get("user/getyonghulist", {}, function(t) { + t.data.list.length && wx.pageScrollTo({ + scrollTop: 0 + }), o.setData({ + data: t.data.list + }); + }); + } +}); \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/yonghulist.json b/wx214944c362629fc7/pages/user/yonghulist.json new file mode 100644 index 0000000..401c6f0 --- /dev/null +++ b/wx214944c362629fc7/pages/user/yonghulist.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "下级客户列表", + "navigationBarBackgroundColor": "#ffdd00", + "usingComponents": {} +} \ No newline at end of file diff --git a/wx214944c362629fc7/pages/user/yonghulist.wxml b/wx214944c362629fc7/pages/user/yonghulist.wxml new file mode 100644 index 0000000..2022fdf --- /dev/null +++ b/wx214944c362629fc7/pages/user/yonghulist.wxml @@ -0,0 +1,37 @@ + + + + + + + + + + {{item.nickName}} + + + + + + + + 手机号:{{item.phone}} + + + 注册时间:{{item.create_time}} + + + + + + + + + + 亲,您还没有下级哦! + + + + + + diff --git a/wx214944c362629fc7/pages/user/yonghulist.wxss b/wx214944c362629fc7/pages/user/yonghulist.wxss new file mode 100644 index 0000000..dd65cbb --- /dev/null +++ b/wx214944c362629fc7/pages/user/yonghulist.wxss @@ -0,0 +1,151 @@ +.header { + background: #fff; + border-bottom: 1rpx solid #e4e4e4; + display: flex; + height: 44px; + line-height: 44px; + position: fixed; + top: 0; + width: 100%; + z-index: 100; +} + +.header view { + flex: 1; + text-align: center; +} + +.header .active { + color: #fd4a5f; +} + +.wrapper { + margin-top: 54px; +} + +.order-box { + padding: 0 15px; +} + +.order-header { + padding-top: 10rpx; +} + +.order-header .title { + color: #333; + font-size: 30rpx; +} + +.order-header .cont { + color: #fd4a5f; + font-size: 30rpx; +} + +.order-cont { + justify-content: space-between; + padding: 15rpx 0; +} + +.order-cont .order-num text,.order-cont .order-time text { + color: #777; + font-size: 26rpx; +} + +.order-shop { + padding: 16rpx 0; +} + +.order-shop-left,.order-shop-left image { + background: #fff; + display: inline-block; + height: 160rpx; + margin-right: 15rpx; + width: 160rpx; +} + +.order-shop .num { + float: right; +} + +.order-btn { + padding: 18rpx 0; +} + +.order-btn .order-left { + flex: 3; +} + +.order-btn .order-left .text,.order-btn .order-left text { + font-size: 30rpx; +} + +.order-btn .order-left .text { + color: #777; +} + +.order-btn .order-right { + flex: 1.5; +} + +.order-list-box .left { + flex: 4; + overflow: hidden; + position: relative; +} + +.order-list-box .right { + flex: 1; +} + +.goods-number { + color: #777; + font-size: 28rpx; + position: absolute; + right: 12px; + top: 35%; +} + +.btn-default { + border: 1rpx solid #ccc; + border-radius: 4px; + color: #555; +} + +.btn-default,.btn-main { + float: right; + font-size: 28rpx; + padding: 6rpx 20rpx; +} + +.btn-main { + border: 1rpx solid #fd4a5f; + border-radius: 4px; + color: #fd4a5f; + margin-left: 10rpx; +} + +.user-orderJtou { + color: #888; + font-size: 24rpx; + margin-top: -20rpx; + position: absolute; + right: 0; + top: 50%; +} + +.order-img_list { + background: #fff; + border-bottom: 1rpx solid #f1f1f1; + border-top: 1rpx solid #f1f1f1; +} + +.order-right-name { + color: #555; + font-size: 30rpx; + left: 180rpx; + line-height: 1.6; + margin-top: -46rpx; + position: absolute; + top: 50%; + width: 100%; +} \ No newline at end of file diff --git a/wx214944c362629fc7/siteinfo.js b/wx214944c362629fc7/siteinfo.js new file mode 100644 index 0000000..696e34a --- /dev/null +++ b/wx214944c362629fc7/siteinfo.js @@ -0,0 +1,4 @@ +module.exports = { + name: "乐淘严选", + siteroot: "https://ltwxminiapp.19year.cn/" +}; \ No newline at end of file diff --git a/wx214944c362629fc7/wx214944c362629fc7.wxapkg b/wx214944c362629fc7/wx214944c362629fc7.wxapkg new file mode 100644 index 0000000..da32e6a Binary files /dev/null and b/wx214944c362629fc7/wx214944c362629fc7.wxapkg differ diff --git a/wx214944c362629fc7/wxParse/html2json.js b/wx214944c362629fc7/wxParse/html2json.js new file mode 100644 index 0000000..3fff6ad --- /dev/null +++ b/wx214944c362629fc7/wxParse/html2json.js @@ -0,0 +1,93 @@ +function e(e) { + for (var t = {}, r = e.split(","), s = 0; s < r.length; s++) t[r[s]] = !0; + return t; +} + +function t(e) { + var t = []; + if (0 == r.length || !a) return (d = {}).node = "text", d.text = e, [ d ]; + e = e.replace(/\[([^\[\]]+)\]/g, ":$1:"); + for (var o = new RegExp("[:]"), n = e.split(o), i = 0; i < n.length; i++) { + var l = n[i], d = {}; + a[l] ? (d.node = "element", d.tag = "emoji", d.text = a[l], d.baseSrc = s) : (d.node = "text", + d.text = l), t.push(d); + } + return t; +} + +var r = "", s = "", a = {}, o = require("./wxDiscode.js"), n = require("./htmlparser.js"), i = (e("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"), +e("br,a,code,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video")), l = e("abbr,acronym,applet,b,basefont,bdo,big,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), d = e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); + +e("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), +e("wxxxcode-style,script,style,view,scroll-view,block"), module.exports = { + html2json: function(e, r) { + e = function(e) { + return e.replace(/<\?xml.*\?>\n/, "").replace(/<.*!doctype.*\>\n/, "").replace(/<.*!DOCTYPE.*\>\n/, ""); + }(e), e = o.strDiscode(e); + var s = [], a = { + node: r, + nodes: [], + images: [], + imageUrls: [] + }; + return n(e, { + start: function(e, t, n) { + var c = { + node: "element", + tag: e + }; + if (i[e] ? c.tagType = "block" : l[e] ? c.tagType = "inline" : d[e] && (c.tagType = "closeSelf"), + 0 !== t.length && (c.attr = t.reduce(function(e, t) { + var r = t.name, s = t.value; + return "class" == r && (console.log(s), c.classStr = s), "style" == r && (console.log(s), + c.styleStr = s), s.match(/ /) && (s = s.split(" ")), e[r] ? Array.isArray(e[r]) ? e[r].push(s) : e[r] = [ e[r], s ] : e[r] = s, + e; + }, {})), "img" === c.tag) { + c.imgIndex = a.images.length; + var u = c.attr.src; + u = o.urlToHttpUrl(u, "https"), c.attr.src = u, c.from = r, a.images.push(c), a.imageUrls.push(u); + } + if ("font" === c.tag) { + var p = [ "x-small", "small", "medium", "large", "x-large", "xx-large", "-webkit-xxx-large" ], m = { + color: "color", + face: "font-family", + size: "font-size" + }; + for (var f in c.attr.style || (c.attr.style = []), c.styleStr || (c.styleStr = ""), + m) if (c.attr[f]) { + var h = "size" === f ? p[c.attr[f] - 1] : c.attr[f]; + c.attr.style.push(m[f]), c.attr.style.push(h), c.styleStr += m[f] + ": " + h + ";"; + } + } + if ("source" === c.tag && (a.source = c.attr.src), n) { + var g = s[0] || a; + void 0 === g.nodes && (g.nodes = []), g.nodes.push(c); + } else s.unshift(c); + }, + end: function(e) { + var t = s.shift(); + if (t.tag !== e && console.error("invalid state: mismatch end tag"), "video" === t.tag && a.source && (t.attr.src = a.source, + delete result.source), 0 === s.length) a.nodes.push(t); else { + var r = s[0]; + void 0 === r.nodes && (r.nodes = []), r.nodes.push(t); + } + }, + chars: function(e) { + var r = { + node: "text", + text: e, + textArray: t(e) + }; + if (0 === s.length) a.nodes.push(r); else { + var o = s[0]; + void 0 === o.nodes && (o.nodes = []), o.nodes.push(r); + } + }, + comment: function(e) {} + }), a; + }, + emojisInit: function() { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "/wxParse/emojis/", o = arguments[2]; + r = e, s = t, a = o; + } +}; \ No newline at end of file diff --git a/wx214944c362629fc7/wxParse/htmlparser.js b/wx214944c362629fc7/wxParse/htmlparser.js new file mode 100644 index 0000000..de7b6e9 --- /dev/null +++ b/wx214944c362629fc7/wxParse/htmlparser.js @@ -0,0 +1,48 @@ +function e(e) { + for (var t = {}, r = e.split(","), s = 0; s < r.length; s++) t[r[s]] = !0; + return t; +} + +var t = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, r = /^<\/([-A-Za-z0-9_]+)[^>]*>/, s = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, a = e("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"), n = e("a,address,code,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"), i = e("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), o = e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), l = e("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), c = e("wxxxcode-style,script,style,view,scroll-view,block"); + +module.exports = function(e, d) { + function f(e, t) { + if (t) for (t = t.toLowerCase(), r = b.length - 1; r >= 0 && b[r] != t; r--) ; else var r = 0; + if (r >= 0) { + for (var s = b.length - 1; s >= r; s--) d.end && d.end(b[s]); + b.length = r; + } + } + var p, u, h, b = [], m = e; + for (b.last = function() { + return this[this.length - 1]; + }; e; ) { + if (u = !0, b.last() && c[b.last()]) e = e.replace(new RegExp("([\\s\\S]*?)]*>"), function(e, t) { + return t = t.replace(/|/g, "$1$2"), d.chars && d.chars(t), + ""; + }), f(0, b.last()); else if (0 == e.indexOf("\x3c!--") ? (p = e.indexOf("--\x3e")) >= 0 && (d.comment && d.comment(e.substring(4, p)), + e = e.substring(p + 3), u = !1) : 0 == e.indexOf("" : "Error in unnamed extension", n = { + valid: !0, + error: "" + }; + a.helper.isArray(e) || (e = [ e ]); + for (var o = 0; o < e.length; ++o) { + var i = t + " sub-extension " + o + ": ", l = e[o]; + if ("object" !== (void 0 === l ? "undefined" : s(l))) return n.valid = !1, n.error = i + "must be an object, but " + (void 0 === l ? "undefined" : s(l)) + " given", + n; + if (!a.helper.isString(l.type)) return n.valid = !1, n.error = i + 'property "type" must be a string, but ' + s(l.type) + " given", + n; + var c = l.type = l.type.toLowerCase(); + if ("language" === c && (c = l.type = "lang"), "html" === c && (c = l.type = "output"), + "lang" !== c && "output" !== c && "listener" !== c) return n.valid = !1, n.error = i + "type " + c + ' is not recognized. Valid values: "lang/language", "output/html" or "listener"', + n; + if ("listener" === c) { + if (a.helper.isUndefined(l.listeners)) return n.valid = !1, n.error = i + '. Extensions of type "listener" must have a property called "listeners"', + n; + } else if (a.helper.isUndefined(l.filter) && a.helper.isUndefined(l.regex)) return n.valid = !1, + n.error = i + c + ' extensions must define either a "regex" property or a "filter" method', + n; + if (l.listeners) { + if ("object" !== s(l.listeners)) return n.valid = !1, n.error = i + '"listeners" property must be an object but ' + s(l.listeners) + " given", + n; + for (var u in l.listeners) if (l.listeners.hasOwnProperty(u) && "function" != typeof l.listeners[u]) return n.valid = !1, + n.error = i + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + u + " must be a function but " + s(l.listeners[u]) + " given", + n; + } + if (l.filter) { + if ("function" != typeof l.filter) return n.valid = !1, n.error = i + '"filter" must be a function, but ' + s(l.filter) + " given", + n; + } else if (l.regex) { + if (a.helper.isString(l.regex) && (l.regex = new RegExp(l.regex, "g")), !l.regex instanceof RegExp) return n.valid = !1, + n.error = i + '"regex" property must either be a string or a RegExp object, but ' + s(l.regex) + " given", + n; + if (a.helper.isUndefined(l.replace)) return n.valid = !1, n.error = i + '"regex" extensions must implement a replace string or function', + n; + } + } + return n; +} + +function n(e, r) { + return "~E" + r.charCodeAt(0) + "E"; +} + +var s = "function" == typeof Symbol && "symbol" == e(Symbol.iterator) ? function(r) { + return e(r); +} : function(r) { + return r && "function" == typeof Symbol && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : e(r); +}, a = {}, o = {}, i = {}, l = r(!0), c = { + github: { + omitExtraWLInCodeBlocks: !0, + prefixHeaderId: "user-content-", + simplifiedAutoLink: !0, + literalMidWordUnderscores: !0, + strikethrough: !0, + tables: !0, + tablesHeaderId: !0, + ghCodeBlocks: !0, + tasklists: !0 + }, + vanilla: r(!0) +}; + +a.helper = {}, a.extensions = {}, a.setOption = function(e, r) { + return l[e] = r, this; +}, a.getOption = function(e) { + return l[e]; +}, a.getOptions = function() { + return l; +}, a.resetOptions = function() { + l = r(!0); +}, a.setFlavor = function(e) { + if (c.hasOwnProperty(e)) { + var r = c[e]; + for (var t in r) r.hasOwnProperty(t) && (l[t] = r[t]); + } +}, a.getDefaultOptions = function(e) { + return r(e); +}, a.subParser = function(e, r) { + if (a.helper.isString(e)) { + if (void 0 === r) { + if (o.hasOwnProperty(e)) return o[e]; + throw Error("SubParser named " + e + " not registered!"); + } + o[e] = r; + } +}, a.extension = function(e, r) { + if (!a.helper.isString(e)) throw Error("Extension 'name' must be a string"); + if (e = a.helper.stdExtName(e), a.helper.isUndefined(r)) { + if (!i.hasOwnProperty(e)) throw Error("Extension named " + e + " is not registered!"); + return i[e]; + } + "function" == typeof r && (r = r()), a.helper.isArray(r) || (r = [ r ]); + var n = t(r, e); + if (!n.valid) throw Error(n.error); + i[e] = r; +}, a.getAllExtensions = function() { + return i; +}, a.removeExtension = function(e) { + delete i[e]; +}, a.resetExtensions = function() { + i = {}; +}, a.validateExtension = function(e) { + var r = t(e, null); + return !!r.valid || (console.warn(r.error), !1); +}, a.hasOwnProperty("helper") || (a.helper = {}), a.helper.isString = function(e) { + return "string" == typeof e || e instanceof String; +}, a.helper.isFunction = function(e) { + return e && "[object Function]" === {}.toString.call(e); +}, a.helper.forEach = function(e, r) { + if ("function" == typeof e.forEach) e.forEach(r); else for (var t = 0; t < e.length; t++) r(e[t], t, e); +}, a.helper.isArray = function(e) { + return e.constructor === Array; +}, a.helper.isUndefined = function(e) { + return void 0 === e; +}, a.helper.stdExtName = function(e) { + return e.replace(/[_-]||\s/g, "").toLowerCase(); +}, a.helper.escapeCharactersCallback = n, a.helper.escapeCharacters = function(e, r, t) { + var s = "([" + r.replace(/([\[\]\\])/g, "\\$1") + "])"; + t && (s = "\\\\" + s); + var a = new RegExp(s, "g"); + return e.replace(a, n); +}; + +var u = function(e, r, t, n) { + var s, a, o, i, l, c = n || "", u = c.indexOf("g") > -1, p = new RegExp(r + "|" + t, "g" + c.replace(/g/g, "")), h = new RegExp(r, c.replace(/g/g, "")), d = []; + do { + for (s = 0; o = p.exec(e); ) if (h.test(o[0])) s++ || (i = (a = p.lastIndex) - o[0].length); else if (s && !--s) { + l = o.index + o[0].length; + var f = { + left: { + start: i, + end: a + }, + match: { + start: a, + end: o.index + }, + right: { + start: o.index, + end: l + }, + wholeMatch: { + start: i, + end: l + } + }; + if (d.push(f), !u) return d; + } + } while (s && (p.lastIndex = a)); + return d; +}; + +a.helper.matchRecursiveRegExp = function(e, r, t, n) { + for (var s = u(e, r, t, n), a = [], o = 0; o < s.length; ++o) a.push([ e.slice(s[o].wholeMatch.start, s[o].wholeMatch.end), e.slice(s[o].match.start, s[o].match.end), e.slice(s[o].left.start, s[o].left.end), e.slice(s[o].right.start, s[o].right.end) ]); + return a; +}, a.helper.replaceRecursiveRegExp = function(e, r, t, n, s) { + if (!a.helper.isFunction(r)) { + var o = r; + r = function() { + return o; + }; + } + var i = u(e, t, n, s), l = e, c = i.length; + if (c > 0) { + var p = []; + 0 !== i[0].wholeMatch.start && p.push(e.slice(0, i[0].wholeMatch.start)); + for (var h = 0; h < c; ++h) p.push(r(e.slice(i[h].wholeMatch.start, i[h].wholeMatch.end), e.slice(i[h].match.start, i[h].match.end), e.slice(i[h].left.start, i[h].left.end), e.slice(i[h].right.start, i[h].right.end))), + h < c - 1 && p.push(e.slice(i[h].wholeMatch.end, i[h + 1].wholeMatch.start)); + i[c - 1].wholeMatch.end < e.length && p.push(e.slice(i[c - 1].wholeMatch.end)), + l = p.join(""); + } + return l; +}, a.helper.isUndefined(console) && (console = { + warn: function(e) { + alert(e); + }, + log: function(e) { + alert(e); + }, + error: function(e) { + throw e; + } +}), a.Converter = function(e) { + function r(e, r) { + if (r = r || null, a.helper.isString(e)) { + if (r = e = a.helper.stdExtName(e), a.extensions[e]) return console.warn("DEPRECATION WARNING: " + e + " is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"), + void function(e, r) { + "function" == typeof e && (e = e(new a.Converter())), a.helper.isArray(e) || (e = [ e ]); + var n = t(e, r); + if (!n.valid) throw Error(n.error); + for (var s = 0; s < e.length; ++s) switch (e[s].type) { + case "lang": + u.push(e[s]); + break; + + case "output": + p.push(e[s]); + break; + + default: + throw Error("Extension loader error: Type unrecognized!!!"); + } + }(a.extensions[e], e); + if (a.helper.isUndefined(i[e])) throw Error('Extension "' + e + '" could not be loaded. It was either not found or is not a valid extension.'); + e = i[e]; + } + "function" == typeof e && (e = e()), a.helper.isArray(e) || (e = [ e ]); + var s = t(e, r); + if (!s.valid) throw Error(s.error); + for (var o = 0; o < e.length; ++o) { + switch (e[o].type) { + case "lang": + u.push(e[o]); + break; + + case "output": + p.push(e[o]); + } + if (e[o].hasOwnProperty(h)) for (var l in e[o].listeners) e[o].listeners.hasOwnProperty(l) && n(l, e[o].listeners[l]); + } + } + function n(e, r) { + if (!a.helper.isString(e)) throw Error("Invalid argument in converter.listen() method: name must be a string, but " + (void 0 === e ? "undefined" : s(e)) + " given"); + if ("function" != typeof r) throw Error("Invalid argument in converter.listen() method: callback must be a function, but " + (void 0 === r ? "undefined" : s(r)) + " given"); + h.hasOwnProperty(e) || (h[e] = []), h[e].push(r); + } + var o = {}, u = [], p = [], h = {}; + !function() { + for (var t in e = e || {}, l) l.hasOwnProperty(t) && (o[t] = l[t]); + if ("object" !== (void 0 === e ? "undefined" : s(e))) throw Error("Converter expects the passed parameter to be an object, but " + (void 0 === e ? "undefined" : s(e)) + " was passed instead."); + for (var n in e) e.hasOwnProperty(n) && (o[n] = e[n]); + o.extensions && a.helper.forEach(o.extensions, r); + }(), this._dispatch = function(e, r, t, n) { + if (h.hasOwnProperty(e)) for (var s = 0; s < h[e].length; ++s) { + var a = h[e][s](e, r, this, t, n); + a && void 0 !== a && (r = a); + } + return r; + }, this.listen = function(e, r) { + return n(e, r), this; + }, this.makeHtml = function(e) { + if (!e) return e; + var r = { + gHtmlBlocks: [], + gHtmlMdBlocks: [], + gHtmlSpans: [], + gUrls: {}, + gTitles: {}, + gDimensions: {}, + gListLevel: 0, + hashLinkCounts: {}, + langExtensions: u, + outputModifiers: p, + converter: this, + ghCodeBlocks: [] + }; + return e = (e = (e = (e = e.replace(/~/g, "~T")).replace(/\$/g, "~D")).replace(/\r\n/g, "\n")).replace(/\r/g, "\n"), + o.smartIndentationFix && (e = function(e) { + var r = e.match(/^\s*/)[0].length, t = new RegExp("^\\s{0," + r + "}", "gm"); + return e.replace(t, ""); + }(e)), e = e, e = a.subParser("detab")(e, o, r), e = a.subParser("stripBlankLines")(e, o, r), + a.helper.forEach(u, function(t) { + e = a.subParser("runExtension")(t, e, o, r); + }), e = a.subParser("hashPreCodeTags")(e, o, r), e = a.subParser("githubCodeBlocks")(e, o, r), + e = a.subParser("hashHTMLBlocks")(e, o, r), e = a.subParser("hashHTMLSpans")(e, o, r), + e = a.subParser("stripLinkDefinitions")(e, o, r), e = a.subParser("blockGamut")(e, o, r), + e = a.subParser("unhashHTMLSpans")(e, o, r), e = (e = (e = a.subParser("unescapeSpecialChars")(e, o, r)).replace(/~D/g, "$$")).replace(/~T/g, "~"), + a.helper.forEach(p, function(t) { + e = a.subParser("runExtension")(t, e, o, r); + }), e; + }, this.setOption = function(e, r) { + o[e] = r; + }, this.getOption = function(e) { + return o[e]; + }, this.getOptions = function() { + return o; + }, this.addExtension = function(e, t) { + r(e, t = t || null); + }, this.useExtension = function(e) { + r(e); + }, this.setFlavor = function(e) { + if (c.hasOwnProperty(e)) { + var r = c[e]; + for (var t in r) r.hasOwnProperty(t) && (o[t] = r[t]); + } + }, this.removeExtension = function(e) { + a.helper.isArray(e) || (e = [ e ]); + for (var r = 0; r < e.length; ++r) { + for (var t = e[r], n = 0; n < u.length; ++n) u[n] === t && u[n].splice(n, 1); + for (;0 < p.length; ++n) p[0] === t && p[0].splice(n, 1); + } + }, this.getAllExtensions = function() { + return { + language: u, + output: p + }; + }; +}, a.subParser("anchors", function(e, r, t) { + var n = function(e, r, n, s, o, i, l, c) { + a.helper.isUndefined(c) && (c = ""), e = r; + var u = n, p = s.toLowerCase(), h = o, d = c; + if (!h) if (p || (p = u.toLowerCase().replace(/ ?\n/g, " ")), h = "#" + p, a.helper.isUndefined(t.gUrls[p])) { + if (!(e.search(/\(\s*\)$/m) > -1)) return e; + h = ""; + } else h = t.gUrls[p], a.helper.isUndefined(t.gTitles[p]) || (d = t.gTitles[p]); + var f = '" + u + ""; + }; + return e = (e = (e = (e = t.converter._dispatch("anchors.before", e, r, t)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)][ ]?(?:\n[ ]*)?\[(.*?)])()()()()/g, n)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g, n)).replace(/(\[([^\[\]]+)])()()()()()/g, n), + t.converter._dispatch("anchors.after", e, r, t); +}), a.subParser("autoLinks", function(e, r, t) { + function n(e, r) { + var t = r; + return /^www\./i.test(r) && (r = r.replace(/^www\./i, "http://www.")), '' + t + ""; + } + function s(e, r) { + var t = a.subParser("unescapeSpecialChars")(r); + return a.subParser("encodeEmailAddress")(t); + } + return e = (e = (e = t.converter._dispatch("autoLinks.before", e, r, t)).replace(/<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)>/gi, n)).replace(/<(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, s), + r.simplifiedAutoLink && (e = (e = e.replace(/\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/gi, n)).replace(/(?:^|[ \n\t])([A-Za-z0-9!#$%&'*+-/=?^_`\{|}~\.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?:$|[ \n\t])/gi, s)), + t.converter._dispatch("autoLinks.after", e, r, t); +}), a.subParser("blockGamut", function(e, r, t) { + e = t.converter._dispatch("blockGamut.before", e, r, t), e = a.subParser("blockQuotes")(e, r, t), + e = a.subParser("headers")(e, r, t); + var n = a.subParser("hashBlock")("
", r, t); + return e = (e = (e = e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm, n)).replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm, n)).replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm, n), + e = a.subParser("lists")(e, r, t), e = a.subParser("codeBlocks")(e, r, t), e = a.subParser("tables")(e, r, t), + e = a.subParser("hashHTMLBlocks")(e, r, t), e = a.subParser("paragraphs")(e, r, t), + t.converter._dispatch("blockGamut.after", e, r, t); +}), a.subParser("blockQuotes", function(e, r, t) { + return e = (e = t.converter._dispatch("blockQuotes.before", e, r, t)).replace(/((^[ \t]{0,3}>[ \t]?.+\n(.+\n)*\n*)+)/gm, function(e, n) { + var s = n; + return s = (s = (s = s.replace(/^[ \t]*>[ \t]?/gm, "~0")).replace(/~0/g, "")).replace(/^[ \t]+$/gm, ""), + s = a.subParser("githubCodeBlocks")(s, r, t), s = (s = (s = a.subParser("blockGamut")(s, r, t)).replace(/(^|\n)/g, "$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm, function(e, r) {
+            var t = r;
+            return (t = t.replace(/^  /gm, "~0")).replace(/~0/g, "");
+        }), a.subParser("hashBlock")("
\n" + s + "\n
", r, t); + }), t.converter._dispatch("blockQuotes.after", e, r, t); +}), a.subParser("codeBlocks", function(e, r, t) { + e = t.converter._dispatch("codeBlocks.before", e, r, t); + return e = (e = (e += "~0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g, function(e, n, s) { + var o = n, i = s, l = "\n"; + return o = a.subParser("outdent")(o), o = a.subParser("encodeCode")(o), o = (o = (o = a.subParser("detab")(o)).replace(/^\n+/g, "")).replace(/\n+$/g, ""), + r.omitExtraWLInCodeBlocks && (l = ""), o = "
" + o + l + "
", + a.subParser("hashBlock")(o, r, t) + i; + })).replace(/~0/, ""), t.converter._dispatch("codeBlocks.after", e, r, t); +}), a.subParser("codeSpans", function(e, r, t) { + return void 0 === (e = t.converter._dispatch("codeSpans.before", e, r, t)) && (e = ""), + e = e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm, function(e, r, t, n) { + var s = n; + return s = (s = s.replace(/^([ \t]*)/g, "")).replace(/[ \t]*$/g, ""), r + "" + (s = a.subParser("encodeCode")(s)) + ""; + }), t.converter._dispatch("codeSpans.after", e, r, t); +}), a.subParser("detab", function(e) { + return (e = (e = (e = (e = e.replace(/\t(?=\t)/g, " ")).replace(/\t/g, "~A~B")).replace(/~B(.+?)~A/g, function(e, r) { + for (var t = r, n = 4 - t.length % 4, s = 0; s < n; s++) t += " "; + return t; + })).replace(/~A/g, " ")).replace(/~B/g, ""); +}), a.subParser("encodeAmpsAndAngles", function(e) { + return (e = e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&")).replace(/<(?![a-z\/?\$!])/gi, "<"); +}), a.subParser("encodeBackslashEscapes", function(e) { + return (e = e.replace(/\\(\\)/g, a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+-.!])/g, a.helper.escapeCharactersCallback); +}), a.subParser("encodeCode", function(e) { + return e = (e = (e = e.replace(/&/g, "&")).replace(//g, ">"), + a.helper.escapeCharacters(e, "*_{}[]\\", !1); +}), a.subParser("encodeEmailAddress", function(e) { + var r = [ function(e) { + return "&#" + e.charCodeAt(0) + ";"; + }, function(e) { + return "&#x" + e.charCodeAt(0).toString(16) + ";"; + }, function(e) { + return e; + } ]; + return (e = ' .9 ? r[2](e) : t > .45 ? r[1](e) : r[0](e); + } + return e; + })) + '">' + e + "").replace(/">.+:/g, '">'); +}), a.subParser("escapeSpecialCharsWithinTagAttributes", function(e) { + return e.replace(/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi, function(e) { + var r = e.replace(/(.)<\/?code>(?=.)/g, "$1`"); + return a.helper.escapeCharacters(r, "\\`*_", !1); + }); +}), a.subParser("githubCodeBlocks", function(e, r, t) { + return r.ghCodeBlocks ? (e = t.converter._dispatch("githubCodeBlocks.before", e, r, t), + e = (e = (e += "~0").replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g, function(e, n, s) { + var o = r.omitExtraWLInCodeBlocks ? "" : "\n"; + return s = a.subParser("encodeCode")(s), s = "
" + (s = (s = (s = a.subParser("detab")(s)).replace(/^\n+/g, "")).replace(/\n+$/g, "")) + o + "
", + s = a.subParser("hashBlock")(s, r, t), "\n\n~G" + (t.ghCodeBlocks.push({ + text: e, + codeblock: s + }) - 1) + "G\n\n"; + })).replace(/~0/, ""), t.converter._dispatch("githubCodeBlocks.after", e, r, t)) : e; +}), a.subParser("hashBlock", function(e, r, t) { + return e = e.replace(/(^\n+|\n+$)/g, ""), "\n\n~K" + (t.gHtmlBlocks.push(e) - 1) + "K\n\n"; +}), a.subParser("hashElement", function(e, r, t) { + return function(e, r) { + var n = r; + return n = (n = (n = n.replace(/\n\n/g, "\n")).replace(/^\n/, "")).replace(/\n+$/g, ""), + "\n\n~K" + (t.gHtmlBlocks.push(n) - 1) + "K\n\n"; + }; +}), a.subParser("hashHTMLBlocks", function(e, r, t) { + for (var n = [ "pre", "div", "h1", "h2", "h3", "h4", "h5", "h6", "blockquote", "table", "dl", "ol", "ul", "script", "noscript", "form", "fieldset", "iframe", "math", "style", "section", "header", "footer", "nav", "article", "aside", "address", "audio", "canvas", "figure", "hgroup", "output", "video", "p" ], s = 0; s < n.length; ++s) e = a.helper.replaceRecursiveRegExp(e, function(e, r, n, s) { + var a = e; + return -1 !== n.search(/\bmarkdown\b/) && (a = n + t.converter.makeHtml(r) + s), + "\n\n~K" + (t.gHtmlBlocks.push(a) - 1) + "K\n\n"; + }, "^(?: |\\t){0,3}<" + n[s] + "\\b[^>]*>", "", "gim"); + return (e = (e = e.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g, a.subParser("hashElement")(e, r, t))).replace(/()/g, a.subParser("hashElement")(e, r, t))).replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g, a.subParser("hashElement")(e, r, t)); +}), a.subParser("hashHTMLSpans", function(e, r, t) { + for (var n = a.helper.matchRecursiveRegExp(e, "]*>", "", "gi"), s = 0; s < n.length; ++s) e = e.replace(n[s][0], "~L" + (t.gHtmlSpans.push(n[s][0]) - 1) + "L"); + return e; +}), a.subParser("unhashHTMLSpans", function(e, r, t) { + for (var n = 0; n < t.gHtmlSpans.length; ++n) e = e.replace("~L" + n + "L", t.gHtmlSpans[n]); + return e; +}), a.subParser("hashPreCodeTags", function(e, r, t) { + return a.helper.replaceRecursiveRegExp(e, function(e, r, n, s) { + var o = n + a.subParser("encodeCode")(r) + s; + return "\n\n~G" + (t.ghCodeBlocks.push({ + text: e, + codeblock: o + }) - 1) + "G\n\n"; + }, "^(?: |\\t){0,3}]*>\\s*]*>", "^(?: |\\t){0,3}\\s*
", "gim"); +}), a.subParser("headers", function(e, r, t) { + function n(e) { + var r, n = e.replace(/[^\w]/g, "").toLowerCase(); + return t.hashLinkCounts[n] ? r = n + "-" + t.hashLinkCounts[n]++ : (r = n, t.hashLinkCounts[n] = 1), + !0 === s && (s = "section"), a.helper.isString(s) ? s + r : r; + } + e = t.converter._dispatch("headers.before", e, r, t); + var s = r.prefixHeaderId, o = isNaN(parseInt(r.headerLevelStart)) ? 1 : parseInt(r.headerLevelStart), i = r.smoothLivePreview ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, l = r.smoothLivePreview ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm; + return e = (e = (e = e.replace(i, function(e, s) { + var i = a.subParser("spanGamut")(s, r, t), l = r.noHeaderId ? "" : ' id="' + n(s) + '"', c = "" + i + ""; + return a.subParser("hashBlock")(c, r, t); + })).replace(l, function(e, s) { + var i = a.subParser("spanGamut")(s, r, t), l = r.noHeaderId ? "" : ' id="' + n(s) + '"', c = o + 1, u = "" + i + ""; + return a.subParser("hashBlock")(u, r, t); + })).replace(/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm, function(e, s, i) { + var l = a.subParser("spanGamut")(i, r, t), c = r.noHeaderId ? "" : ' id="' + n(i) + '"', u = o - 1 + s.length, p = "" + l + ""; + return a.subParser("hashBlock")(p, r, t); + }), t.converter._dispatch("headers.after", e, r, t); +}), a.subParser("images", function(e, r, t) { + function n(e, r, n, s, o, i, l, c) { + var u = t.gUrls, p = t.gTitles, h = t.gDimensions; + if (n = n.toLowerCase(), c || (c = ""), "" === s || null === s) { + if ("" !== n && null !== n || (n = r.toLowerCase().replace(/ ?\n/g, " ")), s = "#" + n, + a.helper.isUndefined(u[n])) return e; + s = u[n], a.helper.isUndefined(p[n]) || (c = p[n]), a.helper.isUndefined(h[n]) || (o = h[n].width, + i = h[n].height); + } + r = r.replace(/"/g, """), r = a.helper.escapeCharacters(r, "*_", !1); + var d = '' + r + '"; + } + return e = (e = (e = t.converter._dispatch("images.before", e, r, t)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[(.*?)]()()()()()/g, n)).replace(/!\[(.*?)]\s?\([ \t]*()?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g, n), + t.converter._dispatch("images.after", e, r, t); +}), a.subParser("italicsAndBold", function(e, r, t) { + return e = t.converter._dispatch("italicsAndBold.before", e, r, t), e = r.literalMidWordUnderscores ? (e = (e = (e = e.replace(/(^|\s|>|\b)__(?=\S)([\s\S]+?)__(?=\b|<|\s|$)/gm, "$1$2")).replace(/(^|\s|>|\b)_(?=\S)([\s\S]+?)_(?=\b|<|\s|$)/gm, "$1$2")).replace(/(\*\*)(?=\S)([^\r]*?\S[*]*)\1/g, "$2")).replace(/(\*)(?=\S)([^\r]*?\S)\1/g, "$2") : (e = e.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g, "$2")).replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, "$2"), + t.converter._dispatch("italicsAndBold.after", e, r, t); +}), a.subParser("lists", function(e, r, t) { + function n(e, n) { + t.gListLevel++, e = e.replace(/\n{2,}$/, "\n"); + var s = /\n[ \t]*\n(?!~0)/.test(e += "~0"); + return e = (e = e.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm, function(e, n, o, i, l, c, u) { + u = u && "" !== u.trim(); + var p = a.subParser("outdent")(l, r, t), h = ""; + return c && r.tasklists && (h = ' class="task-list-item" style="list-style-type: none;"', + p = p.replace(/^[ \t]*\[(x|X| )?]/m, function() { + var e = '"; + })), n || p.search(/\n{2,}/) > -1 ? (p = a.subParser("githubCodeBlocks")(p, r, t), + p = a.subParser("blockGamut")(p, r, t)) : (p = (p = a.subParser("lists")(p, r, t)).replace(/\n$/, ""), + p = s ? a.subParser("paragraphs")(p, r, t) : a.subParser("spanGamut")(p, r, t)), + "\n" + p + "\n"; + })).replace(/~0/g, ""), t.gListLevel--, n && (e = e.replace(/\s+$/, "")), e; + } + function s(e, r, t) { + var s = "ul" === r ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm, a = [], o = ""; + if (-1 !== e.search(s)) { + !function e(a) { + var i = a.search(s); + -1 !== i ? (o += "\n\n<" + r + ">" + n(a.slice(0, i), !!t) + "\n\n", + s = "ul" == (r = "ul" === r ? "ol" : "ul") ? /^ {0,2}\d+\.[ \t]/gm : /^ {0,2}[*+-][ \t]/gm, + e(a.slice(i))) : o += "\n\n<" + r + ">" + n(a, !!t) + "\n\n"; + }(e); + for (var i = 0; i < a.length; ++i) ; + } else o = "\n\n<" + r + ">" + n(e, !!t) + "\n\n"; + return o; + } + e = t.converter._dispatch("lists.before", e, r, t), e += "~0"; + var o = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm; + return t.gListLevel ? e = e.replace(o, function(e, r, t) { + return s(r, t.search(/[*+-]/g) > -1 ? "ul" : "ol", !0); + }) : (o = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm, + e = e.replace(o, function(e, r, t, n) { + return s(t, n.search(/[*+-]/g) > -1 ? "ul" : "ol"); + })), e = e.replace(/~0/, ""), t.converter._dispatch("lists.after", e, r, t); +}), a.subParser("outdent", function(e) { + return (e = e.replace(/^(\t|[ ]{1,4})/gm, "~0")).replace(/~0/g, ""); +}), a.subParser("paragraphs", function(e, r, t) { + for (var n = (e = (e = (e = t.converter._dispatch("paragraphs.before", e, r, t)).replace(/^\n+/g, "")).replace(/\n+$/g, "")).split(/\n{2,}/g), s = [], o = n.length, i = 0; i < o; i++) { + var l = n[i]; + l.search(/~(K|G)(\d+)\1/g) >= 0 || (l = (l = a.subParser("spanGamut")(l, r, t)).replace(/^([ \t]*)/g, "

"), + l += "

"), s.push(l); + } + for (o = s.length, i = 0; i < o; i++) { + for (var c = "", u = s[i], p = !1; u.search(/~(K|G)(\d+)\1/) >= 0; ) { + var h = RegExp.$1, d = RegExp.$2; + c = (c = "K" === h ? t.gHtmlBlocks[d] : p ? a.subParser("encodeCode")(t.ghCodeBlocks[d].text) : t.ghCodeBlocks[d].codeblock).replace(/\$/g, "$$$$"), + u = u.replace(/(\n\n)?~(K|G)\d+\2(\n\n)?/, c), /^]*>\s*]*>/.test(u) && (p = !0); + } + s[i] = u; + } + return e = (e = (e = s.join("\n\n")).replace(/^\n+/g, "")).replace(/\n+$/g, ""), + t.converter._dispatch("paragraphs.after", e, r, t); +}), a.subParser("runExtension", function(e, r, t, n) { + if (e.filter) r = e.filter(r, n.converter, t); else if (e.regex) { + var s = e.regex; + !s instanceof RegExp && (s = new RegExp(s, "g")), r = r.replace(s, e.replace); + } + return r; +}), a.subParser("spanGamut", function(e, r, t) { + return e = t.converter._dispatch("spanGamut.before", e, r, t), e = a.subParser("codeSpans")(e, r, t), + e = a.subParser("escapeSpecialCharsWithinTagAttributes")(e, r, t), e = a.subParser("encodeBackslashEscapes")(e, r, t), + e = a.subParser("images")(e, r, t), e = a.subParser("anchors")(e, r, t), e = a.subParser("autoLinks")(e, r, t), + e = a.subParser("encodeAmpsAndAngles")(e, r, t), e = a.subParser("italicsAndBold")(e, r, t), + e = (e = a.subParser("strikethrough")(e, r, t)).replace(/ +\n/g, "
\n"), + t.converter._dispatch("spanGamut.after", e, r, t); +}), a.subParser("strikethrough", function(e, r, t) { + return r.strikethrough && (e = (e = t.converter._dispatch("strikethrough.before", e, r, t)).replace(/(?:~T){2}([\s\S]+?)(?:~T){2}/g, "$1"), + e = t.converter._dispatch("strikethrough.after", e, r, t)), e; +}), a.subParser("stripBlankLines", function(e) { + return e.replace(/^[ \t]+$/gm, ""); +}), a.subParser("stripLinkDefinitions", function(e, r, t) { + return (e = (e += "~0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=~0))/gm, function(e, n, s, o, i, l, c) { + return n = n.toLowerCase(), t.gUrls[n] = a.subParser("encodeAmpsAndAngles")(s), + l ? l + c : (c && (t.gTitles[n] = c.replace(/"|'/g, """)), r.parseImgDimensions && o && i && (t.gDimensions[n] = { + width: o, + height: i + }), ""); + })).replace(/~0/, ""); +}), a.subParser("tables", function(e, r, t) { + function n(e) { + return /^:[ \t]*--*$/.test(e) ? ' style="text-align:left;"' : /^--*[ \t]*:[ \t]*$/.test(e) ? ' style="text-align:right;"' : /^:[ \t]*--*[ \t]*:$/.test(e) ? ' style="text-align:center;"' : ""; + } + function s(e, n) { + var s = ""; + return e = e.trim(), r.tableHeaderId && (s = ' id="' + e.replace(/ /g, "_").toLowerCase() + '"'), + "" + (e = a.subParser("spanGamut")(e, r, t)) + "\n"; + } + function o(e, n) { + return "" + a.subParser("spanGamut")(e, r, t) + "\n"; + } + if (!r.tables) return e; + return e = (e = t.converter._dispatch("tables.before", e, r, t)).replace(/^[ \t]{0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|~0)/gm, function(e) { + var r, t = e.split("\n"); + for (r = 0; r < t.length; ++r) /^[ \t]{0,3}\|/.test(t[r]) && (t[r] = t[r].replace(/^[ \t]{0,3}\|/, "")), + /\|[ \t]*$/.test(t[r]) && (t[r] = t[r].replace(/\|[ \t]*$/, "")); + var i = t[0].split("|").map(function(e) { + return e.trim(); + }), l = t[1].split("|").map(function(e) { + return e.trim(); + }), c = [], u = [], p = [], h = []; + for (t.shift(), t.shift(), r = 0; r < t.length; ++r) "" !== t[r].trim() && c.push(t[r].split("|").map(function(e) { + return e.trim(); + })); + if (i.length < l.length) return e; + for (r = 0; r < l.length; ++r) p.push(n(l[r])); + for (r = 0; r < i.length; ++r) a.helper.isUndefined(p[r]) && (p[r] = ""), u.push(s(i[r], p[r])); + for (r = 0; r < c.length; ++r) { + for (var d = [], f = 0; f < u.length; ++f) a.helper.isUndefined(c[r][f]), d.push(o(c[r][f], p[f])); + h.push(d); + } + return function(e, r) { + for (var t = "\n\n\n", n = e.length, s = 0; s < n; ++s) t += e[s]; + for (t += "\n\n\n", s = 0; s < r.length; ++s) { + t += "\n"; + for (var a = 0; a < n; ++a) t += r[s][a]; + t += "\n"; + } + return t + "\n
\n"; + }(u, h); + }), t.converter._dispatch("tables.after", e, r, t); +}), a.subParser("unescapeSpecialChars", function(e) { + return e.replace(/~E(\d+)E/g, function(e, r) { + var t = parseInt(r); + return String.fromCharCode(t); + }); +}), module.exports = a; \ No newline at end of file diff --git a/wx214944c362629fc7/wxParse/wxDiscode.js b/wx214944c362629fc7/wxParse/wxDiscode.js new file mode 100644 index 0000000..4a14dd1 --- /dev/null +++ b/wx214944c362629fc7/wxParse/wxDiscode.js @@ -0,0 +1,18 @@ +module.exports = { + strDiscode: function(e) { + return function(e) { + return (e = (e = e.replace(/\r\n/g, "")).replace(/\n/g, "")).replace(/code/g, "wxxxcode-style"); + }(e = function(e) { + return (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = e.replace(/Œ/g, "Œ")).replace(/œ/g, "œ")).replace(/Š/g, "Š")).replace(/š/g, "š")).replace(/Ÿ/g, "Ÿ")).replace(/ƒ/g, "ƒ")).replace(/ˆ/g, "ˆ")).replace(/˜/g, "˜")).replace(/ /g, "")).replace(/ /g, "")).replace(/ /g, "")).replace(/‌/g, "")).replace(/‍/g, "")).replace(/‎/g, "")).replace(/‏/g, "")).replace(/–/g, "–")).replace(/—/g, "—")).replace(/‘/g, "‘")).replace(/’/g, "’")).replace(/‚/g, "‚")).replace(/“/g, "“")).replace(/”/g, "”")).replace(/„/g, "„")).replace(/†/g, "†")).replace(/‡/g, "‡")).replace(/•/g, "•")).replace(/…/g, "…")).replace(/‰/g, "‰")).replace(/′/g, "′")).replace(/″/g, "″")).replace(/‹/g, "‹")).replace(/›/g, "›")).replace(/‾/g, "‾")).replace(/€/g, "€")).replace(/™/g, "™")).replace(/←/g, "←")).replace(/↑/g, "↑")).replace(/→/g, "→")).replace(/↓/g, "↓")).replace(/↔/g, "↔")).replace(/↵/g, "↵")).replace(/⌈/g, "⌈")).replace(/⌉/g, "⌉")).replace(/⌊/g, "⌊")).replace(/⌋/g, "⌋")).replace(/◊/g, "◊")).replace(/♠/g, "♠")).replace(/♣/g, "♣")).replace(/♥/g, "♥")).replace(/♦/g, "♦"); + }(e = function(e) { + return (e = (e = (e = (e = e.replace(/ /g, " ")).replace(/"/g, "'")).replace(/&/g, "&")).replace(/</g, "<")).replace(/>/g, ">"); + }(e = function(e) { + return (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = e.replace(/Α/g, "Α")).replace(/Β/g, "Β")).replace(/Γ/g, "Γ")).replace(/Δ/g, "Δ")).replace(/Ε/g, "Ε")).replace(/Ζ/g, "Ζ")).replace(/Η/g, "Η")).replace(/Θ/g, "Θ")).replace(/Ι/g, "Ι")).replace(/Κ/g, "Κ")).replace(/Λ/g, "Λ")).replace(/Μ/g, "Μ")).replace(/Ν/g, "Ν")).replace(/Ξ/g, "Ν")).replace(/Ο/g, "Ο")).replace(/Π/g, "Π")).replace(/Ρ/g, "Ρ")).replace(/Σ/g, "Σ")).replace(/Τ/g, "Τ")).replace(/Υ/g, "Υ")).replace(/Φ/g, "Φ")).replace(/Χ/g, "Χ")).replace(/Ψ/g, "Ψ")).replace(/Ω/g, "Ω")).replace(/α/g, "α")).replace(/β/g, "β")).replace(/γ/g, "γ")).replace(/δ/g, "δ")).replace(/ε/g, "ε")).replace(/ζ/g, "ζ")).replace(/η/g, "η")).replace(/θ/g, "θ")).replace(/ι/g, "ι")).replace(/κ/g, "κ")).replace(/λ/g, "λ")).replace(/μ/g, "μ")).replace(/ν/g, "ν")).replace(/ξ/g, "ξ")).replace(/ο/g, "ο")).replace(/π/g, "π")).replace(/ρ/g, "ρ")).replace(/ς/g, "ς")).replace(/σ/g, "σ")).replace(/τ/g, "τ")).replace(/υ/g, "υ")).replace(/φ/g, "φ")).replace(/χ/g, "χ")).replace(/ψ/g, "ψ")).replace(/ω/g, "ω")).replace(/ϑ/g, "ϑ")).replace(/ϒ/g, "ϒ")).replace(/ϖ/g, "ϖ")).replace(/·/g, "·"); + }(e = function(e) { + return (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = (e = e.replace(/∀/g, "∀")).replace(/∂/g, "∂")).replace(/&exists;/g, "∃")).replace(/∅/g, "∅")).replace(/∇/g, "∇")).replace(/∈/g, "∈")).replace(/∉/g, "∉")).replace(/∋/g, "∋")).replace(/∏/g, "∏")).replace(/∑/g, "∑")).replace(/−/g, "−")).replace(/∗/g, "∗")).replace(/√/g, "√")).replace(/∝/g, "∝")).replace(/∞/g, "∞")).replace(/∠/g, "∠")).replace(/∧/g, "∧")).replace(/∨/g, "∨")).replace(/∩/g, "∩")).replace(/∩/g, "∪")).replace(/∫/g, "∫")).replace(/∴/g, "∴")).replace(/∼/g, "∼")).replace(/≅/g, "≅")).replace(/≈/g, "≈")).replace(/≠/g, "≠")).replace(/≤/g, "≤")).replace(/≥/g, "≥")).replace(/⊂/g, "⊂")).replace(/⊃/g, "⊃")).replace(/⊄/g, "⊄")).replace(/⊆/g, "⊆")).replace(/⊇/g, "⊇")).replace(/⊕/g, "⊕")).replace(/⊗/g, "⊗")).replace(/⊥/g, "⊥")).replace(/⋅/g, "⋅"); + }(e))))); + }, + urlToHttpUrl: function(e, a) { + return new RegExp("^//").test(e) && (e = a + ":" + e), e; + } +}; \ No newline at end of file diff --git a/wx214944c362629fc7/wxParse/wxParse.js b/wx214944c362629fc7/wxParse/wxParse.js new file mode 100644 index 0000000..add32c9 --- /dev/null +++ b/wx214944c362629fc7/wxParse/wxParse.js @@ -0,0 +1,43 @@ +function e(e) { + return e && e.__esModule ? e : { + default: e + }; +} + +function a(e) { + var a = e.target.dataset.src, t = e.target.dataset.from; + void 0 !== t && t.length > 0 && wx.previewImage({ + current: a, + urls: this.data[t].imageUrls + }); +} + +function t(e) { + return !1; +} + +var r = e(require("./showdown.js")), i = e(require("./html2json.js")); + +module.exports = { + wxParse: function() { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "wxParseData", n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "html", s = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : '
数据不能为空
', o = arguments[3], d = arguments[4], l = o, m = {}; + if ("html" == n) m = i.default.html2json(s, e); else if ("md" == n || "markdown" == n) { + var u = new r.default.Converter().makeHtml(s); + m = i.default.html2json(u, e); + } + m.view = {}, m.view.imagePadding = 0, void 0 !== d && (m.view.imagePadding = d); + var v = {}; + v[e] = m, l.setData(v), l.wxParseImgLoad = t, l.wxParseImgTap = a; + }, + wxParseTemArray: function(e, a, t, r) { + for (var i = [], n = r.data, s = null, o = 0; o < t; o++) { + var d = n[a + o].nodes; + i.push(d); + } + e = e || "wxParseTemArray", (s = JSON.parse('{"' + e + '":""}'))[e] = i, r.setData(s); + }, + emojisInit: function() { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "/wxParse/emojis/", t = arguments[2]; + i.default.emojisInit(e, a, t); + } +}; \ No newline at end of file diff --git a/wx214944c362629fc7/wxParse/wxParse.wxml b/wx214944c362629fc7/wxParse/wxParse.wxml new file mode 100644 index 0000000..7b4d37e --- /dev/null +++ b/wx214944c362629fc7/wxParse/wxParse.wxml @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + diff --git a/wx214944c362629fc7/wxParse/wxParse.wxss b/wx214944c362629fc7/wxParse/wxParse.wxss new file mode 100644 index 0000000..0119728 --- /dev/null +++ b/wx214944c362629fc7/wxParse/wxParse.wxss @@ -0,0 +1,241 @@ +.wxParse { + color: #666; + font-family: Helvetica,sans-serif; + font-size: 28rpx; + line-height: 1.8; + margin: 0 5px; +} + +view { + overflow: auto; + word-break: break-all; +} + +.wxParse-inline { + display: inline; +} + +.wxParse-div,.wxParse-inline { + margin: 0; + padding: 0; +} + +.wxParse-h1 { + font-size: 2em; + margin: .67em 0; +} + +.wxParse-h2 { + font-size: 1.5em; + margin: .75em 0; +} + +.wxParse-h3 { + font-size: 1.17em; + margin: .83em 0; +} + +.wxParse-h4 { + margin: 1.12em 0; +} + +.wxParse-h5 { + font-size: .83em; + margin: 1.5em 0; +} + +.wxParse-h6 { + font-size: .75em; + margin: 1.67em 0; +} + +.wxParse-h1 { + font-size: 18px; + font-weight: 400; + margin-bottom: .9em; +} + +.wxParse-h2 { + font-size: 16px; +} + +.wxParse-h2,.wxParse-h3 { + font-weight: 400; + margin-bottom: .34em; +} + +.wxParse-h3 { + font-size: 15px; +} + +.wxParse-h4 { + font-size: 14px; + font-weight: 400; + margin-bottom: .24em; +} + +.wxParse-h5 { + font-size: 13px; + font-weight: 400; + margin-bottom: .14em; +} + +.wxParse-h6 { + font-size: 12px; + font-weight: 400; + margin-bottom: .04em; +} + +.wxParse-b,.wxParse-h1,.wxParse-h2,.wxParse-h3,.wxParse-h4,.wxParse-h5,.wxParse-h6,.wxParse-strong { + font-weight: bolder; +} + +.wxParse-address,.wxParse-cite,.wxParse-em,.wxParse-i,.wxParse-var { + font-style: italic; +} + +.wxParse-code,.wxParse-kbd,.wxParse-pre,.wxParse-samp,.wxParse-tt { + font-family: monospace; +} + +.wxParse-pre { + white-space: pre; +} + +.wxParse-big { + font-size: 1.17em; +} + +.wxParse-small,.wxParse-sub,.wxParse-sup { + font-size: .83em; +} + +.wxParse-sub { + vertical-align: sub; +} + +.wxParse-sup { + vertical-align: super; +} + +.wxParse-del,.wxParse-s,.wxParse-strike { + text-decoration: line-through; +} + +.wxParse-s,.wxParse-strong { + display: inline; +} + +.wxParse-a { + color: #00bfff; + overflow: auto; + word-break: break-all; +} + +.wxParse-video { + margin: 10px 0; + text-align: center; +} + +.wxParse-video-video { + width: 100%; +} + +.wxParse-img { + background-color: #efefef; + overflow: hidden; +} + +.wxParse-blockquote { + background: #f5f5f5; + border-left: 3px solid #dbdbdb; + font-family: Courier,Calibri,宋体; + margin: 0; + padding: 10px 0 10px 5px; +} + +.wxParse-code,.wxParse-wxxxcode-style { + background: #f5f5f5; + display: inline; +} + +.wxParse-ul { + margin: 20rpx 10rpx; +} + +.wxParse-li,.wxParse-li-inner { + align-items: baseline; + display: flex; + margin: 10rpx 0; +} + +.wxParse-li-text { + align-items: center; + line-height: 20px; +} + +.wxParse-li-circle { + background-color: #333; + display: inline-flex; + height: 5px; + margin-right: 5px; + width: 5px; +} + +.wxParse-li-square { + background-color: #333; +} + +.wxParse-li-ring,.wxParse-li-square { + display: inline-flex; + height: 10rpx; + margin-right: 5px; + width: 10rpx; +} + +.wxParse-li-ring { + background-color: #fff; + border: 2rpx solid #333; + border-radius: 50%; +} + +.wxParse-u { + text-decoration: underline; +} + +.wxParse-hide { + display: none; +} + +.WxEmojiView { + align-items: center; +} + +.wxEmoji { + height: 16px; + width: 16px; +} + +.wxParse-tr { + border-bottom: 1px solid #e0e0e0; + border-right: 1px solid #e0e0e0; + border-top: 1px solid #e0e0e0; + display: flex; +} + +.wxParse-td,.wxParse-th { + border-left: 1px solid #e0e0e0; + flex: 1; + font-size: 28rpx; + padding: 5px; + word-break: break-all; +} + +.wxParse-td:last { + border-top: 1px solid #e0e0e0; +} + +.wxParse-th { + background: #f0f0f0; + border-top: 1px solid #e0e0e0; +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/app-config.json b/wx49a18253b90a02d2/app-config.json new file mode 100644 index 0000000..e7d6de8 --- /dev/null +++ b/wx49a18253b90a02d2/app-config.json @@ -0,0 +1 @@ +{"entryPagePath":"pages/main/main.html","pages":["pages/main/main","pages/main/detail","pages/index/index","pages/case/index","pages/product/index","pages/news/index","pages/contact/index","pages/news/detail","pages/case/detail","pages/contact/liuyan","pages/product/detail"],"page":{"pages/main/main.html":{"window":{"disableScroll":false}},"pages/main/detail.html":{"window":{}},"pages/index/index.html":{"window":{}},"pages/case/index.html":{"window":{"navigationBarTitleText":"解决方案"}},"pages/product/index.html":{"window":{"navigationBarTitleText":"产品中心"}},"pages/news/index.html":{"window":{"navigationBarTitleText":"企业动态"}},"pages/contact/index.html":{"window":{"navigationBarTitleText":"联系我们"}},"pages/news/detail.html":{"window":{}},"pages/case/detail.html":{"window":{}},"pages/contact/liuyan.html":{"window":{"navigationBarTitleText":"在线咨询"}},"pages/product/detail.html":{"window":{}}},"global":{"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"鑫跃达新型材料实时价格表","navigationBarTextStyle":"black"}},"renderer":{"allUsed":["webview"],"default":"webview"}} \ No newline at end of file diff --git a/wx49a18253b90a02d2/app-service.js b/wx49a18253b90a02d2/app-service.js new file mode 100644 index 0000000..5115d18 --- /dev/null +++ b/wx49a18253b90a02d2/app-service.js @@ -0,0 +1,3311 @@ +var __wxAppData=__wxAppData||{};var __wxAppCode__=__wxAppCode__||{};var global=global||{};var __WXML_GLOBAL__=__WXML_GLOBAL__||{entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0};var Component=Component||function(){};var definePlugin=definePlugin||function(){};var requirePlugin=requirePlugin||function(){};var Behavior=Behavior||function(){};var __vd_version_info__=__vd_version_info__||{};var __GWX_GLOBAL__=__GWX_GLOBAL__||{};if(this&&this.__g===undefined)Object.defineProperty(this,"__g",{configurable:false,enumerable:false,writable:false,value:function(){function D(e,t){if(typeof t!="undefined")e.children.push(t)}function S(e){if(typeof e!="undefined")return{tag:"virtual",wxKey:e,children:[]};return{tag:"virtual",children:[]}}function v(e){$gwxc++;if($gwxc>=16e3){throw"Dom limit exceeded, please check if there's any mistake you've made."}return{tag:"wx-"+e,attr:{},children:[],n:[],raw:{},generics:{}}}function e(e,t){t&&e.properities.push(t)}function t(e,t,r){return typeof e[r]!="undefined"?e[r]:t[r]}function u(e){console.warn("WXMLRT_"+g+":"+e)}function r(e,t){u(t+":-1:-1:-1: Template `"+e+"` is being called recursively, will be stop.")}var s=console.warn;var n=console.log;function o(){function e(){}e.prototype={hn:function(e,t){if(typeof e=="object"){var r=0;var n=false,o=false;for(var a in e){n=n|a==="__value__";o=o|a==="__wxspec__";r++;if(r>2)break}return r==2&&n&&o&&(t||e.__wxspec__!=="m"||this.hn(e.__value__)==="h")?"h":"n"}return"n"},nh:function(e,t){return{__value__:e,__wxspec__:t?t:true}},rv:function(e){return this.hn(e,true)==="n"?e:this.rv(e.__value__)},hm:function(e){if(typeof e=="object"){var t=0;var r=false,n=false;for(var o in e){r=r|o==="__value__";n=n|o==="__wxspec__";t++;if(t>2)break}return t==2&&r&&n&&(e.__wxspec__==="m"||this.hm(e.__value__))}return false}};return new e}var A=o();function T(e){var t=e.split("\n "+" "+" "+" ");for(var r=0;r=":case"<=":case">":case"<":case"<<":case">>":p=x(e[1],t,r,n,o,a);u=x(e[2],t,r,n,o,a);l=M&&(A.hn(p)==="h"||A.hn(u)==="h");switch(i){case"+":f=A.rv(p)+A.rv(u);break;case"*":f=A.rv(p)*A.rv(u);break;case"/":f=A.rv(p)/A.rv(u);break;case"%":f=A.rv(p)%A.rv(u);break;case"|":f=A.rv(p)|A.rv(u);break;case"^":f=A.rv(p)^A.rv(u);break;case"&":f=A.rv(p)&A.rv(u);break;case"===":f=A.rv(p)===A.rv(u);break;case"==":f=A.rv(p)==A.rv(u);break;case"!=":f=A.rv(p)!=A.rv(u);break;case"!==":f=A.rv(p)!==A.rv(u);break;case">=":f=A.rv(p)>=A.rv(u);break;case"<=":f=A.rv(p)<=A.rv(u);break;case">":f=A.rv(p)>A.rv(u);break;case"<":f=A.rv(p)>":f=A.rv(p)>>A.rv(u);break;default:break}return l?A.nh(f,"c"):f;break;case"-":p=e.length===3?x(e[1],t,r,n,o,a):0;u=e.length===3?x(e[2],t,r,n,o,a):x(e[1],t,r,n,o,a);l=M&&(A.hn(p)==="h"||A.hn(u)==="h");f=l?A.rv(p)-A.rv(u):p-u;return l?A.nh(f,"c"):f;break;case"!":p=x(e[1],t,r,n,o,a);l=M&&A.hn(p)=="h";f=!A.rv(p);return l?A.nh(f,"c"):f;case"~":p=x(e[1],t,r,n,o,a);l=M&&A.hn(p)=="h";f=~A.rv(p);return l?A.nh(f,"c"):f;default:s("unrecognized op"+i)}}function x(e,t,r,n,o,a){var i=e[0];var p=false;if(typeof a!=="undefined")o.ap=a;if(typeof i==="object"){var u=i[0];var l,f,v,c,s,y,b,d,h,_,g;switch(u){case 2:return m(e,t,r,n,o);break;case 4:return x(e[1],t,r,n,o,p);break;case 5:switch(e.length){case 2:l=x(e[1],t,r,n,o,p);return M?[l]:[A.rv(l)];return[l];break;case 1:return[];break;default:l=x(e[1],t,r,n,o,p);v=x(e[2],t,r,n,o,p);l.push(M?v:A.rv(v));return l;break}break;case 6:l=x(e[1],t,r,n,o);var w=o.ap;h=A.hn(l)==="h";f=h?A.rv(l):l;o.is_affected|=h;if(M){if(f===null||typeof f==="undefined"){return h?A.nh(undefined,"e"):undefined}v=x(e[2],t,r,n,o,p);_=A.hn(v)==="h";c=_?A.rv(v):v;o.ap=w;o.is_affected|=_;if(c===null||typeof c==="undefined"||c==="__proto__"||c==="prototype"||c==="caller"){return h||_?A.nh(undefined,"e"):undefined}y=f[c];if(typeof y==="function"&&!w)y=undefined;g=A.hn(y)==="h";o.is_affected|=g;return h||_?g?y:A.nh(y,"e"):y}else{if(f===null||typeof f==="undefined"){return undefined}v=x(e[2],t,r,n,o,p);_=A.hn(v)==="h";c=_?A.rv(v):v;o.ap=w;o.is_affected|=_;if(c===null||typeof c==="undefined"||c==="__proto__"||c==="prototype"||c==="caller"){return undefined}y=f[c];if(typeof y==="function"&&!w)y=undefined;g=A.hn(y)==="h";o.is_affected|=g;return g?A.rv(y):y}case 7:switch(e[1][0]){case 11:o.is_affected|=A.hn(n)==="h";return n;case 3:b=A.rv(r);d=A.rv(t);v=e[1][1];if(n&&n.f&&n.f.hasOwnProperty(v)){l=n.f;o.ap=true}else{l=b&&b.hasOwnProperty(v)?r:d&&d.hasOwnProperty(v)?t:undefined}if(M){if(l){h=A.hn(l)==="h";f=h?A.rv(l):l;y=f[v];g=A.hn(y)==="h";o.is_affected|=h||g;y=h&&!g?A.nh(y,"e"):y;return y}}else{if(l){h=A.hn(l)==="h";f=h?A.rv(l):l;y=f[v];g=A.hn(y)==="h";o.is_affected|=h||g;return A.rv(y)}}return undefined}break;case 8:l={};l[e[1]]=x(e[2],t,r,n,o,p);return l;break;case 9:l=x(e[1],t,r,n,o,p);v=x(e[2],t,r,n,o,p);function O(e,t,r){var n,o;h=A.hn(e)==="h";_=A.hn(t)==="h";f=A.rv(e);c=A.rv(t);for(var a in c){if(r||!f.hasOwnProperty(a)){f[a]=M?_?A.nh(c[a],"e"):c[a]:A.rv(c[a])}}return e}var s=l;var j=true;if(typeof e[1][0]==="object"&&e[1][0][0]===10){l=v;v=s;j=false}if(typeof e[1][0]==="object"&&e[1][0][0]===10){var P={};return O(O(P,l,j),v,j)}else return O(l,v,j);break;case 10:l=x(e[1],t,r,n,o,p);l=M?l:A.rv(l);return l;break;case 12:var P;l=x(e[1],t,r,n,o);if(!o.ap){return M&&A.hn(l)==="h"?A.nh(P,"f"):P}var w=o.ap;v=x(e[2],t,r,n,o,p);o.ap=w;h=A.hn(l)==="h";_=N(v);f=A.rv(l);c=A.rv(v);snap_bb=K(c,"nv_");try{P=typeof f==="function"?K(f.apply(null,snap_bb)):undefined}catch(t){t.message=t.message.replace(/nv_/g,"");t.stack=t.stack.substring(0,t.stack.indexOf("\n",t.stack.lastIndexOf("at nv_")));t.stack=t.stack.replace(/\snv_/g," ");t.stack=T(t.stack);if(n.debugInfo){t.stack+="\n "+" "+" "+" at "+n.debugInfo[0]+":"+n.debugInfo[1]+":"+n.debugInfo[2];console.error(t)}P=undefined}return M&&(_||h)?A.nh(P,"f"):P}}else{if(i===3||i===1)return e[1];else if(i===11){var l="";for(var D=1;D=0;o--){if(r[e].i[o]&&n[r[e].i[o]][t])return n[r[e].i[o]][t]}for(var o=r[e].ti.length-1;o>=0;o--){var a=ne(r[e].ti[o],r,e);if(a&&n[a][t])return n[a][t]}var i=ae(r,e);for(var o=0;o=0;p--)if(r[e].j[p]){for(var a=r[r[e].j[p]].ti.length-1;a>=0;a--){var u=ne(r[r[e].j[p]].ti[a],r,e);if(u&&n[u][t]){return n[u][t]}}}}function ae(e,t){if(!t)return[];if($gaic[t]){return $gaic[t]}var r=[],n=[],o=0,a=0,i={},p={};n.push(t);p[t]=true;a++;while(o=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:G(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},e}module.exports=r,module.exports.__esModule=!0,module.exports.default=module.exports; + +},{isPage:false,isComponent:false,currentFile:'@babel/runtime/helpers/regeneratorRuntime.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("@babel/runtime/helpers/typeof.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +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; +},{isPage:false,isComponent:false,currentFile:'@babel/runtime/helpers/typeof.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("utils/loading.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.showToast=exports.showLoading=exports.hideLoading=void 0;exports.showToast=function(o,e){e||(e=2e3),wx.showToast({title:o,icon:"none",duration:e})};var o=!1;exports.showLoading=function(e){o||wx.showLoading({title:e||"",mask:!0,success:function(){o=!0}})};exports.hideLoading=function(){o&&(o=!1,wx.hideLoading())}; +},{isPage:false,isComponent:false,currentFile:'utils/loading.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("utils/request.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var o=require("./loading.js");module.exports={request:function(e){return new Promise((function(t,n){var s={};e.data&&(s=e.data);var a="application/json";e.contentType&&(a=e.contentType);var l="GET";e.method&&(l=e.method),wx.request({url:"https://lvcai.19year.cn"+e.url,data:s,method:l,header:{"Content-Type":a,token:wx.getStorageSync("token")},success:function(o){200==o.statusCode?t(o):401==o.statusCode?(n("登录已过期"),wx.reLaunch({url:"/pages/login/login"})):n("请求失败:"+o.statusCode)},fail:function(o){console.log("==============================================================================================="),console.log("== 接口地址:"+url),console.log("== 接口参数:"+JSON.stringify(s)),console.log("== 请求类型:"+l),console.log("== 服务器连接异常"),console.log("==============================================================================================="),n("服务器连接异常,请检查网络再试")},complete:function(){o.hideLoading()}})}))}}; +},{isPage:false,isComponent:false,currentFile:'utils/request.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("utils/wxb.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e,t){var a=new Date;a.setDate(a.getDate()+e);var i=a.getFullYear(),o=a.getMonth()+1,n=a.getDate();return o<10&&(o="0"+o),n<10&&(n="0"+n),1==t?o+"月"+n+"日":i+"-"+o+"-"+n}function t(e,t,i){module.exports.globalData.apiurl?a(e,t,i):wx.getExtConfig({success:function(o){module.exports.globalData=o.extConfig,a(e,t,i),console.log(module.exports.globalData.apiurl)}})}function a(e,t,a){var i=module.exports.globalData.apiurl+e+"?appid="+module.exports.globalData.appid+"&appkey="+module.exports.globalData.appkey;wx.request({url:i,data:t,method:"POST",dataType:"json",success:function(e){switch(console.log(e),e.data.code){case 100:case 101:break;case 200:a(e.data.data);break;default:console.log(e.data.msg),wx.showToast({image:"/img/kulian.png",title:e.data.msg})}},fail:function(e){wx.hideLoading()}})}module.exports={getStyle:function(e){var t=(e=JSON.parse(e)).skin?e.skin:"#28e018";module.exports.that.setData({color:t,setting:e}),wx.setNavigationBarColor({backgroundColor:t,frontColor:"#ffffff"})},style:function(){var e=wx.getStorageSync("wxb_skin"),a=e?JSON.parse(e):[],i=a.last_time?a.last_time:Date.parse(new Date)/1e3,o=Date.parse(new Date)/1e3;!e||o>=i?t("/api/data/getSkinSetting",{},(function(e){wx.setStorageSync("wxb_skin",JSON.stringify(e)),module.exports.getStyle(JSON.stringify(e))})):module.exports.getStyle(e)},login:function(){wx.login({success:function(e){e.code?t("/api/login/index",{code:e.code},(function(e){if(e.face&&e.nick_name){module.exports.that.setData({userinfo:e});var a=JSON.stringify(e);wx.setStorageSync("userinfo",a)}else wx.getUserInfo({success:function(a){var i=JSON.parse(a.rawData);console.log(i),t("/api/login/bind",{openid:e.open_id,face:i.avatarUrl,nick_name:i.nickName,sex:i.gender},(function(e){module.exports.that.setData({userinfo:e});var t=JSON.stringify(e);wx.setStorageSync("userinfo",t)}))},fail:function(){wx.showToast({image:"/img/kulian.png",title:"拒绝了授权"})}})})):wx.showToast({image:"/img/kulian.png",title:"拒绝了授权"})}})},checkAuthLogin:function(e){var t=wx.getStorageSync("userinfo"),a=t?JSON.parse(t):{};return!!a.open_id&&(!(Date.parse(new Date)/1e3-a.last_time>86400)&&(1==e&&module.exports.that.setData({userinfo:a}),!0))},checkLogin:function(){var e=wx.getStorageSync("userinfo"),t=JSON.parse(e);return!!t.mobile&&(module.exports.that.setData({userinfo:t}),!0)},getOpenId:function(){var e=wx.getStorageSync("userinfo"),t=e?JSON.parse(e):{};return t.open_id?t.open_id:0},dingWei:function(e,t){var a=wx.getStorageSync("city"),i=a?JSON.parse(a):{};if(i.city_id){var o=0;for(var n in e)if(e[n].city_id==i.city_id){i={city_id:e[n].city_id,city_name:e[n].city_name},o=1;break}0==o&&(i={city_id:e[0].city_id,city_name:e[0].city_name}),module.exports.setCity(i.city_id,i.city_name),null!=t&&t(i)}else{for(var n in e)if(1==e[n].default){i={city_id:e[n].city_id,city_name:e[n].city_name};break}i.city_id||(i={city_id:e[0].city_id,city_name:e[0].city_name}),module.exports.setCity(i.city_id,i.city_name),null!=t&&t(i)}},setCity:function(e,t){var a={city_id:e,city_name:t},i=JSON.stringify(a);wx.setStorageSync("city",i)},getCityList:function(e){t("/api/city/getCityList",{},(function(t){e(t)}))},getCity:function(){var e=wx.getStorageSync("city");return e?JSON.parse(e):{}},getBgEndDate:function(){var t=wx.getStorageSync("wxb_bg_end_date"),a=e(0);if(t){var i=JSON.parse(t);if(console.log(i.bg_date),console.log(a),i.bg_date&&i.bg_date>=a)return i}return i={day:2,day2:1,bg_date:e(0),end_date:e(1),bg_date1:e(0,1),end_date1:e(1,1)}},getStoreCode:function(){var e=wx.getStorageSync("storeinfo"),t=e?JSON.parse(e):{};return!!t.code&&(!(Date.parse(new Date)/1e3-t.last_time>86400)&&t.code)},setStoreCode:function(e){var t={code:e,last_time:Date.parse(new Date)/1e3};return wx.setStorageSync("storeinfo",JSON.stringify(t)),!0},fileupload:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;wx.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(a){var i=a.tempFilePaths;wx.showLoading({title:"图片上传中.."}),wx.uploadFile({url:module.exports.globalData.apiurl+"/api/upload/upload",filePath:i[0],name:"file",formData:{mdl:e},success:function(e){wx.hideLoading(),wx.showToast({title:"上传成功"});var a=JSON.parse(e.data);t(a.data)},fail:function(e){wx.showToast({title:"图片上传中"})}})}})},Post:t,globalData:[],that:null,lock:0}; +},{isPage:false,isComponent:false,currentFile:'utils/wxb.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/html2json.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e){for(var t={},r=e.split(","),s=0;s\n/,"").replace(/<.*!doctype.*\>\n/,"").replace(/<.*!DOCTYPE.*\>\n/,"")}(e),e=o.strDiscode(e);var s=[],a={node:r,nodes:[],images:[],imageUrls:[]};return n(e,{start:function(e,t,n){var c={node:"element",tag:e};if(i[e]?c.tagType="block":l[e]?c.tagType="inline":d[e]&&(c.tagType="closeSelf"),0!==t.length&&(c.attr=t.reduce((function(e,t){var r=t.name,s=t.value;return"class"==r&&(console.log(s),c.classStr=s),"style"==r&&(console.log(s),c.styleStr=s),s.match(/ /)&&(s=s.split(" ")),e[r]?Array.isArray(e[r])?e[r].push(s):e[r]=[e[r],s]:e[r]=s,e}),{})),"img"===c.tag){c.imgIndex=a.images.length;var u=c.attr.src;u=o.urlToHttpUrl(u,"https"),c.attr.src=u,c.from=r,a.images.push(c),a.imageUrls.push(u)}if("font"===c.tag){var p=["x-small","small","medium","large","x-large","xx-large","-webkit-xxx-large"],m={color:"color",face:"font-family",size:"font-size"};for(var f in c.attr.style||(c.attr.style=[]),c.styleStr||(c.styleStr=""),m)if(c.attr[f]){var h="size"===f?p[c.attr[f]-1]:c.attr[f];c.attr.style.push(m[f]),c.attr.style.push(h),c.styleStr+=m[f]+": "+h+";"}}if("source"===c.tag&&(a.source=c.attr.src),n){var g=s[0]||a;void 0===g.nodes&&(g.nodes=[]),g.nodes.push(c)}else s.unshift(c)},end:function(e){var t=s.shift();if(t.tag!==e&&console.error("invalid state: mismatch end tag"),"video"===t.tag&&a.source&&(t.attr.src=a.source,delete result.source),0===s.length)a.nodes.push(t);else{var r=s[0];void 0===r.nodes&&(r.nodes=[]),r.nodes.push(t)}},chars:function(e){var r={node:"text",text:e,textArray:t(e)};if(0===s.length)a.nodes.push(r);else{var o=s[0];void 0===o.nodes&&(o.nodes=[]),o.nodes.push(r)}},comment:function(e){}}),a},emojisInit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/wxParse/emojis/",o=arguments[2];r=e,s=t,a=o}}; +},{isPage:false,isComponent:false,currentFile:'wxParse/html2json.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/htmlparser.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e){for(var t={},r=e.split(","),s=0;s\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,s=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,a=e("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),n=e("a,address,code,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),i=e("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),o=e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=e("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),c=e("wxxxcode-style,script,style,view,scroll-view,block");module.exports=function(e,d){function f(e,t){if(t)for(t=t.toLowerCase(),r=b.length-1;r>=0&&b[r]!=t;r--);else var r=0;if(r>=0){for(var s=b.length-1;s>=r;s--)d.end&&d.end(b[s]);b.length=r}}var p,u,h,b=[],m=e;for(b.last=function(){return this[this.length-1]};e;){if(u=!0,b.last()&&c[b.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),(function(e,t){return t=t.replace(/|/g,"$1$2"),d.chars&&d.chars(t),""})),f(0,b.last());else if(0==e.indexOf("\x3c!--")?(p=e.indexOf("--\x3e"))>=0&&(d.comment&&d.comment(e.substring(4,p)),e=e.substring(p+3),u=!1):0==e.indexOf("":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var o=0;o-1,p=new RegExp(r+"|"+t,"g"+c.replace(/g/g,"")),h=new RegExp(r,c.replace(/g/g,"")),d=[];do{for(s=0;o=p.exec(e);)if(h.test(o[0]))s++||(i=(a=p.lastIndex)-o[0].length);else if(s&&!--s){l=o.index+o[0].length;var f={left:{start:i,end:a},match:{start:a,end:o.index},right:{start:o.index,end:l},wholeMatch:{start:i,end:l}};if(d.push(f),!u)return d}}while(s&&(p.lastIndex=a));return d};a.helper.matchRecursiveRegExp=function(e,r,t,n){for(var s=u(e,r,t,n),a=[],o=0;o0){var p=[];0!==i[0].wholeMatch.start&&p.push(e.slice(0,i[0].wholeMatch.start));for(var h=0;h-1))return e;h=""}else h=t.gUrls[p],a.helper.isUndefined(t.gTitles[p])||(d=t.gTitles[p]);var f='"+u+""};return e=(e=(e=(e=t.converter._dispatch("anchors.before",e,r,t)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)][ ]?(?:\n[ ]*)?\[(.*?)])()()()()/g,n)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,n)).replace(/(\[([^\[\]]+)])()()()()()/g,n),t.converter._dispatch("anchors.after",e,r,t)})),a.subParser("autoLinks",(function(e,r,t){function n(e,r){var t=r;return/^www\./i.test(r)&&(r=r.replace(/^www\./i,"http://www.")),''+t+""}function s(e,r){var t=a.subParser("unescapeSpecialChars")(r);return a.subParser("encodeEmailAddress")(t)}return e=(e=(e=t.converter._dispatch("autoLinks.before",e,r,t)).replace(/<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)>/gi,n)).replace(/<(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,s),r.simplifiedAutoLink&&(e=(e=e.replace(/\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/gi,n)).replace(/(?:^|[ \n\t])([A-Za-z0-9!#$%&'*+-/=?^_`\{|}~\.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?:$|[ \n\t])/gi,s)),t.converter._dispatch("autoLinks.after",e,r,t)})),a.subParser("blockGamut",(function(e,r,t){e=t.converter._dispatch("blockGamut.before",e,r,t),e=a.subParser("blockQuotes")(e,r,t),e=a.subParser("headers")(e,r,t);var n=a.subParser("hashBlock")("
",r,t);return e=(e=(e=e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,n)).replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm,n)).replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,n),e=a.subParser("lists")(e,r,t),e=a.subParser("codeBlocks")(e,r,t),e=a.subParser("tables")(e,r,t),e=a.subParser("hashHTMLBlocks")(e,r,t),e=a.subParser("paragraphs")(e,r,t),t.converter._dispatch("blockGamut.after",e,r,t)})),a.subParser("blockQuotes",(function(e,r,t){return e=(e=t.converter._dispatch("blockQuotes.before",e,r,t)).replace(/((^[ \t]{0,3}>[ \t]?.+\n(.+\n)*\n*)+)/gm,(function(e,n){var s=n;return s=(s=(s=s.replace(/^[ \t]*>[ \t]?/gm,"~0")).replace(/~0/g,"")).replace(/^[ \t]+$/gm,""),s=a.subParser("githubCodeBlocks")(s,r,t),s=(s=(s=a.subParser("blockGamut")(s,r,t)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,r){var t=r;return(t=t.replace(/^  /gm,"~0")).replace(/~0/g,"")})),a.subParser("hashBlock")("
\n"+s+"\n
",r,t)})),t.converter._dispatch("blockQuotes.after",e,r,t)})),a.subParser("codeBlocks",(function(e,r,t){e=t.converter._dispatch("codeBlocks.before",e,r,t);return e=(e=(e+="~0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,(function(e,n,s){var o=n,i=s,l="\n";return o=a.subParser("outdent")(o),o=a.subParser("encodeCode")(o),o=(o=(o=a.subParser("detab")(o)).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.omitExtraWLInCodeBlocks&&(l=""),o="
"+o+l+"
",a.subParser("hashBlock")(o,r,t)+i}))).replace(/~0/,""),t.converter._dispatch("codeBlocks.after",e,r,t)})),a.subParser("codeSpans",(function(e,r,t){return void 0===(e=t.converter._dispatch("codeSpans.before",e,r,t))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,t,n){var s=n;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),r+""+(s=a.subParser("encodeCode")(s))+""})),t.converter._dispatch("codeSpans.after",e,r,t)})),a.subParser("detab",(function(e){return(e=(e=(e=(e=e.replace(/\t(?=\t)/g," ")).replace(/\t/g,"~A~B")).replace(/~B(.+?)~A/g,(function(e,r){for(var t=r,n=4-t.length%4,s=0;s#+-.!])/g,a.helper.escapeCharactersCallback)})),a.subParser("encodeCode",(function(e){return e=(e=(e=e.replace(/&/g,"&")).replace(//g,">"),a.helper.escapeCharacters(e,"*_{}[]\\",!1)})),a.subParser("encodeEmailAddress",(function(e){var r=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return(e='.9?r[2](e):t>.45?r[1](e):r[0](e)}return e})))+'">'+e+"").replace(/">.+:/g,'">')})),a.subParser("escapeSpecialCharsWithinTagAttributes",(function(e){return e.replace(/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi,(function(e){var r=e.replace(/(.)<\/?code>(?=.)/g,"$1`");return a.helper.escapeCharacters(r,"\\`*_",!1)}))})),a.subParser("githubCodeBlocks",(function(e,r,t){return r.ghCodeBlocks?(e=t.converter._dispatch("githubCodeBlocks.before",e,r,t),e=(e=(e+="~0").replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g,(function(e,n,s){var o=r.omitExtraWLInCodeBlocks?"":"\n";return s=a.subParser("encodeCode")(s),s="
"+(s=(s=(s=a.subParser("detab")(s)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+o+"
",s=a.subParser("hashBlock")(s,r,t),"\n\n~G"+(t.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}))).replace(/~0/,""),t.converter._dispatch("githubCodeBlocks.after",e,r,t)):e})),a.subParser("hashBlock",(function(e,r,t){return e=e.replace(/(^\n+|\n+$)/g,""),"\n\n~K"+(t.gHtmlBlocks.push(e)-1)+"K\n\n"})),a.subParser("hashElement",(function(e,r,t){return function(e,r){var n=r;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n~K"+(t.gHtmlBlocks.push(n)-1)+"K\n\n"}})),a.subParser("hashHTMLBlocks",(function(e,r,t){for(var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],s=0;s]*>","","gim");return(e=(e=e.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,r,t))).replace(/()/g,a.subParser("hashElement")(e,r,t))).replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,r,t))})),a.subParser("hashHTMLSpans",(function(e,r,t){for(var n=a.helper.matchRecursiveRegExp(e,"]*>","","gi"),s=0;s]*>\\s*]*>","^(?: |\\t){0,3}\\s*
","gim")})),a.subParser("headers",(function(e,r,t){function n(e){var r,n=e.replace(/[^\w]/g,"").toLowerCase();return t.hashLinkCounts[n]?r=n+"-"+t.hashLinkCounts[n]++:(r=n,t.hashLinkCounts[n]=1),!0===s&&(s="section"),a.helper.isString(s)?s+r:r}e=t.converter._dispatch("headers.before",e,r,t);var s=r.prefixHeaderId,o=isNaN(parseInt(r.headerLevelStart))?1:parseInt(r.headerLevelStart),i=r.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,l=r.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;return e=(e=(e=e.replace(i,(function(e,s){var i=a.subParser("spanGamut")(s,r,t),l=r.noHeaderId?"":' id="'+n(s)+'"',c=""+i+"";return a.subParser("hashBlock")(c,r,t)}))).replace(l,(function(e,s){var i=a.subParser("spanGamut")(s,r,t),l=r.noHeaderId?"":' id="'+n(s)+'"',c=o+1,u=""+i+"";return a.subParser("hashBlock")(u,r,t)}))).replace(/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,(function(e,s,i){var l=a.subParser("spanGamut")(i,r,t),c=r.noHeaderId?"":' id="'+n(i)+'"',u=o-1+s.length,p=""+l+"";return a.subParser("hashBlock")(p,r,t)})),t.converter._dispatch("headers.after",e,r,t)})),a.subParser("images",(function(e,r,t){function n(e,r,n,s,o,i,l,c){var u=t.gUrls,p=t.gTitles,h=t.gDimensions;if(n=n.toLowerCase(),c||(c=""),""===s||null===s){if(""!==n&&null!==n||(n=r.toLowerCase().replace(/ ?\n/g," ")),s="#"+n,a.helper.isUndefined(u[n]))return e;s=u[n],a.helper.isUndefined(p[n])||(c=p[n]),a.helper.isUndefined(h[n])||(o=h[n].width,i=h[n].height)}r=r.replace(/"/g,"""),r=a.helper.escapeCharacters(r,"*_",!1);var d=''+r+'"}return e=(e=(e=t.converter._dispatch("images.before",e,r,t)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[(.*?)]()()()()()/g,n)).replace(/!\[(.*?)]\s?\([ \t]*()?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g,n),t.converter._dispatch("images.after",e,r,t)})),a.subParser("italicsAndBold",(function(e,r,t){return e=t.converter._dispatch("italicsAndBold.before",e,r,t),e=r.literalMidWordUnderscores?(e=(e=(e=e.replace(/(^|\s|>|\b)__(?=\S)([\s\S]+?)__(?=\b|<|\s|$)/gm,"$1$2")).replace(/(^|\s|>|\b)_(?=\S)([\s\S]+?)_(?=\b|<|\s|$)/gm,"$1$2")).replace(/(\*\*)(?=\S)([^\r]*?\S[*]*)\1/g,"$2")).replace(/(\*)(?=\S)([^\r]*?\S)\1/g,"$2"):(e=e.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g,"$2")).replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"$2"),t.converter._dispatch("italicsAndBold.after",e,r,t)})),a.subParser("lists",(function(e,r,t){function n(e,n){t.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var s=/\n[ \t]*\n(?!~0)/.test(e+="~0");return e=(e=e.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,(function(e,n,o,i,l,c,u){u=u&&""!==u.trim();var p=a.subParser("outdent")(l,r,t),h="";return c&&r.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',p=p.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='"}))),n||p.search(/\n{2,}/)>-1?(p=a.subParser("githubCodeBlocks")(p,r,t),p=a.subParser("blockGamut")(p,r,t)):(p=(p=a.subParser("lists")(p,r,t)).replace(/\n$/,""),p=s?a.subParser("paragraphs")(p,r,t):a.subParser("spanGamut")(p,r,t)),"\n"+p+"\n"}))).replace(/~0/g,""),t.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function s(e,r,t){var s="ul"===r?/^ {0,2}\d+\.[ \t]/gm:/^ {0,2}[*+-][ \t]/gm,a=[],o="";if(-1!==e.search(s)){!function e(a){var i=a.search(s);-1!==i?(o+="\n\n<"+r+">"+n(a.slice(0,i),!!t)+"\n\n",s="ul"==(r="ul"===r?"ol":"ul")?/^ {0,2}\d+\.[ \t]/gm:/^ {0,2}[*+-][ \t]/gm,e(a.slice(i))):o+="\n\n<"+r+">"+n(a,!!t)+"\n\n"}(e);for(var i=0;i"+n(e,!!t)+"\n\n";return o}e=t.converter._dispatch("lists.before",e,r,t),e+="~0";var o=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;return t.gListLevel?e=e.replace(o,(function(e,r,t){return s(r,t.search(/[*+-]/g)>-1?"ul":"ol",!0)})):(o=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,e=e.replace(o,(function(e,r,t,n){return s(t,n.search(/[*+-]/g)>-1?"ul":"ol")}))),e=e.replace(/~0/,""),t.converter._dispatch("lists.after",e,r,t)})),a.subParser("outdent",(function(e){return(e=e.replace(/^(\t|[ ]{1,4})/gm,"~0")).replace(/~0/g,"")})),a.subParser("paragraphs",(function(e,r,t){for(var n=(e=(e=(e=t.converter._dispatch("paragraphs.before",e,r,t)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),s=[],o=n.length,i=0;i=0||(l=(l=a.subParser("spanGamut")(l,r,t)).replace(/^([ \t]*)/g,"

"),l+="

"),s.push(l)}for(o=s.length,i=0;i=0;){var h=RegExp.$1,d=RegExp.$2;c=(c="K"===h?t.gHtmlBlocks[d]:p?a.subParser("encodeCode")(t.ghCodeBlocks[d].text):t.ghCodeBlocks[d].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?~(K|G)\d+\2(\n\n)?/,c),/^]*>\s*]*>/.test(u)&&(p=!0)}s[i]=u}return e=(e=(e=s.join("\n\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.converter._dispatch("paragraphs.after",e,r,t)})),a.subParser("runExtension",(function(e,r,t,n){if(e.filter)r=e.filter(r,n.converter,t);else if(e.regex){var s=e.regex;!s instanceof RegExp&&(s=new RegExp(s,"g")),r=r.replace(s,e.replace)}return r})),a.subParser("spanGamut",(function(e,r,t){return e=t.converter._dispatch("spanGamut.before",e,r,t),e=a.subParser("codeSpans")(e,r,t),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,r,t),e=a.subParser("encodeBackslashEscapes")(e,r,t),e=a.subParser("images")(e,r,t),e=a.subParser("anchors")(e,r,t),e=a.subParser("autoLinks")(e,r,t),e=a.subParser("encodeAmpsAndAngles")(e,r,t),e=a.subParser("italicsAndBold")(e,r,t),e=(e=a.subParser("strikethrough")(e,r,t)).replace(/ +\n/g,"
\n"),t.converter._dispatch("spanGamut.after",e,r,t)})),a.subParser("strikethrough",(function(e,r,t){return r.strikethrough&&(e=(e=t.converter._dispatch("strikethrough.before",e,r,t)).replace(/(?:~T){2}([\s\S]+?)(?:~T){2}/g,"$1"),e=t.converter._dispatch("strikethrough.after",e,r,t)),e})),a.subParser("stripBlankLines",(function(e){return e.replace(/^[ \t]+$/gm,"")})),a.subParser("stripLinkDefinitions",(function(e,r,t){return(e=(e+="~0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=~0))/gm,(function(e,n,s,o,i,l,c){return n=n.toLowerCase(),t.gUrls[n]=a.subParser("encodeAmpsAndAngles")(s),l?l+c:(c&&(t.gTitles[n]=c.replace(/"|'/g,""")),r.parseImgDimensions&&o&&i&&(t.gDimensions[n]={width:o,height:i}),"")}))).replace(/~0/,"")})),a.subParser("tables",(function(e,r,t){function n(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function s(e,n){var s="";return e=e.trim(),r.tableHeaderId&&(s=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),""+(e=a.subParser("spanGamut")(e,r,t))+"\n"}function o(e,n){return""+a.subParser("spanGamut")(e,r,t)+"\n"}if(!r.tables)return e;return e=(e=t.converter._dispatch("tables.before",e,r,t)).replace(/^[ \t]{0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|~0)/gm,(function(e){var r,t=e.split("\n");for(r=0;r\n\n\n",s=0;s\n";for(var a=0;a\n"}return t+"\n\n"}(u,h)})),t.converter._dispatch("tables.after",e,r,t)})),a.subParser("unescapeSpecialChars",(function(e){return e.replace(/~E(\d+)E/g,(function(e,r){var t=parseInt(r);return String.fromCharCode(t)}))})),module.exports=a; +},{isPage:false,isComponent:false,currentFile:'wxParse/showdown.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/wxDiscode.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";module.exports={strDiscode:function(e){return function(e){return(e=(e=e.replace(/\r\n/g,"")).replace(/\n/g,"")).replace(/code/g,"wxxxcode-style")}(e=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/Œ/g,"Œ")).replace(/œ/g,"œ")).replace(/Š/g,"Š")).replace(/š/g,"š")).replace(/Ÿ/g,"Ÿ")).replace(/ƒ/g,"ƒ")).replace(/ˆ/g,"ˆ")).replace(/˜/g,"˜")).replace(/ /g,"")).replace(/ /g,"")).replace(/ /g,"")).replace(/‌/g,"")).replace(/‍/g,"")).replace(/‎/g,"")).replace(/‏/g,"")).replace(/–/g,"–")).replace(/—/g,"—")).replace(/‘/g,"‘")).replace(/’/g,"’")).replace(/‚/g,"‚")).replace(/“/g,"“")).replace(/”/g,"”")).replace(/„/g,"„")).replace(/†/g,"†")).replace(/‡/g,"‡")).replace(/•/g,"•")).replace(/…/g,"…")).replace(/‰/g,"‰")).replace(/′/g,"′")).replace(/″/g,"″")).replace(/‹/g,"‹")).replace(/›/g,"›")).replace(/‾/g,"‾")).replace(/€/g,"€")).replace(/™/g,"™")).replace(/←/g,"←")).replace(/↑/g,"↑")).replace(/→/g,"→")).replace(/↓/g,"↓")).replace(/↔/g,"↔")).replace(/↵/g,"↵")).replace(/⌈/g,"⌈")).replace(/⌉/g,"⌉")).replace(/⌊/g,"⌊")).replace(/⌋/g,"⌋")).replace(/◊/g,"◊")).replace(/♠/g,"♠")).replace(/♣/g,"♣")).replace(/♥/g,"♥")).replace(/♦/g,"♦")}(e=function(e){return(e=(e=(e=(e=e.replace(/ /g," ")).replace(/"/g,"'")).replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")}(e=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/Α/g,"Α")).replace(/Β/g,"Β")).replace(/Γ/g,"Γ")).replace(/Δ/g,"Δ")).replace(/Ε/g,"Ε")).replace(/Ζ/g,"Ζ")).replace(/Η/g,"Η")).replace(/Θ/g,"Θ")).replace(/Ι/g,"Ι")).replace(/Κ/g,"Κ")).replace(/Λ/g,"Λ")).replace(/Μ/g,"Μ")).replace(/Ν/g,"Ν")).replace(/Ξ/g,"Ν")).replace(/Ο/g,"Ο")).replace(/Π/g,"Π")).replace(/Ρ/g,"Ρ")).replace(/Σ/g,"Σ")).replace(/Τ/g,"Τ")).replace(/Υ/g,"Υ")).replace(/Φ/g,"Φ")).replace(/Χ/g,"Χ")).replace(/Ψ/g,"Ψ")).replace(/Ω/g,"Ω")).replace(/α/g,"α")).replace(/β/g,"β")).replace(/γ/g,"γ")).replace(/δ/g,"δ")).replace(/ε/g,"ε")).replace(/ζ/g,"ζ")).replace(/η/g,"η")).replace(/θ/g,"θ")).replace(/ι/g,"ι")).replace(/κ/g,"κ")).replace(/λ/g,"λ")).replace(/μ/g,"μ")).replace(/ν/g,"ν")).replace(/ξ/g,"ξ")).replace(/ο/g,"ο")).replace(/π/g,"π")).replace(/ρ/g,"ρ")).replace(/ς/g,"ς")).replace(/σ/g,"σ")).replace(/τ/g,"τ")).replace(/υ/g,"υ")).replace(/φ/g,"φ")).replace(/χ/g,"χ")).replace(/ψ/g,"ψ")).replace(/ω/g,"ω")).replace(/ϑ/g,"ϑ")).replace(/ϒ/g,"ϒ")).replace(/ϖ/g,"ϖ")).replace(/·/g,"·")}(e=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/∀/g,"∀")).replace(/∂/g,"∂")).replace(/&exists;/g,"∃")).replace(/∅/g,"∅")).replace(/∇/g,"∇")).replace(/∈/g,"∈")).replace(/∉/g,"∉")).replace(/∋/g,"∋")).replace(/∏/g,"∏")).replace(/∑/g,"∑")).replace(/−/g,"−")).replace(/∗/g,"∗")).replace(/√/g,"√")).replace(/∝/g,"∝")).replace(/∞/g,"∞")).replace(/∠/g,"∠")).replace(/∧/g,"∧")).replace(/∨/g,"∨")).replace(/∩/g,"∩")).replace(/∩/g,"∪")).replace(/∫/g,"∫")).replace(/∴/g,"∴")).replace(/∼/g,"∼")).replace(/≅/g,"≅")).replace(/≈/g,"≈")).replace(/≠/g,"≠")).replace(/≤/g,"≤")).replace(/≥/g,"≥")).replace(/⊂/g,"⊂")).replace(/⊃/g,"⊃")).replace(/⊄/g,"⊄")).replace(/⊆/g,"⊆")).replace(/⊇/g,"⊇")).replace(/⊕/g,"⊕")).replace(/⊗/g,"⊗")).replace(/⊥/g,"⊥")).replace(/⋅/g,"⋅")}(e)))))},urlToHttpUrl:function(e,a){return new RegExp("^//").test(e)&&(e=a+":"+e),e}}; +},{isPage:false,isComponent:false,currentFile:'wxParse/wxDiscode.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/wxParse.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function a(e){var a=e.target.dataset.src,t=e.target.dataset.from;void 0!==t&&t.length>0&&wx.previewImage({current:a,urls:this.data[t].imageUrls})}function t(e){return!1}var r=e(require("./showdown.js")),i=e(require("./html2json.js"));module.exports={wxParse:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wxParseData",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'
数据不能为空
',o=arguments[3],d=arguments[4],l=o,m={};if("html"==n)m=i.default.html2json(s,e);else if("md"==n||"markdown"==n){var u=(new r.default.Converter).makeHtml(s);m=i.default.html2json(u,e)}m.view={},m.view.imagePadding=0,void 0!==d&&(m.view.imagePadding=d);var v={};v[e]=m,l.setData(v),l.wxParseImgLoad=t,l.wxParseImgTap=a},wxParseTemArray:function(e,a,t,r){for(var i=[],n=r.data,s=null,o=0;o0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/wxParse/emojis/",t=arguments[2];i.default.emojisInit(e,a,t)}}; +},{isPage:false,isComponent:false,currentFile:'wxParse/wxParse.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("app.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";App({onLaunch:function(){var t=wx.getStorageSync("logs")||[];t.unshift(Date.now()),wx.setStorageSync("logs",t)},getUserInfo:function(t){var n=this;this.globalData.userInfo?"function"==typeof t&&t(this.globalData.userInfo):wx.getUserInfo({withCredentials:!1,success:function(o){n.globalData.userInfo=o.userInfo,"function"==typeof t&&t(n.globalData.userInfo)}})},globalData:{userInfo:null}}); +},{isPage:false,isComponent:false,currentFile:'app.js'});require("app.js");$gwx_XC_0=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_0 || []; +function gz$gwx_XC_0_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_0_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_0_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_0=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_0=true; +var x=['./pages/case/detail.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_0_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_0";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_0(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/case/detail.wxml'] = [$gwx_XC_0, './pages/case/detail.wxml'];else __wxAppCode__['pages/case/detail.wxml'] = $gwx_XC_0( './pages/case/detail.wxml' ); + ;__wxRoute = "pages/case/detail";__wxRouteBegin = true;__wxAppCurrentFile__="pages/case/detail.js";define("pages/case/detail.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],id:0,setting:[]},onLoad:function(t){console.log(t),a.that=this,a.style(),a.that.setData({id:t.id}),this.getDetail()},getDetail:function(i){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/detail",{id:a.that.data.id},(function(t){wx.hideLoading(),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:a.that.data.setting.service_tel,success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},onShareAppMessage:function(i){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/case/detail?id="+a.that.data.id,success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/case/detail.js'});require("pages/case/detail.js");$gwx_XC_1=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_1 || []; +function gz$gwx_XC_1_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_1_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_1_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_1=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_1=true; +var x=['./pages/case/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_1_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_1";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_1(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/case/index.wxml'] = [$gwx_XC_1, './pages/case/index.wxml'];else __wxAppCode__['pages/case/index.wxml'] = $gwx_XC_1( './pages/case/index.wxml' ); + ;__wxRoute = "pages/case/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/case/index.js";define("pages/case/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],page:1,more:0,type:0},onShow:function(){a.that=this,a.globalData=t.globalData,this.setData({datas:[],page:1,more:0}),this.getHome()},onLoad:function(){a.that=this,a.style()},more:function(t){this.getHomeList()},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/plan",{page:a.that.data.page},(function(t){var o=a.that.data.datas;for(var e in t.list)o.push(t.list[e]);console.log(t),wx.hideLoading(),a.that.setData({datas:o,page:a.that.data.page+1,more:t.more})}))},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/case/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/case/index.js'});require("pages/case/index.js");$gwx_XC_2=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_2 || []; +function gz$gwx_XC_2_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_2_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_2_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_2=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_2=true; +var x=['./pages/contact/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_2_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_2";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_2(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/contact/index.wxml'] = [$gwx_XC_2, './pages/contact/index.wxml'];else __wxAppCode__['pages/contact/index.wxml'] = $gwx_XC_2( './pages/contact/index.wxml' ); + ;__wxRoute = "pages/contact/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/contact/index.js";define("pages/contact/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var a=require("../../utils/request");Page({data:{addr:"",content:"",gs:"",name:"",phone:""},onShow:function(){},onLoad:function(t){var n=this,e=t.openid;a.request({url:"/index.php?s=/api/api/phone",method:"GET",showLoading:!1,data:{openid:e}}).then((function(a){console.log(a),n.setData({addr:a.data.data.addr,content:a.data.data.content,gs:a.data.data.gs,name:a.data.data.name,phone:a.data.data.phone})})).catch((function(a){console.log("ERROR")}))}}); +},{isPage:true,isComponent:true,currentFile:'pages/contact/index.js'});require("pages/contact/index.js");$gwx_XC_3=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_3 || []; +function gz$gwx_XC_3_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_3_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_3_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_3=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_3=true; +var x=['./pages/contact/liuyan.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_3_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_3";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_3(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/contact/liuyan.wxml'] = [$gwx_XC_3, './pages/contact/liuyan.wxml'];else __wxAppCode__['pages/contact/liuyan.wxml'] = $gwx_XC_3( './pages/contact/liuyan.wxml' ); + ;__wxRoute = "pages/contact/liuyan";__wxRouteBegin = true;__wxAppCurrentFile__="pages/contact/liuyan.js";define("pages/contact/liuyan.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:""},onLoad:function(){a.that=this,a.style()},fromSubmit:function(e){console.log("fromSubmit");var o=e.detail.value;console.log(e),a.that=this,a.globalData=t.globalData,wx.showLoading({title:"正在加载中.."}),a.Post("/api/companygw.index/consult",{openid:a.getOpenId(),product_name:o.product_name,name:o.name,tel:o.tel,remarks:o.remarks},(function(t){console.log(t),wx.hideLoading(),wx.showToast({title:"提交成功"});var a=getCurrentPages().length;wx.navigateBack({delta:a-1})}))}}); +},{isPage:true,isComponent:true,currentFile:'pages/contact/liuyan.js'});require("pages/contact/liuyan.js");$gwx_XC_4=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_4 || []; +function gz$gwx_XC_4_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_4_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_4_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_4=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_4=true; +var x=['./pages/index/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_4_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_4";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_4(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/index/index.wxml'] = [$gwx_XC_4, './pages/index/index.wxml'];else __wxAppCode__['pages/index/index.wxml'] = $gwx_XC_4( './pages/index/index.wxml' ); + ;__wxRoute = "pages/index/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/index/index.js";define("pages/index/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js"),o=require("../../utils/request");require("../../utils/wxb.js").that;Page({data:{color:"",datas:[],setting:[]},onShow:function(){a.that=this,a.globalData=t.globalData,console.log(a.that.data.setting)},onLoad:function(){a.that=this,this.getList(),a.style(),this.getHome()},getList:function(){var t=this;o.request({method:"GET",showLoading:!1,url:"/api.php"}).then((function(a){console.log(a),t.setData({a1000:a.data.data.a_1000,a1200:a.data.data.a_1200})})).catch((function(t){console.log("ERROR")}))},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/index",{},(function(t){wx.hideLoading(),console.log(t.banner),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:"18063442990",success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},jjfa:function(){wx.navigateTo({url:"/pages/case/index"})},cpzx:function(){wx.navigateTo({url:"/pages/product/index"})},qydt:function(){wx.navigateTo({url:"/pages/news/index"})},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/index/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/index/index.js'});require("pages/index/index.js");$gwx_XC_5=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_5 || []; +function gz$gwx_XC_5_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_5_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([[8],'wxParseData',[[6],[[7],[3,'article']],[3,'nodes']]]) +Z([3,'wxParse']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_5_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_5=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_5=true; +var x=['./pages/main/detail.wxml','../../wxParse/wxParse.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_5_1() +var oH=e_[x[0]].i +_ai(oH,x[1],e_,x[0],1,1) +var cI=_v() +_(r,cI) +var oJ=_oz(z,1,e,s,gg) +var lK=_gd(x[0],oJ,e_,d_) +if(lK){ +var aL=_1z(z,0,e,s,gg) || {} +var cur_globalf=gg.f +cI.wxXCkey=3 +lK(aL,aL,cI,gg) +gg.f=cur_globalf +} +else _w(oJ,x[0],2,127) +oH.pop() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[x[1]],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_5";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_5(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/main/detail.wxml'] = [$gwx_XC_5, './pages/main/detail.wxml'];else __wxAppCode__['pages/main/detail.wxml'] = $gwx_XC_5( './pages/main/detail.wxml' ); + ;__wxRoute = "pages/main/detail";__wxRouteBegin = true;__wxAppCurrentFile__="pages/main/detail.js";define("pages/main/detail.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var a=require("../../utils/request"),t=require("../../wxParse/wxParse.js");Page({data:{art:null},detail:function(e){var i=this;a.request({url:"/index.php?s=/api/api/detail",method:"GET",showLoading:!1,data:{id:e}}).then((function(a){console.log(a),i.setData({art:a.data.data.res}),t.wxParse("article","html",i.data.art.content,i,5)})).catch((function(a){console.log(a),console.log("ERROR")}))},onLoad:function(a){var t=a.id;this.detail(t)}}); +},{isPage:true,isComponent:true,currentFile:'pages/main/detail.js'});require("pages/main/detail.js");$gwx_XC_6=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_6 || []; +function gz$gwx_XC_6_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_6_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([[2,'!'],[[7],[3,'sh']]]) +Z([[2,'=='],[[7],[3,'status']],[1,'0']]) +Z([3,'fromSubmit']) +Z([[7],[3,'isUp']]) +Z([[2,'=='],[[7],[3,'status']],[1,'1']]) +Z([[2,'=='],[[7],[3,'status']],[1,'3']]) +Z([[2,'||'],[[2,'=='],[[7],[3,'status']],[1,'2']],[[7],[3,'sh']]]) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_6_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_6=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_6=true; +var x=['./pages/main/main.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_6_1() +var eN=_v() +_(r,eN) +if(_oz(z,0,e,s,gg)){eN.wxVkey=1 +var oP=_n('view') +var xQ=_v() +_(oP,xQ) +if(_oz(z,1,e,s,gg)){xQ.wxVkey=1 +var cT=_n('form') +_rz(z,cT,'bindsubmit',2,e,s,gg) +var hU=_v() +_(cT,hU) +if(_oz(z,3,e,s,gg)){hU.wxVkey=1 +} +hU.wxXCkey=1 +_(xQ,cT) +} +var oR=_v() +_(oP,oR) +if(_oz(z,4,e,s,gg)){oR.wxVkey=1 +} +var fS=_v() +_(oP,fS) +if(_oz(z,5,e,s,gg)){fS.wxVkey=1 +} +xQ.wxXCkey=1 +oR.wxXCkey=1 +fS.wxXCkey=1 +_(eN,oP) +} +var bO=_v() +_(r,bO) +if(_oz(z,6,e,s,gg)){bO.wxVkey=1 +} +eN.wxXCkey=1 +bO.wxXCkey=1 +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_6";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_6(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/main/main.wxml'] = [$gwx_XC_6, './pages/main/main.wxml'];else __wxAppCode__['pages/main/main.wxml'] = $gwx_XC_6( './pages/main/main.wxml' ); + ;__wxRoute = "pages/main/main";__wxRouteBegin = true;__wxAppCurrentFile__="pages/main/main.js";define("pages/main/main.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=require("../../@babel/runtime/helpers/regeneratorRuntime"),a=require("../../@babel/runtime/helpers/asyncToGenerator"),e=require("../../utils/request"),o=require("../../utils/loading.js");Page({data:{sh:!0,imgList:[],maxCount:3,isUp:!0,openid:"",status:null,indexData:null,timeStr:""},indexData:function(){var t=this;e.request({url:"/index.php?s=/api/api/indexData",method:"GET",showLoading:!1}).then((function(a){console.log(a),t.setData({indexData:a.data.data.res}),t.setData({sh:a.data.data.res.shenhe})})).catch((function(t){console.log("ERROR")}))},wxLogin:function(){var t=this;wx.login({success:function(a){a.code?e.request({url:"/index.php?s=/api/api/login",method:"GET",showLoading:!1,data:{code:a.code}}).then((function(a){console.log(a),t.setData({openid:a.data.data.openid}),t.getInfo(),t.getList()})).catch((function(t){console.log("ERROR")})):console.log("登录失败!"+a.errMsg)}})},getList:function(){var t=this,a=this.data.openid;a||(a=""),e.request({method:"GET",showLoading:!1,url:"/index.php?s=/api/api/userbj",data:{openid:a}}).then((function(a){console.log(a),t.setData({a1000:a.data.data.res.a_1000,a1200:a.data.data.res.a_1200,timeStr:a.data.data.res.timeStr})})).catch((function(t){console.log("ERROR")}))},dowimg:function(){var t=this.data.openid;t||(t=""),o.showLoading("下载中"),e.request({method:"GET",showLoading:!1,url:"/index.php?s=/api/api/userbjimg",data:{openid:t}}).then((function(t){console.log(t);t.data.data.img_base64;var a=t.data.data.img_url;wx.downloadFile({url:a,success:function(t){200===t.statusCode&&wx.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(t){o.hideLoading(),wx.showToast({title:"保存图片成功!"})},fail:function(t){o.hideLoading(),wx.showToast({title:"保存图片失败!"})}})}})})).catch((function(t){console.log("ERROR")}))},getInfo:function(){var t=this;e.request({url:"/index.php?s=/api/api/userInfo",method:"GET",showLoading:!1,data:{openid:t.data.openid}}).then((function(a){console.log(a),t.setData({status:a.data.data.status})})).catch((function(t){console.log("ERROR")}))},fromSubmit:function(t){var a=this,o=t.detail.value;""!=o.username?""!=o.phone?""!=o.number?""!=o.tjr_phone?(o.images=a.data.imgList,o.openid=a.data.openid,e.request({url:"/index.php?s=/api/api/register",method:"POST",showLoading:!1,data:o}).then((function(t){return 1==t.data.code?(a.setData({status:t.data.data.status}),void wx.showToast({title:"注册成功",icon:"none",duration:3e3})):void wx.showToast({title:"注册失败",icon:"none",duration:3e3})})).catch((function(t){console.log("ERROR")}))):wx.showToast({title:"业务员手机号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的身份证号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的手机号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的称呼还没输入呢",icon:"none",duration:3e3})},uploadImage:function(){var e=this;return a(t().mark((function a(){var o,n,i,s,d,r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(o=e).data.imgList,i=o.data.maxCount,t.prev=3,t.next=6,wx.chooseMedia({count:i-n.length,mediaType:["image"],sourceType:["album","camera"],maxDuration:30,sizeType:["compressed"],camera:"back"});case 6:if("chooseMedia:ok"==(s=t.sent).errMsg){t.next=10;break}return wx.showToast({title:"上传失败",icon:"none",duration:3e3}),t.abrupt("return");case 10:if("image"==s.type){t.next=13;break}return wx.showToast({title:"只能上传图片类型",icon:"none",duration:3e3}),t.abrupt("return");case 13:for(wx.showLoading({title:"图片上传中"}),d=s.tempFiles,r=0;r=o.data.maxCount&&o.setData({isUp:!1})):(wx.hideLoading(),wx.showModal({title:"提示",content:"上传失败",showCancel:!1}))}});t.next=21;break;case 18:t.prev=18,t.t0=t.catch(3),console.log(t.t0);case 21:case"end":return t.stop()}}),a,null,[[3,18]])})))()},reBackImg:function(t){var a=t.currentTarget.dataset.index;console.log(a);var e=this.data.imgList;e.splice(a,1),e.length=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:G(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},e}module.exports=r,module.exports.__esModule=!0,module.exports.default=module.exports; + +},{isPage:false,isComponent:false,currentFile:'@babel/runtime/helpers/regeneratorRuntime.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("@babel/runtime/helpers/typeof.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +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; +},{isPage:false,isComponent:false,currentFile:'@babel/runtime/helpers/typeof.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("utils/loading.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.showToast=exports.showLoading=exports.hideLoading=void 0;exports.showToast=function(o,e){e||(e=2e3),wx.showToast({title:o,icon:"none",duration:e})};var o=!1;exports.showLoading=function(e){o||wx.showLoading({title:e||"",mask:!0,success:function(){o=!0}})};exports.hideLoading=function(){o&&(o=!1,wx.hideLoading())}; +},{isPage:false,isComponent:false,currentFile:'utils/loading.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("utils/request.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var o=require("./loading.js");module.exports={request:function(e){return new Promise((function(t,n){var s={};e.data&&(s=e.data);var a="application/json";e.contentType&&(a=e.contentType);var l="GET";e.method&&(l=e.method),wx.request({url:"https://lvcai.19year.cn"+e.url,data:s,method:l,header:{"Content-Type":a,token:wx.getStorageSync("token")},success:function(o){200==o.statusCode?t(o):401==o.statusCode?(n("登录已过期"),wx.reLaunch({url:"/pages/login/login"})):n("请求失败:"+o.statusCode)},fail:function(o){console.log("==============================================================================================="),console.log("== 接口地址:"+url),console.log("== 接口参数:"+JSON.stringify(s)),console.log("== 请求类型:"+l),console.log("== 服务器连接异常"),console.log("==============================================================================================="),n("服务器连接异常,请检查网络再试")},complete:function(){o.hideLoading()}})}))}}; +},{isPage:false,isComponent:false,currentFile:'utils/request.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("utils/wxb.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e,t){var a=new Date;a.setDate(a.getDate()+e);var i=a.getFullYear(),o=a.getMonth()+1,n=a.getDate();return o<10&&(o="0"+o),n<10&&(n="0"+n),1==t?o+"月"+n+"日":i+"-"+o+"-"+n}function t(e,t,i){module.exports.globalData.apiurl?a(e,t,i):wx.getExtConfig({success:function(o){module.exports.globalData=o.extConfig,a(e,t,i),console.log(module.exports.globalData.apiurl)}})}function a(e,t,a){var i=module.exports.globalData.apiurl+e+"?appid="+module.exports.globalData.appid+"&appkey="+module.exports.globalData.appkey;wx.request({url:i,data:t,method:"POST",dataType:"json",success:function(e){switch(console.log(e),e.data.code){case 100:case 101:break;case 200:a(e.data.data);break;default:console.log(e.data.msg),wx.showToast({image:"/img/kulian.png",title:e.data.msg})}},fail:function(e){wx.hideLoading()}})}module.exports={getStyle:function(e){var t=(e=JSON.parse(e)).skin?e.skin:"#28e018";module.exports.that.setData({color:t,setting:e}),wx.setNavigationBarColor({backgroundColor:t,frontColor:"#ffffff"})},style:function(){var e=wx.getStorageSync("wxb_skin"),a=e?JSON.parse(e):[],i=a.last_time?a.last_time:Date.parse(new Date)/1e3,o=Date.parse(new Date)/1e3;!e||o>=i?t("/api/data/getSkinSetting",{},(function(e){wx.setStorageSync("wxb_skin",JSON.stringify(e)),module.exports.getStyle(JSON.stringify(e))})):module.exports.getStyle(e)},login:function(){wx.login({success:function(e){e.code?t("/api/login/index",{code:e.code},(function(e){if(e.face&&e.nick_name){module.exports.that.setData({userinfo:e});var a=JSON.stringify(e);wx.setStorageSync("userinfo",a)}else wx.getUserInfo({success:function(a){var i=JSON.parse(a.rawData);console.log(i),t("/api/login/bind",{openid:e.open_id,face:i.avatarUrl,nick_name:i.nickName,sex:i.gender},(function(e){module.exports.that.setData({userinfo:e});var t=JSON.stringify(e);wx.setStorageSync("userinfo",t)}))},fail:function(){wx.showToast({image:"/img/kulian.png",title:"拒绝了授权"})}})})):wx.showToast({image:"/img/kulian.png",title:"拒绝了授权"})}})},checkAuthLogin:function(e){var t=wx.getStorageSync("userinfo"),a=t?JSON.parse(t):{};return!!a.open_id&&(!(Date.parse(new Date)/1e3-a.last_time>86400)&&(1==e&&module.exports.that.setData({userinfo:a}),!0))},checkLogin:function(){var e=wx.getStorageSync("userinfo"),t=JSON.parse(e);return!!t.mobile&&(module.exports.that.setData({userinfo:t}),!0)},getOpenId:function(){var e=wx.getStorageSync("userinfo"),t=e?JSON.parse(e):{};return t.open_id?t.open_id:0},dingWei:function(e,t){var a=wx.getStorageSync("city"),i=a?JSON.parse(a):{};if(i.city_id){var o=0;for(var n in e)if(e[n].city_id==i.city_id){i={city_id:e[n].city_id,city_name:e[n].city_name},o=1;break}0==o&&(i={city_id:e[0].city_id,city_name:e[0].city_name}),module.exports.setCity(i.city_id,i.city_name),null!=t&&t(i)}else{for(var n in e)if(1==e[n].default){i={city_id:e[n].city_id,city_name:e[n].city_name};break}i.city_id||(i={city_id:e[0].city_id,city_name:e[0].city_name}),module.exports.setCity(i.city_id,i.city_name),null!=t&&t(i)}},setCity:function(e,t){var a={city_id:e,city_name:t},i=JSON.stringify(a);wx.setStorageSync("city",i)},getCityList:function(e){t("/api/city/getCityList",{},(function(t){e(t)}))},getCity:function(){var e=wx.getStorageSync("city");return e?JSON.parse(e):{}},getBgEndDate:function(){var t=wx.getStorageSync("wxb_bg_end_date"),a=e(0);if(t){var i=JSON.parse(t);if(console.log(i.bg_date),console.log(a),i.bg_date&&i.bg_date>=a)return i}return i={day:2,day2:1,bg_date:e(0),end_date:e(1),bg_date1:e(0,1),end_date1:e(1,1)}},getStoreCode:function(){var e=wx.getStorageSync("storeinfo"),t=e?JSON.parse(e):{};return!!t.code&&(!(Date.parse(new Date)/1e3-t.last_time>86400)&&t.code)},setStoreCode:function(e){var t={code:e,last_time:Date.parse(new Date)/1e3};return wx.setStorageSync("storeinfo",JSON.stringify(t)),!0},fileupload:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;wx.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(a){var i=a.tempFilePaths;wx.showLoading({title:"图片上传中.."}),wx.uploadFile({url:module.exports.globalData.apiurl+"/api/upload/upload",filePath:i[0],name:"file",formData:{mdl:e},success:function(e){wx.hideLoading(),wx.showToast({title:"上传成功"});var a=JSON.parse(e.data);t(a.data)},fail:function(e){wx.showToast({title:"图片上传中"})}})}})},Post:t,globalData:[],that:null,lock:0}; +},{isPage:false,isComponent:false,currentFile:'utils/wxb.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/html2json.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e){for(var t={},r=e.split(","),s=0;s\n/,"").replace(/<.*!doctype.*\>\n/,"").replace(/<.*!DOCTYPE.*\>\n/,"")}(e),e=o.strDiscode(e);var s=[],a={node:r,nodes:[],images:[],imageUrls:[]};return n(e,{start:function(e,t,n){var c={node:"element",tag:e};if(i[e]?c.tagType="block":l[e]?c.tagType="inline":d[e]&&(c.tagType="closeSelf"),0!==t.length&&(c.attr=t.reduce((function(e,t){var r=t.name,s=t.value;return"class"==r&&(console.log(s),c.classStr=s),"style"==r&&(console.log(s),c.styleStr=s),s.match(/ /)&&(s=s.split(" ")),e[r]?Array.isArray(e[r])?e[r].push(s):e[r]=[e[r],s]:e[r]=s,e}),{})),"img"===c.tag){c.imgIndex=a.images.length;var u=c.attr.src;u=o.urlToHttpUrl(u,"https"),c.attr.src=u,c.from=r,a.images.push(c),a.imageUrls.push(u)}if("font"===c.tag){var p=["x-small","small","medium","large","x-large","xx-large","-webkit-xxx-large"],m={color:"color",face:"font-family",size:"font-size"};for(var f in c.attr.style||(c.attr.style=[]),c.styleStr||(c.styleStr=""),m)if(c.attr[f]){var h="size"===f?p[c.attr[f]-1]:c.attr[f];c.attr.style.push(m[f]),c.attr.style.push(h),c.styleStr+=m[f]+": "+h+";"}}if("source"===c.tag&&(a.source=c.attr.src),n){var g=s[0]||a;void 0===g.nodes&&(g.nodes=[]),g.nodes.push(c)}else s.unshift(c)},end:function(e){var t=s.shift();if(t.tag!==e&&console.error("invalid state: mismatch end tag"),"video"===t.tag&&a.source&&(t.attr.src=a.source,delete result.source),0===s.length)a.nodes.push(t);else{var r=s[0];void 0===r.nodes&&(r.nodes=[]),r.nodes.push(t)}},chars:function(e){var r={node:"text",text:e,textArray:t(e)};if(0===s.length)a.nodes.push(r);else{var o=s[0];void 0===o.nodes&&(o.nodes=[]),o.nodes.push(r)}},comment:function(e){}}),a},emojisInit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/wxParse/emojis/",o=arguments[2];r=e,s=t,a=o}}; +},{isPage:false,isComponent:false,currentFile:'wxParse/html2json.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/htmlparser.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e){for(var t={},r=e.split(","),s=0;s\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,s=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,a=e("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),n=e("a,address,code,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),i=e("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),o=e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=e("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),c=e("wxxxcode-style,script,style,view,scroll-view,block");module.exports=function(e,d){function f(e,t){if(t)for(t=t.toLowerCase(),r=b.length-1;r>=0&&b[r]!=t;r--);else var r=0;if(r>=0){for(var s=b.length-1;s>=r;s--)d.end&&d.end(b[s]);b.length=r}}var p,u,h,b=[],m=e;for(b.last=function(){return this[this.length-1]};e;){if(u=!0,b.last()&&c[b.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),(function(e,t){return t=t.replace(/|/g,"$1$2"),d.chars&&d.chars(t),""})),f(0,b.last());else if(0==e.indexOf("\x3c!--")?(p=e.indexOf("--\x3e"))>=0&&(d.comment&&d.comment(e.substring(4,p)),e=e.substring(p+3),u=!1):0==e.indexOf("":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var o=0;o-1,p=new RegExp(r+"|"+t,"g"+c.replace(/g/g,"")),h=new RegExp(r,c.replace(/g/g,"")),d=[];do{for(s=0;o=p.exec(e);)if(h.test(o[0]))s++||(i=(a=p.lastIndex)-o[0].length);else if(s&&!--s){l=o.index+o[0].length;var f={left:{start:i,end:a},match:{start:a,end:o.index},right:{start:o.index,end:l},wholeMatch:{start:i,end:l}};if(d.push(f),!u)return d}}while(s&&(p.lastIndex=a));return d};a.helper.matchRecursiveRegExp=function(e,r,t,n){for(var s=u(e,r,t,n),a=[],o=0;o0){var p=[];0!==i[0].wholeMatch.start&&p.push(e.slice(0,i[0].wholeMatch.start));for(var h=0;h-1))return e;h=""}else h=t.gUrls[p],a.helper.isUndefined(t.gTitles[p])||(d=t.gTitles[p]);var f='"+u+""};return e=(e=(e=(e=t.converter._dispatch("anchors.before",e,r,t)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)][ ]?(?:\n[ ]*)?\[(.*?)])()()()()/g,n)).replace(/(\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,n)).replace(/(\[([^\[\]]+)])()()()()()/g,n),t.converter._dispatch("anchors.after",e,r,t)})),a.subParser("autoLinks",(function(e,r,t){function n(e,r){var t=r;return/^www\./i.test(r)&&(r=r.replace(/^www\./i,"http://www.")),''+t+""}function s(e,r){var t=a.subParser("unescapeSpecialChars")(r);return a.subParser("encodeEmailAddress")(t)}return e=(e=(e=t.converter._dispatch("autoLinks.before",e,r,t)).replace(/<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)>/gi,n)).replace(/<(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,s),r.simplifiedAutoLink&&(e=(e=e.replace(/\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/gi,n)).replace(/(?:^|[ \n\t])([A-Za-z0-9!#$%&'*+-/=?^_`\{|}~\.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?:$|[ \n\t])/gi,s)),t.converter._dispatch("autoLinks.after",e,r,t)})),a.subParser("blockGamut",(function(e,r,t){e=t.converter._dispatch("blockGamut.before",e,r,t),e=a.subParser("blockQuotes")(e,r,t),e=a.subParser("headers")(e,r,t);var n=a.subParser("hashBlock")("
",r,t);return e=(e=(e=e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,n)).replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm,n)).replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,n),e=a.subParser("lists")(e,r,t),e=a.subParser("codeBlocks")(e,r,t),e=a.subParser("tables")(e,r,t),e=a.subParser("hashHTMLBlocks")(e,r,t),e=a.subParser("paragraphs")(e,r,t),t.converter._dispatch("blockGamut.after",e,r,t)})),a.subParser("blockQuotes",(function(e,r,t){return e=(e=t.converter._dispatch("blockQuotes.before",e,r,t)).replace(/((^[ \t]{0,3}>[ \t]?.+\n(.+\n)*\n*)+)/gm,(function(e,n){var s=n;return s=(s=(s=s.replace(/^[ \t]*>[ \t]?/gm,"~0")).replace(/~0/g,"")).replace(/^[ \t]+$/gm,""),s=a.subParser("githubCodeBlocks")(s,r,t),s=(s=(s=a.subParser("blockGamut")(s,r,t)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,r){var t=r;return(t=t.replace(/^  /gm,"~0")).replace(/~0/g,"")})),a.subParser("hashBlock")("
\n"+s+"\n
",r,t)})),t.converter._dispatch("blockQuotes.after",e,r,t)})),a.subParser("codeBlocks",(function(e,r,t){e=t.converter._dispatch("codeBlocks.before",e,r,t);return e=(e=(e+="~0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,(function(e,n,s){var o=n,i=s,l="\n";return o=a.subParser("outdent")(o),o=a.subParser("encodeCode")(o),o=(o=(o=a.subParser("detab")(o)).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.omitExtraWLInCodeBlocks&&(l=""),o="
"+o+l+"
",a.subParser("hashBlock")(o,r,t)+i}))).replace(/~0/,""),t.converter._dispatch("codeBlocks.after",e,r,t)})),a.subParser("codeSpans",(function(e,r,t){return void 0===(e=t.converter._dispatch("codeSpans.before",e,r,t))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,t,n){var s=n;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),r+""+(s=a.subParser("encodeCode")(s))+""})),t.converter._dispatch("codeSpans.after",e,r,t)})),a.subParser("detab",(function(e){return(e=(e=(e=(e=e.replace(/\t(?=\t)/g," ")).replace(/\t/g,"~A~B")).replace(/~B(.+?)~A/g,(function(e,r){for(var t=r,n=4-t.length%4,s=0;s#+-.!])/g,a.helper.escapeCharactersCallback)})),a.subParser("encodeCode",(function(e){return e=(e=(e=e.replace(/&/g,"&")).replace(//g,">"),a.helper.escapeCharacters(e,"*_{}[]\\",!1)})),a.subParser("encodeEmailAddress",(function(e){var r=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return(e='.9?r[2](e):t>.45?r[1](e):r[0](e)}return e})))+'">'+e+"").replace(/">.+:/g,'">')})),a.subParser("escapeSpecialCharsWithinTagAttributes",(function(e){return e.replace(/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi,(function(e){var r=e.replace(/(.)<\/?code>(?=.)/g,"$1`");return a.helper.escapeCharacters(r,"\\`*_",!1)}))})),a.subParser("githubCodeBlocks",(function(e,r,t){return r.ghCodeBlocks?(e=t.converter._dispatch("githubCodeBlocks.before",e,r,t),e=(e=(e+="~0").replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g,(function(e,n,s){var o=r.omitExtraWLInCodeBlocks?"":"\n";return s=a.subParser("encodeCode")(s),s="
"+(s=(s=(s=a.subParser("detab")(s)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+o+"
",s=a.subParser("hashBlock")(s,r,t),"\n\n~G"+(t.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}))).replace(/~0/,""),t.converter._dispatch("githubCodeBlocks.after",e,r,t)):e})),a.subParser("hashBlock",(function(e,r,t){return e=e.replace(/(^\n+|\n+$)/g,""),"\n\n~K"+(t.gHtmlBlocks.push(e)-1)+"K\n\n"})),a.subParser("hashElement",(function(e,r,t){return function(e,r){var n=r;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n~K"+(t.gHtmlBlocks.push(n)-1)+"K\n\n"}})),a.subParser("hashHTMLBlocks",(function(e,r,t){for(var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],s=0;s]*>","","gim");return(e=(e=e.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,r,t))).replace(/()/g,a.subParser("hashElement")(e,r,t))).replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,r,t))})),a.subParser("hashHTMLSpans",(function(e,r,t){for(var n=a.helper.matchRecursiveRegExp(e,"]*>","","gi"),s=0;s]*>\\s*]*>","^(?: |\\t){0,3}\\s*
","gim")})),a.subParser("headers",(function(e,r,t){function n(e){var r,n=e.replace(/[^\w]/g,"").toLowerCase();return t.hashLinkCounts[n]?r=n+"-"+t.hashLinkCounts[n]++:(r=n,t.hashLinkCounts[n]=1),!0===s&&(s="section"),a.helper.isString(s)?s+r:r}e=t.converter._dispatch("headers.before",e,r,t);var s=r.prefixHeaderId,o=isNaN(parseInt(r.headerLevelStart))?1:parseInt(r.headerLevelStart),i=r.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,l=r.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;return e=(e=(e=e.replace(i,(function(e,s){var i=a.subParser("spanGamut")(s,r,t),l=r.noHeaderId?"":' id="'+n(s)+'"',c=""+i+"";return a.subParser("hashBlock")(c,r,t)}))).replace(l,(function(e,s){var i=a.subParser("spanGamut")(s,r,t),l=r.noHeaderId?"":' id="'+n(s)+'"',c=o+1,u=""+i+"";return a.subParser("hashBlock")(u,r,t)}))).replace(/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,(function(e,s,i){var l=a.subParser("spanGamut")(i,r,t),c=r.noHeaderId?"":' id="'+n(i)+'"',u=o-1+s.length,p=""+l+"";return a.subParser("hashBlock")(p,r,t)})),t.converter._dispatch("headers.after",e,r,t)})),a.subParser("images",(function(e,r,t){function n(e,r,n,s,o,i,l,c){var u=t.gUrls,p=t.gTitles,h=t.gDimensions;if(n=n.toLowerCase(),c||(c=""),""===s||null===s){if(""!==n&&null!==n||(n=r.toLowerCase().replace(/ ?\n/g," ")),s="#"+n,a.helper.isUndefined(u[n]))return e;s=u[n],a.helper.isUndefined(p[n])||(c=p[n]),a.helper.isUndefined(h[n])||(o=h[n].width,i=h[n].height)}r=r.replace(/"/g,"""),r=a.helper.escapeCharacters(r,"*_",!1);var d=''+r+'"}return e=(e=(e=t.converter._dispatch("images.before",e,r,t)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[(.*?)]()()()()()/g,n)).replace(/!\[(.*?)]\s?\([ \t]*()?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g,n),t.converter._dispatch("images.after",e,r,t)})),a.subParser("italicsAndBold",(function(e,r,t){return e=t.converter._dispatch("italicsAndBold.before",e,r,t),e=r.literalMidWordUnderscores?(e=(e=(e=e.replace(/(^|\s|>|\b)__(?=\S)([\s\S]+?)__(?=\b|<|\s|$)/gm,"$1$2")).replace(/(^|\s|>|\b)_(?=\S)([\s\S]+?)_(?=\b|<|\s|$)/gm,"$1$2")).replace(/(\*\*)(?=\S)([^\r]*?\S[*]*)\1/g,"$2")).replace(/(\*)(?=\S)([^\r]*?\S)\1/g,"$2"):(e=e.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g,"$2")).replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"$2"),t.converter._dispatch("italicsAndBold.after",e,r,t)})),a.subParser("lists",(function(e,r,t){function n(e,n){t.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var s=/\n[ \t]*\n(?!~0)/.test(e+="~0");return e=(e=e.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,(function(e,n,o,i,l,c,u){u=u&&""!==u.trim();var p=a.subParser("outdent")(l,r,t),h="";return c&&r.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',p=p.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='"}))),n||p.search(/\n{2,}/)>-1?(p=a.subParser("githubCodeBlocks")(p,r,t),p=a.subParser("blockGamut")(p,r,t)):(p=(p=a.subParser("lists")(p,r,t)).replace(/\n$/,""),p=s?a.subParser("paragraphs")(p,r,t):a.subParser("spanGamut")(p,r,t)),"\n"+p+"\n"}))).replace(/~0/g,""),t.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function s(e,r,t){var s="ul"===r?/^ {0,2}\d+\.[ \t]/gm:/^ {0,2}[*+-][ \t]/gm,a=[],o="";if(-1!==e.search(s)){!function e(a){var i=a.search(s);-1!==i?(o+="\n\n<"+r+">"+n(a.slice(0,i),!!t)+"\n\n",s="ul"==(r="ul"===r?"ol":"ul")?/^ {0,2}\d+\.[ \t]/gm:/^ {0,2}[*+-][ \t]/gm,e(a.slice(i))):o+="\n\n<"+r+">"+n(a,!!t)+"\n\n"}(e);for(var i=0;i"+n(e,!!t)+"\n\n";return o}e=t.converter._dispatch("lists.before",e,r,t),e+="~0";var o=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;return t.gListLevel?e=e.replace(o,(function(e,r,t){return s(r,t.search(/[*+-]/g)>-1?"ul":"ol",!0)})):(o=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,e=e.replace(o,(function(e,r,t,n){return s(t,n.search(/[*+-]/g)>-1?"ul":"ol")}))),e=e.replace(/~0/,""),t.converter._dispatch("lists.after",e,r,t)})),a.subParser("outdent",(function(e){return(e=e.replace(/^(\t|[ ]{1,4})/gm,"~0")).replace(/~0/g,"")})),a.subParser("paragraphs",(function(e,r,t){for(var n=(e=(e=(e=t.converter._dispatch("paragraphs.before",e,r,t)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),s=[],o=n.length,i=0;i=0||(l=(l=a.subParser("spanGamut")(l,r,t)).replace(/^([ \t]*)/g,"

"),l+="

"),s.push(l)}for(o=s.length,i=0;i=0;){var h=RegExp.$1,d=RegExp.$2;c=(c="K"===h?t.gHtmlBlocks[d]:p?a.subParser("encodeCode")(t.ghCodeBlocks[d].text):t.ghCodeBlocks[d].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?~(K|G)\d+\2(\n\n)?/,c),/^]*>\s*]*>/.test(u)&&(p=!0)}s[i]=u}return e=(e=(e=s.join("\n\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.converter._dispatch("paragraphs.after",e,r,t)})),a.subParser("runExtension",(function(e,r,t,n){if(e.filter)r=e.filter(r,n.converter,t);else if(e.regex){var s=e.regex;!s instanceof RegExp&&(s=new RegExp(s,"g")),r=r.replace(s,e.replace)}return r})),a.subParser("spanGamut",(function(e,r,t){return e=t.converter._dispatch("spanGamut.before",e,r,t),e=a.subParser("codeSpans")(e,r,t),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,r,t),e=a.subParser("encodeBackslashEscapes")(e,r,t),e=a.subParser("images")(e,r,t),e=a.subParser("anchors")(e,r,t),e=a.subParser("autoLinks")(e,r,t),e=a.subParser("encodeAmpsAndAngles")(e,r,t),e=a.subParser("italicsAndBold")(e,r,t),e=(e=a.subParser("strikethrough")(e,r,t)).replace(/ +\n/g,"
\n"),t.converter._dispatch("spanGamut.after",e,r,t)})),a.subParser("strikethrough",(function(e,r,t){return r.strikethrough&&(e=(e=t.converter._dispatch("strikethrough.before",e,r,t)).replace(/(?:~T){2}([\s\S]+?)(?:~T){2}/g,"$1"),e=t.converter._dispatch("strikethrough.after",e,r,t)),e})),a.subParser("stripBlankLines",(function(e){return e.replace(/^[ \t]+$/gm,"")})),a.subParser("stripLinkDefinitions",(function(e,r,t){return(e=(e+="~0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=~0))/gm,(function(e,n,s,o,i,l,c){return n=n.toLowerCase(),t.gUrls[n]=a.subParser("encodeAmpsAndAngles")(s),l?l+c:(c&&(t.gTitles[n]=c.replace(/"|'/g,""")),r.parseImgDimensions&&o&&i&&(t.gDimensions[n]={width:o,height:i}),"")}))).replace(/~0/,"")})),a.subParser("tables",(function(e,r,t){function n(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function s(e,n){var s="";return e=e.trim(),r.tableHeaderId&&(s=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),""+(e=a.subParser("spanGamut")(e,r,t))+"\n"}function o(e,n){return""+a.subParser("spanGamut")(e,r,t)+"\n"}if(!r.tables)return e;return e=(e=t.converter._dispatch("tables.before",e,r,t)).replace(/^[ \t]{0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|~0)/gm,(function(e){var r,t=e.split("\n");for(r=0;r\n\n\n",s=0;s\n";for(var a=0;a\n"}return t+"\n\n"}(u,h)})),t.converter._dispatch("tables.after",e,r,t)})),a.subParser("unescapeSpecialChars",(function(e){return e.replace(/~E(\d+)E/g,(function(e,r){var t=parseInt(r);return String.fromCharCode(t)}))})),module.exports=a; +},{isPage:false,isComponent:false,currentFile:'wxParse/showdown.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/wxDiscode.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";module.exports={strDiscode:function(e){return function(e){return(e=(e=e.replace(/\r\n/g,"")).replace(/\n/g,"")).replace(/code/g,"wxxxcode-style")}(e=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/Œ/g,"Œ")).replace(/œ/g,"œ")).replace(/Š/g,"Š")).replace(/š/g,"š")).replace(/Ÿ/g,"Ÿ")).replace(/ƒ/g,"ƒ")).replace(/ˆ/g,"ˆ")).replace(/˜/g,"˜")).replace(/ /g,"")).replace(/ /g,"")).replace(/ /g,"")).replace(/‌/g,"")).replace(/‍/g,"")).replace(/‎/g,"")).replace(/‏/g,"")).replace(/–/g,"–")).replace(/—/g,"—")).replace(/‘/g,"‘")).replace(/’/g,"’")).replace(/‚/g,"‚")).replace(/“/g,"“")).replace(/”/g,"”")).replace(/„/g,"„")).replace(/†/g,"†")).replace(/‡/g,"‡")).replace(/•/g,"•")).replace(/…/g,"…")).replace(/‰/g,"‰")).replace(/′/g,"′")).replace(/″/g,"″")).replace(/‹/g,"‹")).replace(/›/g,"›")).replace(/‾/g,"‾")).replace(/€/g,"€")).replace(/™/g,"™")).replace(/←/g,"←")).replace(/↑/g,"↑")).replace(/→/g,"→")).replace(/↓/g,"↓")).replace(/↔/g,"↔")).replace(/↵/g,"↵")).replace(/⌈/g,"⌈")).replace(/⌉/g,"⌉")).replace(/⌊/g,"⌊")).replace(/⌋/g,"⌋")).replace(/◊/g,"◊")).replace(/♠/g,"♠")).replace(/♣/g,"♣")).replace(/♥/g,"♥")).replace(/♦/g,"♦")}(e=function(e){return(e=(e=(e=(e=e.replace(/ /g," ")).replace(/"/g,"'")).replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")}(e=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/Α/g,"Α")).replace(/Β/g,"Β")).replace(/Γ/g,"Γ")).replace(/Δ/g,"Δ")).replace(/Ε/g,"Ε")).replace(/Ζ/g,"Ζ")).replace(/Η/g,"Η")).replace(/Θ/g,"Θ")).replace(/Ι/g,"Ι")).replace(/Κ/g,"Κ")).replace(/Λ/g,"Λ")).replace(/Μ/g,"Μ")).replace(/Ν/g,"Ν")).replace(/Ξ/g,"Ν")).replace(/Ο/g,"Ο")).replace(/Π/g,"Π")).replace(/Ρ/g,"Ρ")).replace(/Σ/g,"Σ")).replace(/Τ/g,"Τ")).replace(/Υ/g,"Υ")).replace(/Φ/g,"Φ")).replace(/Χ/g,"Χ")).replace(/Ψ/g,"Ψ")).replace(/Ω/g,"Ω")).replace(/α/g,"α")).replace(/β/g,"β")).replace(/γ/g,"γ")).replace(/δ/g,"δ")).replace(/ε/g,"ε")).replace(/ζ/g,"ζ")).replace(/η/g,"η")).replace(/θ/g,"θ")).replace(/ι/g,"ι")).replace(/κ/g,"κ")).replace(/λ/g,"λ")).replace(/μ/g,"μ")).replace(/ν/g,"ν")).replace(/ξ/g,"ξ")).replace(/ο/g,"ο")).replace(/π/g,"π")).replace(/ρ/g,"ρ")).replace(/ς/g,"ς")).replace(/σ/g,"σ")).replace(/τ/g,"τ")).replace(/υ/g,"υ")).replace(/φ/g,"φ")).replace(/χ/g,"χ")).replace(/ψ/g,"ψ")).replace(/ω/g,"ω")).replace(/ϑ/g,"ϑ")).replace(/ϒ/g,"ϒ")).replace(/ϖ/g,"ϖ")).replace(/·/g,"·")}(e=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/∀/g,"∀")).replace(/∂/g,"∂")).replace(/&exists;/g,"∃")).replace(/∅/g,"∅")).replace(/∇/g,"∇")).replace(/∈/g,"∈")).replace(/∉/g,"∉")).replace(/∋/g,"∋")).replace(/∏/g,"∏")).replace(/∑/g,"∑")).replace(/−/g,"−")).replace(/∗/g,"∗")).replace(/√/g,"√")).replace(/∝/g,"∝")).replace(/∞/g,"∞")).replace(/∠/g,"∠")).replace(/∧/g,"∧")).replace(/∨/g,"∨")).replace(/∩/g,"∩")).replace(/∩/g,"∪")).replace(/∫/g,"∫")).replace(/∴/g,"∴")).replace(/∼/g,"∼")).replace(/≅/g,"≅")).replace(/≈/g,"≈")).replace(/≠/g,"≠")).replace(/≤/g,"≤")).replace(/≥/g,"≥")).replace(/⊂/g,"⊂")).replace(/⊃/g,"⊃")).replace(/⊄/g,"⊄")).replace(/⊆/g,"⊆")).replace(/⊇/g,"⊇")).replace(/⊕/g,"⊕")).replace(/⊗/g,"⊗")).replace(/⊥/g,"⊥")).replace(/⋅/g,"⋅")}(e)))))},urlToHttpUrl:function(e,a){return new RegExp("^//").test(e)&&(e=a+":"+e),e}}; +},{isPage:false,isComponent:false,currentFile:'wxParse/wxDiscode.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("wxParse/wxParse.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function a(e){var a=e.target.dataset.src,t=e.target.dataset.from;void 0!==t&&t.length>0&&wx.previewImage({current:a,urls:this.data[t].imageUrls})}function t(e){return!1}var r=e(require("./showdown.js")),i=e(require("./html2json.js"));module.exports={wxParse:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wxParseData",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'
数据不能为空
',o=arguments[3],d=arguments[4],l=o,m={};if("html"==n)m=i.default.html2json(s,e);else if("md"==n||"markdown"==n){var u=(new r.default.Converter).makeHtml(s);m=i.default.html2json(u,e)}m.view={},m.view.imagePadding=0,void 0!==d&&(m.view.imagePadding=d);var v={};v[e]=m,l.setData(v),l.wxParseImgLoad=t,l.wxParseImgTap=a},wxParseTemArray:function(e,a,t,r){for(var i=[],n=r.data,s=null,o=0;o0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/wxParse/emojis/",t=arguments[2];i.default.emojisInit(e,a,t)}}; +},{isPage:false,isComponent:false,currentFile:'wxParse/wxParse.js'});;__wxRoute = undefined;__wxRouteBegin = undefined;__wxAppCurrentFile__=undefined;define("app.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";App({onLaunch:function(){var t=wx.getStorageSync("logs")||[];t.unshift(Date.now()),wx.setStorageSync("logs",t)},getUserInfo:function(t){var n=this;this.globalData.userInfo?"function"==typeof t&&t(this.globalData.userInfo):wx.getUserInfo({withCredentials:!1,success:function(o){n.globalData.userInfo=o.userInfo,"function"==typeof t&&t(n.globalData.userInfo)}})},globalData:{userInfo:null}}); +},{isPage:false,isComponent:false,currentFile:'app.js'});require("app.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/common.app.js b/wx49a18253b90a02d2/common.app.js new file mode 100644 index 0000000..015c9d0 --- /dev/null +++ b/wx49a18253b90a02d2/common.app.js @@ -0,0 +1,12 @@ +var __wxAppData=__wxAppData||{};var __wxAppCode__=__wxAppCode__||{};var global=global||{};var __WXML_GLOBAL__=__WXML_GLOBAL__||{entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0};var Component=Component||function(){};var definePlugin=definePlugin||function(){};var requirePlugin=requirePlugin||function(){};var Behavior=Behavior||function(){};var __vd_version_info__=__vd_version_info__||{};var __GWX_GLOBAL__=__GWX_GLOBAL__||{};if(this&&this.__g===undefined)Object.defineProperty(this,"__g",{configurable:false,enumerable:false,writable:false,value:function(){function D(e,t){if(typeof t!="undefined")e.children.push(t)}function S(e){if(typeof e!="undefined")return{tag:"virtual",wxKey:e,children:[]};return{tag:"virtual",children:[]}}function v(e){$gwxc++;if($gwxc>=16e3){throw"Dom limit exceeded, please check if there's any mistake you've made."}return{tag:"wx-"+e,attr:{},children:[],n:[],raw:{},generics:{}}}function e(e,t){t&&e.properities.push(t)}function t(e,t,r){return typeof e[r]!="undefined"?e[r]:t[r]}function u(e){console.warn("WXMLRT_"+g+":"+e)}function r(e,t){u(t+":-1:-1:-1: Template `"+e+"` is being called recursively, will be stop.")}var s=console.warn;var n=console.log;function o(){function e(){}e.prototype={hn:function(e,t){if(typeof e=="object"){var r=0;var n=false,o=false;for(var a in e){n=n|a==="__value__";o=o|a==="__wxspec__";r++;if(r>2)break}return r==2&&n&&o&&(t||e.__wxspec__!=="m"||this.hn(e.__value__)==="h")?"h":"n"}return"n"},nh:function(e,t){return{__value__:e,__wxspec__:t?t:true}},rv:function(e){return this.hn(e,true)==="n"?e:this.rv(e.__value__)},hm:function(e){if(typeof e=="object"){var t=0;var r=false,n=false;for(var o in e){r=r|o==="__value__";n=n|o==="__wxspec__";t++;if(t>2)break}return t==2&&r&&n&&(e.__wxspec__==="m"||this.hm(e.__value__))}return false}};return new e}var A=o();function T(e){var t=e.split("\n "+" "+" "+" ");for(var r=0;r=":case"<=":case">":case"<":case"<<":case">>":p=x(e[1],t,r,n,o,a);u=x(e[2],t,r,n,o,a);l=M&&(A.hn(p)==="h"||A.hn(u)==="h");switch(i){case"+":f=A.rv(p)+A.rv(u);break;case"*":f=A.rv(p)*A.rv(u);break;case"/":f=A.rv(p)/A.rv(u);break;case"%":f=A.rv(p)%A.rv(u);break;case"|":f=A.rv(p)|A.rv(u);break;case"^":f=A.rv(p)^A.rv(u);break;case"&":f=A.rv(p)&A.rv(u);break;case"===":f=A.rv(p)===A.rv(u);break;case"==":f=A.rv(p)==A.rv(u);break;case"!=":f=A.rv(p)!=A.rv(u);break;case"!==":f=A.rv(p)!==A.rv(u);break;case">=":f=A.rv(p)>=A.rv(u);break;case"<=":f=A.rv(p)<=A.rv(u);break;case">":f=A.rv(p)>A.rv(u);break;case"<":f=A.rv(p)>":f=A.rv(p)>>A.rv(u);break;default:break}return l?A.nh(f,"c"):f;break;case"-":p=e.length===3?x(e[1],t,r,n,o,a):0;u=e.length===3?x(e[2],t,r,n,o,a):x(e[1],t,r,n,o,a);l=M&&(A.hn(p)==="h"||A.hn(u)==="h");f=l?A.rv(p)-A.rv(u):p-u;return l?A.nh(f,"c"):f;break;case"!":p=x(e[1],t,r,n,o,a);l=M&&A.hn(p)=="h";f=!A.rv(p);return l?A.nh(f,"c"):f;case"~":p=x(e[1],t,r,n,o,a);l=M&&A.hn(p)=="h";f=~A.rv(p);return l?A.nh(f,"c"):f;default:s("unrecognized op"+i)}}function x(e,t,r,n,o,a){var i=e[0];var p=false;if(typeof a!=="undefined")o.ap=a;if(typeof i==="object"){var u=i[0];var l,f,v,c,s,y,b,d,h,_,g;switch(u){case 2:return m(e,t,r,n,o);break;case 4:return x(e[1],t,r,n,o,p);break;case 5:switch(e.length){case 2:l=x(e[1],t,r,n,o,p);return M?[l]:[A.rv(l)];return[l];break;case 1:return[];break;default:l=x(e[1],t,r,n,o,p);v=x(e[2],t,r,n,o,p);l.push(M?v:A.rv(v));return l;break}break;case 6:l=x(e[1],t,r,n,o);var w=o.ap;h=A.hn(l)==="h";f=h?A.rv(l):l;o.is_affected|=h;if(M){if(f===null||typeof f==="undefined"){return h?A.nh(undefined,"e"):undefined}v=x(e[2],t,r,n,o,p);_=A.hn(v)==="h";c=_?A.rv(v):v;o.ap=w;o.is_affected|=_;if(c===null||typeof c==="undefined"||c==="__proto__"||c==="prototype"||c==="caller"){return h||_?A.nh(undefined,"e"):undefined}y=f[c];if(typeof y==="function"&&!w)y=undefined;g=A.hn(y)==="h";o.is_affected|=g;return h||_?g?y:A.nh(y,"e"):y}else{if(f===null||typeof f==="undefined"){return undefined}v=x(e[2],t,r,n,o,p);_=A.hn(v)==="h";c=_?A.rv(v):v;o.ap=w;o.is_affected|=_;if(c===null||typeof c==="undefined"||c==="__proto__"||c==="prototype"||c==="caller"){return undefined}y=f[c];if(typeof y==="function"&&!w)y=undefined;g=A.hn(y)==="h";o.is_affected|=g;return g?A.rv(y):y}case 7:switch(e[1][0]){case 11:o.is_affected|=A.hn(n)==="h";return n;case 3:b=A.rv(r);d=A.rv(t);v=e[1][1];if(n&&n.f&&n.f.hasOwnProperty(v)){l=n.f;o.ap=true}else{l=b&&b.hasOwnProperty(v)?r:d&&d.hasOwnProperty(v)?t:undefined}if(M){if(l){h=A.hn(l)==="h";f=h?A.rv(l):l;y=f[v];g=A.hn(y)==="h";o.is_affected|=h||g;y=h&&!g?A.nh(y,"e"):y;return y}}else{if(l){h=A.hn(l)==="h";f=h?A.rv(l):l;y=f[v];g=A.hn(y)==="h";o.is_affected|=h||g;return A.rv(y)}}return undefined}break;case 8:l={};l[e[1]]=x(e[2],t,r,n,o,p);return l;break;case 9:l=x(e[1],t,r,n,o,p);v=x(e[2],t,r,n,o,p);function O(e,t,r){var n,o;h=A.hn(e)==="h";_=A.hn(t)==="h";f=A.rv(e);c=A.rv(t);for(var a in c){if(r||!f.hasOwnProperty(a)){f[a]=M?_?A.nh(c[a],"e"):c[a]:A.rv(c[a])}}return e}var s=l;var j=true;if(typeof e[1][0]==="object"&&e[1][0][0]===10){l=v;v=s;j=false}if(typeof e[1][0]==="object"&&e[1][0][0]===10){var P={};return O(O(P,l,j),v,j)}else return O(l,v,j);break;case 10:l=x(e[1],t,r,n,o,p);l=M?l:A.rv(l);return l;break;case 12:var P;l=x(e[1],t,r,n,o);if(!o.ap){return M&&A.hn(l)==="h"?A.nh(P,"f"):P}var w=o.ap;v=x(e[2],t,r,n,o,p);o.ap=w;h=A.hn(l)==="h";_=N(v);f=A.rv(l);c=A.rv(v);snap_bb=K(c,"nv_");try{P=typeof f==="function"?K(f.apply(null,snap_bb)):undefined}catch(t){t.message=t.message.replace(/nv_/g,"");t.stack=t.stack.substring(0,t.stack.indexOf("\n",t.stack.lastIndexOf("at nv_")));t.stack=t.stack.replace(/\snv_/g," ");t.stack=T(t.stack);if(n.debugInfo){t.stack+="\n "+" "+" "+" at "+n.debugInfo[0]+":"+n.debugInfo[1]+":"+n.debugInfo[2];console.error(t)}P=undefined}return M&&(_||h)?A.nh(P,"f"):P}}else{if(i===3||i===1)return e[1];else if(i===11){var l="";for(var D=1;D=0;o--){if(r[e].i[o]&&n[r[e].i[o]][t])return n[r[e].i[o]][t]}for(var o=r[e].ti.length-1;o>=0;o--){var a=ne(r[e].ti[o],r,e);if(a&&n[a][t])return n[a][t]}var i=ae(r,e);for(var o=0;o=0;p--)if(r[e].j[p]){for(var a=r[r[e].j[p]].ti.length-1;a>=0;a--){var u=ne(r[r[e].j[p]].ti[a],r,e);if(u&&n[u][t]){return n[u][t]}}}}function ae(e,t){if(!t)return[];if($gaic[t]){return $gaic[t]}var r=[],n=[],o=0,a=0,i={},p={};n.push(t);p[t]=true;a++;while(o
\ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/case/detail.appservice.js b/wx49a18253b90a02d2/pages/case/detail.appservice.js new file mode 100644 index 0000000..aa9aa7b --- /dev/null +++ b/wx49a18253b90a02d2/pages/case/detail.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_0=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_0 || []; +function gz$gwx_XC_0_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_0_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_0_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_0=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_0=true; +var x=['./pages/case/detail.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_0_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_0";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_0(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/case/detail.wxml'] = [$gwx_XC_0, './pages/case/detail.wxml'];else __wxAppCode__['pages/case/detail.wxml'] = $gwx_XC_0( './pages/case/detail.wxml' ); + ;__wxRoute = "pages/case/detail";__wxRouteBegin = true;__wxAppCurrentFile__="pages/case/detail.js";define("pages/case/detail.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],id:0,setting:[]},onLoad:function(t){console.log(t),a.that=this,a.style(),a.that.setData({id:t.id}),this.getDetail()},getDetail:function(i){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/detail",{id:a.that.data.id},(function(t){wx.hideLoading(),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:a.that.data.setting.service_tel,success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},onShareAppMessage:function(i){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/case/detail?id="+a.that.data.id,success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/case/detail.js'});require("pages/case/detail.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/case/detail.common.js b/wx49a18253b90a02d2/pages/case/detail.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/case/detail.html b/wx49a18253b90a02d2/pages/case/detail.html new file mode 100644 index 0000000..ba036eb --- /dev/null +++ b/wx49a18253b90a02d2/pages/case/detail.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/case/detail.webview.js b/wx49a18253b90a02d2/pages/case/detail.webview.js new file mode 100644 index 0000000..18093c2 --- /dev/null +++ b/wx49a18253b90a02d2/pages/case/detail.webview.js @@ -0,0 +1,133 @@ +$gwx_XC_0=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_0 || []; +function gz$gwx_XC_0_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_0_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'page']) +Z([3,'title bdbt']) +Z([3,'怎么才能做一个小程序呢']) +Z([3,'duanluo']) +Z([[2,'?:'],[[2,'=='],[[6],[[7],[3,'item']],[3,'photo']],[1,'']],[1,true],[1,false]]) +Z([3,'aspectFit']) +Z([3,'/img/p1.jpg']) +Z([3,'content']) +Z([3,'怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢']) +Z([3,'riqi']) +Z([3,'2019-11-11']) +Z([3,'jszc']) +Z([3,'技术支持:某某科技公司']) +Z([3,'height:100rpx;']) +Z([3,'footer']) +Z([3,'/pages/contact/liuyan']) +Z([3,'lt']) +Z([3,'/img/yj.png']) +Z([3,'在线咨询']) +Z([3,'calling']) +Z([3,'rt']) +Z([3,'background:red']) +Z([3,'/img/tel.png']) +Z([3,'拨打电话']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_0_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_0_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_0=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_0=true; +var x=['./pages/case/detail.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_0_1() +var xC=_n('view') +_rz(z,xC,'class',0,e,s,gg) +var oD=_n('view') +_rz(z,oD,'class',1,e,s,gg) +var fE=_oz(z,2,e,s,gg) +_(oD,fE) +_(xC,oD) +var cF=_n('view') +_rz(z,cF,'class',3,e,s,gg) +var hG=_mz(z,'image',['hidden',4,'mode',1,'src',2],[],e,s,gg) +_(cF,hG) +var oH=_n('text') +_rz(z,oH,'class',7,e,s,gg) +var cI=_oz(z,8,e,s,gg) +_(oH,cI) +_(cF,oH) +_(xC,cF) +var oJ=_n('view') +_rz(z,oJ,'class',9,e,s,gg) +var lK=_oz(z,10,e,s,gg) +_(oJ,lK) +_(xC,oJ) +_(r,xC) +var aL=_n('view') +_rz(z,aL,'class',11,e,s,gg) +var tM=_oz(z,12,e,s,gg) +_(aL,tM) +_(r,aL) +var eN=_n('view') +_rz(z,eN,'style',13,e,s,gg) +_(r,eN) +var bO=_n('view') +_rz(z,bO,'class',14,e,s,gg) +var oP=_n('navigator') +_rz(z,oP,'url',15,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',16,e,s,gg) +var oR=_n('image') +_rz(z,oR,'src',17,e,s,gg) +_(xQ,oR) +var fS=_n('text') +var cT=_oz(z,18,e,s,gg) +_(fS,cT) +_(xQ,fS) +_(oP,xQ) +_(bO,oP) +var hU=_mz(z,'view',['bindtap',19,'class',1,'style',2],[],e,s,gg) +var oV=_n('image') +_rz(z,oV,'src',22,e,s,gg) +_(hU,oV) +var cW=_n('text') +var oX=_oz(z,23,e,s,gg) +_(cW,oX) +_(hU,cW) +_(bO,hU) +_(r,bO) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_0";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_0(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/case/detail.wxml'] = [$gwx_XC_0, './pages/case/detail.wxml'];else __wxAppCode__['pages/case/detail.wxml'] = $gwx_XC_0( './pages/case/detail.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/case/detail.wxss'] = setCssToHead([".",[1],"page{min-height:",[0,1000],";padding-bottom:",[0,20],";padding-top:",[0,20],"}\n.",[1],"title{font-size:",[0,28],";font-weight:700;line-height:",[0,60],";padding-bottom:",[0,20],";text-align:center}\n.",[1],"riqi,.",[1],"title{margin-left:2%;width:96%}\n.",[1],"riqi{margin-top:",[0,20],";text-align:right}\n.",[1],"duanluo{height:auto;margin-left:2%;width:96%}\n.",[1],"duanluo wx-image{margin-top:",[0,10],";max-width:100%;width:100%}\n.",[1],"duanluo .",[1],"content{color:#000;font-size:",[0,26],";height:auto;line-height:",[0,40],";width:100%}\n",],"Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./pages/case/detail.wxss:1:294)",{path:"./pages/case/detail.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/case/index.appservice.js b/wx49a18253b90a02d2/pages/case/index.appservice.js new file mode 100644 index 0000000..9830f85 --- /dev/null +++ b/wx49a18253b90a02d2/pages/case/index.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_1=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_1 || []; +function gz$gwx_XC_1_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_1_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_1_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_1=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_1=true; +var x=['./pages/case/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_1_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_1";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_1(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/case/index.wxml'] = [$gwx_XC_1, './pages/case/index.wxml'];else __wxAppCode__['pages/case/index.wxml'] = $gwx_XC_1( './pages/case/index.wxml' ); + ;__wxRoute = "pages/case/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/case/index.js";define("pages/case/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],page:1,more:0,type:0},onShow:function(){a.that=this,a.globalData=t.globalData,this.setData({datas:[],page:1,more:0}),this.getHome()},onLoad:function(){a.that=this,a.style()},more:function(t){this.getHomeList()},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/plan",{page:a.that.data.page},(function(t){var o=a.that.data.datas;for(var e in t.list)o.push(t.list[e]);console.log(t),wx.hideLoading(),a.that.setData({datas:o,page:a.that.data.page+1,more:t.more})}))},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/case/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/case/index.js'});require("pages/case/index.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/case/index.common.js b/wx49a18253b90a02d2/pages/case/index.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/case/index.html b/wx49a18253b90a02d2/pages/case/index.html new file mode 100644 index 0000000..f31cd81 --- /dev/null +++ b/wx49a18253b90a02d2/pages/case/index.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/case/index.webview.js b/wx49a18253b90a02d2/pages/case/index.webview.js new file mode 100644 index 0000000..8171108 --- /dev/null +++ b/wx49a18253b90a02d2/pages/case/index.webview.js @@ -0,0 +1,402 @@ +$gwx_XC_1=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_1 || []; +function gz$gwx_XC_1_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_1_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'page']) +Z([3,'case']) +Z([3,'/pages/case/detail']) +Z([3,'item bdbt']) +Z([3,'lt']) +Z([3,'/img/p1.jpg']) +Z([3,'rt']) +Z([3,'tit']) +Z([3,'怎么才能做一个小程序呢']) +Z([3,'info']) +Z([3,'怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z([3,'jszc']) +Z([3,'技术支持:某某科技公司']) +Z([3,'height:100rpx;']) +Z([3,'footer']) +Z(z[4]) +Z([3,'/img/yj.png']) +Z([3,'在线咨询']) +Z(z[6]) +Z([3,'background:red']) +Z([3,'/img/tel.png']) +Z([3,'拨打电话']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_1_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_1_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_1=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_1=true; +var x=['./pages/case/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_1_1() +var aZ=_n('view') +_rz(z,aZ,'class',0,e,s,gg) +var t1=_n('view') +_rz(z,t1,'class',1,e,s,gg) +var e2=_n('navigator') +_rz(z,e2,'url',2,e,s,gg) +var b3=_n('view') +_rz(z,b3,'class',3,e,s,gg) +var o4=_n('view') +_rz(z,o4,'class',4,e,s,gg) +var x5=_n('image') +_rz(z,x5,'src',5,e,s,gg) +_(o4,x5) +_(b3,o4) +var o6=_n('view') +_rz(z,o6,'class',6,e,s,gg) +var f7=_n('view') +_rz(z,f7,'class',7,e,s,gg) +var c8=_oz(z,8,e,s,gg) +_(f7,c8) +_(o6,f7) +var h9=_n('view') +_rz(z,h9,'class',9,e,s,gg) +var o0=_oz(z,10,e,s,gg) +_(h9,o0) +_(o6,h9) +_(b3,o6) +_(e2,b3) +_(t1,e2) +_(aZ,t1) +var cAB=_n('view') +_rz(z,cAB,'class',11,e,s,gg) +var oBB=_n('navigator') +_rz(z,oBB,'url',12,e,s,gg) +var lCB=_n('view') +_rz(z,lCB,'class',13,e,s,gg) +var aDB=_n('view') +_rz(z,aDB,'class',14,e,s,gg) +var tEB=_n('image') +_rz(z,tEB,'src',15,e,s,gg) +_(aDB,tEB) +_(lCB,aDB) +var eFB=_n('view') +_rz(z,eFB,'class',16,e,s,gg) +var bGB=_n('view') +_rz(z,bGB,'class',17,e,s,gg) +var oHB=_oz(z,18,e,s,gg) +_(bGB,oHB) +_(eFB,bGB) +var xIB=_n('view') +_rz(z,xIB,'class',19,e,s,gg) +var oJB=_oz(z,20,e,s,gg) +_(xIB,oJB) +_(eFB,xIB) +_(lCB,eFB) +_(oBB,lCB) +_(cAB,oBB) +_(aZ,cAB) +var fKB=_n('view') +_rz(z,fKB,'class',21,e,s,gg) +var cLB=_n('navigator') +_rz(z,cLB,'url',22,e,s,gg) +var hMB=_n('view') +_rz(z,hMB,'class',23,e,s,gg) +var oNB=_n('view') +_rz(z,oNB,'class',24,e,s,gg) +var cOB=_n('image') +_rz(z,cOB,'src',25,e,s,gg) +_(oNB,cOB) +_(hMB,oNB) +var oPB=_n('view') +_rz(z,oPB,'class',26,e,s,gg) +var lQB=_n('view') +_rz(z,lQB,'class',27,e,s,gg) +var aRB=_oz(z,28,e,s,gg) +_(lQB,aRB) +_(oPB,lQB) +var tSB=_n('view') +_rz(z,tSB,'class',29,e,s,gg) +var eTB=_oz(z,30,e,s,gg) +_(tSB,eTB) +_(oPB,tSB) +_(hMB,oPB) +_(cLB,hMB) +_(fKB,cLB) +_(aZ,fKB) +var bUB=_n('view') +_rz(z,bUB,'class',31,e,s,gg) +var oVB=_n('navigator') +_rz(z,oVB,'url',32,e,s,gg) +var xWB=_n('view') +_rz(z,xWB,'class',33,e,s,gg) +var oXB=_n('view') +_rz(z,oXB,'class',34,e,s,gg) +var fYB=_n('image') +_rz(z,fYB,'src',35,e,s,gg) +_(oXB,fYB) +_(xWB,oXB) +var cZB=_n('view') +_rz(z,cZB,'class',36,e,s,gg) +var h1B=_n('view') +_rz(z,h1B,'class',37,e,s,gg) +var o2B=_oz(z,38,e,s,gg) +_(h1B,o2B) +_(cZB,h1B) +var c3B=_n('view') +_rz(z,c3B,'class',39,e,s,gg) +var o4B=_oz(z,40,e,s,gg) +_(c3B,o4B) +_(cZB,c3B) +_(xWB,cZB) +_(oVB,xWB) +_(bUB,oVB) +_(aZ,bUB) +var l5B=_n('view') +_rz(z,l5B,'class',41,e,s,gg) +var a6B=_n('navigator') +_rz(z,a6B,'url',42,e,s,gg) +var t7B=_n('view') +_rz(z,t7B,'class',43,e,s,gg) +var e8B=_n('view') +_rz(z,e8B,'class',44,e,s,gg) +var b9B=_n('image') +_rz(z,b9B,'src',45,e,s,gg) +_(e8B,b9B) +_(t7B,e8B) +var o0B=_n('view') +_rz(z,o0B,'class',46,e,s,gg) +var xAC=_n('view') +_rz(z,xAC,'class',47,e,s,gg) +var oBC=_oz(z,48,e,s,gg) +_(xAC,oBC) +_(o0B,xAC) +var fCC=_n('view') +_rz(z,fCC,'class',49,e,s,gg) +var cDC=_oz(z,50,e,s,gg) +_(fCC,cDC) +_(o0B,fCC) +_(t7B,o0B) +_(a6B,t7B) +_(l5B,a6B) +_(aZ,l5B) +var hEC=_n('view') +_rz(z,hEC,'class',51,e,s,gg) +var oFC=_n('navigator') +_rz(z,oFC,'url',52,e,s,gg) +var cGC=_n('view') +_rz(z,cGC,'class',53,e,s,gg) +var oHC=_n('view') +_rz(z,oHC,'class',54,e,s,gg) +var lIC=_n('image') +_rz(z,lIC,'src',55,e,s,gg) +_(oHC,lIC) +_(cGC,oHC) +var aJC=_n('view') +_rz(z,aJC,'class',56,e,s,gg) +var tKC=_n('view') +_rz(z,tKC,'class',57,e,s,gg) +var eLC=_oz(z,58,e,s,gg) +_(tKC,eLC) +_(aJC,tKC) +var bMC=_n('view') +_rz(z,bMC,'class',59,e,s,gg) +var oNC=_oz(z,60,e,s,gg) +_(bMC,oNC) +_(aJC,bMC) +_(cGC,aJC) +_(oFC,cGC) +_(hEC,oFC) +_(aZ,hEC) +var xOC=_n('view') +_rz(z,xOC,'class',61,e,s,gg) +var oPC=_n('navigator') +_rz(z,oPC,'url',62,e,s,gg) +var fQC=_n('view') +_rz(z,fQC,'class',63,e,s,gg) +var cRC=_n('view') +_rz(z,cRC,'class',64,e,s,gg) +var hSC=_n('image') +_rz(z,hSC,'src',65,e,s,gg) +_(cRC,hSC) +_(fQC,cRC) +var oTC=_n('view') +_rz(z,oTC,'class',66,e,s,gg) +var cUC=_n('view') +_rz(z,cUC,'class',67,e,s,gg) +var oVC=_oz(z,68,e,s,gg) +_(cUC,oVC) +_(oTC,cUC) +var lWC=_n('view') +_rz(z,lWC,'class',69,e,s,gg) +var aXC=_oz(z,70,e,s,gg) +_(lWC,aXC) +_(oTC,lWC) +_(fQC,oTC) +_(oPC,fQC) +_(xOC,oPC) +_(aZ,xOC) +var tYC=_n('view') +_rz(z,tYC,'class',71,e,s,gg) +var eZC=_n('navigator') +_rz(z,eZC,'url',72,e,s,gg) +var b1C=_n('view') +_rz(z,b1C,'class',73,e,s,gg) +var o2C=_n('view') +_rz(z,o2C,'class',74,e,s,gg) +var x3C=_n('image') +_rz(z,x3C,'src',75,e,s,gg) +_(o2C,x3C) +_(b1C,o2C) +var o4C=_n('view') +_rz(z,o4C,'class',76,e,s,gg) +var f5C=_n('view') +_rz(z,f5C,'class',77,e,s,gg) +var c6C=_oz(z,78,e,s,gg) +_(f5C,c6C) +_(o4C,f5C) +var h7C=_n('view') +_rz(z,h7C,'class',79,e,s,gg) +var o8C=_oz(z,80,e,s,gg) +_(h7C,o8C) +_(o4C,h7C) +_(b1C,o4C) +_(eZC,b1C) +_(tYC,eZC) +_(aZ,tYC) +_(r,aZ) +var c9C=_n('view') +_rz(z,c9C,'class',81,e,s,gg) +var o0C=_oz(z,82,e,s,gg) +_(c9C,o0C) +_(r,c9C) +var lAD=_n('view') +_rz(z,lAD,'style',83,e,s,gg) +_(r,lAD) +var aBD=_n('view') +_rz(z,aBD,'class',84,e,s,gg) +var tCD=_n('view') +_rz(z,tCD,'class',85,e,s,gg) +var eDD=_n('image') +_rz(z,eDD,'src',86,e,s,gg) +_(tCD,eDD) +var bED=_n('text') +var oFD=_oz(z,87,e,s,gg) +_(bED,oFD) +_(tCD,bED) +_(aBD,tCD) +var xGD=_mz(z,'view',['class',88,'style',1],[],e,s,gg) +var oHD=_n('image') +_rz(z,oHD,'src',90,e,s,gg) +_(xGD,oHD) +var fID=_n('text') +var cJD=_oz(z,91,e,s,gg) +_(fID,cJD) +_(xGD,fID) +_(aBD,xGD) +_(r,aBD) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_1";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_1(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/case/index.wxml'] = [$gwx_XC_1, './pages/case/index.wxml'];else __wxAppCode__['pages/case/index.wxml'] = $gwx_XC_1( './pages/case/index.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/case/index.wxss'] = setCssToHead([],undefined,{path:"./pages/case/index.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/contact/index.appservice.js b/wx49a18253b90a02d2/pages/contact/index.appservice.js new file mode 100644 index 0000000..df9a91c --- /dev/null +++ b/wx49a18253b90a02d2/pages/contact/index.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_2=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_2 || []; +function gz$gwx_XC_2_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_2_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_2_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_2=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_2=true; +var x=['./pages/contact/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_2_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_2";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_2(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/contact/index.wxml'] = [$gwx_XC_2, './pages/contact/index.wxml'];else __wxAppCode__['pages/contact/index.wxml'] = $gwx_XC_2( './pages/contact/index.wxml' ); + ;__wxRoute = "pages/contact/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/contact/index.js";define("pages/contact/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var a=require("../../utils/request");Page({data:{addr:"",content:"",gs:"",name:"",phone:""},onShow:function(){},onLoad:function(t){var n=this,e=t.openid;a.request({url:"/index.php?s=/api/api/phone",method:"GET",showLoading:!1,data:{openid:e}}).then((function(a){console.log(a),n.setData({addr:a.data.data.addr,content:a.data.data.content,gs:a.data.data.gs,name:a.data.data.name,phone:a.data.data.phone})})).catch((function(a){console.log("ERROR")}))}}); +},{isPage:true,isComponent:true,currentFile:'pages/contact/index.js'});require("pages/contact/index.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/contact/index.common.js b/wx49a18253b90a02d2/pages/contact/index.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/contact/index.html b/wx49a18253b90a02d2/pages/contact/index.html new file mode 100644 index 0000000..2fd4e7e --- /dev/null +++ b/wx49a18253b90a02d2/pages/contact/index.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/contact/index.webview.js b/wx49a18253b90a02d2/pages/contact/index.webview.js new file mode 100644 index 0000000..ea66914 --- /dev/null +++ b/wx49a18253b90a02d2/pages/contact/index.webview.js @@ -0,0 +1,166 @@ +$gwx_XC_2=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_2 || []; +function gz$gwx_XC_2_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_2_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'guanyu']) +Z([3,'contact bdbt']) +Z([3,'title']) +Z([a,[[7],[3,'gs']]]) +Z([3,'about-content']) +Z([3,'ct']) +Z([3,'color:#8a8a8a; padding: 5rpx;']) +Z([a,[[7],[3,'content']],[3,'\n ']]) +Z([3,'height:20rpx; background:#f5f5f5']) +Z(z[1]) +Z(z[2]) +Z([3,'联系我们']) +Z([3,'col']) +Z([3,'lt']) +Z([3,'公司:']) +Z(z[5]) +Z([3,'color:#8a8a8a;']) +Z([a,z[3][1]]) +Z(z[12]) +Z(z[13]) +Z([3,'地址:']) +Z(z[5]) +Z(z[16]) +Z([a,[[7],[3,'addr']]]) +Z(z[12]) +Z(z[13]) +Z([3,'联系人:']) +Z(z[5]) +Z(z[16]) +Z([a,[[7],[3,'name']]]) +Z(z[12]) +Z(z[13]) +Z([3,'电话:']) +Z(z[5]) +Z(z[16]) +Z([a,[[7],[3,'phone']]]) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_2_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_2_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_2=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_2=true; +var x=['./pages/contact/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_2_1() +var oLD=_n('view') +_rz(z,oLD,'class',0,e,s,gg) +var cMD=_n('view') +_rz(z,cMD,'class',1,e,s,gg) +var oND=_n('view') +_rz(z,oND,'class',2,e,s,gg) +var lOD=_oz(z,3,e,s,gg) +_(oND,lOD) +_(cMD,oND) +var aPD=_n('view') +_rz(z,aPD,'class',4,e,s,gg) +var tQD=_mz(z,'text',['class',5,'style',1],[],e,s,gg) +var eRD=_oz(z,7,e,s,gg) +_(tQD,eRD) +_(aPD,tQD) +_(cMD,aPD) +_(oLD,cMD) +var bSD=_n('view') +_rz(z,bSD,'style',8,e,s,gg) +_(oLD,bSD) +var oTD=_n('view') +_rz(z,oTD,'class',9,e,s,gg) +var xUD=_n('view') +_rz(z,xUD,'class',10,e,s,gg) +var oVD=_oz(z,11,e,s,gg) +_(xUD,oVD) +_(oTD,xUD) +var fWD=_n('view') +_rz(z,fWD,'class',12,e,s,gg) +var cXD=_n('text') +_rz(z,cXD,'class',13,e,s,gg) +var hYD=_oz(z,14,e,s,gg) +_(cXD,hYD) +_(fWD,cXD) +var oZD=_mz(z,'text',['class',15,'style',1],[],e,s,gg) +var c1D=_oz(z,17,e,s,gg) +_(oZD,c1D) +_(fWD,oZD) +_(oTD,fWD) +var o2D=_n('view') +_rz(z,o2D,'class',18,e,s,gg) +var l3D=_n('text') +_rz(z,l3D,'class',19,e,s,gg) +var a4D=_oz(z,20,e,s,gg) +_(l3D,a4D) +_(o2D,l3D) +var t5D=_mz(z,'text',['class',21,'style',1],[],e,s,gg) +var e6D=_oz(z,23,e,s,gg) +_(t5D,e6D) +_(o2D,t5D) +_(oTD,o2D) +var b7D=_n('view') +_rz(z,b7D,'class',24,e,s,gg) +var o8D=_n('text') +_rz(z,o8D,'class',25,e,s,gg) +var x9D=_oz(z,26,e,s,gg) +_(o8D,x9D) +_(b7D,o8D) +var o0D=_mz(z,'text',['class',27,'style',1],[],e,s,gg) +var fAE=_oz(z,29,e,s,gg) +_(o0D,fAE) +_(b7D,o0D) +_(oTD,b7D) +var cBE=_n('view') +_rz(z,cBE,'class',30,e,s,gg) +var hCE=_n('text') +_rz(z,hCE,'class',31,e,s,gg) +var oDE=_oz(z,32,e,s,gg) +_(hCE,oDE) +_(cBE,hCE) +var cEE=_mz(z,'text',['class',33,'style',1],[],e,s,gg) +var oFE=_oz(z,35,e,s,gg) +_(cEE,oFE) +_(cBE,cEE) +_(oTD,cBE) +_(oLD,oTD) +_(r,oLD) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_2";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_2(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/contact/index.wxml'] = [$gwx_XC_2, './pages/contact/index.wxml'];else __wxAppCode__['pages/contact/index.wxml'] = $gwx_XC_2( './pages/contact/index.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/contact/index.wxss'] = setCssToHead([".",[1],"about-content{font-size:",[0,26],";height:auto;line-height:",[0,50],";padding:",[0,20],"}\n.",[1],"footer{background:#fff;border-top:",[0,1]," solid #e2e2e2;bottom:0;height:",[0,140],";left:0;position:fixed;width:100%;z-index:10000}\n.",[1],"guanyu{background:#fff;border-radius:",[0,10],";margin-left:2%;margin-top:",[0,20],";width:96%}\n.",[1],"guanyu .",[1],"title{border-bottom:",[0,1]," solid #f2f2f2;font-size:",[0,30],";height:",[0,80],";line-height:",[0,80],";margin-left:",[0,20],"}\n.",[1],"guanyu .",[1],"col{font-size:",[0,26],";height:auto;line-height:",[0,50],";margin-left:",[0,20],"}\n.",[1],"guanyu .",[1],"content{font-size:",[0,26],";line-height:",[0,40],";padding:",[0,20],"}\n.",[1],"ditu{height:",[0,400],";margin:0 auto;width:98%}\n",],undefined,{path:"./pages/contact/index.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/contact/liuyan.appservice.js b/wx49a18253b90a02d2/pages/contact/liuyan.appservice.js new file mode 100644 index 0000000..d8bb8b6 --- /dev/null +++ b/wx49a18253b90a02d2/pages/contact/liuyan.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_3=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_3 || []; +function gz$gwx_XC_3_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_3_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_3_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_3=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_3=true; +var x=['./pages/contact/liuyan.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_3_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_3";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_3(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/contact/liuyan.wxml'] = [$gwx_XC_3, './pages/contact/liuyan.wxml'];else __wxAppCode__['pages/contact/liuyan.wxml'] = $gwx_XC_3( './pages/contact/liuyan.wxml' ); + ;__wxRoute = "pages/contact/liuyan";__wxRouteBegin = true;__wxAppCurrentFile__="pages/contact/liuyan.js";define("pages/contact/liuyan.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:""},onLoad:function(){a.that=this,a.style()},fromSubmit:function(e){console.log("fromSubmit");var o=e.detail.value;console.log(e),a.that=this,a.globalData=t.globalData,wx.showLoading({title:"正在加载中.."}),a.Post("/api/companygw.index/consult",{openid:a.getOpenId(),product_name:o.product_name,name:o.name,tel:o.tel,remarks:o.remarks},(function(t){console.log(t),wx.hideLoading(),wx.showToast({title:"提交成功"});var a=getCurrentPages().length;wx.navigateBack({delta:a-1})}))}}); +},{isPage:true,isComponent:true,currentFile:'pages/contact/liuyan.js'});require("pages/contact/liuyan.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/contact/liuyan.common.js b/wx49a18253b90a02d2/pages/contact/liuyan.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/contact/liuyan.html b/wx49a18253b90a02d2/pages/contact/liuyan.html new file mode 100644 index 0000000..b1344c2 --- /dev/null +++ b/wx49a18253b90a02d2/pages/contact/liuyan.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/contact/liuyan.webview.js b/wx49a18253b90a02d2/pages/contact/liuyan.webview.js new file mode 100644 index 0000000..8132010 --- /dev/null +++ b/wx49a18253b90a02d2/pages/contact/liuyan.webview.js @@ -0,0 +1,139 @@ +$gwx_XC_3=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_3 || []; +function gz$gwx_XC_3_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_3_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'page']) +Z([3,'fromSubmit']) +Z([3,'table_form']) +Z([3,'input bdbt']) +Z([3,'咨询产品']) +Z([3,'product_name']) +Z([3,'咨询什么产品呢']) +Z([3,'text']) +Z(z[3]) +Z([3,'您的称呼']) +Z([3,'name']) +Z([3,'请输入您的称呼']) +Z(z[7]) +Z(z[3]) +Z([3,'联系电话']) +Z([3,'tel']) +Z([3,'请输入联系电话']) +Z(z[7]) +Z(z[2]) +Z([3,'textarea']) +Z([3,'备注']) +Z([3,'remarks']) +Z([3,'描述一下您的需求,最多500字']) +Z([3,'table_btn']) +Z([3,'submit']) +Z([3,'background:red']) +Z([3,'立刻申请']) +Z([3,'jszc']) +Z([3,'技术支持:某某科技公司']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_3_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_3_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_3=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_3=true; +var x=['./pages/contact/liuyan.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_3_1() +var aHE=_n('view') +_rz(z,aHE,'class',0,e,s,gg) +var tIE=_n('form') +_rz(z,tIE,'bindsubmit',1,e,s,gg) +var eJE=_n('view') +_rz(z,eJE,'class',2,e,s,gg) +var bKE=_n('view') +_rz(z,bKE,'class',3,e,s,gg) +var oLE=_n('text') +var xME=_oz(z,4,e,s,gg) +_(oLE,xME) +_(bKE,oLE) +var oNE=_mz(z,'input',['name',5,'placeholder',1,'type',2],[],e,s,gg) +_(bKE,oNE) +_(eJE,bKE) +var fOE=_n('view') +_rz(z,fOE,'class',8,e,s,gg) +var cPE=_n('text') +var hQE=_oz(z,9,e,s,gg) +_(cPE,hQE) +_(fOE,cPE) +var oRE=_mz(z,'input',['name',10,'placeholder',1,'type',2],[],e,s,gg) +_(fOE,oRE) +_(eJE,fOE) +var cSE=_n('view') +_rz(z,cSE,'class',13,e,s,gg) +var oTE=_n('text') +var lUE=_oz(z,14,e,s,gg) +_(oTE,lUE) +_(cSE,oTE) +var aVE=_mz(z,'input',['name',15,'placeholder',1,'type',2],[],e,s,gg) +_(cSE,aVE) +_(eJE,cSE) +var tWE=_n('view') +_rz(z,tWE,'class',18,e,s,gg) +var eXE=_n('view') +_rz(z,eXE,'class',19,e,s,gg) +var bYE=_n('text') +var oZE=_oz(z,20,e,s,gg) +_(bYE,oZE) +_(eXE,bYE) +var x1E=_mz(z,'textarea',['name',21,'placeholder',1],[],e,s,gg) +_(eXE,x1E) +_(tWE,eXE) +_(eJE,tWE) +_(tIE,eJE) +var o2E=_mz(z,'button',['class',23,'formType',1,'style',2],[],e,s,gg) +var f3E=_oz(z,26,e,s,gg) +_(o2E,f3E) +_(tIE,o2E) +_(aHE,tIE) +var c4E=_n('view') +_rz(z,c4E,'class',27,e,s,gg) +var h5E=_oz(z,28,e,s,gg) +_(c4E,h5E) +_(aHE,c4E) +_(r,aHE) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_3";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_3(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/contact/liuyan.wxml'] = [$gwx_XC_3, './pages/contact/liuyan.wxml'];else __wxAppCode__['pages/contact/liuyan.wxml'] = $gwx_XC_3( './pages/contact/liuyan.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/contact/liuyan.wxss'] = setCssToHead([],undefined,{path:"./pages/contact/liuyan.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/index/index.appservice.js b/wx49a18253b90a02d2/pages/index/index.appservice.js new file mode 100644 index 0000000..7edd996 --- /dev/null +++ b/wx49a18253b90a02d2/pages/index/index.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_4=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_4 || []; +function gz$gwx_XC_4_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_4_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_4_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_4=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_4=true; +var x=['./pages/index/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_4_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_4";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_4(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/index/index.wxml'] = [$gwx_XC_4, './pages/index/index.wxml'];else __wxAppCode__['pages/index/index.wxml'] = $gwx_XC_4( './pages/index/index.wxml' ); + ;__wxRoute = "pages/index/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/index/index.js";define("pages/index/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js"),o=require("../../utils/request");require("../../utils/wxb.js").that;Page({data:{color:"",datas:[],setting:[]},onShow:function(){a.that=this,a.globalData=t.globalData,console.log(a.that.data.setting)},onLoad:function(){a.that=this,this.getList(),a.style(),this.getHome()},getList:function(){var t=this;o.request({method:"GET",showLoading:!1,url:"/api.php"}).then((function(a){console.log(a),t.setData({a1000:a.data.data.a_1000,a1200:a.data.data.a_1200})})).catch((function(t){console.log("ERROR")}))},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/index",{},(function(t){wx.hideLoading(),console.log(t.banner),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:"18063442990",success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},jjfa:function(){wx.navigateTo({url:"/pages/case/index"})},cpzx:function(){wx.navigateTo({url:"/pages/product/index"})},qydt:function(){wx.navigateTo({url:"/pages/news/index"})},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/index/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/index/index.js'});require("pages/index/index.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/index/index.common.js b/wx49a18253b90a02d2/pages/index/index.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/index/index.html b/wx49a18253b90a02d2/pages/index/index.html new file mode 100644 index 0000000..96304d2 --- /dev/null +++ b/wx49a18253b90a02d2/pages/index/index.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/index/index.webview.js b/wx49a18253b90a02d2/pages/index/index.webview.js new file mode 100644 index 0000000..7e12787 --- /dev/null +++ b/wx49a18253b90a02d2/pages/index/index.webview.js @@ -0,0 +1,600 @@ +$gwx_XC_4=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_4 || []; +function gz$gwx_XC_4_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_4_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'app']) +Z([3,'banner']) +Z([3,'banner-image']) +Z([3,'/img/banner.jpg']) +Z([3,'menu']) +Z([3,'/pages/case/index']) +Z([3,'item']) +Z([3,'icon menu_bg_03']) +Z([3,'/img/case.png']) +Z([3,'方案']) +Z([3,'/pages/news/index']) +Z(z[6]) +Z([3,'icon menu_bg_04']) +Z([3,'/img/news.png']) +Z([3,'动态']) +Z([3,'/pages/contact/index']) +Z(z[6]) +Z([3,'icon menu_bg_05']) +Z([3,'/img/contact.png']) +Z([3,'联系']) +Z([3,'block']) +Z([3,'title']) +Z([3,'2023年12月31日最新报价']) +Z([3,'tab-title']) +Z(z[6]) +Z([3,'1.0米']) +Z(z[6]) +Z([3,'1.2米']) +Z(z[6]) +Z([3,'下载报价']) +Z([3,'height:calc(30vh)']) +Z([3,'padding: 10rpx;']) +Z([[7],[3,'a1000']]) +Z([3,'index']) +Z([3,'news']) +Z([[7],[3,'index']]) +Z([3,'item bdbt']) +Z([3,'tit']) +Z([a,[[6],[[7],[3,'item']],[3,'material']],[[6],[[7],[3,'item']],[3,'thickness']]]) +Z([3,'riqi']) +Z([a,[[6],[[7],[3,'item']],[3,'priceMax']]]) +Z(z[20]) +Z(z[21]) +Z([3,'产品中心']) +Z([3,'product']) +Z([3,'pro']) +Z([3,'true']) +Z(z[6]) +Z([3,'/pages/product/detail']) +Z([3,'aspectFit']) +Z([3,'/img/p1.png']) +Z([3,'name']) +Z([3,'电商小程序']) +Z(z[6]) +Z(z[48]) +Z(z[49]) +Z([3,'/img/p2.png']) +Z(z[51]) +Z([3,'企业小程序']) +Z(z[6]) +Z(z[48]) +Z(z[49]) +Z([3,'/img/p3.png']) +Z(z[51]) +Z([3,'酒店小程序']) +Z(z[6]) +Z(z[48]) +Z(z[49]) +Z(z[62]) +Z(z[51]) +Z([3,'教育小程序']) +Z(z[20]) +Z(z[21]) +Z([3,'解决方案']) +Z([3,'case']) +Z([3,'/pages/case/detail']) +Z(z[36]) +Z([3,'lt']) +Z(z[49]) +Z([3,'/img/p1.jpg']) +Z([3,'rt']) +Z(z[37]) +Z([3,' 怎么才能做一个小程序呢? ']) +Z([3,'info']) +Z([3,' 怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢? ']) +Z(z[74]) +Z(z[75]) +Z(z[36]) +Z(z[77]) +Z(z[49]) +Z(z[79]) +Z(z[80]) +Z(z[37]) +Z(z[82]) +Z(z[83]) +Z(z[84]) +Z(z[74]) +Z(z[75]) +Z(z[36]) +Z(z[77]) +Z(z[49]) +Z(z[79]) +Z(z[80]) +Z(z[37]) +Z(z[82]) +Z(z[83]) +Z(z[84]) +Z(z[20]) +Z(z[21]) +Z([3,'企业动态']) +Z(z[34]) +Z([3,'/pages/news/detail']) +Z(z[36]) +Z(z[37]) +Z([3,'热烈庆祝上线电商小程序']) +Z(z[39]) +Z([3,'2019-11-11']) +Z(z[34]) +Z(z[75]) +Z(z[36]) +Z(z[37]) +Z(z[114]) +Z(z[39]) +Z(z[116]) +Z(z[34]) +Z(z[75]) +Z(z[36]) +Z(z[37]) +Z(z[114]) +Z(z[39]) +Z(z[116]) +Z(z[34]) +Z(z[75]) +Z(z[36]) +Z(z[37]) +Z(z[114]) +Z(z[39]) +Z(z[116]) +Z([3,'jszc']) +Z([3,'height:100rpx;']) +Z([3,'footer']) +Z([3,'/pages/contact/liuyan']) +Z(z[77]) +Z([3,'background:#669dd7']) +Z([3,'/img/yj.png']) +Z([3,'留言咨询']) +Z([3,'calling']) +Z(z[80]) +Z([3,'background:red']) +Z([3,'/img/tel.png']) +Z([3,'拨打电话']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_4_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_4_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_4=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_4=true; +var x=['./pages/index/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_4_1() +var c7E=_n('view') +_rz(z,c7E,'class',0,e,s,gg) +var o8E=_n('swiper') +_rz(z,o8E,'class',1,e,s,gg) +var l9E=_n('swiper-item') +var a0E=_mz(z,'image',['class',2,'src',1],[],e,s,gg) +_(l9E,a0E) +_(o8E,l9E) +_(c7E,o8E) +var tAF=_n('view') +_rz(z,tAF,'class',4,e,s,gg) +var eBF=_n('navigator') +_rz(z,eBF,'url',5,e,s,gg) +var bCF=_n('view') +_rz(z,bCF,'class',6,e,s,gg) +var oDF=_n('view') +_rz(z,oDF,'class',7,e,s,gg) +var xEF=_n('image') +_rz(z,xEF,'src',8,e,s,gg) +_(oDF,xEF) +_(bCF,oDF) +var oFF=_n('text') +var fGF=_oz(z,9,e,s,gg) +_(oFF,fGF) +_(bCF,oFF) +_(eBF,bCF) +_(tAF,eBF) +var cHF=_n('navigator') +_rz(z,cHF,'url',10,e,s,gg) +var hIF=_n('view') +_rz(z,hIF,'class',11,e,s,gg) +var oJF=_n('view') +_rz(z,oJF,'class',12,e,s,gg) +var cKF=_n('image') +_rz(z,cKF,'src',13,e,s,gg) +_(oJF,cKF) +_(hIF,oJF) +var oLF=_n('text') +var lMF=_oz(z,14,e,s,gg) +_(oLF,lMF) +_(hIF,oLF) +_(cHF,hIF) +_(tAF,cHF) +var aNF=_n('navigator') +_rz(z,aNF,'url',15,e,s,gg) +var tOF=_n('view') +_rz(z,tOF,'class',16,e,s,gg) +var ePF=_n('view') +_rz(z,ePF,'class',17,e,s,gg) +var bQF=_n('image') +_rz(z,bQF,'src',18,e,s,gg) +_(ePF,bQF) +_(tOF,ePF) +var oRF=_n('text') +var xSF=_oz(z,19,e,s,gg) +_(oRF,xSF) +_(tOF,oRF) +_(aNF,tOF) +_(tAF,aNF) +_(c7E,tAF) +var oTF=_n('view') +_rz(z,oTF,'class',20,e,s,gg) +var fUF=_n('view') +_rz(z,fUF,'class',21,e,s,gg) +var cVF=_n('text') +var hWF=_oz(z,22,e,s,gg) +_(cVF,hWF) +_(fUF,cVF) +_(oTF,fUF) +var oXF=_n('view') +_rz(z,oXF,'class',23,e,s,gg) +var cYF=_n('view') +_rz(z,cYF,'class',24,e,s,gg) +var oZF=_n('text') +var l1F=_oz(z,25,e,s,gg) +_(oZF,l1F) +_(cYF,oZF) +_(oXF,cYF) +var a2F=_n('view') +_rz(z,a2F,'class',26,e,s,gg) +var t3F=_n('text') +var e4F=_oz(z,27,e,s,gg) +_(t3F,e4F) +_(a2F,t3F) +_(oXF,a2F) +var b5F=_n('view') +_rz(z,b5F,'class',28,e,s,gg) +var o6F=_n('text') +var x7F=_oz(z,29,e,s,gg) +_(o6F,x7F) +_(b5F,o6F) +_(oXF,b5F) +_(oTF,oXF) +var o8F=_mz(z,'scroll-view',['scrollWithAnimation',-1,'scrollY',-1,'style',30],[],e,s,gg) +var f9F=_n('view') +_rz(z,f9F,'style',31,e,s,gg) +var c0F=_v() +_(f9F,c0F) +var hAG=function(cCG,oBG,oDG,gg){ +var aFG=_mz(z,'view',['class',34,'data-index',1],[],cCG,oBG,gg) +var tGG=_n('view') +_rz(z,tGG,'class',36,cCG,oBG,gg) +var eHG=_n('view') +_rz(z,eHG,'class',37,cCG,oBG,gg) +var bIG=_oz(z,38,cCG,oBG,gg) +_(eHG,bIG) +_(tGG,eHG) +var oJG=_n('view') +_rz(z,oJG,'class',39,cCG,oBG,gg) +var xKG=_oz(z,40,cCG,oBG,gg) +_(oJG,xKG) +_(tGG,oJG) +_(aFG,tGG) +_(oDG,aFG) +return oDG +} +c0F.wxXCkey=2 +_2z(z,32,hAG,e,s,gg,c0F,'item','index','index') +_(o8F,f9F) +_(oTF,o8F) +_(c7E,oTF) +var oLG=_n('view') +_rz(z,oLG,'class',41,e,s,gg) +var fMG=_n('view') +_rz(z,fMG,'class',42,e,s,gg) +var cNG=_n('text') +var hOG=_oz(z,43,e,s,gg) +_(cNG,hOG) +_(fMG,cNG) +_(oLG,fMG) +var oPG=_n('view') +_rz(z,oPG,'class',44,e,s,gg) +var cQG=_mz(z,'scroll-view',['class',45,'scrollX',1],[],e,s,gg) +var oRG=_n('view') +_rz(z,oRG,'class',47,e,s,gg) +var lSG=_n('navigator') +_rz(z,lSG,'url',48,e,s,gg) +var aTG=_mz(z,'image',['mode',49,'src',1],[],e,s,gg) +_(lSG,aTG) +var tUG=_n('view') +_rz(z,tUG,'class',51,e,s,gg) +var eVG=_oz(z,52,e,s,gg) +_(tUG,eVG) +_(lSG,tUG) +_(oRG,lSG) +_(cQG,oRG) +var bWG=_n('view') +_rz(z,bWG,'class',53,e,s,gg) +var oXG=_n('navigator') +_rz(z,oXG,'url',54,e,s,gg) +var xYG=_mz(z,'image',['mode',55,'src',1],[],e,s,gg) +_(oXG,xYG) +var oZG=_n('view') +_rz(z,oZG,'class',57,e,s,gg) +var f1G=_oz(z,58,e,s,gg) +_(oZG,f1G) +_(oXG,oZG) +_(bWG,oXG) +_(cQG,bWG) +var c2G=_n('view') +_rz(z,c2G,'class',59,e,s,gg) +var h3G=_n('navigator') +_rz(z,h3G,'url',60,e,s,gg) +var o4G=_mz(z,'image',['mode',61,'src',1],[],e,s,gg) +_(h3G,o4G) +var c5G=_n('view') +_rz(z,c5G,'class',63,e,s,gg) +var o6G=_oz(z,64,e,s,gg) +_(c5G,o6G) +_(h3G,c5G) +_(c2G,h3G) +_(cQG,c2G) +var l7G=_n('view') +_rz(z,l7G,'class',65,e,s,gg) +var a8G=_n('navigator') +_rz(z,a8G,'url',66,e,s,gg) +var t9G=_mz(z,'image',['mode',67,'src',1],[],e,s,gg) +_(a8G,t9G) +var e0G=_n('view') +_rz(z,e0G,'class',69,e,s,gg) +var bAH=_oz(z,70,e,s,gg) +_(e0G,bAH) +_(a8G,e0G) +_(l7G,a8G) +_(cQG,l7G) +_(oPG,cQG) +_(oLG,oPG) +_(c7E,oLG) +var oBH=_n('view') +_rz(z,oBH,'class',71,e,s,gg) +var xCH=_n('view') +_rz(z,xCH,'class',72,e,s,gg) +var oDH=_n('text') +var fEH=_oz(z,73,e,s,gg) +_(oDH,fEH) +_(xCH,oDH) +_(oBH,xCH) +var cFH=_n('view') +_rz(z,cFH,'class',74,e,s,gg) +var hGH=_n('navigator') +_rz(z,hGH,'url',75,e,s,gg) +var oHH=_n('view') +_rz(z,oHH,'class',76,e,s,gg) +var cIH=_n('view') +_rz(z,cIH,'class',77,e,s,gg) +var oJH=_mz(z,'image',['mode',78,'src',1],[],e,s,gg) +_(cIH,oJH) +_(oHH,cIH) +var lKH=_n('view') +_rz(z,lKH,'class',80,e,s,gg) +var aLH=_n('view') +_rz(z,aLH,'class',81,e,s,gg) +var tMH=_oz(z,82,e,s,gg) +_(aLH,tMH) +_(lKH,aLH) +var eNH=_n('view') +_rz(z,eNH,'class',83,e,s,gg) +var bOH=_oz(z,84,e,s,gg) +_(eNH,bOH) +_(lKH,eNH) +_(oHH,lKH) +_(hGH,oHH) +_(cFH,hGH) +_(oBH,cFH) +var oPH=_n('view') +_rz(z,oPH,'class',85,e,s,gg) +var xQH=_n('navigator') +_rz(z,xQH,'url',86,e,s,gg) +var oRH=_n('view') +_rz(z,oRH,'class',87,e,s,gg) +var fSH=_n('view') +_rz(z,fSH,'class',88,e,s,gg) +var cTH=_mz(z,'image',['mode',89,'src',1],[],e,s,gg) +_(fSH,cTH) +_(oRH,fSH) +var hUH=_n('view') +_rz(z,hUH,'class',91,e,s,gg) +var oVH=_n('view') +_rz(z,oVH,'class',92,e,s,gg) +var cWH=_oz(z,93,e,s,gg) +_(oVH,cWH) +_(hUH,oVH) +var oXH=_n('view') +_rz(z,oXH,'class',94,e,s,gg) +var lYH=_oz(z,95,e,s,gg) +_(oXH,lYH) +_(hUH,oXH) +_(oRH,hUH) +_(xQH,oRH) +_(oPH,xQH) +_(oBH,oPH) +var aZH=_n('view') +_rz(z,aZH,'class',96,e,s,gg) +var t1H=_n('navigator') +_rz(z,t1H,'url',97,e,s,gg) +var e2H=_n('view') +_rz(z,e2H,'class',98,e,s,gg) +var b3H=_n('view') +_rz(z,b3H,'class',99,e,s,gg) +var o4H=_mz(z,'image',['mode',100,'src',1],[],e,s,gg) +_(b3H,o4H) +_(e2H,b3H) +var x5H=_n('view') +_rz(z,x5H,'class',102,e,s,gg) +var o6H=_n('view') +_rz(z,o6H,'class',103,e,s,gg) +var f7H=_oz(z,104,e,s,gg) +_(o6H,f7H) +_(x5H,o6H) +var c8H=_n('view') +_rz(z,c8H,'class',105,e,s,gg) +var h9H=_oz(z,106,e,s,gg) +_(c8H,h9H) +_(x5H,c8H) +_(e2H,x5H) +_(t1H,e2H) +_(aZH,t1H) +_(oBH,aZH) +_(c7E,oBH) +var o0H=_n('view') +_rz(z,o0H,'class',107,e,s,gg) +var cAI=_n('view') +_rz(z,cAI,'class',108,e,s,gg) +var oBI=_n('text') +var lCI=_oz(z,109,e,s,gg) +_(oBI,lCI) +_(cAI,oBI) +_(o0H,cAI) +var aDI=_n('view') +_rz(z,aDI,'class',110,e,s,gg) +var tEI=_n('navigator') +_rz(z,tEI,'url',111,e,s,gg) +var eFI=_n('view') +_rz(z,eFI,'class',112,e,s,gg) +var bGI=_n('view') +_rz(z,bGI,'class',113,e,s,gg) +var oHI=_oz(z,114,e,s,gg) +_(bGI,oHI) +_(eFI,bGI) +var xII=_n('view') +_rz(z,xII,'class',115,e,s,gg) +var oJI=_oz(z,116,e,s,gg) +_(xII,oJI) +_(eFI,xII) +_(tEI,eFI) +_(aDI,tEI) +_(o0H,aDI) +var fKI=_n('view') +_rz(z,fKI,'class',117,e,s,gg) +var cLI=_n('navigator') +_rz(z,cLI,'url',118,e,s,gg) +var hMI=_n('view') +_rz(z,hMI,'class',119,e,s,gg) +var oNI=_n('view') +_rz(z,oNI,'class',120,e,s,gg) +var cOI=_oz(z,121,e,s,gg) +_(oNI,cOI) +_(hMI,oNI) +var oPI=_n('view') +_rz(z,oPI,'class',122,e,s,gg) +var lQI=_oz(z,123,e,s,gg) +_(oPI,lQI) +_(hMI,oPI) +_(cLI,hMI) +_(fKI,cLI) +_(o0H,fKI) +var aRI=_n('view') +_rz(z,aRI,'class',124,e,s,gg) +var tSI=_n('navigator') +_rz(z,tSI,'url',125,e,s,gg) +var eTI=_n('view') +_rz(z,eTI,'class',126,e,s,gg) +var bUI=_n('view') +_rz(z,bUI,'class',127,e,s,gg) +var oVI=_oz(z,128,e,s,gg) +_(bUI,oVI) +_(eTI,bUI) +var xWI=_n('view') +_rz(z,xWI,'class',129,e,s,gg) +var oXI=_oz(z,130,e,s,gg) +_(xWI,oXI) +_(eTI,xWI) +_(tSI,eTI) +_(aRI,tSI) +_(o0H,aRI) +var fYI=_n('view') +_rz(z,fYI,'class',131,e,s,gg) +var cZI=_n('navigator') +_rz(z,cZI,'url',132,e,s,gg) +var h1I=_n('view') +_rz(z,h1I,'class',133,e,s,gg) +var o2I=_n('view') +_rz(z,o2I,'class',134,e,s,gg) +var c3I=_oz(z,135,e,s,gg) +_(o2I,c3I) +_(h1I,o2I) +var o4I=_n('view') +_rz(z,o4I,'class',136,e,s,gg) +var l5I=_oz(z,137,e,s,gg) +_(o4I,l5I) +_(h1I,o4I) +_(cZI,h1I) +_(fYI,cZI) +_(o0H,fYI) +_(c7E,o0H) +var a6I=_n('view') +_rz(z,a6I,'class',138,e,s,gg) +_(c7E,a6I) +var t7I=_n('view') +_rz(z,t7I,'style',139,e,s,gg) +_(c7E,t7I) +var e8I=_n('view') +_rz(z,e8I,'class',140,e,s,gg) +var b9I=_n('navigator') +_rz(z,b9I,'url',141,e,s,gg) +var o0I=_mz(z,'view',['class',142,'style',1],[],e,s,gg) +var xAJ=_n('image') +_rz(z,xAJ,'src',144,e,s,gg) +_(o0I,xAJ) +var oBJ=_n('text') +var fCJ=_oz(z,145,e,s,gg) +_(oBJ,fCJ) +_(o0I,oBJ) +_(b9I,o0I) +_(e8I,b9I) +var cDJ=_mz(z,'view',['bindtap',146,'class',1,'style',2],[],e,s,gg) +var hEJ=_n('image') +_rz(z,hEJ,'src',149,e,s,gg) +_(cDJ,hEJ) +var oFJ=_n('text') +var cGJ=_oz(z,150,e,s,gg) +_(oFJ,cGJ) +_(cDJ,oFJ) +_(e8I,cDJ) +_(c7E,e8I) +_(r,c7E) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_4";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_4(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/index/index.wxml'] = [$gwx_XC_4, './pages/index/index.wxml'];else __wxAppCode__['pages/index/index.wxml'] = $gwx_XC_4( './pages/index/index.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/index/index.wxss'] = setCssToHead([".",[1],"banner{height:",[0,500],"}\n.",[1],"banner-image{height:",[0,500],";width:100%}\n",],undefined,{path:"./pages/index/index.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/main/detail.appservice.js b/wx49a18253b90a02d2/pages/main/detail.appservice.js new file mode 100644 index 0000000..981c4e0 --- /dev/null +++ b/wx49a18253b90a02d2/pages/main/detail.appservice.js @@ -0,0 +1,64 @@ +$gwx_XC_5=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_5 || []; +function gz$gwx_XC_5_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_5_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([[8],'wxParseData',[[6],[[7],[3,'article']],[3,'nodes']]]) +Z([3,'wxParse']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_5_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_5=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_5=true; +var x=['./pages/main/detail.wxml','../../wxParse/wxParse.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_5_1() +var oH=e_[x[0]].i +_ai(oH,x[1],e_,x[0],1,1) +var cI=_v() +_(r,cI) +var oJ=_oz(z,1,e,s,gg) +var lK=_gd(x[0],oJ,e_,d_) +if(lK){ +var aL=_1z(z,0,e,s,gg) || {} +var cur_globalf=gg.f +cI.wxXCkey=3 +lK(aL,aL,cI,gg) +gg.f=cur_globalf +} +else _w(oJ,x[0],2,127) +oH.pop() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[x[1]],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_5";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_5(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/main/detail.wxml'] = [$gwx_XC_5, './pages/main/detail.wxml'];else __wxAppCode__['pages/main/detail.wxml'] = $gwx_XC_5( './pages/main/detail.wxml' ); + ;__wxRoute = "pages/main/detail";__wxRouteBegin = true;__wxAppCurrentFile__="pages/main/detail.js";define("pages/main/detail.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var a=require("../../utils/request"),t=require("../../wxParse/wxParse.js");Page({data:{art:null},detail:function(e){var i=this;a.request({url:"/index.php?s=/api/api/detail",method:"GET",showLoading:!1,data:{id:e}}).then((function(a){console.log(a),i.setData({art:a.data.data.res}),t.wxParse("article","html",i.data.art.content,i,5)})).catch((function(a){console.log(a),console.log("ERROR")}))},onLoad:function(a){var t=a.id;this.detail(t)}}); +},{isPage:true,isComponent:true,currentFile:'pages/main/detail.js'});require("pages/main/detail.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/main/detail.common.js b/wx49a18253b90a02d2/pages/main/detail.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/main/detail.html b/wx49a18253b90a02d2/pages/main/detail.html new file mode 100644 index 0000000..7e51ee9 --- /dev/null +++ b/wx49a18253b90a02d2/pages/main/detail.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/main/detail.webview.js b/wx49a18253b90a02d2/pages/main/detail.webview.js new file mode 100644 index 0000000..4cd5621 --- /dev/null +++ b/wx49a18253b90a02d2/pages/main/detail.webview.js @@ -0,0 +1,100 @@ +$gwx_XC_5=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_5 || []; +function gz$gwx_XC_5_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_5_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'page']) +Z([3,'title bdbt']) +Z([a,[[6],[[7],[3,'art']],[3,'title']]]) +Z([3,'duanluo']) +Z([3,'padding: 10rpx;']) +Z([[8],'wxParseData',[[6],[[7],[3,'article']],[3,'nodes']]]) +Z([3,'wxParse']) +Z([3,'riqi']) +Z([a,[[6],[[7],[3,'art']],[3,'create_time']]]) +Z([3,'jszc']) +Z([3,'height:100rpx;']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_5_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_5_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_5=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_5=true; +var x=['./pages/main/detail.wxml','../../wxParse/wxParse.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_5_1() +var lIJ=e_[x[0]].i +_ai(lIJ,x[1],e_,x[0],1,1) +var aJJ=_n('view') +_rz(z,aJJ,'class',0,e,s,gg) +var tKJ=_n('view') +_rz(z,tKJ,'class',1,e,s,gg) +var eLJ=_oz(z,2,e,s,gg) +_(tKJ,eLJ) +_(aJJ,tKJ) +var bMJ=_mz(z,'view',['class',3,'style',1],[],e,s,gg) +var oNJ=_v() +_(bMJ,oNJ) +var xOJ=_oz(z,6,e,s,gg) +var oPJ=_gd(x[0],xOJ,e_,d_) +if(oPJ){ +var fQJ=_1z(z,5,e,s,gg) || {} +var cur_globalf=gg.f +oNJ.wxXCkey=3 +oPJ(fQJ,fQJ,oNJ,gg) +gg.f=cur_globalf +} +else _w(xOJ,x[0],2,127) +_(aJJ,bMJ) +var cRJ=_n('view') +_rz(z,cRJ,'class',7,e,s,gg) +var hSJ=_oz(z,8,e,s,gg) +_(cRJ,hSJ) +_(aJJ,cRJ) +_(r,aJJ) +var oTJ=_n('view') +_rz(z,oTJ,'class',9,e,s,gg) +_(r,oTJ) +var cUJ=_n('view') +_rz(z,cUJ,'style',10,e,s,gg) +_(r,cUJ) +lIJ.pop() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[x[1]],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_5";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_5(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/main/detail.wxml'] = [$gwx_XC_5, './pages/main/detail.wxml'];else __wxAppCode__['pages/main/detail.wxml'] = $gwx_XC_5( './pages/main/detail.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/main/detail.wxss'] = setCssToHead([".",[1],"page{min-height:",[0,1000],";padding-bottom:",[0,20],";padding-top:",[0,20],"}\n.",[1],"title{font-size:",[0,28],";line-height:",[0,60],";padding-bottom:",[0,20],";text-align:center}\n.",[1],"riqi,.",[1],"title{margin-left:2%;width:96%}\n.",[1],"riqi{margin-top:",[0,20],";text-align:right}\n.",[1],"duanluo{line-height:",[0,30],";margin-left:2%;width:96%}\n.",[1],"duanluo wx-image{max-width:100%}\n.",[1],"footer{background:#fff;border-top:",[0,1]," solid #e2e2e2;bottom:0;height:",[0,140],";left:0;position:fixed;width:100%;z-index:10000}\n",],"Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./pages/main/detail.wxss:1:284)",{path:"./pages/main/detail.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/main/main.appservice.js b/wx49a18253b90a02d2/pages/main/main.appservice.js new file mode 100644 index 0000000..114006e --- /dev/null +++ b/wx49a18253b90a02d2/pages/main/main.appservice.js @@ -0,0 +1,89 @@ +$gwx_XC_6=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_6 || []; +function gz$gwx_XC_6_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_6_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([[2,'!'],[[7],[3,'sh']]]) +Z([[2,'=='],[[7],[3,'status']],[1,'0']]) +Z([3,'fromSubmit']) +Z([[7],[3,'isUp']]) +Z([[2,'=='],[[7],[3,'status']],[1,'1']]) +Z([[2,'=='],[[7],[3,'status']],[1,'3']]) +Z([[2,'||'],[[2,'=='],[[7],[3,'status']],[1,'2']],[[7],[3,'sh']]]) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_6_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_6=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_6=true; +var x=['./pages/main/main.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_6_1() +var eN=_v() +_(r,eN) +if(_oz(z,0,e,s,gg)){eN.wxVkey=1 +var oP=_n('view') +var xQ=_v() +_(oP,xQ) +if(_oz(z,1,e,s,gg)){xQ.wxVkey=1 +var cT=_n('form') +_rz(z,cT,'bindsubmit',2,e,s,gg) +var hU=_v() +_(cT,hU) +if(_oz(z,3,e,s,gg)){hU.wxVkey=1 +} +hU.wxXCkey=1 +_(xQ,cT) +} +var oR=_v() +_(oP,oR) +if(_oz(z,4,e,s,gg)){oR.wxVkey=1 +} +var fS=_v() +_(oP,fS) +if(_oz(z,5,e,s,gg)){fS.wxVkey=1 +} +xQ.wxXCkey=1 +oR.wxXCkey=1 +fS.wxXCkey=1 +_(eN,oP) +} +var bO=_v() +_(r,bO) +if(_oz(z,6,e,s,gg)){bO.wxVkey=1 +} +eN.wxXCkey=1 +bO.wxXCkey=1 +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_6";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_6(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/main/main.wxml'] = [$gwx_XC_6, './pages/main/main.wxml'];else __wxAppCode__['pages/main/main.wxml'] = $gwx_XC_6( './pages/main/main.wxml' ); + ;__wxRoute = "pages/main/main";__wxRouteBegin = true;__wxAppCurrentFile__="pages/main/main.js";define("pages/main/main.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=require("../../@babel/runtime/helpers/regeneratorRuntime"),a=require("../../@babel/runtime/helpers/asyncToGenerator"),e=require("../../utils/request"),o=require("../../utils/loading.js");Page({data:{sh:!0,imgList:[],maxCount:3,isUp:!0,openid:"",status:null,indexData:null,timeStr:""},indexData:function(){var t=this;e.request({url:"/index.php?s=/api/api/indexData",method:"GET",showLoading:!1}).then((function(a){console.log(a),t.setData({indexData:a.data.data.res}),t.setData({sh:a.data.data.res.shenhe})})).catch((function(t){console.log("ERROR")}))},wxLogin:function(){var t=this;wx.login({success:function(a){a.code?e.request({url:"/index.php?s=/api/api/login",method:"GET",showLoading:!1,data:{code:a.code}}).then((function(a){console.log(a),t.setData({openid:a.data.data.openid}),t.getInfo(),t.getList()})).catch((function(t){console.log("ERROR")})):console.log("登录失败!"+a.errMsg)}})},getList:function(){var t=this,a=this.data.openid;a||(a=""),e.request({method:"GET",showLoading:!1,url:"/index.php?s=/api/api/userbj",data:{openid:a}}).then((function(a){console.log(a),t.setData({a1000:a.data.data.res.a_1000,a1200:a.data.data.res.a_1200,timeStr:a.data.data.res.timeStr})})).catch((function(t){console.log("ERROR")}))},dowimg:function(){var t=this.data.openid;t||(t=""),o.showLoading("下载中"),e.request({method:"GET",showLoading:!1,url:"/index.php?s=/api/api/userbjimg",data:{openid:t}}).then((function(t){console.log(t);t.data.data.img_base64;var a=t.data.data.img_url;wx.downloadFile({url:a,success:function(t){200===t.statusCode&&wx.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(t){o.hideLoading(),wx.showToast({title:"保存图片成功!"})},fail:function(t){o.hideLoading(),wx.showToast({title:"保存图片失败!"})}})}})})).catch((function(t){console.log("ERROR")}))},getInfo:function(){var t=this;e.request({url:"/index.php?s=/api/api/userInfo",method:"GET",showLoading:!1,data:{openid:t.data.openid}}).then((function(a){console.log(a),t.setData({status:a.data.data.status})})).catch((function(t){console.log("ERROR")}))},fromSubmit:function(t){var a=this,o=t.detail.value;""!=o.username?""!=o.phone?""!=o.number?""!=o.tjr_phone?(o.images=a.data.imgList,o.openid=a.data.openid,e.request({url:"/index.php?s=/api/api/register",method:"POST",showLoading:!1,data:o}).then((function(t){return 1==t.data.code?(a.setData({status:t.data.data.status}),void wx.showToast({title:"注册成功",icon:"none",duration:3e3})):void wx.showToast({title:"注册失败",icon:"none",duration:3e3})})).catch((function(t){console.log("ERROR")}))):wx.showToast({title:"业务员手机号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的身份证号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的手机号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的称呼还没输入呢",icon:"none",duration:3e3})},uploadImage:function(){var e=this;return a(t().mark((function a(){var o,n,i,s,d,r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(o=e).data.imgList,i=o.data.maxCount,t.prev=3,t.next=6,wx.chooseMedia({count:i-n.length,mediaType:["image"],sourceType:["album","camera"],maxDuration:30,sizeType:["compressed"],camera:"back"});case 6:if("chooseMedia:ok"==(s=t.sent).errMsg){t.next=10;break}return wx.showToast({title:"上传失败",icon:"none",duration:3e3}),t.abrupt("return");case 10:if("image"==s.type){t.next=13;break}return wx.showToast({title:"只能上传图片类型",icon:"none",duration:3e3}),t.abrupt("return");case 13:for(wx.showLoading({title:"图片上传中"}),d=s.tempFiles,r=0;r=o.data.maxCount&&o.setData({isUp:!1})):(wx.hideLoading(),wx.showModal({title:"提示",content:"上传失败",showCancel:!1}))}});t.next=21;break;case 18:t.prev=18,t.t0=t.catch(3),console.log(t.t0);case 21:case"end":return t.stop()}}),a,null,[[3,18]])})))()},reBackImg:function(t){var a=t.currentTarget.dataset.index;console.log(a);var e=this.data.imgList;e.splice(a,1),e.length \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/main/main.webview.js b/wx49a18253b90a02d2/pages/main/main.webview.js new file mode 100644 index 0000000..00619a6 --- /dev/null +++ b/wx49a18253b90a02d2/pages/main/main.webview.js @@ -0,0 +1,578 @@ +$gwx_XC_6=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_6 || []; +function gz$gwx_XC_6_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_6_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'banner']) +Z([[6],[[7],[3,'indexData']],[3,'banner']]) +Z([3,'index']) +Z([[7],[3,'index']]) +Z([3,'banner-image']) +Z([[7],[3,'item']]) +Z([[2,'!'],[[7],[3,'sh']]]) +Z([[2,'=='],[[7],[3,'status']],[1,'0']]) +Z([3,'fromSubmit']) +Z([3,'table_form']) +Z([3,'input bdbt']) +Z([3,'您的称呼']) +Z([3,'username']) +Z([3,'请输入您的称呼']) +Z([3,'text']) +Z(z[10]) +Z([3,'联系电话']) +Z([3,'phone']) +Z([3,'请输入联系电话']) +Z([3,'number']) +Z(z[10]) +Z([3,'身份证号码']) +Z(z[19]) +Z([3,'请输入身份证号码']) +Z([3,'idcard']) +Z(z[10]) +Z([3,'业务员手机号']) +Z([3,'tjr_phone']) +Z([3,'请输入业务员手机号']) +Z(z[19]) +Z([3,' display: block; margin-left: 30rpx;padding-top: 20rpx;']) +Z([3,'身份证与营业执照图片(选填)']) +Z([3,'img-view']) +Z([[7],[3,'imgList']]) +Z([3,'_id']) +Z([3,'show']) +Z([3,'previewImg']) +Z(z[3]) +Z([3,'aspectFill']) +Z(z[5]) +Z([3,'reBackImg']) +Z([3,'del-img']) +Z(z[3]) +Z([3,'/img/del.png']) +Z([[7],[3,'isUp']]) +Z([3,'uploadImage']) +Z([3,'up']) +Z([3,'+']) +Z([3,'table_btn']) +Z([3,'submit']) +Z([3,'background:red']) +Z([3,'注册并登陆']) +Z([[2,'=='],[[7],[3,'status']],[1,'1']]) +Z(z[48]) +Z(z[50]) +Z([3,'信息正在审核中']) +Z([[2,'=='],[[7],[3,'status']],[1,'3']]) +Z(z[48]) +Z(z[50]) +Z([3,'信息审核未通过']) +Z([[2,'||'],[[2,'=='],[[7],[3,'status']],[1,'2']],[[7],[3,'sh']]]) +Z([3,'block']) +Z([3,'title']) +Z([a,[[7],[3,'timeStr']],[3,'最新报价']]) +Z([3,'tab-title']) +Z([3,'dowimg']) +Z([3,'item']) +Z([3,'下载报价']) +Z([3,'height:calc(45vh)']) +Z([3,'padding: 10rpx; display: flex;']) +Z([3,'width: 50%;']) +Z([[7],[3,'a1000']]) +Z(z[2]) +Z([3,'news']) +Z(z[3]) +Z([3,'item bdbt']) +Z([3,'tit']) +Z([a,[3,'1米-普通彩涂-'],[[6],[[7],[3,'item']],[3,'thickness']]]) +Z([3,'riqi']) +Z([3,'color: red;']) +Z([a,[[6],[[7],[3,'item']],[3,'priceMax_new']]]) +Z(z[70]) +Z(z[73]) +Z(z[75]) +Z(z[76]) +Z([3,'1.2米-普通彩涂-0.09']) +Z(z[78]) +Z(z[79]) +Z([3,'电议']) +Z(z[73]) +Z(z[75]) +Z(z[76]) +Z([3,'1.2米-普通彩涂-0.10']) +Z(z[78]) +Z(z[79]) +Z(z[88]) +Z(z[73]) +Z(z[75]) +Z(z[76]) +Z([3,'1.2米-普通彩涂-0.11']) +Z(z[78]) +Z(z[79]) +Z(z[88]) +Z(z[73]) +Z(z[75]) +Z(z[76]) +Z([3,'1.2米-普通彩涂-0.12']) +Z(z[78]) +Z(z[79]) +Z(z[88]) +Z([[7],[3,'a1200']]) +Z(z[2]) +Z(z[73]) +Z(z[3]) +Z(z[75]) +Z(z[76]) +Z([a,[3,'1.2米-普通彩涂-'],z[77][2]]) +Z(z[78]) +Z(z[79]) +Z([a,z[80][1]]) +Z(z[61]) +Z(z[62]) +Z([3,'产品中心']) +Z([3,'product']) +Z([3,'pro']) +Z([3,'true']) +Z([[6],[[7],[3,'indexData']],[3,'a']]) +Z(z[2]) +Z(z[66]) +Z(z[3]) +Z([a,[3,'/pages/main/detail?id\x3d'],[[6],[[7],[3,'item']],[3,'help_id']]]) +Z([3,'aspectFit']) +Z([[6],[[6],[[7],[3,'item']],[3,'file']],[3,'file_path']]) +Z([3,'name']) +Z([a,[[6],[[7],[3,'item']],[3,'title']]]) +Z(z[61]) +Z(z[62]) +Z([3,'企业动态']) +Z([[6],[[7],[3,'indexData']],[3,'b']]) +Z(z[2]) +Z(z[73]) +Z(z[3]) +Z([a,z[130][1],z[130][2]]) +Z(z[75]) +Z(z[76]) +Z([a,z[134][1]]) +Z(z[78]) +Z([a,[[6],[[7],[3,'item']],[3,'create_time']]]) +Z([3,'jszc']) +Z([3,'height:100rpx;']) +Z([3,'footer']) +Z([a,[3,'/pages/contact/index?openid\x3d'],[[7],[3,'openid']]]) +Z([3,'lt']) +Z([3,'background:#669dd7']) +Z([3,'/img/home.png']) +Z([3,'关于我们']) +Z([3,'calling']) +Z([3,'rt']) +Z(z[50]) +Z([3,'/img/tel.png']) +Z([3,'拨打电话']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_6_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_6_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_6=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_6=true; +var x=['./pages/main/main.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_6_1() +var tYJ=_n('swiper') +_rz(z,tYJ,'class',0,e,s,gg) +var eZJ=_v() +_(tYJ,eZJ) +var b1J=function(x3J,o2J,o4J,gg){ +var c6J=_n('swiper-item') +_rz(z,c6J,'data-index',3,x3J,o2J,gg) +var h7J=_mz(z,'image',['class',4,'src',1],[],x3J,o2J,gg) +_(c6J,h7J) +_(o4J,c6J) +return o4J +} +eZJ.wxXCkey=2 +_2z(z,1,b1J,e,s,gg,eZJ,'item','index','index') +_(r,tYJ) +var lWJ=_v() +_(r,lWJ) +if(_oz(z,6,e,s,gg)){lWJ.wxVkey=1 +var o8J=_n('view') +var c9J=_v() +_(o8J,c9J) +if(_oz(z,7,e,s,gg)){c9J.wxVkey=1 +var aBK=_n('form') +_rz(z,aBK,'bindsubmit',8,e,s,gg) +var tCK=_n('view') +_rz(z,tCK,'class',9,e,s,gg) +var eDK=_n('view') +_rz(z,eDK,'class',10,e,s,gg) +var bEK=_n('text') +var oFK=_oz(z,11,e,s,gg) +_(bEK,oFK) +_(eDK,bEK) +var xGK=_mz(z,'input',['name',12,'placeholder',1,'type',2],[],e,s,gg) +_(eDK,xGK) +_(tCK,eDK) +var oHK=_n('view') +_rz(z,oHK,'class',15,e,s,gg) +var fIK=_n('text') +var cJK=_oz(z,16,e,s,gg) +_(fIK,cJK) +_(oHK,fIK) +var hKK=_mz(z,'input',['name',17,'placeholder',1,'type',2],[],e,s,gg) +_(oHK,hKK) +_(tCK,oHK) +var oLK=_n('view') +_rz(z,oLK,'class',20,e,s,gg) +var cMK=_n('text') +var oNK=_oz(z,21,e,s,gg) +_(cMK,oNK) +_(oLK,cMK) +var lOK=_mz(z,'input',['name',22,'placeholder',1,'type',2],[],e,s,gg) +_(oLK,lOK) +_(tCK,oLK) +var aPK=_n('view') +_rz(z,aPK,'class',25,e,s,gg) +var tQK=_n('text') +var eRK=_oz(z,26,e,s,gg) +_(tQK,eRK) +_(aPK,tQK) +var bSK=_mz(z,'input',['name',27,'placeholder',1,'type',2],[],e,s,gg) +_(aPK,bSK) +_(tCK,aPK) +var oTK=_n('text') +_rz(z,oTK,'style',30,e,s,gg) +var xUK=_oz(z,31,e,s,gg) +_(oTK,xUK) +_(tCK,oTK) +var oVK=_n('view') +_rz(z,oVK,'class',32,e,s,gg) +var cXK=_v() +_(oVK,cXK) +var hYK=function(c1K,oZK,o2K,gg){ +var a4K=_n('view') +_rz(z,a4K,'class',35,c1K,oZK,gg) +var t5K=_mz(z,'image',['bindtap',36,'data-index',1,'mode',2,'src',3],[],c1K,oZK,gg) +_(a4K,t5K) +var e6K=_mz(z,'image',['bindtap',40,'class',1,'data-index',2,'src',3],[],c1K,oZK,gg) +_(a4K,e6K) +_(o2K,a4K) +return o2K +} +cXK.wxXCkey=2 +_2z(z,33,hYK,e,s,gg,cXK,'item','index','_id') +var fWK=_v() +_(oVK,fWK) +if(_oz(z,44,e,s,gg)){fWK.wxVkey=1 +var b7K=_mz(z,'view',['bindtap',45,'class',1],[],e,s,gg) +var o8K=_oz(z,47,e,s,gg) +_(b7K,o8K) +_(fWK,b7K) +} +fWK.wxXCkey=1 +_(tCK,oVK) +var x9K=_mz(z,'button',['class',48,'formType',1,'style',2],[],e,s,gg) +var o0K=_oz(z,51,e,s,gg) +_(x9K,o0K) +_(tCK,x9K) +_(aBK,tCK) +_(c9J,aBK) +} +var o0J=_v() +_(o8J,o0J) +if(_oz(z,52,e,s,gg)){o0J.wxVkey=1 +var fAL=_n('view') +var cBL=_mz(z,'button',['class',53,'style',1],[],e,s,gg) +var hCL=_oz(z,55,e,s,gg) +_(cBL,hCL) +_(fAL,cBL) +_(o0J,fAL) +} +var lAK=_v() +_(o8J,lAK) +if(_oz(z,56,e,s,gg)){lAK.wxVkey=1 +var oDL=_n('view') +var cEL=_mz(z,'button',['class',57,'style',1],[],e,s,gg) +var oFL=_oz(z,59,e,s,gg) +_(cEL,oFL) +_(oDL,cEL) +_(lAK,oDL) +} +c9J.wxXCkey=1 +o0J.wxXCkey=1 +lAK.wxXCkey=1 +_(lWJ,o8J) +} +var aXJ=_v() +_(r,aXJ) +if(_oz(z,60,e,s,gg)){aXJ.wxVkey=1 +var lGL=_n('view') +var aHL=_n('view') +_rz(z,aHL,'class',61,e,s,gg) +var tIL=_n('view') +_rz(z,tIL,'class',62,e,s,gg) +var eJL=_n('text') +var bKL=_oz(z,63,e,s,gg) +_(eJL,bKL) +_(tIL,eJL) +_(aHL,tIL) +var oLL=_n('view') +_rz(z,oLL,'class',64,e,s,gg) +var xML=_mz(z,'view',['bindtap',65,'class',1],[],e,s,gg) +var oNL=_n('text') +var fOL=_oz(z,67,e,s,gg) +_(oNL,fOL) +_(xML,oNL) +_(oLL,xML) +_(aHL,oLL) +var cPL=_mz(z,'scroll-view',['scrollWithAnimation',-1,'scrollY',-1,'style',68],[],e,s,gg) +var hQL=_n('view') +_rz(z,hQL,'style',69,e,s,gg) +var oRL=_n('view') +_rz(z,oRL,'style',70,e,s,gg) +var cSL=_v() +_(oRL,cSL) +var oTL=function(aVL,lUL,tWL,gg){ +var bYL=_mz(z,'view',['class',73,'data-index',1],[],aVL,lUL,gg) +var oZL=_n('view') +_rz(z,oZL,'class',75,aVL,lUL,gg) +var x1L=_n('view') +_rz(z,x1L,'class',76,aVL,lUL,gg) +var o2L=_oz(z,77,aVL,lUL,gg) +_(x1L,o2L) +_(oZL,x1L) +var f3L=_mz(z,'view',['class',78,'style',1],[],aVL,lUL,gg) +var c4L=_oz(z,80,aVL,lUL,gg) +_(f3L,c4L) +_(oZL,f3L) +_(bYL,oZL) +_(tWL,bYL) +return tWL +} +cSL.wxXCkey=2 +_2z(z,71,oTL,e,s,gg,cSL,'item','index','index') +_(hQL,oRL) +var h5L=_n('view') +_rz(z,h5L,'style',81,e,s,gg) +var o6L=_n('view') +_rz(z,o6L,'class',82,e,s,gg) +var c7L=_n('view') +_rz(z,c7L,'class',83,e,s,gg) +var o8L=_n('view') +_rz(z,o8L,'class',84,e,s,gg) +var l9L=_oz(z,85,e,s,gg) +_(o8L,l9L) +_(c7L,o8L) +var a0L=_mz(z,'view',['class',86,'style',1],[],e,s,gg) +var tAM=_oz(z,88,e,s,gg) +_(a0L,tAM) +_(c7L,a0L) +_(o6L,c7L) +_(h5L,o6L) +var eBM=_n('view') +_rz(z,eBM,'class',89,e,s,gg) +var bCM=_n('view') +_rz(z,bCM,'class',90,e,s,gg) +var oDM=_n('view') +_rz(z,oDM,'class',91,e,s,gg) +var xEM=_oz(z,92,e,s,gg) +_(oDM,xEM) +_(bCM,oDM) +var oFM=_mz(z,'view',['class',93,'style',1],[],e,s,gg) +var fGM=_oz(z,95,e,s,gg) +_(oFM,fGM) +_(bCM,oFM) +_(eBM,bCM) +_(h5L,eBM) +var cHM=_n('view') +_rz(z,cHM,'class',96,e,s,gg) +var hIM=_n('view') +_rz(z,hIM,'class',97,e,s,gg) +var oJM=_n('view') +_rz(z,oJM,'class',98,e,s,gg) +var cKM=_oz(z,99,e,s,gg) +_(oJM,cKM) +_(hIM,oJM) +var oLM=_mz(z,'view',['class',100,'style',1],[],e,s,gg) +var lMM=_oz(z,102,e,s,gg) +_(oLM,lMM) +_(hIM,oLM) +_(cHM,hIM) +_(h5L,cHM) +var aNM=_n('view') +_rz(z,aNM,'class',103,e,s,gg) +var tOM=_n('view') +_rz(z,tOM,'class',104,e,s,gg) +var ePM=_n('view') +_rz(z,ePM,'class',105,e,s,gg) +var bQM=_oz(z,106,e,s,gg) +_(ePM,bQM) +_(tOM,ePM) +var oRM=_mz(z,'view',['class',107,'style',1],[],e,s,gg) +var xSM=_oz(z,109,e,s,gg) +_(oRM,xSM) +_(tOM,oRM) +_(aNM,tOM) +_(h5L,aNM) +var oTM=_v() +_(h5L,oTM) +var fUM=function(hWM,cVM,oXM,gg){ +var oZM=_mz(z,'view',['class',112,'data-index',1],[],hWM,cVM,gg) +var l1M=_n('view') +_rz(z,l1M,'class',114,hWM,cVM,gg) +var a2M=_n('view') +_rz(z,a2M,'class',115,hWM,cVM,gg) +var t3M=_oz(z,116,hWM,cVM,gg) +_(a2M,t3M) +_(l1M,a2M) +var e4M=_mz(z,'view',['class',117,'style',1],[],hWM,cVM,gg) +var b5M=_oz(z,119,hWM,cVM,gg) +_(e4M,b5M) +_(l1M,e4M) +_(oZM,l1M) +_(oXM,oZM) +return oXM +} +oTM.wxXCkey=2 +_2z(z,110,fUM,e,s,gg,oTM,'item','index','index') +_(hQL,h5L) +_(cPL,hQL) +_(aHL,cPL) +_(lGL,aHL) +var o6M=_n('view') +_rz(z,o6M,'class',120,e,s,gg) +var x7M=_n('view') +_rz(z,x7M,'class',121,e,s,gg) +var o8M=_n('text') +var f9M=_oz(z,122,e,s,gg) +_(o8M,f9M) +_(x7M,o8M) +_(o6M,x7M) +var c0M=_n('view') +_rz(z,c0M,'class',123,e,s,gg) +var hAN=_mz(z,'scroll-view',['class',124,'scrollX',1],[],e,s,gg) +var oBN=_v() +_(hAN,oBN) +var cCN=function(lEN,oDN,aFN,gg){ +var eHN=_mz(z,'view',['class',128,'data-index',1],[],lEN,oDN,gg) +var bIN=_n('navigator') +_rz(z,bIN,'url',130,lEN,oDN,gg) +var oJN=_mz(z,'image',['mode',131,'src',1],[],lEN,oDN,gg) +_(bIN,oJN) +var xKN=_n('view') +_rz(z,xKN,'class',133,lEN,oDN,gg) +var oLN=_oz(z,134,lEN,oDN,gg) +_(xKN,oLN) +_(bIN,xKN) +_(eHN,bIN) +_(aFN,eHN) +return aFN +} +oBN.wxXCkey=2 +_2z(z,126,cCN,e,s,gg,oBN,'item','index','index') +_(c0M,hAN) +_(o6M,c0M) +_(lGL,o6M) +var fMN=_n('view') +_rz(z,fMN,'class',135,e,s,gg) +var cNN=_n('view') +_rz(z,cNN,'class',136,e,s,gg) +var hON=_n('text') +var oPN=_oz(z,137,e,s,gg) +_(hON,oPN) +_(cNN,hON) +_(fMN,cNN) +var cQN=_v() +_(fMN,cQN) +var oRN=function(aTN,lSN,tUN,gg){ +var bWN=_mz(z,'view',['class',140,'data-index',1],[],aTN,lSN,gg) +var oXN=_n('navigator') +_rz(z,oXN,'url',142,aTN,lSN,gg) +var xYN=_n('view') +_rz(z,xYN,'class',143,aTN,lSN,gg) +var oZN=_n('view') +_rz(z,oZN,'class',144,aTN,lSN,gg) +var f1N=_oz(z,145,aTN,lSN,gg) +_(oZN,f1N) +_(xYN,oZN) +var c2N=_n('view') +_rz(z,c2N,'class',146,aTN,lSN,gg) +var h3N=_oz(z,147,aTN,lSN,gg) +_(c2N,h3N) +_(xYN,c2N) +_(oXN,xYN) +_(bWN,oXN) +_(tUN,bWN) +return tUN +} +cQN.wxXCkey=2 +_2z(z,138,oRN,e,s,gg,cQN,'item','index','index') +_(lGL,fMN) +var o4N=_n('view') +_rz(z,o4N,'class',148,e,s,gg) +_(lGL,o4N) +var c5N=_n('view') +_rz(z,c5N,'style',149,e,s,gg) +_(lGL,c5N) +var o6N=_n('view') +_rz(z,o6N,'class',150,e,s,gg) +var l7N=_n('navigator') +_rz(z,l7N,'url',151,e,s,gg) +var a8N=_mz(z,'view',['class',152,'style',1],[],e,s,gg) +var t9N=_n('image') +_rz(z,t9N,'src',154,e,s,gg) +_(a8N,t9N) +var e0N=_n('text') +var bAO=_oz(z,155,e,s,gg) +_(e0N,bAO) +_(a8N,e0N) +_(l7N,a8N) +_(o6N,l7N) +var oBO=_mz(z,'view',['bindtap',156,'class',1,'style',2],[],e,s,gg) +var xCO=_n('image') +_rz(z,xCO,'src',159,e,s,gg) +_(oBO,xCO) +var oDO=_n('text') +var fEO=_oz(z,160,e,s,gg) +_(oDO,fEO) +_(oBO,oDO) +_(o6N,oBO) +_(lGL,o6N) +_(aXJ,lGL) +} +lWJ.wxXCkey=1 +aXJ.wxXCkey=1 +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_6";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_6(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/main/main.wxml'] = [$gwx_XC_6, './pages/main/main.wxml'];else __wxAppCode__['pages/main/main.wxml'] = $gwx_XC_6( './pages/main/main.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/main/main.wxss'] = setCssToHead(["body{background:#fff}\n.",[1],"banner{height:",[0,400],"}\n.",[1],"banner-image{height:",[0,400],";width:100%}\n.",[1],"main-menu{background:#fff;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin:0 ",[0,20],";padding:",[0,20],"}\n.",[1],"main-menu .",[1],"item{-webkit-flex:1;flex:1;padding:10px;text-align:center}\n.",[1],"main-menu .",[1],"item wx-image{display:block;float:left;height:",[0,40],";margin-left:",[0,20],";margin-top:",[0,20],";width:",[0,40],"}\n.",[1],"main-menu .",[1],"item .",[1],"icon{border-radius:",[0,40],";height:",[0,80],";margin:0 auto;width:",[0,80],"}\n.",[1],"main-menu .",[1],"item wx-text{display:block;font-size:",[0,26],";height:",[0,40],";line-height:",[0,40],";margin-top:",[0,10],"}\n.",[1],"tab-title{background:#fff;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin:",[0,10]," ",[0,10]," 0;padding:",[0,10],"}\n.",[1],"tab-title .",[1],"item{border:",[0,1]," solid #666;border-radius:",[0,10],";-webkit-flex:1;flex:1;margin:0 ",[0,50],";padding:",[0,10],";text-align:center}\n.",[1],"img-view{display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:",[0,20],";width:",[0,710],"}\n.",[1],"img-view .",[1],"show,.",[1],"img-view .",[1],"up{margin:",[0,6],"}\n.",[1],"img-view .",[1],"up{background-color:#ededed;color:#bfbfbf;font-size:",[0,100],";height:",[0,220],";line-height:",[0,200],";text-align:center;width:",[0,220],"}\n.",[1],"img-view .",[1],"show{height:",[0,220],";position:relative;width:",[0,220],"}\n.",[1],"del-img{background-color:#fff;border-bottom-left-radius:",[0,10],";box-sizing:border-box;height:",[0,50],"!important;padding:",[0,8],";position:absolute;right:",[0,0],";top:",[0,0],";width:",[0,50],"!important;z-index:9998}\n.",[1],"img-view .",[1],"show wx-image{height:100%;width:100%}\n.",[1],"onSavebut{background-color:#07c160;color:#fff;width:",[0,300],"}\n.",[1],"table_btn{color:#fff;font-size:",[0,26],";height:",[0,80],";line-height:",[0,80],";margin-bottom:",[0,20],";margin-top:",[0,50],";text-align:center;width:",[0,500],"}\n.",[1],"table_form{background:#fff;height:auto;overflow:hidden}\n.",[1],"table_form .",[1],"input{display:-webkit-flex;display:flex;font-size:",[0,26],";height:",[0,80],";line-height:",[0,80],"}\n.",[1],"table_form .",[1],"input wx-text{margin-left:",[0,30],";width:30%}\n.",[1],"table_form .",[1],"input wx-input{font-size:",[0,24],";height:",[0,80],";margin-right:",[0,30],";width:70%}\n.",[1],"footer{background:#fff;border-top:",[0,1]," solid #e2e2e2;bottom:0;height:",[0,140],";left:0;position:fixed;width:100%;z-index:10000}\n.",[1],"product{height:auto;margin-left:2%;padding-top:",[0,10],";width:96%}\n.",[1],"product .",[1],"pro{float:left;height:",[0,200],";overflow:hidden;white-space:nowrap;width:100%}\n.",[1],"product .",[1],"item{display:inline-block;height:",[0,200],";margin-left:",[0,10],";width:",[0,200],"}\n.",[1],"product .",[1],"item wx-image{display:block;height:",[0,160],";width:",[0,200],"}\n.",[1],"product .",[1],"item .",[1],"name{display:inline-block;height:",[0,40],";line-height:",[0,40],";overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:",[0,200],"}\n.",[1],"news .",[1],"item .",[1],"riqi{color:#666;float:right;margin-right:",[0,45],"}\n",],"Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./pages/main/main.wxss:1:2381)",{path:"./pages/main/main.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/news/detail.appservice.js b/wx49a18253b90a02d2/pages/news/detail.appservice.js new file mode 100644 index 0000000..4153a44 --- /dev/null +++ b/wx49a18253b90a02d2/pages/news/detail.appservice.js @@ -0,0 +1,61 @@ +$gwx_XC_7=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_7 || []; +function gz$gwx_XC_7_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_7_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_7_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_7_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([[8],'wxParseData',[[6],[[7],[3,'article']],[3,'nodes']]]) +Z([3,'wxParse']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_7_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_7_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_7=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_7=true; +var x=['./pages/news/detail.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_7_1() +var cW=_v() +_(r,cW) +var oX=_oz(z,1,e,s,gg) +var lY=_gd(x[0],oX,e_,d_) +if(lY){ +var aZ=_1z(z,0,e,s,gg) || {} +var cur_globalf=gg.f +cW.wxXCkey=3 +lY(aZ,aZ,cW,gg) +gg.f=cur_globalf +} +else _w(oX,x[0],1,154) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_7";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_7(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/news/detail.wxml'] = [$gwx_XC_7, './pages/news/detail.wxml'];else __wxAppCode__['pages/news/detail.wxml'] = $gwx_XC_7( './pages/news/detail.wxml' ); + ;__wxRoute = "pages/news/detail";__wxRouteBegin = true;__wxAppCurrentFile__="pages/news/detail.js";define("pages/news/detail.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";getApp();var t=require("../../utils/wxb.js");Page({data:{color:""},onLoad:function(){t.that=this,t.style()}}); +},{isPage:true,isComponent:true,currentFile:'pages/news/detail.js'});require("pages/news/detail.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/news/detail.common.js b/wx49a18253b90a02d2/pages/news/detail.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/news/detail.html b/wx49a18253b90a02d2/pages/news/detail.html new file mode 100644 index 0000000..df5d78e --- /dev/null +++ b/wx49a18253b90a02d2/pages/news/detail.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/news/detail.webview.js b/wx49a18253b90a02d2/pages/news/detail.webview.js new file mode 100644 index 0000000..c81054a --- /dev/null +++ b/wx49a18253b90a02d2/pages/news/detail.webview.js @@ -0,0 +1,134 @@ +$gwx_XC_7=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_7 || []; +function gz$gwx_XC_7_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_7_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_7_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_7_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'page']) +Z([3,'title bdbt']) +Z([3,'热烈庆祝电商小程序上线........']) +Z([3,'duanluo']) +Z([3,'padding: 10rpx;']) +Z([[8],'wxParseData',[[6],[[7],[3,'article']],[3,'nodes']]]) +Z([3,'wxParse']) +Z([3,'riqi']) +Z([3,'2019-11-11']) +Z([3,'jszc']) +Z([3,'技术支持:某某科技公司']) +Z([3,'height:100rpx;']) +Z([3,'footer']) +Z([3,'/pages/contact/liuyan']) +Z([3,'lt']) +Z([3,'/img/yj.png']) +Z([3,'在线咨询']) +Z([3,'rt']) +Z([3,'background:red']) +Z([3,'/img/tel.png']) +Z([3,'拨打电话']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_7_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_7_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_7=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_7=true; +var x=['./pages/news/detail.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_7_1() +var hGO=_n('view') +_rz(z,hGO,'class',0,e,s,gg) +var oHO=_n('view') +_rz(z,oHO,'class',1,e,s,gg) +var cIO=_oz(z,2,e,s,gg) +_(oHO,cIO) +_(hGO,oHO) +var oJO=_mz(z,'view',['class',3,'style',1],[],e,s,gg) +var lKO=_v() +_(oJO,lKO) +var aLO=_oz(z,6,e,s,gg) +var tMO=_gd(x[0],aLO,e_,d_) +if(tMO){ +var eNO=_1z(z,5,e,s,gg) || {} +var cur_globalf=gg.f +lKO.wxXCkey=3 +tMO(eNO,eNO,lKO,gg) +gg.f=cur_globalf +} +else _w(aLO,x[0],1,154) +_(hGO,oJO) +var bOO=_n('view') +_rz(z,bOO,'class',7,e,s,gg) +var oPO=_oz(z,8,e,s,gg) +_(bOO,oPO) +_(hGO,bOO) +_(r,hGO) +var xQO=_n('view') +_rz(z,xQO,'class',9,e,s,gg) +var oRO=_oz(z,10,e,s,gg) +_(xQO,oRO) +_(r,xQO) +var fSO=_n('view') +_rz(z,fSO,'style',11,e,s,gg) +_(r,fSO) +var cTO=_n('view') +_rz(z,cTO,'class',12,e,s,gg) +var hUO=_n('navigator') +_rz(z,hUO,'url',13,e,s,gg) +var oVO=_n('view') +_rz(z,oVO,'class',14,e,s,gg) +var cWO=_n('image') +_rz(z,cWO,'src',15,e,s,gg) +_(oVO,cWO) +var oXO=_n('text') +var lYO=_oz(z,16,e,s,gg) +_(oXO,lYO) +_(oVO,oXO) +_(hUO,oVO) +_(cTO,hUO) +var aZO=_mz(z,'view',['class',17,'style',1],[],e,s,gg) +var t1O=_n('image') +_rz(z,t1O,'src',19,e,s,gg) +_(aZO,t1O) +var e2O=_n('text') +var b3O=_oz(z,20,e,s,gg) +_(e2O,b3O) +_(aZO,e2O) +_(cTO,aZO) +_(r,cTO) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_7";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_7(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/news/detail.wxml'] = [$gwx_XC_7, './pages/news/detail.wxml'];else __wxAppCode__['pages/news/detail.wxml'] = $gwx_XC_7( './pages/news/detail.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/news/detail.wxss'] = setCssToHead([".",[1],"page{min-height:",[0,1000],";padding-bottom:",[0,20],";padding-top:",[0,20],"}\n.",[1],"title{font-size:",[0,28],";line-height:",[0,60],";padding-bottom:",[0,20],";text-align:center}\n.",[1],"riqi,.",[1],"title{margin-left:2%;width:96%}\n.",[1],"riqi{margin-top:",[0,20],";text-align:right}\n.",[1],"duanluo{line-height:",[0,30],";margin-left:2%;width:96%}\n.",[1],"duanluo wx-image{max-width:100%}\n",],"Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./pages/news/detail.wxss:1:284)",{path:"./pages/news/detail.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/news/index.appservice.js b/wx49a18253b90a02d2/pages/news/index.appservice.js new file mode 100644 index 0000000..4a547b8 --- /dev/null +++ b/wx49a18253b90a02d2/pages/news/index.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_8=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_8 || []; +function gz$gwx_XC_8_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_8_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_8_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_8_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_8_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_8_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_8=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_8=true; +var x=['./pages/news/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_8_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_8";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_8(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/news/index.wxml'] = [$gwx_XC_8, './pages/news/index.wxml'];else __wxAppCode__['pages/news/index.wxml'] = $gwx_XC_8( './pages/news/index.wxml' ); + ;__wxRoute = "pages/news/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/news/index.js";define("pages/news/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],page:1,more:0,type:0},onShow:function(){a.that=this,a.globalData=t.globalData,this.setData({datas:[],page:1,more:0}),this.getHome()},onLoad:function(){a.that=this,a.style()},more:function(t){this.getHome()},getHome:function(e){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/news",{page:a.that.data.page},(function(t){var e=a.that.data.datas;for(var o in t.list)e.push(t.list[o]);console.log(t),wx.hideLoading(),a.that.setData({datas:e,page:a.that.data.page+1,more:t.more})}))},onShareAppMessage:function(e){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/news/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/news/index.js'});require("pages/news/index.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/news/index.common.js b/wx49a18253b90a02d2/pages/news/index.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/news/index.html b/wx49a18253b90a02d2/pages/news/index.html new file mode 100644 index 0000000..13d0052 --- /dev/null +++ b/wx49a18253b90a02d2/pages/news/index.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/news/index.webview.js b/wx49a18253b90a02d2/pages/news/index.webview.js new file mode 100644 index 0000000..61dc8f1 --- /dev/null +++ b/wx49a18253b90a02d2/pages/news/index.webview.js @@ -0,0 +1,254 @@ +$gwx_XC_8=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_8 || []; +function gz$gwx_XC_8_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_8_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_8_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_8_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'page']) +Z([3,'news']) +Z([3,'/pages/news/detail']) +Z([3,'item bdbt']) +Z([3,'tit']) +Z([3,'热烈庆祝电商小程序上线']) +Z([3,'riqi']) +Z([3,'2011-11-11']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z([3,'jszc']) +Z([3,'技术支持:某某科技公司']) +Z([3,'height:100rpx;']) +Z([3,'footer']) +Z([3,'lt']) +Z([3,'/img/yj.png']) +Z([3,'在线咨询']) +Z([3,'rt']) +Z([3,'background:red']) +Z([3,'/img/tel.png']) +Z([3,'拨打电话']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_8_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_8_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_8=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_8=true; +var x=['./pages/news/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_8_1() +var x5O=_n('view') +_rz(z,x5O,'class',0,e,s,gg) +var o6O=_n('view') +_rz(z,o6O,'class',1,e,s,gg) +var f7O=_n('navigator') +_rz(z,f7O,'url',2,e,s,gg) +var c8O=_n('view') +_rz(z,c8O,'class',3,e,s,gg) +var h9O=_n('view') +_rz(z,h9O,'class',4,e,s,gg) +var o0O=_oz(z,5,e,s,gg) +_(h9O,o0O) +_(c8O,h9O) +var cAP=_n('view') +_rz(z,cAP,'class',6,e,s,gg) +var oBP=_oz(z,7,e,s,gg) +_(cAP,oBP) +_(c8O,cAP) +_(f7O,c8O) +_(o6O,f7O) +_(x5O,o6O) +var lCP=_n('view') +_rz(z,lCP,'class',8,e,s,gg) +var aDP=_n('navigator') +_rz(z,aDP,'url',9,e,s,gg) +var tEP=_n('view') +_rz(z,tEP,'class',10,e,s,gg) +var eFP=_n('view') +_rz(z,eFP,'class',11,e,s,gg) +var bGP=_oz(z,12,e,s,gg) +_(eFP,bGP) +_(tEP,eFP) +var oHP=_n('view') +_rz(z,oHP,'class',13,e,s,gg) +var xIP=_oz(z,14,e,s,gg) +_(oHP,xIP) +_(tEP,oHP) +_(aDP,tEP) +_(lCP,aDP) +_(x5O,lCP) +var oJP=_n('view') +_rz(z,oJP,'class',15,e,s,gg) +var fKP=_n('navigator') +_rz(z,fKP,'url',16,e,s,gg) +var cLP=_n('view') +_rz(z,cLP,'class',17,e,s,gg) +var hMP=_n('view') +_rz(z,hMP,'class',18,e,s,gg) +var oNP=_oz(z,19,e,s,gg) +_(hMP,oNP) +_(cLP,hMP) +var cOP=_n('view') +_rz(z,cOP,'class',20,e,s,gg) +var oPP=_oz(z,21,e,s,gg) +_(cOP,oPP) +_(cLP,cOP) +_(fKP,cLP) +_(oJP,fKP) +_(x5O,oJP) +var lQP=_n('view') +_rz(z,lQP,'class',22,e,s,gg) +var aRP=_n('navigator') +_rz(z,aRP,'url',23,e,s,gg) +var tSP=_n('view') +_rz(z,tSP,'class',24,e,s,gg) +var eTP=_n('view') +_rz(z,eTP,'class',25,e,s,gg) +var bUP=_oz(z,26,e,s,gg) +_(eTP,bUP) +_(tSP,eTP) +var oVP=_n('view') +_rz(z,oVP,'class',27,e,s,gg) +var xWP=_oz(z,28,e,s,gg) +_(oVP,xWP) +_(tSP,oVP) +_(aRP,tSP) +_(lQP,aRP) +_(x5O,lQP) +var oXP=_n('view') +_rz(z,oXP,'class',29,e,s,gg) +var fYP=_n('navigator') +_rz(z,fYP,'url',30,e,s,gg) +var cZP=_n('view') +_rz(z,cZP,'class',31,e,s,gg) +var h1P=_n('view') +_rz(z,h1P,'class',32,e,s,gg) +var o2P=_oz(z,33,e,s,gg) +_(h1P,o2P) +_(cZP,h1P) +var c3P=_n('view') +_rz(z,c3P,'class',34,e,s,gg) +var o4P=_oz(z,35,e,s,gg) +_(c3P,o4P) +_(cZP,c3P) +_(fYP,cZP) +_(oXP,fYP) +_(x5O,oXP) +var l5P=_n('view') +_rz(z,l5P,'class',36,e,s,gg) +var a6P=_n('navigator') +_rz(z,a6P,'url',37,e,s,gg) +var t7P=_n('view') +_rz(z,t7P,'class',38,e,s,gg) +var e8P=_n('view') +_rz(z,e8P,'class',39,e,s,gg) +var b9P=_oz(z,40,e,s,gg) +_(e8P,b9P) +_(t7P,e8P) +var o0P=_n('view') +_rz(z,o0P,'class',41,e,s,gg) +var xAQ=_oz(z,42,e,s,gg) +_(o0P,xAQ) +_(t7P,o0P) +_(a6P,t7P) +_(l5P,a6P) +_(x5O,l5P) +_(r,x5O) +var oBQ=_n('view') +_rz(z,oBQ,'class',43,e,s,gg) +var fCQ=_oz(z,44,e,s,gg) +_(oBQ,fCQ) +_(r,oBQ) +var cDQ=_n('view') +_rz(z,cDQ,'style',45,e,s,gg) +_(r,cDQ) +var hEQ=_n('view') +_rz(z,hEQ,'class',46,e,s,gg) +var oFQ=_n('view') +_rz(z,oFQ,'class',47,e,s,gg) +var cGQ=_n('image') +_rz(z,cGQ,'src',48,e,s,gg) +_(oFQ,cGQ) +var oHQ=_n('text') +var lIQ=_oz(z,49,e,s,gg) +_(oHQ,lIQ) +_(oFQ,oHQ) +_(hEQ,oFQ) +var aJQ=_mz(z,'view',['class',50,'style',1],[],e,s,gg) +var tKQ=_n('image') +_rz(z,tKQ,'src',52,e,s,gg) +_(aJQ,tKQ) +var eLQ=_n('text') +var bMQ=_oz(z,53,e,s,gg) +_(eLQ,bMQ) +_(aJQ,eLQ) +_(hEQ,aJQ) +_(r,hEQ) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_8";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_8(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/news/index.wxml'] = [$gwx_XC_8, './pages/news/index.wxml'];else __wxAppCode__['pages/news/index.wxml'] = $gwx_XC_8( './pages/news/index.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/news/index.wxss'] = setCssToHead([],undefined,{path:"./pages/news/index.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/product/detail.appservice.js b/wx49a18253b90a02d2/pages/product/detail.appservice.js new file mode 100644 index 0000000..0e09661 --- /dev/null +++ b/wx49a18253b90a02d2/pages/product/detail.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_9=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_9 || []; +function gz$gwx_XC_9_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_9_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_9_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_9_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_9_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_9_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_9=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_9=true; +var x=['./pages/product/detail.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_9_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_9";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_9(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/product/detail.wxml'] = [$gwx_XC_9, './pages/product/detail.wxml'];else __wxAppCode__['pages/product/detail.wxml'] = $gwx_XC_9( './pages/product/detail.wxml' ); + ;__wxRoute = "pages/product/detail";__wxRouteBegin = true;__wxAppCurrentFile__="pages/product/detail.js";define("pages/product/detail.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],id:0,setting:[]},onLoad:function(t){console.log(t),a.that=this,a.style(),a.that.setData({id:t.id}),this.getDetail()},getDetail:function(i){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/detail2",{id:a.that.data.id},(function(t){wx.hideLoading(),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:a.that.data.setting.service_tel,success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},onShareAppMessage:function(i){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/product/detail?id="+a.that.data.id,success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/product/detail.js'});require("pages/product/detail.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/product/detail.common.js b/wx49a18253b90a02d2/pages/product/detail.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/product/detail.html b/wx49a18253b90a02d2/pages/product/detail.html new file mode 100644 index 0000000..e514661 --- /dev/null +++ b/wx49a18253b90a02d2/pages/product/detail.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/product/detail.webview.js b/wx49a18253b90a02d2/pages/product/detail.webview.js new file mode 100644 index 0000000..00b06fc --- /dev/null +++ b/wx49a18253b90a02d2/pages/product/detail.webview.js @@ -0,0 +1,165 @@ +$gwx_XC_9=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_9 || []; +function gz$gwx_XC_9_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_9_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_9_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_9_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'page']) +Z([3,'item bdbt']) +Z([3,'lt']) +Z([3,'aspectFit']) +Z([3,'/img/p1.png']) +Z([3,'rt']) +Z([3,'name']) +Z([3,'电商小程序']) +Z([3,'xinghao']) +Z([[2,'?:'],[[2,'=='],[[6],[[6],[[7],[3,'datas']],[3,'product']],[3,'version']],[1,'']],[1,true],[1,false]]) +Z([3,'标准:简单']) +Z([3,'price']) +Z([3,'价格:¥']) +Z([3,'money']) +Z([3,' 2000 ']) +Z([3,'元']) +Z([3,'duanluo']) +Z(z[3]) +Z([3,'/img/banner.png']) +Z([3,'content']) +Z([3,'\n \n 电商小程序电商小程序电商小程序电商小程序电商小程序电商小程序,\n 电商小程序电商小程序电商小程序电商小程序,\n 电商小程序电商小程序电商小程序电商小程序电商小程序\n \n \n \n ']) +Z([3,'jszc']) +Z([3,'技术支持:某某科技公司']) +Z([3,'height:100rpx;']) +Z([3,'footer']) +Z([3,'/pages/contact/liuyan']) +Z(z[2]) +Z([3,'/img/yj.png']) +Z([3,'在线咨询']) +Z([3,'calling']) +Z(z[5]) +Z([3,'background:red']) +Z([3,'/img/tel.png']) +Z([3,'拨打电话']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_9_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_9_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_9=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_9=true; +var x=['./pages/product/detail.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_9_1() +var xOQ=_n('view') +_rz(z,xOQ,'class',0,e,s,gg) +var oPQ=_n('view') +_rz(z,oPQ,'class',1,e,s,gg) +var fQQ=_n('view') +_rz(z,fQQ,'class',2,e,s,gg) +var cRQ=_mz(z,'image',['mode',3,'src',1],[],e,s,gg) +_(fQQ,cRQ) +_(oPQ,fQQ) +var hSQ=_n('view') +_rz(z,hSQ,'class',5,e,s,gg) +var oTQ=_n('view') +_rz(z,oTQ,'class',6,e,s,gg) +var cUQ=_oz(z,7,e,s,gg) +_(oTQ,cUQ) +_(hSQ,oTQ) +var oVQ=_mz(z,'view',['class',8,'hidden',1],[],e,s,gg) +var lWQ=_oz(z,10,e,s,gg) +_(oVQ,lWQ) +_(hSQ,oVQ) +var aXQ=_n('view') +_rz(z,aXQ,'class',11,e,s,gg) +var tYQ=_oz(z,12,e,s,gg) +_(aXQ,tYQ) +var eZQ=_n('text') +_rz(z,eZQ,'class',13,e,s,gg) +var b1Q=_oz(z,14,e,s,gg) +_(eZQ,b1Q) +_(aXQ,eZQ) +var o2Q=_oz(z,15,e,s,gg) +_(aXQ,o2Q) +_(hSQ,aXQ) +_(oPQ,hSQ) +_(xOQ,oPQ) +var x3Q=_n('view') +_rz(z,x3Q,'class',16,e,s,gg) +var o4Q=_mz(z,'image',['mode',17,'src',1],[],e,s,gg) +_(x3Q,o4Q) +var f5Q=_n('text') +_rz(z,f5Q,'class',19,e,s,gg) +var c6Q=_oz(z,20,e,s,gg) +_(f5Q,c6Q) +_(x3Q,f5Q) +_(xOQ,x3Q) +_(r,xOQ) +var h7Q=_n('view') +_rz(z,h7Q,'class',21,e,s,gg) +var o8Q=_oz(z,22,e,s,gg) +_(h7Q,o8Q) +_(r,h7Q) +var c9Q=_n('view') +_rz(z,c9Q,'style',23,e,s,gg) +_(r,c9Q) +var o0Q=_n('view') +_rz(z,o0Q,'class',24,e,s,gg) +var lAR=_n('navigator') +_rz(z,lAR,'url',25,e,s,gg) +var aBR=_n('view') +_rz(z,aBR,'class',26,e,s,gg) +var tCR=_n('image') +_rz(z,tCR,'src',27,e,s,gg) +_(aBR,tCR) +var eDR=_n('text') +var bER=_oz(z,28,e,s,gg) +_(eDR,bER) +_(aBR,eDR) +_(lAR,aBR) +_(o0Q,lAR) +var oFR=_mz(z,'view',['bindtap',29,'class',1,'style',2],[],e,s,gg) +var xGR=_n('image') +_rz(z,xGR,'src',32,e,s,gg) +_(oFR,xGR) +var oHR=_n('text') +var fIR=_oz(z,33,e,s,gg) +_(oHR,fIR) +_(oFR,oHR) +_(o0Q,oFR) +_(r,o0Q) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_9";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_9(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/product/detail.wxml'] = [$gwx_XC_9, './pages/product/detail.wxml'];else __wxAppCode__['pages/product/detail.wxml'] = $gwx_XC_9( './pages/product/detail.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/product/detail.wxss'] = setCssToHead([".",[1],"page{min-height:",[0,1000],";padding-bottom:",[0,20],";padding-top:",[0,20],"}\n.",[1],"duanluo{display:inline-block;line-height:",[0,30],";margin-left:2%;width:96%}\n.",[1],"duanluo wx-image{margin-top:",[0,10],";max-width:100%}\n.",[1],"item{height:",[0,200],";margin-left:2%;margin-top:",[0,20],";overflow:hidden;width:96%}\n.",[1],"item .",[1],"lt{float:left;width:",[0,200],"}\n.",[1],"item .",[1],"lt wx-image{height:",[0,160],";margin-left:",[0,10],";margin-top:",[0,20],";width:",[0,180],"}\n.",[1],"item .",[1],"rt{height:",[0,180],";margin-top:",[0,20],";width:",[0,680],"}\n.",[1],"item .",[1],"rt .",[1],"name{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;font-size:",[0,26],";height:",[0,60],";line-height:",[0,60],";overflow:hidden;text-overflow:ellipsis;word-break:break-all}\n.",[1],"item .",[1],"rt .",[1],"price,.",[1],"item .",[1],"rt .",[1],"xinghao{height:",[0,40],";line-height:",[0,40],"}\n.",[1],"price .",[1],"money{color:red;font-size:",[0,26],";font-weight:700}\n",],"Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./pages/product/detail.wxss:1:307)",{path:"./pages/product/detail.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/product/index.appservice.js b/wx49a18253b90a02d2/pages/product/index.appservice.js new file mode 100644 index 0000000..4cd9f53 --- /dev/null +++ b/wx49a18253b90a02d2/pages/product/index.appservice.js @@ -0,0 +1,47 @@ +$gwx_XC_10=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_10 || []; +function gz$gwx_XC_10_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_10_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_10_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_10_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_10_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_10_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_10=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_10=true; +var x=['./pages/product/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_10_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_10";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +try{ +main(env,{},root,global); +_tsd(root) +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_10(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/product/index.wxml'] = [$gwx_XC_10, './pages/product/index.wxml'];else __wxAppCode__['pages/product/index.wxml'] = $gwx_XC_10( './pages/product/index.wxml' ); + ;__wxRoute = "pages/product/index";__wxRouteBegin = true;__wxAppCurrentFile__="pages/product/index.js";define("pages/product/index.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){ +"use strict";var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],page:1,more:0,type:0,keyword:""},onShow:function(){a.that=this,a.globalData=t.globalData,this.setData({datas:[],page:1,more:0}),this.getHome()},onLoad:function(){a.that=this,a.style()},more:function(t){this.getHome()},formBindsubmit:function(t){this.setData({keyword:t.detail.value.keyword,page:1,datas:[]}),this.getHome()},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/product",{page:a.that.data.page,keyword:a.that.data.keyword},(function(t){var o=a.that.data.datas;for(var e in t.list)o.push(t.list[e]);console.log(t),wx.hideLoading(),a.that.setData({datas:o,page:a.that.data.page+1,more:t.more})}))},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/product/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); +},{isPage:true,isComponent:true,currentFile:'pages/product/index.js'});require("pages/product/index.js"); \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/product/index.common.js b/wx49a18253b90a02d2/pages/product/index.common.js new file mode 100644 index 0000000..e69de29 diff --git a/wx49a18253b90a02d2/pages/product/index.html b/wx49a18253b90a02d2/pages/product/index.html new file mode 100644 index 0000000..102d28b --- /dev/null +++ b/wx49a18253b90a02d2/pages/product/index.html @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/wx49a18253b90a02d2/pages/product/index.webview.js b/wx49a18253b90a02d2/pages/product/index.webview.js new file mode 100644 index 0000000..9d88e7f --- /dev/null +++ b/wx49a18253b90a02d2/pages/product/index.webview.js @@ -0,0 +1,413 @@ +$gwx_XC_10=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx_XC_10 || []; +function gz$gwx_XC_10_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_XC_10_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_10_1 +__WXML_GLOBAL__.ops_cached.$gwx_XC_10_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'search']) +Z([3,'formBindsubmit']) +Z([3,'keyword']) +Z([3,'输入搜索产品名称']) +Z([3,'submit']) +Z([3,'background:red;']) +Z([3,'搜索']) +Z([3,'page']) +Z([3,'/pages/product/detail']) +Z([3,'item bdbt']) +Z([3,'lt']) +Z([3,'/img/p1.png']) +Z([3,'rt']) +Z([3,'name']) +Z([3,'电商小程序']) +Z([3,'xinghao']) +Z([[2,'?:'],[[2,'=='],[[6],[[7],[3,'item']],[3,'version']],[1,'']],[1,true],[1,false]]) +Z([3,'标准:简单']) +Z([3,'price']) +Z([3,'价格:¥']) +Z([3,'money']) +Z([3,' 2000 ']) +Z([3,'元']) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[11]) +Z(z[12]) +Z(z[13]) +Z(z[14]) +Z(z[15]) +Z(z[16]) +Z(z[17]) +Z(z[18]) +Z(z[19]) +Z(z[20]) +Z(z[21]) +Z(z[22]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[11]) +Z(z[12]) +Z(z[13]) +Z(z[14]) +Z(z[15]) +Z(z[16]) +Z(z[17]) +Z(z[18]) +Z(z[19]) +Z(z[20]) +Z(z[21]) +Z(z[22]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[11]) +Z(z[12]) +Z(z[13]) +Z(z[14]) +Z(z[15]) +Z(z[16]) +Z(z[17]) +Z(z[18]) +Z(z[19]) +Z(z[20]) +Z(z[21]) +Z(z[22]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[11]) +Z(z[12]) +Z(z[13]) +Z(z[14]) +Z(z[15]) +Z(z[16]) +Z(z[17]) +Z(z[18]) +Z(z[19]) +Z(z[20]) +Z(z[21]) +Z(z[22]) +Z(z[7]) +Z(z[8]) +Z(z[9]) +Z(z[10]) +Z(z[11]) +Z(z[12]) +Z(z[13]) +Z(z[14]) +Z(z[15]) +Z(z[16]) +Z(z[17]) +Z(z[18]) +Z(z[19]) +Z(z[20]) +Z(z[21]) +Z(z[22]) +Z([3,'jszc']) +Z([3,'技术支持:某某科技公司']) +Z([3,'height:100rpx;']) +})(__WXML_GLOBAL__.ops_cached.$gwx_XC_10_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_10_1 +} +__WXML_GLOBAL__.ops_set.$gwx_XC_10=z; +__WXML_GLOBAL__.ops_init.$gwx_XC_10=true; +var x=['./pages/product/index.wxml'];d_[x[0]]={} +var m0=function(e,s,r,gg){ +var z=gz$gwx_XC_10_1() +var hKR=_n('view') +_rz(z,hKR,'class',0,e,s,gg) +var oLR=_n('form') +_rz(z,oLR,'bindsubmit',1,e,s,gg) +var cMR=_mz(z,'input',['name',2,'placeholder',1],[],e,s,gg) +_(oLR,cMR) +var oNR=_mz(z,'button',['formType',4,'style',1],[],e,s,gg) +var lOR=_oz(z,6,e,s,gg) +_(oNR,lOR) +_(oLR,oNR) +_(hKR,oLR) +_(r,hKR) +var aPR=_n('view') +_rz(z,aPR,'class',7,e,s,gg) +var tQR=_n('navigator') +_rz(z,tQR,'url',8,e,s,gg) +var eRR=_n('view') +_rz(z,eRR,'class',9,e,s,gg) +var bSR=_n('view') +_rz(z,bSR,'class',10,e,s,gg) +var oTR=_n('image') +_rz(z,oTR,'src',11,e,s,gg) +_(bSR,oTR) +_(eRR,bSR) +var xUR=_n('view') +_rz(z,xUR,'class',12,e,s,gg) +var oVR=_n('view') +_rz(z,oVR,'class',13,e,s,gg) +var fWR=_oz(z,14,e,s,gg) +_(oVR,fWR) +_(xUR,oVR) +var cXR=_mz(z,'view',['class',15,'hidden',1],[],e,s,gg) +var hYR=_oz(z,17,e,s,gg) +_(cXR,hYR) +_(xUR,cXR) +var oZR=_n('view') +_rz(z,oZR,'class',18,e,s,gg) +var c1R=_oz(z,19,e,s,gg) +_(oZR,c1R) +var o2R=_n('text') +_rz(z,o2R,'class',20,e,s,gg) +var l3R=_oz(z,21,e,s,gg) +_(o2R,l3R) +_(oZR,o2R) +var a4R=_oz(z,22,e,s,gg) +_(oZR,a4R) +_(xUR,oZR) +_(eRR,xUR) +_(tQR,eRR) +_(aPR,tQR) +_(r,aPR) +var t5R=_n('view') +_rz(z,t5R,'class',23,e,s,gg) +var e6R=_n('navigator') +_rz(z,e6R,'url',24,e,s,gg) +var b7R=_n('view') +_rz(z,b7R,'class',25,e,s,gg) +var o8R=_n('view') +_rz(z,o8R,'class',26,e,s,gg) +var x9R=_n('image') +_rz(z,x9R,'src',27,e,s,gg) +_(o8R,x9R) +_(b7R,o8R) +var o0R=_n('view') +_rz(z,o0R,'class',28,e,s,gg) +var fAS=_n('view') +_rz(z,fAS,'class',29,e,s,gg) +var cBS=_oz(z,30,e,s,gg) +_(fAS,cBS) +_(o0R,fAS) +var hCS=_mz(z,'view',['class',31,'hidden',1],[],e,s,gg) +var oDS=_oz(z,33,e,s,gg) +_(hCS,oDS) +_(o0R,hCS) +var cES=_n('view') +_rz(z,cES,'class',34,e,s,gg) +var oFS=_oz(z,35,e,s,gg) +_(cES,oFS) +var lGS=_n('text') +_rz(z,lGS,'class',36,e,s,gg) +var aHS=_oz(z,37,e,s,gg) +_(lGS,aHS) +_(cES,lGS) +var tIS=_oz(z,38,e,s,gg) +_(cES,tIS) +_(o0R,cES) +_(b7R,o0R) +_(e6R,b7R) +_(t5R,e6R) +_(r,t5R) +var eJS=_n('view') +_rz(z,eJS,'class',39,e,s,gg) +var bKS=_n('navigator') +_rz(z,bKS,'url',40,e,s,gg) +var oLS=_n('view') +_rz(z,oLS,'class',41,e,s,gg) +var xMS=_n('view') +_rz(z,xMS,'class',42,e,s,gg) +var oNS=_n('image') +_rz(z,oNS,'src',43,e,s,gg) +_(xMS,oNS) +_(oLS,xMS) +var fOS=_n('view') +_rz(z,fOS,'class',44,e,s,gg) +var cPS=_n('view') +_rz(z,cPS,'class',45,e,s,gg) +var hQS=_oz(z,46,e,s,gg) +_(cPS,hQS) +_(fOS,cPS) +var oRS=_mz(z,'view',['class',47,'hidden',1],[],e,s,gg) +var cSS=_oz(z,49,e,s,gg) +_(oRS,cSS) +_(fOS,oRS) +var oTS=_n('view') +_rz(z,oTS,'class',50,e,s,gg) +var lUS=_oz(z,51,e,s,gg) +_(oTS,lUS) +var aVS=_n('text') +_rz(z,aVS,'class',52,e,s,gg) +var tWS=_oz(z,53,e,s,gg) +_(aVS,tWS) +_(oTS,aVS) +var eXS=_oz(z,54,e,s,gg) +_(oTS,eXS) +_(fOS,oTS) +_(oLS,fOS) +_(bKS,oLS) +_(eJS,bKS) +_(r,eJS) +var bYS=_n('view') +_rz(z,bYS,'class',55,e,s,gg) +var oZS=_n('navigator') +_rz(z,oZS,'url',56,e,s,gg) +var x1S=_n('view') +_rz(z,x1S,'class',57,e,s,gg) +var o2S=_n('view') +_rz(z,o2S,'class',58,e,s,gg) +var f3S=_n('image') +_rz(z,f3S,'src',59,e,s,gg) +_(o2S,f3S) +_(x1S,o2S) +var c4S=_n('view') +_rz(z,c4S,'class',60,e,s,gg) +var h5S=_n('view') +_rz(z,h5S,'class',61,e,s,gg) +var o6S=_oz(z,62,e,s,gg) +_(h5S,o6S) +_(c4S,h5S) +var c7S=_mz(z,'view',['class',63,'hidden',1],[],e,s,gg) +var o8S=_oz(z,65,e,s,gg) +_(c7S,o8S) +_(c4S,c7S) +var l9S=_n('view') +_rz(z,l9S,'class',66,e,s,gg) +var a0S=_oz(z,67,e,s,gg) +_(l9S,a0S) +var tAT=_n('text') +_rz(z,tAT,'class',68,e,s,gg) +var eBT=_oz(z,69,e,s,gg) +_(tAT,eBT) +_(l9S,tAT) +var bCT=_oz(z,70,e,s,gg) +_(l9S,bCT) +_(c4S,l9S) +_(x1S,c4S) +_(oZS,x1S) +_(bYS,oZS) +_(r,bYS) +var oDT=_n('view') +_rz(z,oDT,'class',71,e,s,gg) +var xET=_n('navigator') +_rz(z,xET,'url',72,e,s,gg) +var oFT=_n('view') +_rz(z,oFT,'class',73,e,s,gg) +var fGT=_n('view') +_rz(z,fGT,'class',74,e,s,gg) +var cHT=_n('image') +_rz(z,cHT,'src',75,e,s,gg) +_(fGT,cHT) +_(oFT,fGT) +var hIT=_n('view') +_rz(z,hIT,'class',76,e,s,gg) +var oJT=_n('view') +_rz(z,oJT,'class',77,e,s,gg) +var cKT=_oz(z,78,e,s,gg) +_(oJT,cKT) +_(hIT,oJT) +var oLT=_mz(z,'view',['class',79,'hidden',1],[],e,s,gg) +var lMT=_oz(z,81,e,s,gg) +_(oLT,lMT) +_(hIT,oLT) +var aNT=_n('view') +_rz(z,aNT,'class',82,e,s,gg) +var tOT=_oz(z,83,e,s,gg) +_(aNT,tOT) +var ePT=_n('text') +_rz(z,ePT,'class',84,e,s,gg) +var bQT=_oz(z,85,e,s,gg) +_(ePT,bQT) +_(aNT,ePT) +var oRT=_oz(z,86,e,s,gg) +_(aNT,oRT) +_(hIT,aNT) +_(oFT,hIT) +_(xET,oFT) +_(oDT,xET) +_(r,oDT) +var xST=_n('view') +_rz(z,xST,'class',87,e,s,gg) +var oTT=_n('navigator') +_rz(z,oTT,'url',88,e,s,gg) +var fUT=_n('view') +_rz(z,fUT,'class',89,e,s,gg) +var cVT=_n('view') +_rz(z,cVT,'class',90,e,s,gg) +var hWT=_n('image') +_rz(z,hWT,'src',91,e,s,gg) +_(cVT,hWT) +_(fUT,cVT) +var oXT=_n('view') +_rz(z,oXT,'class',92,e,s,gg) +var cYT=_n('view') +_rz(z,cYT,'class',93,e,s,gg) +var oZT=_oz(z,94,e,s,gg) +_(cYT,oZT) +_(oXT,cYT) +var l1T=_mz(z,'view',['class',95,'hidden',1],[],e,s,gg) +var a2T=_oz(z,97,e,s,gg) +_(l1T,a2T) +_(oXT,l1T) +var t3T=_n('view') +_rz(z,t3T,'class',98,e,s,gg) +var e4T=_oz(z,99,e,s,gg) +_(t3T,e4T) +var b5T=_n('text') +_rz(z,b5T,'class',100,e,s,gg) +var o6T=_oz(z,101,e,s,gg) +_(b5T,o6T) +_(t3T,b5T) +var x7T=_oz(z,102,e,s,gg) +_(t3T,x7T) +_(oXT,t3T) +_(fUT,oXT) +_(oTT,fUT) +_(xST,oTT) +_(r,xST) +var o8T=_n('view') +_rz(z,o8T,'class',103,e,s,gg) +var f9T=_oz(z,104,e,s,gg) +_(o8T,f9T) +_(r,o8T) +var c0T=_n('view') +_rz(z,c0T,'style',105,e,s,gg) +_(r,c0T) +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx_XC_10";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_10(); if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/product/index.wxml'] = [$gwx_XC_10, './pages/product/index.wxml'];else __wxAppCode__['pages/product/index.wxml'] = $gwx_XC_10( './pages/product/index.wxml' ); + +var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){__wxAppCode__['pages/product/index.wxss'] = setCssToHead([".",[1],"item{height:",[0,200],";margin-left:2%;margin-top:",[0,20],";overflow:hidden;width:96%}\n.",[1],"item .",[1],"lt{float:left;width:",[0,200],"}\n.",[1],"item .",[1],"lt wx-image{height:",[0,160],";margin-left:",[0,10],";margin-top:",[0,20],";width:",[0,180],"}\n.",[1],"item .",[1],"rt{height:",[0,180],";margin-top:",[0,20],";width:",[0,680],"}\n.",[1],"item .",[1],"rt .",[1],"name{-webkit-box-orient:horizontal;-webkit-line-clamp:1;display:-webkit-box;font-size:",[0,26],";height:",[0,60],";line-height:",[0,60],";overflow:hidden;text-overflow:ellipsis;word-break:break-all}\n.",[1],"item .",[1],"rt .",[1],"price,.",[1],"item .",[1],"rt .",[1],"xinghao{height:",[0,40],";line-height:",[0,40],"}\n.",[1],"price .",[1],"money{color:red;font-size:",[0,26],";font-weight:700}\n.",[1],"search{background:#fff;border-radius:",[0,20],";height:",[0,60],";margin:",[0,30]," auto 0;overflow:hidden;width:80%}\n.",[1],"search wx-button{border:0;color:#fff;float:right;font-size:",[0,24],";height:",[0,62],";line-height:",[0,62],";width:30%}\n.",[1],"search wx-input{float:left;font-size:",[0,24],";height:",[0,60],";line-height:",[0,60],";margin-left:5%;width:60%}\n",],"Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./pages/product/index.wxss:1:777)",{path:"./pages/product/index.wxss"}); +} \ No newline at end of file diff --git a/wx49a18253b90a02d2/webview.app.js b/wx49a18253b90a02d2/webview.app.js new file mode 100644 index 0000000..62046c7 --- /dev/null +++ b/wx49a18253b90a02d2/webview.app.js @@ -0,0 +1,3248 @@ +var __globalThis=(typeof __vd_version_info__!=='undefined'&&typeof __vd_version_info__.globalThis!=='undefined')?__vd_version_info__.globalThis:window;var __mainPageFrameReady__=__globalThis.__mainPageFrameReady__||function(){};var __pageFrameStartTime__=Date.now();var __webviewId__;var __wxAppCode__=__wxAppCode__||{};var __WXML_GLOBAL__=__WXML_GLOBAL__||{entrys:{},defines:{},modules:{},ops:[],wxs_nf_init:undefined,total_ops:0};var __GWX_GLOBAL__=__GWX_GLOBAL__||{};;/*v0.5vv_20211229_syb_scopedata*/__globalThis.__wcc_version__='v0.5vv_20211229_syb_scopedata';__globalThis.__wcc_version_info__={"customComponents":true,"fixZeroRpx":true,"propValueDeepCopy":false}; +var $gwxc +var $gaic={} +var outerGlobal=typeof __globalThis==='undefined'?window:__globalThis;$gwx=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){ +if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={}; +}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {}; +var e_={} +if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys; +var d_={} +if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines; +var f_={} +if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {}; +var p_={} +__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {} +__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {}; +__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {}; +var z=__WXML_GLOBAL__.ops_set.$gwx || []; +function gz$gwx_1(){ +if( __WXML_GLOBAL__.ops_cached.$gwx_1)return __WXML_GLOBAL__.ops_cached.$gwx_1 +__WXML_GLOBAL__.ops_cached.$gwx_1=[]; +(function(z){var a=11;function Z(ops){z.push(ops)} +Z([3,'wxParse11']) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'node']],[1,'element']]) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'tag']],[1,'button']]) +Z([3,'mini']) +Z([3,'default']) +Z([[6],[[7],[3,'item']],[3,'nodes']]) +Z([3,'this']) +Z([[8],'item',[[7],[3,'item']]]) +Z([3,'wxParse12']) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'tag']],[1,'li']]) +Z([a,[[6],[[7],[3,'item']],[3,'classStr']],[3,' wxParse-li']]) +Z([[6],[[7],[3,'item']],[3,'styleStr']]) +Z([a,z[10][1],[3,' wxParse-li-inner']]) +Z([a,z[10][1],[3,' wxParse-li-text']]) +Z([a,z[10][1],[3,' wxParse-li-circle']]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'tag']],[1,'video']]) +Z(z[7]) +Z([3,'wxParseVideo']) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'tag']],[1,'img']]) +Z(z[7]) +Z([3,'wxParseImg']) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'tag']],[1,'a']]) +Z([3,'wxParseTagATap']) +Z([a,[3,'wxParse-inline '],z[10][1],[3,' wxParse-'],[[6],[[7],[3,'item']],[3,'tag']]]) +Z([[6],[[6],[[7],[3,'item']],[3,'attr']],[3,'href']]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'tagType']],[1,'block']]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],[[6],[[7],[3,'item']],[3,'tagType']]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[8]) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'node']],[1,'text']]) +Z(z[7]) +Z([3,'WxEmojiView']) +Z([3,'wxParse10']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[0]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[0]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[0]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[0]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[0]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse9']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[51]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[51]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[51]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[51]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[51]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse8']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[102]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[102]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[102]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[102]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[102]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse7']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[153]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[153]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[153]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[153]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[153]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse6']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[204]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[204]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[204]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[204]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[204]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse5']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[255]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[255]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[255]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[255]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[255]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse4']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[306]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[306]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[306]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[306]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[306]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse3']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[357]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[357]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[357]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[357]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[357]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse2']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[408]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[408]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[408]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[408]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[408]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse1']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[459]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[459]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[459]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[459]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[459]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse0']) +Z(z[1]) +Z(z[2]) +Z(z[3]) +Z(z[4]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[510]) +Z(z[9]) +Z([a,z[10][1],z[10][2]]) +Z(z[11]) +Z([a,z[10][1],z[12][2]]) +Z([a,z[10][1],z[13][2]]) +Z([a,z[10][1],z[14][2]]) +Z([a,z[10][1],z[13][2]]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[510]) +Z(z[20]) +Z(z[7]) +Z(z[22]) +Z(z[23]) +Z(z[7]) +Z(z[25]) +Z(z[26]) +Z(z[27]) +Z([a,z[28][1],z[10][1],z[28][3],z[28][4]]) +Z(z[29]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[510]) +Z([[2,'=='],[[6],[[7],[3,'item']],[3,'tag']],[1,'table']]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[510]) +Z(z[35]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[510]) +Z([a,z[10][1],z[28][3],z[28][4],z[28][3],z[42][5]]) +Z(z[11]) +Z(z[5]) +Z(z[6]) +Z(z[7]) +Z(z[510]) +Z(z[48]) +Z(z[7]) +Z(z[50]) +Z([3,'wxParse']) +Z([[7],[3,'wxParseData']]) +Z(z[6]) +Z(z[7]) +Z(z[561]) +Z(z[50]) +Z([3,'WxEmojiView wxParse-inline']) +Z(z[11]) +Z([[6],[[7],[3,'item']],[3,'textArray']]) +Z(z[6]) +Z(z[48]) +Z([a,[[6],[[7],[3,'item']],[3,'text']]]) +Z(z[1]) +Z([3,'wxEmoji']) +Z([a,[[6],[[7],[3,'item']],[3,'baseSrc']],[[6],[[7],[3,'item']],[3,'text']]]) +Z(z[25]) +Z([3,'wxParseImgLoad']) +Z([3,'wxParseImgTap']) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z([[6],[[7],[3,'item']],[3,'from']]) +Z([[6],[[7],[3,'item']],[3,'imgIndex']]) +Z([[6],[[6],[[7],[3,'item']],[3,'attr']],[3,'src']]) +Z([3,'widthFix']) +Z(z[640]) +Z([a,[3,'width:'],[[6],[[7],[3,'item']],[3,'width']],[3,'px;']]) +Z(z[22]) +Z([a,z[10][1],z[28][3],z[28][4]]) +Z(z[11]) +Z([a,z[10][1],z[28][3],z[28][4],[3,'-video']]) +Z(z[640]) +})(__WXML_GLOBAL__.ops_cached.$gwx_1);return __WXML_GLOBAL__.ops_cached.$gwx_1 +} +__WXML_GLOBAL__.ops_set.$gwx=z; +__WXML_GLOBAL__.ops_init.$gwx=true; +var nv_require=function(){var nnm={};var nom={};return function(n){if(n[0]==='p'&&n[1]==='_'&&f_[n.slice(2)])return f_[n.slice(2)];return function(){if(!nnm[n]) return undefined;try{if(!nom[n])nom[n]=nnm[n]();return nom[n];}catch(e){e.message=e.message.replace(/nv_/g,'');var tmp = e.stack.substring(0,e.stack.lastIndexOf(n));e.stack = tmp.substring(0,tmp.lastIndexOf('\n'));e.stack = e.stack.replace(/\snv_/g,' ');e.stack = $gstack(e.stack);e.stack += '\n at ' + n.substring(2);console.error(e);} +}}}() +var x=['./wxParse/wxParse.wxml'];d_[x[0]]={} +d_[x[0]]["wxParse11"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse11' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,1,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,2,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',3,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,8,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,7,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],1,149) +return cI +} +fE.wxXCkey=2 +_2z(z,5,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,9,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',10,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',12,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',13,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',14,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',15,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,19,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,18,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],1,568) +return oX +} +cT.wxXCkey=2 +_2z(z,16,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,20,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,22,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,21,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],1,688) +} +else if(_oz(z,23,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,25,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,24,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],1,781) +} +else if(_oz(z,26,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',27,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,34,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,33,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],1,1048) +return bGB +} +lCB.wxXCkey=2 +_2z(z,31,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,35,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',36,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,41,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,40,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],1,1268) +return aRB +} +oNB.wxXCkey=2 +_2z(z,38,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',42,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,47,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,46,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],1,1485) +return c3B +} +fYB.wxXCkey=2 +_2z(z,44,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,48,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,50,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,49,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],1,1598) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse10"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse10' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,52,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,53,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',54,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,59,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,58,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],3,150) +return cI +} +fE.wxXCkey=2 +_2z(z,56,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,60,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',61,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',63,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',64,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',65,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',66,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,70,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,69,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],3,569) +return oX +} +cT.wxXCkey=2 +_2z(z,67,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,71,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,73,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,72,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],3,689) +} +else if(_oz(z,74,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,76,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,75,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],3,782) +} +else if(_oz(z,77,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',78,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,85,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,84,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],3,1049) +return bGB +} +lCB.wxXCkey=2 +_2z(z,82,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,86,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',87,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,92,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,91,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],3,1269) +return aRB +} +oNB.wxXCkey=2 +_2z(z,89,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',93,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,98,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,97,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],3,1486) +return c3B +} +fYB.wxXCkey=2 +_2z(z,95,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,99,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,101,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,100,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],3,1599) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse9"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse9' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,103,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,104,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',105,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,110,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,109,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],5,149) +return cI +} +fE.wxXCkey=2 +_2z(z,107,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,111,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',112,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',114,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',115,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',116,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',117,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,121,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,120,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],5,568) +return oX +} +cT.wxXCkey=2 +_2z(z,118,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,122,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,124,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,123,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],5,688) +} +else if(_oz(z,125,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,127,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,126,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],5,781) +} +else if(_oz(z,128,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',129,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,136,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,135,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],5,1048) +return bGB +} +lCB.wxXCkey=2 +_2z(z,133,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,137,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',138,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,143,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,142,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],5,1268) +return aRB +} +oNB.wxXCkey=2 +_2z(z,140,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',144,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,149,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,148,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],5,1485) +return c3B +} +fYB.wxXCkey=2 +_2z(z,146,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,150,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,152,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,151,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],5,1598) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse8"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse8' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,154,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,155,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',156,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,161,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,160,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],7,149) +return cI +} +fE.wxXCkey=2 +_2z(z,158,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,162,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',163,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',165,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',166,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',167,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',168,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,172,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,171,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],7,567) +return oX +} +cT.wxXCkey=2 +_2z(z,169,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,173,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,175,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,174,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],7,686) +} +else if(_oz(z,176,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,178,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,177,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],7,779) +} +else if(_oz(z,179,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',180,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,187,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,186,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],7,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,184,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,188,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',189,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,194,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,193,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],7,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,191,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',195,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,200,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,199,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],7,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,197,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,201,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,203,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,202,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],7,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse7"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse7' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,205,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,206,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',207,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,212,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,211,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],9,149) +return cI +} +fE.wxXCkey=2 +_2z(z,209,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,213,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',214,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',216,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',217,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',218,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',219,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,223,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,222,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],9,567) +return oX +} +cT.wxXCkey=2 +_2z(z,220,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,224,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,226,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,225,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],9,686) +} +else if(_oz(z,227,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,229,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,228,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],9,779) +} +else if(_oz(z,230,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',231,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,238,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,237,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],9,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,235,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,239,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',240,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,245,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,244,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],9,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,242,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',246,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,251,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,250,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],9,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,248,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,252,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,254,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,253,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],9,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse6"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse6' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,256,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,257,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',258,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,263,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,262,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],11,149) +return cI +} +fE.wxXCkey=2 +_2z(z,260,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,264,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',265,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',267,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',268,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',269,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',270,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,274,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,273,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],11,567) +return oX +} +cT.wxXCkey=2 +_2z(z,271,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,275,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,277,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,276,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],11,686) +} +else if(_oz(z,278,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,280,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,279,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],11,779) +} +else if(_oz(z,281,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',282,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,289,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,288,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],11,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,286,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,290,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',291,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,296,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,295,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],11,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,293,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',297,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,302,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,301,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],11,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,299,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,303,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,305,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,304,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],11,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse5"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse5' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,307,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,308,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',309,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,314,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,313,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],13,149) +return cI +} +fE.wxXCkey=2 +_2z(z,311,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,315,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',316,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',318,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',319,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',320,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',321,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,325,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,324,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],13,567) +return oX +} +cT.wxXCkey=2 +_2z(z,322,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,326,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,328,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,327,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],13,686) +} +else if(_oz(z,329,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,331,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,330,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],13,779) +} +else if(_oz(z,332,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',333,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,340,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,339,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],13,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,337,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,341,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',342,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,347,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,346,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],13,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,344,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',348,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,353,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,352,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],13,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,350,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,354,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,356,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,355,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],13,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse4"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse4' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,358,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,359,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',360,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,365,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,364,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],15,149) +return cI +} +fE.wxXCkey=2 +_2z(z,362,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,366,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',367,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',369,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',370,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',371,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',372,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,376,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,375,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],15,567) +return oX +} +cT.wxXCkey=2 +_2z(z,373,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,377,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,379,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,378,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],15,686) +} +else if(_oz(z,380,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,382,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,381,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],15,779) +} +else if(_oz(z,383,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',384,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,391,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,390,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],15,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,388,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,392,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',393,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,398,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,397,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],15,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,395,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',399,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,404,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,403,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],15,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,401,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,405,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,407,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,406,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],15,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse3"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse3' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,409,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,410,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',411,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,416,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,415,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],17,149) +return cI +} +fE.wxXCkey=2 +_2z(z,413,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,417,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',418,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',420,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',421,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',422,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',423,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,427,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,426,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],17,567) +return oX +} +cT.wxXCkey=2 +_2z(z,424,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,428,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,430,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,429,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],17,686) +} +else if(_oz(z,431,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,433,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,432,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],17,779) +} +else if(_oz(z,434,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',435,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,442,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,441,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],17,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,439,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,443,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',444,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,449,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,448,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],17,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,446,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',450,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,455,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,454,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],17,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,452,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,456,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,458,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,457,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],17,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse2"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse2' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,460,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,461,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',462,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,467,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,466,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],19,149) +return cI +} +fE.wxXCkey=2 +_2z(z,464,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,468,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',469,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',471,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',472,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',473,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',474,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,478,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,477,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],19,567) +return oX +} +cT.wxXCkey=2 +_2z(z,475,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,479,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,481,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,480,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],19,686) +} +else if(_oz(z,482,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,484,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,483,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],19,779) +} +else if(_oz(z,485,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',486,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,493,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,492,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],19,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,490,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,494,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',495,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,500,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,499,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],19,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,497,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',501,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,506,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,505,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],19,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,503,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,507,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,509,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,508,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],19,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse1"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse1' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,511,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,512,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',513,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,518,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,517,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],21,149) +return cI +} +fE.wxXCkey=2 +_2z(z,515,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,519,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',520,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',522,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',523,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',524,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',525,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,529,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,528,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],21,567) +return oX +} +cT.wxXCkey=2 +_2z(z,526,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,530,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,532,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,531,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],21,686) +} +else if(_oz(z,533,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,535,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,534,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],21,779) +} +else if(_oz(z,536,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',537,'class',1,'data-src',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,544,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,543,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],21,1046) +return bGB +} +lCB.wxXCkey=2 +_2z(z,541,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,545,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',546,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,551,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,550,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],21,1265) +return aRB +} +oNB.wxXCkey=2 +_2z(z,548,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else{xC.wxVkey=7 +var oXB=_mz(z,'view',['class',552,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,557,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,556,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],21,1481) +return c3B +} +fYB.wxXCkey=2 +_2z(z,554,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +xC.wxXCkey=1 +} +else if(_oz(z,558,e,s,gg)){oB.wxVkey=2 +var b9B=_v() +_(oB,b9B) +var o0B=_oz(z,560,e,s,gg) +var xAC=_gd(x[0],o0B,e_,d_) +if(xAC){ +var oBC=_1z(z,559,e,s,gg) || {} +var cur_globalf=gg.f +b9B.wxXCkey=3 +xAC(oBC,oBC,b9B,gg) +gg.f=cur_globalf +} +else _w(o0B,x[0],21,1593) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse0"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse0' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +if(_oz(z,562,e,s,gg)){oB.wxVkey=1 +var xC=_v() +_(oB,xC) +if(_oz(z,563,e,s,gg)){xC.wxVkey=1 +var oD=_mz(z,'button',['size',564,'type',1],[],e,s,gg) +var fE=_v() +_(oD,fE) +var cF=function(oH,hG,cI,gg){ +var lK=_v() +_(cI,lK) +var aL=_oz(z,569,oH,hG,gg) +var tM=_gd(x[0],aL,e_,d_) +if(tM){ +var eN=_1z(z,568,oH,hG,gg) || {} +var cur_globalf=gg.f +lK.wxXCkey=3 +tM(eN,eN,lK,gg) +gg.f=cur_globalf +} +else _w(aL,x[0],23,149) +return cI +} +fE.wxXCkey=2 +_2z(z,566,cF,e,s,gg,fE,'item','index','this') +_(xC,oD) +} +else if(_oz(z,570,e,s,gg)){xC.wxVkey=2 +var bO=_mz(z,'view',['class',571,'style',1],[],e,s,gg) +var oP=_n('view') +_rz(z,oP,'class',573,e,s,gg) +var xQ=_n('view') +_rz(z,xQ,'class',574,e,s,gg) +var oR=_n('view') +_rz(z,oR,'class',575,e,s,gg) +_(xQ,oR) +_(oP,xQ) +var fS=_n('view') +_rz(z,fS,'class',576,e,s,gg) +var cT=_v() +_(fS,cT) +var hU=function(cW,oV,oX,gg){ +var aZ=_v() +_(oX,aZ) +var t1=_oz(z,580,cW,oV,gg) +var e2=_gd(x[0],t1,e_,d_) +if(e2){ +var b3=_1z(z,579,cW,oV,gg) || {} +var cur_globalf=gg.f +aZ.wxXCkey=3 +e2(b3,b3,aZ,gg) +gg.f=cur_globalf +} +else _w(t1,x[0],23,567) +return oX +} +cT.wxXCkey=2 +_2z(z,577,hU,e,s,gg,cT,'item','index','this') +_(oP,fS) +_(bO,oP) +_(xC,bO) +} +else if(_oz(z,581,e,s,gg)){xC.wxVkey=3 +var o4=_v() +_(xC,o4) +var x5=_oz(z,583,e,s,gg) +var o6=_gd(x[0],x5,e_,d_) +if(o6){ +var f7=_1z(z,582,e,s,gg) || {} +var cur_globalf=gg.f +o4.wxXCkey=3 +o6(f7,f7,o4,gg) +gg.f=cur_globalf +} +else _w(x5,x[0],23,686) +} +else if(_oz(z,584,e,s,gg)){xC.wxVkey=4 +var c8=_v() +_(xC,c8) +var h9=_oz(z,586,e,s,gg) +var o0=_gd(x[0],h9,e_,d_) +if(o0){ +var cAB=_1z(z,585,e,s,gg) || {} +var cur_globalf=gg.f +c8.wxXCkey=3 +o0(cAB,cAB,c8,gg) +gg.f=cur_globalf +} +else _w(h9,x[0],23,779) +} +else if(_oz(z,587,e,s,gg)){xC.wxVkey=5 +var oBB=_mz(z,'view',['bindtap',588,'class',1,'data-c',2,'style',3],[],e,s,gg) +var lCB=_v() +_(oBB,lCB) +var aDB=function(eFB,tEB,bGB,gg){ +var xIB=_v() +_(bGB,xIB) +var oJB=_oz(z,595,eFB,tEB,gg) +var fKB=_gd(x[0],oJB,e_,d_) +if(fKB){ +var cLB=_1z(z,594,eFB,tEB,gg) || {} +var cur_globalf=gg.f +xIB.wxXCkey=3 +fKB(cLB,cLB,xIB,gg) +gg.f=cur_globalf +} +else _w(oJB,x[0],23,1044) +return bGB +} +lCB.wxXCkey=2 +_2z(z,592,aDB,e,s,gg,lCB,'item','index','this') +_(xC,oBB) +} +else if(_oz(z,596,e,s,gg)){xC.wxVkey=6 +var hMB=_mz(z,'view',['class',597,'style',1],[],e,s,gg) +var oNB=_v() +_(hMB,oNB) +var cOB=function(lQB,oPB,aRB,gg){ +var eTB=_v() +_(aRB,eTB) +var bUB=_oz(z,602,lQB,oPB,gg) +var oVB=_gd(x[0],bUB,e_,d_) +if(oVB){ +var xWB=_1z(z,601,lQB,oPB,gg) || {} +var cur_globalf=gg.f +eTB.wxXCkey=3 +oVB(xWB,xWB,eTB,gg) +gg.f=cur_globalf +} +else _w(bUB,x[0],23,1259) +return aRB +} +oNB.wxXCkey=2 +_2z(z,599,cOB,e,s,gg,oNB,'item','index','this') +_(xC,hMB) +} +else if(_oz(z,603,e,s,gg)){xC.wxVkey=7 +var oXB=_mz(z,'view',['class',604,'style',1],[],e,s,gg) +var fYB=_v() +_(oXB,fYB) +var cZB=function(o2B,h1B,c3B,gg){ +var l5B=_v() +_(c3B,l5B) +var a6B=_oz(z,609,o2B,h1B,gg) +var t7B=_gd(x[0],a6B,e_,d_) +if(t7B){ +var e8B=_1z(z,608,o2B,h1B,gg) || {} +var cur_globalf=gg.f +l5B.wxXCkey=3 +t7B(e8B,e8B,l5B,gg) +gg.f=cur_globalf +} +else _w(a6B,x[0],23,1478) +return c3B +} +fYB.wxXCkey=2 +_2z(z,606,cZB,e,s,gg,fYB,'item','index','this') +_(xC,oXB) +} +else{xC.wxVkey=8 +var b9B=_mz(z,'view',['class',610,'style',1],[],e,s,gg) +var o0B=_v() +_(b9B,o0B) +var xAC=function(fCC,oBC,cDC,gg){ +var oFC=_v() +_(cDC,oFC) +var cGC=_oz(z,615,fCC,oBC,gg) +var oHC=_gd(x[0],cGC,e_,d_) +if(oHC){ +var lIC=_1z(z,614,fCC,oBC,gg) || {} +var cur_globalf=gg.f +oFC.wxXCkey=3 +oHC(lIC,lIC,oFC,gg) +gg.f=cur_globalf +} +else _w(cGC,x[0],23,1694) +return cDC +} +o0B.wxXCkey=2 +_2z(z,612,xAC,e,s,gg,o0B,'item','index','this') +_(xC,b9B) +} +xC.wxXCkey=1 +} +else if(_oz(z,616,e,s,gg)){oB.wxVkey=2 +var aJC=_v() +_(oB,aJC) +var tKC=_oz(z,618,e,s,gg) +var eLC=_gd(x[0],tKC,e_,d_) +if(eLC){ +var bMC=_1z(z,617,e,s,gg) || {} +var cur_globalf=gg.f +aJC.wxXCkey=3 +eLC(bMC,bMC,aJC,gg) +gg.f=cur_globalf +} +else _w(tKC,x[0],23,1806) +} +oB.wxXCkey=1 +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParse"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParse' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_v() +_(r,oB) +var xC=function(fE,oD,cF,gg){ +var oH=_v() +_(cF,oH) +var cI=_oz(z,623,fE,oD,gg) +var oJ=_gd(x[0],cI,e_,d_) +if(oJ){ +var lK=_1z(z,622,fE,oD,gg) || {} +var cur_globalf=gg.f +oH.wxXCkey=3 +oJ(lK,lK,oH,gg) +gg.f=cur_globalf +} +else _w(cI,x[0],25,40) +return cF +} +oB.wxXCkey=2 +_2z(z,620,xC,e,s,gg,oB,'item','index','this') +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["WxEmojiView"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':WxEmojiView' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_mz(z,'view',['class',625,'style',1],[],e,s,gg) +var xC=_v() +_(oB,xC) +var oD=function(cF,fE,hG,gg){ +var cI=_v() +_(hG,cI) +if(_oz(z,629,cF,fE,gg)){cI.wxVkey=1 +var oJ=_oz(z,630,cF,fE,gg) +_(cI,oJ) +} +else if(_oz(z,631,cF,fE,gg)){cI.wxVkey=2 +var lK=_mz(z,'image',['class',632,'src',1],[],cF,fE,gg) +_(cI,lK) +} +cI.wxXCkey=1 +return hG +} +xC.wxXCkey=2 +_2z(z,627,oD,e,s,gg,xC,'item','index','this') +_(r,oB) +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParseImg"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParseImg' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_mz(z,'image',['bindload',635,'bindtap',1,'class',2,'data-from',3,'data-idx',4,'data-src',5,'mode',6,'src',7,'style',8],[],e,s,gg) +_(r,oB) +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +d_[x[0]]["wxParseVideo"]=function(e,s,r,gg){ +var z=gz$gwx_1() +var b=x[0]+':wxParseVideo' +r.wxVkey=b +gg.f=$gdc(f_["./wxParse/wxParse.wxml"],"",1) +if(p_[b]){_wl(b,x[0]);return} +p_[b]=true +try{ +var oB=_mz(z,'view',['class',645,'style',1],[],e,s,gg) +var xC=_mz(z,'video',['class',647,'src',1],[],e,s,gg) +_(oB,xC) +_(r,oB) +}catch(err){ +p_[b]=false +throw err +} +p_[b]=false +return r +} +var m0=function(e,s,r,gg){ +var z=gz$gwx_1() +return r +} +e_[x[0]]={f:m0,j:[],i:[],ti:[],ic:[]} +if(path&&e_[path]){ +outerGlobal.__wxml_comp_version__=0.02 +return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] +;g="$gwx";var main=e_[path].f +if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1); +if(typeof(outerGlobal.__webview_engine_version__)!='undefined'&&outerGlobal.__webview_engine_version__+1e-6>=0.02+1e-6&&outerGlobal.__mergeData__) +{ +env=outerGlobal.__mergeData__(env,dd); +} +try{ +main(env,{},root,global); +_tsd(root) +if(typeof(outerGlobal.__webview_engine_version__)=='undefined'|| outerGlobal.__webview_engine_version__+1e-6<0.01+1e-6){return _ev(root);} +}catch(err){ +console.log(err) +} +;g=""; +return root; +} +} +} +}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||true)$gwx(); if (__vd_version_info__.delayedGwx) __wxAppCode__['wxParse/wxParse.wxml'] = [$gwx, './wxParse/wxParse.wxml'];else __wxAppCode__['wxParse/wxParse.wxml'] = $gwx( './wxParse/wxParse.wxml' ); + ;var noCss=typeof __vd_version_info__!=='undefined'&&__vd_version_info__.noCss===true;if(!noCss){var BASE_DEVICE_WIDTH = 750; +var isIOS=navigator.userAgent.match("iPhone"); +var deviceWidth = window.screen.width || 375; +var deviceDPR = window.devicePixelRatio || 2; +var checkDeviceWidth = window.__checkDeviceWidth__ || function() { +var newDeviceWidth = window.screen.width || 375 +var newDeviceDPR = window.devicePixelRatio || 2 +var newDeviceHeight = window.screen.height || 375 +if (window.screen.orientation && /^landscape/.test(window.screen.orientation.type || '')) newDeviceWidth = newDeviceHeight +if (newDeviceWidth !== deviceWidth || newDeviceDPR !== deviceDPR) { +deviceWidth = newDeviceWidth +deviceDPR = newDeviceDPR +} +} +checkDeviceWidth() +var eps = 1e-4; +var transformRPX = window.__transformRpx__ || function(number, newDeviceWidth) { +if ( number === 0 ) return 0; +number = number / BASE_DEVICE_WIDTH * ( newDeviceWidth || deviceWidth ); +number = Math.floor(number + eps); +if (number === 0) { +if (deviceDPR === 1 || !isIOS) { +return 1; +} else { +return 0.5; +} +} +return number; +} +window.__rpxRecalculatingFuncs__ = window.__rpxRecalculatingFuncs__ || []; +var __COMMON_STYLESHEETS__ = __COMMON_STYLESHEETS__||{} + +var setCssToHead = function(file, _xcInvalid, info) { +var Ca = {}; +var css_id; +var info = info || {}; +var _C = __COMMON_STYLESHEETS__ +function makeup(file, opt) { +var _n = typeof(file) === "string"; +if ( _n && Ca.hasOwnProperty(file)) return ""; +if ( _n ) Ca[file] = 1; +var ex = _n ? _C[file] : file; +var res=""; +for (var i = ex.length - 1; i >= 0; i--) { +var content = ex[i]; +if (typeof(content) === "object") +{ +var op = content[0]; +if ( op == 0 ) +res = transformRPX(content[1], opt.deviceWidth) + "px" + res; +else if ( op == 1) +res = opt.suffix + res; +else if ( op == 2 ) +res = makeup(content[1], opt) + res; +} +else +res = content + res +} +return res; +} +var styleSheetManager = window.__styleSheetManager2__ +var rewritor = function(suffix, opt, style){ +opt = opt || {}; +suffix = suffix || ""; +opt.suffix = suffix; +if ( opt.allowIllegalSelector != undefined && _xcInvalid != undefined ) +{ +if ( opt.allowIllegalSelector ) +console.warn( "For developer:" + _xcInvalid ); +else +{ +console.error( _xcInvalid ); +} +} +Ca={}; +css = makeup(file, opt); +if (styleSheetManager) { +var key = (info.path || Math.random()) + ':' + suffix +if (!style) { +styleSheetManager.addItem(key, info.path); +window.__rpxRecalculatingFuncs__.push(function(size){ +opt.deviceWidth = size.width; +rewritor(suffix, opt, true); +}); +} +styleSheetManager.setCss(key, css); +return; +} +if ( !style ) +{ +var head = document.head || document.getElementsByTagName('head')[0]; +style = document.createElement('style'); +style.type = 'text/css'; +style.setAttribute( "wxss:path", info.path ); +head.appendChild(style); +window.__rpxRecalculatingFuncs__.push(function(size){ +opt.deviceWidth = size.width; +rewritor(suffix, opt, style); +}); +} +if (style.styleSheet) { +style.styleSheet.cssText = css; +} else { +if ( style.childNodes.length == 0 ) +style.appendChild(document.createTextNode(css)); +else +style.childNodes[0].nodeValue = css; +} +} +return rewritor; +} +setCssToHead([])();setCssToHead(["body{background:#f2f2f2;font-size:",[0,24],"}\n.",[1],"menu_bg_01{background:#f57d5b}\n.",[1],"menu_bg_02{background:#4ac6ea}\n.",[1],"menu_bg_03{background:#b2de27}\n.",[1],"menu_bg_04{background:#f97ba0}\n.",[1],"menu_bg_05{background:#6495ed}\n.",[1],"more,.",[1],"nomore{background:#fff;border-top:",[0,1]," solid #f2f2f2;font-size:",[0,26],";height:",[0,60],";line-height:",[0,60],";margin:",[0,10]," auto 0;text-align:center;width:96%}\n.",[1],"nomore{color:#ccc}\n.",[1],"jszc{color:#ccc;line-height:",[0,80],";overflow:hidden;text-align:center}\n.",[1],"footer,.",[1],"jszc{height:",[0,80],";width:100%}\n.",[1],"footer{background:#fff;border-top:",[0,1]," solid #e2e2e2;bottom:0;left:0;position:fixed;z-index:10000}\n.",[1],"footer .",[1],"lt,.",[1],"footer .",[1],"rt{float:left;font-size:",[0,26],";height:",[0,80],";line-height:",[0,80],";text-align:center;width:50%}\n.",[1],"footer .",[1],"rt{color:#fff}\n.",[1],"footer wx-image{float:left;height:",[0,40],";margin-left:",[0,100],";margin-top:",[0,20],";width:",[0,40],"}\n.",[1],"footer wx-text{float:left;margin-left:",[0,10],"}\n.",[1],"menu{background:#fff;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;margin:",[0,20],";padding:",[0,20],"}\n.",[1],"menu .",[1],"item{-webkit-flex:1;flex:1;padding:10px;text-align:center}\n.",[1],"menu .",[1],"item wx-image{display:block;float:left;height:",[0,40],";margin-left:",[0,20],";margin-top:",[0,20],";width:",[0,40],"}\n.",[1],"menu .",[1],"item .",[1],"icon{border-radius:",[0,40],";height:",[0,80],";margin:0 auto;width:",[0,80],"}\n.",[1],"menu .",[1],"item wx-text{display:block;font-size:",[0,26],";height:",[0,40],";line-height:",[0,40],";margin-top:",[0,10],"}\n.",[1],"block{background:#fff;height:auto;margin-left:2%;margin-top:",[0,20],";overflow:hidden;padding-bottom:",[0,20],";padding-top:",[0,10],";width:96%}\n.",[1],"block .",[1],"title{border-bottom:",[0,1]," solid #f2f2f2;font-size:",[0,28],";height:",[0,70],";line-height:",[0,70],";margin-left:3%;text-align:center;width:96%}\n.",[1],"slide-image{height:",[0,360],";width:100%}\n.",[1],"about{font-size:",[0,24],";line-height:",[0,36],";margin-left:2%;margin-top:",[0,20],";width:96%}\n.",[1],"block .",[1],"title .",[1],"more1{color:#8a8a8a;float:right;font-size:",[0,22],";margin-right:",[0,10],"}\n.",[1],"case{font-size:",[0,24],";margin-left:2%;margin-top:",[0,20],";width:96%}\n.",[1],"bdbt{border-bottom:",[0,1]," solid #f2f2f2}\n.",[1],"case .",[1],"item{height:",[0,200],";margin-top:",[0,20],";width:100%}\n.",[1],"case .",[1],"item .",[1],"lt{float:left;width:",[0,200],"}\n.",[1],"case .",[1],"item .",[1],"lt wx-image{height:",[0,160],";padding:",[0,20]," 0;width:",[0,200],"}\n.",[1],"case .",[1],"item .",[1],"rt{float:left;margin-left:",[0,10],";width:",[0,480],"}\n.",[1],"case .",[1],"item .",[1],"rt .",[1],"tit{font-size:",[0,26],";height:",[0,60],";line-height:",[0,60],";padding:",[0,15]," 0}\n.",[1],"case .",[1],"item .",[1],"rt .",[1],"info{-webkit-box-orient:vertical;-webkit-line-clamp:3;color:#666;display:-webkit-box;height:auto;line-height:",[0,30],";overflow:hidden;text-overflow:ellipsis;width:100%;word-break:break-all}\n.",[1],"news{margin-left:2%;width:96%}\n.",[1],"news .",[1],"item{height:",[0,60],";line-height:",[0,60],";margin-top:",[0,10],"}\n.",[1],"news .",[1],"item .",[1],"tit{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;float:left;font-size:",[0,24],";overflow:hidden;text-overflow:ellipsis;word-break:break-all}\n.",[1],"page{margin-left:2%;width:96%}\n.",[1],"page,.",[1],"table_form{background:#fff;height:auto;margin-top:",[0,20],"}\n.",[1],"table_form{overflow:hidden;padding-bottom:",[0,10],";padding-top:",[0,10],"}\n.",[1],"table_form .",[1],"input{font-size:",[0,26],";height:",[0,80],";line-height:",[0,80],"}\n.",[1],"table_form .",[1],"input wx-text{float:left;margin-left:2%;width:20%}\n.",[1],"table_form .",[1],"input wx-input{float:left;font-size:",[0,24],";height:",[0,80],";margin-left:",[0,5],";width:70%}\n.",[1],"table_form .",[1],"input wx-radio-group{color:#666;float:left;font-size:",[0,24],";margin-left:",[0,5],"}\n.",[1],"table_form .",[1],"input wx-radio{-webkit-transform:scale(.8);transform:scale(.8)}\n.",[1],"table_form .",[1],"photolist{height:auto;margin-left:2%;overflow:hidden;width:96%}\n.",[1],"table_form .",[1],"photolist .",[1],"title{float:left;font-size:",[0,26],";height:",[0,100],";line-height:",[0,100],";width:20%}\n.",[1],"table_form .",[1],"photolist .",[1],"action{float:left;height:",[0,100],";margin-left:",[0,10],";width:70%}\n.",[1],"table_form .",[1],"photolist .",[1],"action wx-image{height:",[0,100],";width:",[0,100],"}\n.",[1],"table_form .",[1],"photolist .",[1],"photos{float:left;height:auto;margin-top:",[0,20],";overflow:hidden;width:100%}\n.",[1],"table_form .",[1],"photolist .",[1],"photos .",[1],"item{float:left;height:",[0,150],";margin-left:",[0,20],";margin-top:",[0,20],";width:",[0,150],"}\n.",[1],"table_form .",[1],"photolist wx-image{float:left;height:",[0,120],";margin-right:",[0,10],";width:",[0,120],"}\n.",[1],"table_form .",[1],"picker{font-size:",[0,26],";height:",[0,80],";line-height:",[0,80],"}\n.",[1],"table_form .",[1],"map{height:",[0,80],";line-height:",[0,80],";overflow:hidden}\n.",[1],"table_form .",[1],"map .",[1],"lt{float:left;font-size:",[0,26],";margin-left:2%;width:20%}\n.",[1],"table_form .",[1],"map .",[1],"ct{float:left;height:",[0,80],";margin-left:",[0,5],";overflow:hidden;width:60%}\n.",[1],"table_form .",[1],"map wx-image{float:right;height:",[0,40],";margin-right:",[0,10],";margin-top:",[0,20],";width:",[0,40],"}\n.",[1],"table_form .",[1],"picker .",[1],"lt{float:left;margin-left:2%;width:20%}\n.",[1],"table_form .",[1],"picker .",[1],"ct{color:#666;float:left;font-size:",[0,24],";margin-left:",[0,5],";text-align:right;width:60%}\n.",[1],"table_form .",[1],"picker .",[1],"rt{float:right;height:",[0,40],";margin-right:",[0,10],";margin-top:",[0,20],";width:",[0,40],"}\n.",[1],"table_form .",[1],"textarea{font-size:",[0,26],";height:",[0,200],";margin-left:2%;width:96%}\n.",[1],"table_form .",[1],"textarea wx-text{float:left;line-height:",[0,200],";width:20%}\n.",[1],"table_form .",[1],"textarea wx-textarea{border:",[0,1]," dotted #f2f2f2;float:left;font-size:",[0,24],";height:",[0,150],";margin-left:",[0,5],";margin-top:",[0,25],";padding:",[0,10],";width:70%}\n.",[1],"table_form .",[1],"logo{font-size:",[0,26],";height:",[0,100],"}\n.",[1],"table_form .",[1],"logo .",[1],"lt{float:left;height:",[0,100],";line-height:",[0,100],";margin-left:2%;width:20%}\n.",[1],"table_form .",[1],"logo wx-image{float:left;height:",[0,100],";margin-left:",[0,5],";margin-right:",[0,25],";width:",[0,100],"}\n.",[1],"table_btn{color:#fff;font-size:",[0,26],";height:",[0,80],";line-height:",[0,80],";margin-top:",[0,20],";text-align:center;width:",[0,500],"}\n::-webkit-scrollbar{color:transparent;height:0;width:0}\n",],"Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./app.wxss:1:5133)",{path:"./app.wxss"})();;__wxAppCode__['wxParse/wxParse.wxss'] = setCssToHead([],undefined,{path:"./wxParse/wxParse.wxss"});;}__mainPageFrameReady__();var __pageFrameEndTime__=Date.now(); \ No newline at end of file diff --git a/wx49a18253b90a02d2/wx49a18253b90a02d2.wxapkg b/wx49a18253b90a02d2/wx49a18253b90a02d2.wxapkg new file mode 100644 index 0000000..1581b89 Binary files /dev/null and b/wx49a18253b90a02d2/wx49a18253b90a02d2.wxapkg differ diff --git a/wx49a18253b90a02d2/wxParse/wxParse.html b/wx49a18253b90a02d2/wxParse/wxParse.html new file mode 100644 index 0000000..8a89891 --- /dev/null +++ b/wx49a18253b90a02d2/wxParse/wxParse.html @@ -0,0 +1,2 @@ + \ No newline at end of file