123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/product/reply" ], {
- 141: function(e, n, t) {
- (function(e) {
- function n(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- t(4), n(t(2)), e(n(t(142)).default);
- }).call(this, t(1).createPage);
- },
- 142: function(e, n, t) {
- t.r(n);
- var r = t(143), o = t(145);
- for (var a in o) "default" !== a && function(e) {
- t.d(n, e, function() {
- return o[e];
- });
- }(a);
- t(147);
- var i = t(13), u = Object(i.default)(o.default, r.render, r.staticRenderFns, !1, null, null, null, !1, r.components, void 0);
- u.options.__file = "pages/product/reply.vue", n.default = u.exports;
- },
- 143: function(e, n, t) {
- t.r(n);
- var r = t(144);
- t.d(n, "render", function() {
- return r.render;
- }), t.d(n, "staticRenderFns", function() {
- return r.staticRenderFns;
- }), t.d(n, "recyclableRender", function() {
- return r.recyclableRender;
- }), t.d(n, "components", function() {
- return r.components;
- });
- },
- 144: function(e, n, t) {
- var r;
- t.r(n), t.d(n, "render", function() {
- return o;
- }), t.d(n, "staticRenderFns", function() {
- return i;
- }), t.d(n, "recyclableRender", function() {
- return a;
- }), t.d(n, "components", function() {
- return r;
- });
- try {
- r = {
- uniLoadMore: function() {
- return t.e("components/uni-load-more/uni-load-more").then(t.bind(null, 413));
- }
- };
- } catch (e) {
- if (-1 === e.message.indexOf("Cannot find module") || -1 === e.message.indexOf(".vue")) throw e;
- console.error(e.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
- console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
- }
- var o = function() {
- var e = this;
- e.$createElement;
- e._self._c;
- }, a = !1, i = [];
- o._withStripped = !0;
- },
- 145: function(e, n, t) {
- t.r(n);
- var r = t(146), o = t.n(r);
- for (var a in r) "default" !== a && function(e) {
- t.d(n, e, function() {
- return r[e];
- });
- }(a);
- n.default = o.a;
- },
- 146: function(e, n, t) {
- (function(e) {
- function r(e, n, t, r, o, a, i) {
- try {
- var u = e[a](i), c = u.value;
- } catch (e) {
- return void t(e);
- }
- u.done ? n(c) : Promise.resolve(c).then(r, o);
- }
- function o(e) {
- return function() {
- var n = this, t = arguments;
- return new Promise(function(o, a) {
- function i(e) {
- r(c, o, a, i, u, "next", e);
- }
- function u(e) {
- r(c, o, a, i, u, "throw", e);
- }
- var c = e.apply(n, t);
- i(void 0);
- });
- };
- }
- Object.defineProperty(n, "__esModule", {
- value: !0
- }), n.default = void 0;
- var a = function(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }(t(23)), i = t(28), u = {
- components: {
- uniRate: function() {
- t.e("components/uni-rate/uni-rate").then(function() {
- return resolve(t(497));
- }.bind(null, t)).catch(t.oe);
- }
- },
- watch: {},
- data: function() {
- return {
- maxheight: "",
- id: "",
- list: "",
- reply: "",
- tabCurrentIndex: 0,
- navList: [ {
- state: 0,
- text: "全部",
- loadingType: "more",
- number: "",
- orderList: [],
- page: 1,
- limit: 5
- }, {
- state: 1,
- text: "好评",
- loadingType: "more",
- number: "",
- orderList: [],
- page: 1,
- limit: 5
- }, {
- state: 3,
- text: "差评",
- loadingType: "more",
- number: "",
- orderList: [],
- page: 1,
- limit: 5
- }, {
- state: 2,
- text: "中评",
- loadingType: "more",
- number: "",
- orderList: [],
- page: 1,
- limit: 5
- } ]
- };
- },
- computed: {},
- onReady: function() {
- var n = this;
- e.createSelectorQuery().select(".container").fields({
- size: !0
- }, function(e) {
- n.maxheight = e.height - Math.floor(e.width / 750 * 145);
- }).exec();
- },
- onLoad: function(e) {
- this.id = e.id;
- },
- onShow: function() {
- var e = this;
- (0, i.reply_config)({}, this.id).then(function(n) {
- var t = n.data;
- e.reply = t, e.navList[0].number = e.reply.sum_count, e.navList[1].number = e.reply.good_count,
- e.navList[2].number = e.reply.poor_count, e.navList[3].number = e.reply.in_count;
- }), this.loadDate();
- },
- methods: {
- loadDate: function(e) {
- var n = this;
- return o(a.default.mark(function t() {
- var r, o, u;
- return a.default.wrap(function(t) {
- for (;;) switch (t.prev = t.next) {
- case 0:
- if (r = n.tabCurrentIndex, o = n.navList[r], u = o.state, "tabChange" !== e || !0 !== o.loaded) {
- t.next = 5;
- break;
- }
- return t.abrupt("return");
- case 5:
- if ("loading" !== o.loadingType) {
- t.next = 7;
- break;
- }
- return t.abrupt("return");
- case 7:
- if ("noMore" !== o.loadingType) {
- t.next = 9;
- break;
- }
- return t.abrupt("return");
- case 9:
- o.loadingType = "loading", (0, i.reply_list)({
- type: u,
- page: o.page,
- limit: o.limit
- }, n.id).then(function(e) {
- var t = e.data, r = t;
- o.orderList = o.orderList.concat(r), console.log(o.orderList, 111), o.page++, o.limit != t.length ? (o.loadingType = "noMore",
- n.$set(o, "loaded", !0)) : o.loadingType = "more";
- }).catch(function(e) {
- console.log(e);
- });
- case 11:
- case "end":
- return t.stop();
- }
- }, t);
- }))();
- },
- navTo: function(n) {
- e.navigateTo({
- url: n
- });
- },
- changeTab: function(e) {
- this.tabCurrentIndex = e.target.current, this.loadDate("tabChange");
- },
- tabClick: function(e) {
- this.tabCurrentIndex = e;
- }
- }
- };
- n.default = u;
- }).call(this, t(1).default);
- },
- 147: function(e, n, t) {
- t.r(n);
- var r = t(148), o = t.n(r);
- for (var a in r) "default" !== a && function(e) {
- t.d(n, e, function() {
- return r[e];
- });
- }(a);
- n.default = o.a;
- },
- 148: function(e, n, t) {}
- }, [ [ 141, "common/runtime", "common/vendor" ] ] ]);
|