123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/order/evaluate" ], {
- 149: function(n, t, e) {
- (function(n) {
- function t(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }
- e(4), t(e(2)), n(t(e(150)).default);
- }).call(this, e(1).createPage);
- },
- 150: function(n, t, e) {
- e.r(t);
- var o = e(151), r = e(153);
- for (var u in r) "default" !== u && function(n) {
- e.d(t, n, function() {
- return r[n];
- });
- }(u);
- e(156);
- var i = e(13), a = Object(i.default)(r.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
- a.options.__file = "pages/order/evaluate.vue", t.default = a.exports;
- },
- 151: function(n, t, e) {
- e.r(t);
- var o = e(152);
- e.d(t, "render", function() {
- return o.render;
- }), e.d(t, "staticRenderFns", function() {
- return o.staticRenderFns;
- }), e.d(t, "recyclableRender", function() {
- return o.recyclableRender;
- }), e.d(t, "components", function() {
- return o.components;
- });
- },
- 152: function(n, t, e) {
- e.r(t), e.d(t, "render", function() {
- return o;
- }), e.d(t, "staticRenderFns", function() {
- return u;
- }), e.d(t, "recyclableRender", function() {
- return r;
- }), e.d(t, "components", function() {});
- var o = function() {
- var n = this;
- n.$createElement;
- n._self._c;
- }, r = !1, u = [];
- o._withStripped = !0;
- },
- 153: function(n, t, e) {
- e.r(t);
- var o = e(154), r = e.n(o);
- for (var u in o) "default" !== u && function(n) {
- e.d(t, n, function() {
- return o[n];
- });
- }(u);
- t.default = r.a;
- },
- 154: function(n, t, e) {
- (function(n) {
- function o(n) {
- return a(n) || i(n) || u(n) || r();
- }
- function r() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- function u(n, t) {
- if (n) {
- if ("string" == typeof n) return c(n, t);
- var e = Object.prototype.toString.call(n).slice(8, -1);
- return "Object" === e && n.constructor && (e = n.constructor.name), "Map" === e || "Set" === e ? Array.from(n) : "Arguments" === e || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? c(n, t) : void 0;
- }
- }
- function i(n) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(n)) return Array.from(n);
- }
- function a(n) {
- if (Array.isArray(n)) return c(n);
- }
- function c(n, t) {
- (null == t || t > n.length) && (t = n.length);
- for (var e = 0, o = new Array(t); e < t; e++) o[e] = n[e];
- return o;
- }
- function l(n, t, e, o, r, u, i) {
- try {
- var a = n[u](i), c = a.value;
- } catch (n) {
- return void e(n);
- }
- a.done ? t(c) : Promise.resolve(c).then(o, r);
- }
- function f(n) {
- return function() {
- var t = this, e = arguments;
- return new Promise(function(o, r) {
- function u(n) {
- l(a, o, r, u, i, "next", n);
- }
- function i(n) {
- l(a, o, r, u, i, "throw", n);
- }
- var a = n.apply(t, e);
- u(void 0);
- });
- };
- }
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- var s = function(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }(e(23)), d = e(155), m = {
- components: {
- uniRate: function() {
- e.e("components/uni-rate/uni-rate").then(function() {
- return resolve(e(497));
- }.bind(null, e)).catch(e.oe);
- }
- },
- data: function() {
- return {
- list: "",
- productInfo: "",
- text: "",
- placeholder: "商品满足你的期待么?说说你的想法,分享给想买的他们吧~",
- imgList: [],
- unique: "",
- cloudimgList: [],
- rateValue1: "",
- rateValue2: "",
- imgCount: 6
- };
- },
- onLoad: function(n) {
- this.unique = n.unique, this.loadOrder();
- },
- onShow: function() {},
- methods: {
- bindTextAreaBlur: function(n) {
- this.text = n.detail.value;
- },
- loadOrder: function() {
- var n = this;
- return f(s.default.mark(function t() {
- return s.default.wrap(function(t) {
- for (;;) switch (t.prev = t.next) {
- case 0:
- (0, d.product)({
- unique: n.unique
- }).then(function(t) {
- n.list = t.data, n.productInfo = t.data.productInfo;
- });
- case 1:
- case "end":
- return t.stop();
- }
- }, t);
- }))();
- },
- rateChange1: function(n) {
- this.rateValue1 = n.value;
- },
- rateChange2: function(n) {
- this.rateValue2 = n.value;
- },
- scImg: function() {
- var t = this;
- console.log(t.imgCount, 11), 0 != t.imgCount ? (0, d.upload)({
- file: ""
- }).then(function(n) {
- console.log(n, "e"), t.imgList = [].concat(o(t.imgList), o(n)), console.log(t.imgList, "imgList"),
- t.imgCount = 10 - t.imgList.length, console.log(t.imgCount, "imgCount ");
- }).catch(function(n) {}) : n.showToast({
- title: "最多添加6张图片",
- icon: "none"
- });
- },
- submit: function(t) {
- for (var e = this, o = 0; o < e.imgList.length; o++) e.cloudimgList.push(e.imgList[o].url);
- var r = e.cloudimgList.join(",");
- (0, d.order_comment)({
- pics: r,
- comment: e.text,
- product_score: e.rateValue1,
- service_score: e.rateValue2,
- unique: e.unique
- }).then(function(t) {
- n.navigateTo({
- url: "/pages/order/order?state=4"
- });
- }).catch(function(t) {
- n.navigateTo({
- url: "/pages/order/order?state=4"
- });
- });
- },
- imgInfo: function(t) {
- var e = [];
- console.log(111), this.imgList.forEach(function(n) {
- e.push(n.url);
- }), console.log(e), n.previewImage({
- current: t,
- loop: !1,
- urls: e,
- indicator: "default"
- });
- },
- delImg: function(t) {
- var e = this;
- n.showModal({
- content: "确定删除这张吗",
- success: function(n) {
- n.confirm ? (e.imgList.splice(t, 1), e.imgCount++) : n.cancel;
- }
- });
- },
- navto: function(t) {
- n.navigateTo({
- url: t
- });
- }
- }
- };
- t.default = m;
- }).call(this, e(1).default);
- },
- 156: function(n, t, e) {
- e.r(t);
- var o = e(157), r = e.n(o);
- for (var u in o) "default" !== u && function(n) {
- e.d(t, n, function() {
- return o[n];
- });
- }(u);
- t.default = r.a;
- },
- 157: function(n, t, e) {}
- }, [ [ 149, "common/runtime", "common/vendor" ] ] ]);
|