bztang-admin/addons/yun_shop/static/app/js/chunk-e6984788.dd2da45d.js

3 lines
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e6984788"],{"111b":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"footprint"}},[n("c-title",{attrs:{hide:!1,text:"我的足迹"}}),n("div",{staticStyle:{"margin-bottom":"0.375rem"}}),n("d-list",{attrs:{loading:t.loading,finished:t.finisend},on:{load:t.getData}},t._l(t.datas,(function(e,i){return e.goods?n("div",{key:i,staticClass:"tbs",on:{click:function(r){return t.toItem(e)}}},[n("van-swipe-cell",{scopedSlots:t._u([{key:"right",fn:function(){return[n("van-button",{attrs:{square:"",type:"danger",text:"删除"},on:{click:function(r){return t.delteteItem(e,i)}}})]},proxy:!0}],null,!0)},[e.goods.thumb?n("div",{staticClass:"li2"},[n("img",{attrs:{src:e.goods.thumb}})]):t._e(),e.goods.thumb?t._e():n("div",{staticClass:"li2"},[n("img",{attrs:{src:r("253a")}})]),n("div",{staticClass:"li3"},[n("div",{staticClass:"product-name"},[t._v(t._s(t._f("escapeTitle")(e.goods.title)))]),e.goods.point_goods?[n("p",{staticClass:"product-price"},[n("span",[t._v(t._s(e.goods.point_goods.point))]),t._v(t._s(t.integral)+" ")])]:[n("p",{staticClass:"product-price"},[t._v(t._s(t.$i18n.t("money"))+" "),e.vip_level_status&&1==e.vip_level_status.status?n("span",{staticClass:"product-price-span"},[t._v(t._s(e.vip_level_status.word))]):n("span",[t._v(t._s(e.goods.price))])])]],2)])],1):t._e()})),0),t.datas?t._e():n("van-empty",{attrs:{description:"您还没有浏览过任何商品"}})],1)},i=[],o=r("c7eb"),a=(r("e7e5"),r("d399")),s=r("1da1"),c=(r("99af"),r("a434"),r("6968")),l=r("94b4"),f={data:function(){return{integral:window.localStorage.integral||"积分",checkList:[],datas:[],checkAll:!1,page:1,loading:!1,finisend:!1}},activated:function(){this.page=1,this.finisend=!1,this.loading=!1,this.getData()},mounted:function(){},methods:{getData:function(){var t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var r,n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.finisend&&!t.loading){e.next=2;break}return e.abrupt("return");case 2:return t.loading=!0,r={i:t.fun.getKeyByI(),type:t.fun.getTyep(),page:t.page},e.next=6,$http.get("member.member-history.index",r,"加载中");case 6:if(n=e.sent,t.loading=!1,1===n.result){e.next=11;break}return Object(a["a"])(n.msg),e.abrupt("return");case 11:(t.page>=n.data.last_page||n.data.member_histories.length<n.data.per_page)&&(t.finisend=!0),t.page>1?t.datas=t.datas.concat(n.data.member_histories):t.datas=n.data.member_histories,t.page++;case 14:case"end":return e.stop()}}),e)})))()},delteteItem:function(t,e){var r=this,n={id:t.id,i:this.fun.getKeyByI(),type:this.fun.getTyep()};$http.get("member.member-history.destroy",n,"处理中...").then((function(t){1==t.result?(r.datas.splice(e,1),Object(a["a"])("操作成功")):Object(a["a"])(t.msg)}),(function(t){}))},toItem:function(t){0!=t.owner_id?this.$router.push(this.fun.getUrl("goodsO2O",{id:t.goods.id,tag:"o2o",store_id:t.owner_id})):this.$router.push(this.fun.getUrl("goods",{id:t.goods.id}))}},components:{cTitle:c["a"],DList:l["a"]}},u=f,d=u,p=(r("f69c4"),r("2877")),h=Object(p["a"])(d,n,i,!1,null,"3f2b699c",null);e["default"]=h.exports},1592:function(t,e,r){var n=r("4962");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("499e").default;i("ed904006",n,!0,{sourceMap:!1,shadowMode:!1})},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7");function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}},"253a":function(t,e,r){t.exports=r.p+"static/app/img/img_default.a608a24a.png"},4962:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,"#footprint[data-v-3f2b699c]{padding-bottom:.5rem}#footprint .tbs[data-v-3f2b699c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;border-bottom:.0625rem solid #f5f5f5;margin-bottom:.375rem}#footprint .tbs .li1[data-v-3f2b699c]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%;padding:.3125rem 0}#footprint .tbs .li2[data-v-3f2b699c]{-webkit-box-flex:20%;-webkit-flex:20%;-ms-flex:20%;flex:20%}#footprint .tbs .li2 img[data-v-3f2b699c]{width:5.86rem;height:5.86rem}#footprint .tbs .li3[data-v-3f2b699c]{-webkit-box-flex:60%;-webkit-flex:60%;-ms-flex:60%;flex:60%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-align:left;padding:.3125rem .625rem;-webkit-box-sizing:border-box;box-sizing:border-box}#footprint .tbs .li3 .product-name[data-v-3f2b699c]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;font-size:14px;color:#666;text-align:justify;line-height:1rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;margin-bottom:1.125rem}#footprint .tbs .li3 .product-price[data-v-3f2b699c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#f15353;text-align:right;margin:0;font-size:14px}#footprint .tbs .li3 .product-price span[data-v-3f2b699c]{font-size:18px}#footprint .tbs .li3 .product-price .product-price-span[data-v-3f2b699c]{font-size:.75rem;background:#f15353;color:#fff;padding:.2rem .5rem;border-top-left-radius:.5rem;border-bottom-right-radius:.5rem}#footprint .tbs .li4[data-v-3f2b699c]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%}#footprint #foota[data-v-3f2b699c]{position:fixed;bottom:0;background:#fff;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#footprint #foota .el-checkbox[data-v-3f2b699c]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:left;padding-left:.9375rem}#footprint #foota .dels[data-v-3f2b699c]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;border-radius:.25rem;border:.0625rem solid red;background:red;color:#fff;padding:.625rem}#footprint .tbs .van-swipe-cell[data-v-3f2b699c]{width:100%}#footprint .tbs .van-swipe-cell[data-v-3f2b699c] .van-swipe-cell__wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;padding:.625rem .75rem}#footprint .tbs .van-swipe-cell[data-v-3f2b699c] .van-swipe-cell__wrapper .van-button{height:100%;width:1rem;background:#f15353;line-height:1.5rem;font-size:16px}#footprint .tbs .van-swipe-cell[data-v-3f2b699c] .van-swipe-cell__wrapper .van-button--danger{border:none}",""]),t.exports=e},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("53ca");function i(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(S){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),a=new E(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return j()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=k(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}t.wrap=f;var d={};function p(){}function h(){}function b(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(O([])));m&&m!==e&&r.call(m,a)&&(g=m);var x=b.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function i(o,a,s,c){var l=u(t[o],t,a);if("throw"!==l.type){var f=l.arg,d=f.value;return d&&"object"==Object(n["a"])(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):e.resolve(d).then((function(t){f.value=t,s(f)}),(function(t){return i("throw",t,s,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=b,l(x,"constructor",b),l(b,"constructor",h),h.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},w(y.prototype),l(y.prototype,s,(function(){return this})),t.AsyncIterator=y,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new y(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}},f69c4:function(t,e,r){"use strict";r("1592")}}]);