/
home
/
henzagold
/
customerB
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/customerB/export/js/chunk-6bacced6.f978bdaf.js.map
{"version":3,"sources":["webpack:///./src/components/Pagination.vue","webpack:///src/components/Pagination.vue","webpack:///./src/components/Pagination.vue?0ab9","webpack:///./src/components/Pagination.vue?5e6a","webpack:///./src/components/Pagination.vue?9e39","webpack:///./src/views/Panel_Views/Wish-List.vue","webpack:///src/views/Panel_Views/Wish-List.vue","webpack:///./src/views/Panel_Views/Wish-List.vue?246b","webpack:///./src/views/Panel_Views/Wish-List.vue?a69f"],"names":["render","_vm","this","_c","_self","directives","name","rawName","value","totalPages","expression","staticClass","staticStyle","on","onClickFirstPage","attrs","_e","onClickPreviousPage","_l","pages","item","page","key","class","isPageActive","isDisabled","$event","onClickPage","_v","_s","onClickNextPage","onClickLastPage","staticRenderFns","data","props","maxVisibleButtons","type","required","default","watch","computed","startPage","endPage","range","isInFirstPage","isInLastPage","methods","mounted","component","flag","_m","products","length","count","active","Style","Styling","list","index","product","title","split","join","id","image","removeFromWishList","Math","ceil","onPageChange","model","callback","$$v","togglePreLoader","components","Pagination","then","time","text","color","icon","addToCart","items","localStorage","getData","document","str_error","created"],"mappings":"yIAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,KAAK,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAIQ,WAAa,EAAGC,WAAW,mBAAmBC,YAAY,cAAc,CAACR,EAAG,KAAK,CAACQ,YAAY,wBAAwB,CAAEV,EAAIQ,WAAW,EAAGN,EAAG,IAAI,CAACQ,YAAY,YAAYC,YAAY,CAAC,QAAU,QAAQC,GAAG,CAAC,MAAQZ,EAAIa,mBAAmB,CAACX,EAAG,MAAM,CAACS,YAAY,CAAC,MAAQ,OAAO,OAAS,QAAQG,MAAM,CAAC,QAAU,cAAc,CAACZ,EAAG,OAAO,CAACY,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KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACQ,YAAY,UAAUI,MAAM,CAAC,kBAAkB,KAAK,CAACZ,EAAG,MAAM,CAACQ,YAAY,mBAAmB,CAACR,EAAG,MAAM,CAACQ,YAAY,kBAAkB,CAACR,EAAG,KAAK,CAACQ,YAAY,UAAU,CAACV,EAAI2B,GAAG,uC,oCC2FjP,GACfM,OACAsC,0BAEAC,YAEAC,mBAEAzC,OACA,OACAwB,UACAN,cACAE,QACAhC,OACAkC,aACAN,UAGAH,SACA,kCACA,sCACA6B,UACA,eACA,iBAAAC,UAAAC,wCAAAC,+BAAAC,kBAGAC,aACA,qDACA,6CACA,4BACA,YAEA,QACAC,UACAC,uDAGAC,UACA,kBACA,MACA,oCAEA3B,WACA,cAEAY,eACA,eACA,6CACAgB,wCACAA,oDAEA,gBACA,IACA,6BACA,SAAAnD,SAAA,qBACA,gBACA,oBACA,sCACA,sCACA,eAGA,aAGA,SACA,uCACA,SACA,mDAEAb,UACA,+BACAiE,gDAGAA,eAIA,iBAAAzB,qBAAAgB,UAAAC,OAAAC,+BAAAC,4BAGA,IACA,0BACA,iBAAAnB,qBAAAgB,UAAAC,wBAAAC,+BAAAC,uBAGA,iBAAAnB,qBAAAgB,UAAAC,OAAAC,+BAAAC,wBAIA,QAEA,iCAIAO,UACA,iBC/LkW,I,YCO9VtC,EAAY,eACd,EACAhD,EACAgC,GACA,EACA,KACA,KACA,MAIa,aAAAgB,E","file":"js/chunk-6bacced6.f978bdaf.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('ul',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.totalPages > 1),expression:\"totalPages > 1\"}],staticClass:\"pagination\"},[_c('li',{staticClass:\"page-item page-first\"},[(_vm.totalPages>1)?_c('a',{staticClass:\"page-link\",staticStyle:{\"padding\":\"12px\"},on:{\"click\":_vm.onClickFirstPage}},[_c('svg',{staticStyle:{\"width\":\"24px\",\"height\":\"24px\"},attrs:{\"viewBox\":\"0 0 24 24\"}},[_c('path',{attrs:{\"fill\":\"currentColor\",\"d\":\"M5.59,7.41L7,6L13,12L7,18L5.59,16.59L10.17,12L5.59,7.41M11.59,7.41L13,6L19,12L13,18L11.59,16.59L16.17,12L11.59,7.41Z\"}})])]):_vm._e()]),_c('li',{staticClass:\"page-item page-first\"},[(_vm.totalPages>1)?_c('a',{staticClass:\"page-link\",staticStyle:{\"padding\":\"12px\"},on:{\"click\":_vm.onClickPreviousPage}},[_c('svg',{staticStyle:{\"width\":\"24px\",\"height\":\"24px\"},attrs:{\"viewBox\":\"0 0 24 24\"}},[_c('path',{attrs:{\"fill\":\"currentColor\",\"d\":\"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z\"}})])]):_vm._e()]),_vm._l((_vm.pages),function(item,page){return _c('li',{key:page,class:['page-item',_vm.isPageActive(_vm.pages[page].name) ? 'active':null]},[_c('a',{staticClass:\"page-link\",attrs:{\"disabled\":_vm.pages[page].isDisabled},on:{\"click\":function($event){return _vm.onClickPage(_vm.pages[page].name)}}},[_vm._v(_vm._s(_vm.pages[page].name))])])}),_c('li',{staticClass:\"page-item page-increment\"},[(_vm.totalPages>1)?_c('a',{staticClass:\"page-link\",staticStyle:{\"padding\":\"12px\"},on:{\"click\":_vm.onClickNextPage}},[_c('svg',{staticStyle:{\"width\":\"24px\",\"height\":\"24px\"},attrs:{\"viewBox\":\"0 0 24 24\"}},[_c('path',{attrs:{\"fill\":\"currentColor\",\"d\":\"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z\"}})])]):_vm._e()]),_c('li',{staticClass:\"page-item page-last\"},[(_vm.totalPages>1)?_c('a',{staticClass:\"page-link\",staticStyle:{\"padding\":\"12px\"},on:{\"click\":_vm.onClickLastPage}},[_c('svg',{staticStyle:{\"width\":\"24px\",\"height\":\"24px\"},attrs:{\"viewBox\":\"0 0 24 24\"}},[_c('path',{attrs:{\"fill\":\"currentColor\",\"d\":\"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z\"}})])]):_vm._e()])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <ul class=\"pagination\" v-show=\"totalPages > 1\">\r\n <li class=\"page-item page-first\" >\r\n <a style=\"padding: 12px;\" class=\"page-link\" @click=\"onClickFirstPage\" v-if=\"totalPages>1\" >\r\n <svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\r\n <path fill=\"currentColor\" d=\"M5.59,7.41L7,6L13,12L7,18L5.59,16.59L10.17,12L5.59,7.41M11.59,7.41L13,6L19,12L13,18L11.59,16.59L16.17,12L11.59,7.41Z\" />\r\n </svg>\r\n </a>\r\n </li>\r\n <li class=\"page-item page-first\">\r\n <a style=\"padding: 12px;\" class=\"page-link\" @click=\"onClickPreviousPage\" v-if=\"totalPages>1\" >\r\n <svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\r\n <path fill=\"currentColor\" d=\"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z\" />\r\n </svg>\r\n </a>\r\n </li>\r\n\r\n<li v-for=\"(item, page) in pages\" :key=\"page\" :class=\"['page-item',isPageActive(pages[page].name) ? 'active':null]\" >\r\n <a class=\"page-link\" @click=\"onClickPage(pages[page].name)\" :disabled=\"pages[page].isDisabled\" >{{ pages[page].name }}</a>\r\n </li>\r\n\r\n <li class=\"page-item page-increment\">\r\n <a style=\"padding: 12px;\" class=\"page-link\" @click=\"onClickNextPage\" v-if=\"totalPages>1\" >\r\n <svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\r\n <path fill=\"currentColor\" d=\"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z\" />\r\n </svg>\r\n </a>\r\n </li>\r\n\r\n <li class=\"page-item page-last\">\r\n <a style=\"padding: 12px;\" class=\"page-link\" @click=\"onClickLastPage\" v-if=\"totalPages>1\" >\r\n <svg style=\"width:24px;height:24px\" viewBox=\"0 0 24 24\">\r\n <path fill=\"currentColor\" d=\"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z\" />\r\n </svg>\r\n </a>\r\n </li>\r\n </ul>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data(){\r\n return {\r\n //tempValue:this.value,\r\n }\r\n },\r\n props: {\r\n maxVisibleButtons: {\r\n type: Number,\r\n required: false,\r\n default: 6\r\n },\r\n totalPages: {\r\n type: Number,\r\n required: true\r\n },\r\n /* total: {\r\n type: Number,\r\n required: true\r\n },*/\r\n /* perPage: {\r\n type: Number,\r\n required: true\r\n },*/\r\n /*currentPage: {\r\n type: Number,\r\n required: true\r\n },*/\r\n value:{\r\n\r\n },\r\n },\r\n watch:{\r\n /* value(newValue){\r\n //console.log(newValue,\"this is new value\");\r\n },*/\r\n },\r\n computed: {\r\n startPage() {\r\n if (this.value === 1) {\r\n return 1;\r\n }\r\n\r\n if (this.value === this.totalPages) {\r\n //console.log(this.totalPages - this.maxVisibleButtons + 1);\r\n if (this.totalPages>this.maxVisibleButtons)\r\n {\r\n return this.totalPages - this.maxVisibleButtons + 1;\r\n }\r\n return 1;\r\n\r\n }\r\n return this.value - 1;\r\n\r\n },\r\n endPage() {\r\n return Math.min(this.startPage + this.maxVisibleButtons - 1, this.totalPages);\r\n },\r\n pages() {\r\n // console.log(\"page in paginantion\",this.value);\r\n const range = [];\r\n //console.log(this.startPage);\r\n for (let i = this.startPage; i <= this.endPage; i+= 1 ) {\r\n range.push({\r\n name: i,\r\n isDisabled: i === this.value\r\n });\r\n //console.log(range);\r\n }\r\n return range;\r\n },\r\n isInFirstPage() {\r\n return this.value === 1;\r\n },\r\n isInLastPage() {\r\n return this.value === this.totalPages;\r\n },\r\n },\r\n methods: {\r\n onClickFirstPage() {\r\n this.$emit('input', 1);\r\n this.$emit('pagechanged', 1);\r\n },\r\n onClickPreviousPage() {\r\n if(this.value>1)\r\n this.$emit('input', this.value - 1);\r\n this.$emit('pagechanged', this.value - 1);\r\n },\r\n onClickPage(page) {\r\n this.$emit('input', page);\r\n this.$emit('pagechanged', page);\r\n },\r\n onClickNextPage() {\r\n if(this.value <this.totalPages) {\r\n this.$emit('input', this.value + 1);\r\n this.$emit('pagechanged', this.value + 1);\r\n }\r\n },\r\n onClickLastPage() {\r\n //this.value + 1\r\n this.$emit('input',this.totalPages );\r\n this.$emit('pagechanged', this.totalPages);\r\n },\r\n isPageActive(page) {\r\n return this.value === page;\r\n },\r\n },\r\n mounted() {\r\n\r\n }\r\n}\r\n</script>\r\n\r\n<style>\r\nli{\r\n cursor: pointer;\r\n -webkit-touch-callout: none; /* iOS Safari */\r\n -webkit-user-select: none; /* Safari */\r\n -khtml-user-select: none; /* Konqueror HTML */\r\n -moz-user-select: none; /* Old versions of Firefox */\r\n -ms-user-select: none; /* Internet Explorer/Edge */\r\n user-select: none; /* Non-prefixed version, currently\r\n supported by Chrome, Edge, Opera and Firefox */\r\n}\r\n.page-item:first-child .page-link {\r\n margin-left: 15px !important;\r\n}\r\n\r\n/*// Extra small devices (portrait phones, less than 576px)*/\r\n@media (max-width: 575.98px) {\r\n .page-first,.page-last,.page-increment,.page-decrement\r\n {\r\n display: none;\r\n }\r\n}\r\n/*// Small devices (landscape phones, 576px and up)*/\r\n@media (min-width: 576px) and (max-width: 767.98px) {\r\n\r\n}\r\n/*// Medium devices (tablets, 768px and up)*/\r\n@media (min-width: 768px) and (max-width: 991.98px) {\r\n\r\n}\r\n/*// Large devices (desktops, 992px and up)*/\r\n@media (min-width: 992px) and (max-width: 1199.98px) {\r\n .page-first,.page-last\r\n {\r\n display: none;\r\n }\r\n}\r\n/*// Extra large devices (large desktops, 1200px and up)*/\r\n@media (min-width: 1200px) {\r\n /*body{\r\n background: red;\r\n }*/\r\n}\r\n\r\n/*!* Extra small devices (phones, 600px and down) *!\r\n@media only screen and (max-width: 600px) {\r\n\r\n}\r\n\r\n!* Small devices (portrait tablets and large phones, 600px and up) *!\r\n@media only screen and (min-width: 600px) {\r\n\r\n}\r\n\r\n!* Medium devices (landscape tablets, 768px and up) *!\r\n@media only screen and (min-width: 768px) {\r\n\r\n}\r\n\r\n!* Large devices (laptops/desktops, 992px and up) *!\r\n@media only screen and (min-width: 992px) {\r\n .page-first,.page-last\r\n {\r\n display: none;\r\n }\r\n}\r\n\r\n!* Extra large devices (large laptops and desktops, 1200px and up) *!\r\n@media only screen and (min-width: 1200px) {\r\n\r\n}*/\r\n\r\n\r\n/*.pagination {\r\n list-style-type: none;\r\n}\r\n\r\n.pagination-item {\r\n display: inline-block;\r\n}*/\r\n\r\n/*\r\n.active {\r\n background-color: #4AAE9B;\r\n color: #ffffff;\r\n}\r\n*/\r\n\r\n\r\n\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Pagination.vue?vue&type=template&id=39ac4ccc&\"\nimport script from \"./Pagination.vue?vue&type=script&lang=js&\"\nexport * from \"./Pagination.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Pagination.vue?vue&type=style&index=0&id=39ac4ccc&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=style&index=0&id=39ac4ccc&prod&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.flag)?_c('div',{attrs:{\"id\":\"ecommerce-wishlist-demo\"}},[_vm._m(0)]):_vm._e(),(_vm.products && _vm.products.length>0)?_c('div',[_c('div',{staticClass:\"acr-global-product-controls\"},[_c('div',{staticClass:\"acr-product-active-filters\"},[_c('h6',{staticStyle:{\"margin\":\"0\"},attrs:{\"id\":\"productList\"}},[_vm._v(\" \"+_vm._s(_vm.count)+\" محصول یافت شد \")])]),_c('div',{staticClass:\"acr-toggle-views d-none d-sm-block\"},[_c('a',{class:{active: _vm.Style == 'grid'},attrs:{\"data-toggle\":\"tooltip\",\"data-original-title\":\"نمایش به صورت شبکه ای\"},on:{\"click\":function($event){return _vm.Styling('grid')}}},[_c('i',[_c('svg',{staticStyle:{\"width\":\"24px\",\"height\":\"24px\"},attrs:{\"viewBox\":\"0 0 24 24\"}},[_c('path',{attrs:{\"fill\":\"currentColor\",\"d\":\"M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2M4,4V11H11V4H4M4,20H11V13H4V20M20,20V13H13V20H20M20,4H13V11H20V4Z\"}})])])]),_c('a',{class:{active: _vm.Style == 'row'},attrs:{\"data-toggle\":\"tooltip\",\"data-original-title\":\"نمایش به صورت لیست\"},on:{\"click\":function($event){return _vm.Styling('row')}}},[_c('i',[_c('svg',{staticStyle:{\"width\":\"24px\",\"height\":\"24px\"},attrs:{\"viewBox\":\"0 0 24 24\"}},[_c('path',{attrs:{\"fill\":\"currentColor\",\"d\":\"M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z\"}})])])])])]),_c('div',{staticClass:\"row\"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,class:{'col-xl-4 col-lg-6 col-md-6 col-sm-6': _vm.Style == 'grid', 'col-md-12': _vm.Style == 'row'}},[(item.product)?_c('div',{staticClass:\"product\",class:{'product-list': _vm.Style == 'row'}},[_c('div',{staticClass:\"product-thumbnail\",staticStyle:{\"text-align\":\"center\"}},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":`https://henzagold.com/product/${item.product.title.split(' ').join('-')}/${item.product.id}`}},[_c('img',{staticStyle:{\"width\":\"190px\",\"height\":\"190px\",\"object-fit\":\"scale-down\"},attrs:{\"src\":_vm.list[index].product.image.image,\"alt\":\"product\"}})]),_c('div',{staticClass:\"product-controls\"},[_c('a',{staticClass:\"favorite\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.removeFromWishList(item)}}},[_c('svg',{attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"height\":\"24px\",\"viewBox\":\"0 0 24 24\",\"width\":\"24px\"}},[_c('path',{attrs:{\"fill\":\"currentColor\",\"d\":\"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"}})])])])]),_c('div',{staticClass:\"product-body\",class:{'center': _vm.Style == 'grid'}},[_c('div',{staticClass:\"row\"},[_c('h5',{staticClass:\"product-title col-lg-12 col-xs-12\",staticStyle:{\"display\":\"inline-block\"}},[_c('a',{attrs:{\"href\":`https://henzagold.com/product/${item.product.title.split(' ').join('-')}/${item.product.id}`,\"target\":\"_blank\",\"title\":item.product.title}},[_vm._v(_vm._s(_vm.list[index].product.title))])])]),_c('div',{staticClass:\"product-gallery-wrapper\",staticStyle:{\"margin-top\":\"1rem\"}})])]):_vm._e()])}),0),_c('pagination',{attrs:{\"total-pages\":Math.ceil(_vm.count/3)},on:{\"pagechanged\":_vm.onPageChange},model:{value:(_vm.page),callback:function ($$v) {_vm.page=$$v},expression:\"page\"}})],1):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"vx-card\",attrs:{\"data-v-16d3ec44\":\"\"}},[_c('div',{staticClass:\"vx-card__header\"},[_c('div',{staticClass:\"vx-card__title\"},[_c('h4',{staticClass:\"center\"},[_vm._v(\"هیچ آیتم علاقمندی ندارید.\")])])])])\n}]\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <div v-if=\"flag\" id=\"ecommerce-wishlist-demo\">\r\n <div data-v-16d3ec44=\"\" class=\"vx-card\">\r\n <div class=\"vx-card__header\">\r\n <div class=\"vx-card__title\">\r\n <h4 class=\"center\">هیچ آیتم علاقمندی ندارید.</h4>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div v-if=\"products && products.length>0\">\r\n <div class=\"acr-global-product-controls\">\r\n <div class=\"acr-product-active-filters\">\r\n <h6 id=\"productList\" style=\"margin: 0\"> {{count}} محصول یافت شد </h6>\r\n </div>\r\n <div class=\"acr-toggle-views d-none d-sm-block\">\r\n <a data-toggle=\"tooltip\" @click=\"Styling('grid')\" :class=\"{active: Style == 'grid'}\" data-original-title=\"نمایش به صورت شبکه ای\">\r\n <i>\r\n <svg viewBox=\"0 0 24 24\" style=\"width:24px;height:24px\">\r\n <path fill=\"currentColor\" d=\"M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2M4,4V11H11V4H4M4,20H11V13H4V20M20,20V13H13V20H20M20,4H13V11H20V4Z\"></path>\r\n </svg>\r\n </i>\r\n </a>\r\n <a data-toggle=\"tooltip\" @click=\"Styling('row')\" :class=\"{active: Style == 'row'}\" data-original-title=\"نمایش به صورت لیست\">\r\n <i>\r\n <svg viewBox=\"0 0 24 24\" style=\"width:24px;height:24px\">\r\n <path fill=\"currentColor\" d=\"M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z\"></path>\r\n </svg>\r\n </i>\r\n </a>\r\n </div>\r\n </div>\r\n <!-- Products Start -->\r\n <div class=\"row\">\r\n <div :class=\"{'col-xl-4 col-lg-6 col-md-6 col-sm-6': Style == 'grid', 'col-md-12': Style == 'row'}\" v-for=\"(item,index) in list\" :key=\"index\">\r\n <div v-if=\"item.product\" class=\"product\" :class=\"{'product-list': Style == 'row'}\">\r\n <div class=\"product-thumbnail\" style=\"text-align: center;\">\r\n <a target=\"_blank\" :href=\"`https://henzagold.com/product/${item.product.title.split(' ').join('-')}/${item.product.id}`\">\r\n <img :src=\"list[index].product.image.image\" alt=\"product\" style=\"width: 190px;height: 190px;object-fit: scale-down\">\r\n </a>\r\n<!-- <div class=\"product-badges\">\r\n<!– <span class=\"product-badge featured\"> <i class=\"fas fa-star\"></i></span>–>\r\n <span class=\"product-badge\" :class=\"[(false)?'sale' :'stock']\">\r\n {{ list[index].product.product_code }}\r\n </span>\r\n </div>-->\r\n <div class=\"product-controls\">\r\n <a href=\"#\" @click=\"removeFromWishList(item)\" class=\"favorite\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\">\r\n <path fill=\"currentColor\"\r\n d=\"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z\"/>\r\n </svg>\r\n </a>\r\n <!-- <a href=\"#\" class=\"compare\"><i class=\"fas fa-sync-alt\"></i></a>-->\r\n<!-- <a href=\"#\" class=\"edit\"><i class=\"fas fa-edit\"></i></a>-->\r\n<!-- <a href=\"#\" data-toggle=\"modal\" data-target=\"#quickViewModal\" class=\"quick-view\"><i class=\"fas fa-eye\"></i></a>-->\r\n </div>\r\n </div>\r\n <div class=\"product-body\" :class=\"{'center': Style == 'grid'}\">\r\n <div class=\"row\">\r\n <h5 class=\"product-title col-lg-12 col-xs-12\" style=\"display:inline-block;\">\r\n <a :href=\"`https://henzagold.com/product/${item.product.title.split(' ').join('-')}/${item.product.id}`\" target=\"_blank\" :title=\"item.product.title\">{{ list[index].product.title }}</a>\r\n </h5>\r\n </div>\r\n<!-- <div class=\"row\">\r\n <div class=\"col-lg-12 col-md-12\">\r\n <span class=\"product-price\">{{ list[index].Cost | priceUnit }} تومان</span>\r\n </div>\r\n <div class=\"col-lg-12 col-md-12\"></div>\r\n </div>-->\r\n <div class=\"product-gallery-wrapper\" style=\"margin-top:1rem\">\r\n<!-- <a @click=\"addToCart(item)\" class=\"btn-custom btn-sm secondary\" style=\"cursor: pointer\">افزودن به سبد خرید</a>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- Products End -->\r\n <!-- Pagination Start -->\r\n <pagination\r\n v-model=\"page\"\r\n :total-pages=\"Math.ceil(count/3)\"\r\n @pagechanged=\"onPageChange\" />\r\n <!-- Pagination End -->\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Pagination from \"@/components/Pagination\";\r\n// import Rate from \"@/components/Rate.vue\"\r\nimport axios from \"@/plugins/axios\";\r\nexport default {\r\n props:{\r\n togglePreLoader: Function\r\n },\r\n components: {\r\n // Rate,\r\n Pagination\r\n },\r\n data () {\r\n return {\r\n list: null,\r\n products: null,\r\n count: 0,\r\n page: 1,\r\n Style: 'grid',\r\n flag: false\r\n }\r\n },\r\n methods: {\r\n async removeFromWishList(item){\r\n await axios.delete(`cu/fav/${item.product_id}`)\r\n .then(()=>{\r\n this.getList()\r\n this.$vs.notify({time:3500,text:'محصول از لیست علاقمندی ها حذف شد',color:'var(--secondary-color)',icon:'check'})\r\n })\r\n },\r\n addToCart(item){\r\n let items = JSON.parse(localStorage.getItem(\"cart_items\"))\r\n let index= this.$store.state.cart.items.findIndex((item)=>{\r\n if(item.item.pid==item.product.id)\r\n return true;\r\n });\r\n if(index === -1){\r\n items.push(item)\r\n localStorage.setItem(\"cart_items\", JSON.stringify(items))\r\n }\r\n },\r\n getData(){\r\n var last = (this.page * 3)\r\n var first = last - 3\r\n this.list = this.products.slice(first, last)\r\n },\r\n Styling (Class) {\r\n this.Style = Class\r\n },\r\n onPageChange(){\r\n this.getData();\r\n let el = document.getElementById('productList')\r\n document.body.scrollTop = el.offsetTop - 150;\r\n document.documentElement.scrollTop = el.offsetTop - 150;\r\n },\r\n async getList(){\r\n try {\r\n this.togglePreLoader('open')\r\n let {data} = await axios.get(\"cu/fav\")\r\n this.products = data\r\n this.count = data.length\r\n this.$store.dispatch(\"getWishList\",data)\r\n if(this.products && this.products.length>0){\r\n this.getData()\r\n }\r\n else{\r\n this.flag = true\r\n }\r\n }\r\n catch (error) {\r\n if (error.response && error.response.data.errors) {\r\n let str_error = ''\r\n for(let item of Object.values(error.response.data.errors))\r\n {\r\n item.map(xx=>{\r\n if (xx.includes(\"shipping address\")){\r\n str_error += xx.replace(\"shipping address\",\"آدرس\") + \"<br/>\"\r\n }\r\n else{\r\n str_error += xx + \"<br/>\"\r\n }\r\n })\r\n }\r\n this.$vs.notify({title:'خطایی رخ داد',time:3500,text:str_error,color:'var(--secondary-color)',icon:'error_outline'})\r\n }\r\n else{\r\n if (error) {\r\n if(error == \"Error: Network Error\"){\r\n this.$vs.notify({title:'خطایی رخ داد',time:3500,text:\"اتصال برقرار نشد\",color:'var(--secondary-color)',icon:'error_outline'})\r\n }\r\n else {\r\n this.$vs.notify({title:'خطایی رخ داد',time:3500,text:error,color:'var(--secondary-color)',icon:'error_outline'})\r\n }\r\n }\r\n }\r\n }\r\n finally {\r\n this.togglePreLoader('close')\r\n }\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n }\r\n}\r\n</script>\r\n\r\n<style>\r\n\r\n</style>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Wish-List.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Wish-List.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Wish-List.vue?vue&type=template&id=2fc04474&\"\nimport script from \"./Wish-List.vue?vue&type=script&lang=js&\"\nexport * from \"./Wish-List.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure