cyy-vue-material 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.js +8 -8
- package/src/package/cyy-goodsOne/consult.vue +267 -0
- package/src/package/cyy-goodsOne/cyy-goodsOne.vue +241 -0
- package/src/package/index.js +6 -0
- package/src/components/index.js +0 -5
- /package/src/{components → package}/cyy-goods/cyy-goods.vue +0 -0
- /package/src/{components → package}/cyy-image/cyy-image.vue +0 -0
- /package/src/{components → package}/cyy-search/cyy-search.vue +0 -0
- /package/src/{components → package}/cyy-slider/cyy-slider.vue +0 -0
- /package/src/{components → package}/cyy-title/cyy-title.vue +0 -0
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isEmpty as t,isEqual as e,isUndefined as r,get as n}from"lodash-es";import{openBlock as o,createElementBlock as a,normalizeStyle as i,toDisplayString as c,Fragment as u,renderList as s,createElementVNode as l,createCommentVNode as p,normalizeClass as d,createTextVNode as f,resolveComponent as b,createVNode as v,withCtx as g,createBlock as y}from"vue";const h="low-code"===process.env.VUE_APP_PLATFORM,m=t=>{let e={};for(let r in t)e[r]=j(t[r]);return e},j=t=>h?t+"px":2*t+"rpx",_=t=>{const e=new URLSearchParams;for(let r in t)e.append(r,t[r]);return e};const w=h?async(r,n)=>{const{id:o,goods:a}=r.props;if(t(a))return Promise.resolve({list:[]});const i=(t=>{const{goods:r,id:n}=t.props,{mGoods:o}=x[n]||{};return e(r,o)})(r);if(i)return Promise.resolve((t=>{const{mGoodsInfo:e}=x[t];return e})(o));const c=localStorage.getItem("saas-token");return await fetch(process.env.REACT_APP_BASE_URL+"web/rs/resourceGoods/queryResourceGoodsPagePalt.json",{method:"POST",headers:{"saas-token":c,"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:_(n)}).then((t=>t.json())).then(((t={})=>(((t,e,r)=>{x[t]={mGoodsInfo:r,mGoods:e}})(o,a,t),t)))}:(t,e)=>t.$ajax.run("find",e),x={};var S=Array.isArray,A="object"==typeof global&&global&&global.Object===Object&&global,O="object"==typeof self&&self&&self.Object===Object&&self,z=A||O||Function("return this")(),P=z.Symbol,N=Object.prototype,k=N.hasOwnProperty,C=N.toString,T=P?P.toStringTag:void 0;var B=Object.prototype.toString;var I=P?P.toStringTag:void 0;function R(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":I&&I in Object(t)?function(t){var e=k.call(t,T),r=t[T];try{t[T]=void 0;var n=!0}catch(t){}var o=C.call(t);return n&&(e?t[T]=r:delete t[T]),o}(t):function(t){return B.call(t)}(t)}function U(t){return null!=t&&"object"==typeof t}function F(t){return"symbol"==typeof t||U(t)&&"[object Symbol]"==R(t)}var E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;function M(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function D(t){if(!M(t))return!1;var e=R(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var $,G=z["__core-js_shared__"],V=($=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"";var H=Function.prototype.toString;function W(t){if(null!=t){try{return H.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var q=/^\[object .+?Constructor\]$/,K=Function.prototype,X=Object.prototype,J=K.toString,Q=X.hasOwnProperty,Y=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Z(t){return!(!M(t)||(e=t,V&&V in e))&&(D(t)?Y:q).test(W(t));var e}function tt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Z(r)?r:void 0}var et=tt(Object,"create");var rt=Object.prototype.hasOwnProperty;var nt=Object.prototype.hasOwnProperty;function ot(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function at(t,e){return t===e||t!=t&&e!=e}function it(t,e){for(var r=t.length;r--;)if(at(t[r][0],e))return r;return-1}ot.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},ot.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ot.prototype.get=function(t){var e=this.__data__;if(et){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return rt.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return et?void 0!==e[t]:nt.call(e,t)},ot.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=et&&void 0===e?"__lodash_hash_undefined__":e,this};var ct=Array.prototype.splice;function ut(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ut.prototype.clear=function(){this.__data__=[],this.size=0},ut.prototype.delete=function(t){var e=this.__data__,r=it(e,t);return!(r<0)&&(r==e.length-1?e.pop():ct.call(e,r,1),--this.size,!0)},ut.prototype.get=function(t){var e=this.__data__,r=it(e,t);return r<0?void 0:e[r][1]},ut.prototype.has=function(t){return it(this.__data__,t)>-1},ut.prototype.set=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var st=tt(z,"Map");function lt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function pt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}pt.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(st||ut),string:new ot}},pt.prototype.delete=function(t){var e=lt(this,t).delete(t);return this.size-=e?1:0,e},pt.prototype.get=function(t){return lt(this,t).get(t)},pt.prototype.has=function(t){return lt(this,t).has(t)},pt.prototype.set=function(t,e){var r=lt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function dt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(dt.Cache||pt),r}dt.Cache=pt;var ft,bt,vt,gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yt=/\\(\\)?/g,ht=(ft=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(gt,(function(t,r,n,o){e.push(n?o.replace(yt,"$1"):r||t)})),e},bt=dt(ft,(function(t){return 500===vt.size&&vt.clear(),t})),vt=bt.cache,bt),mt=ht;function jt(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var _t=P?P.prototype:void 0,wt=_t?_t.toString:void 0;function xt(t){if("string"==typeof t)return t;if(S(t))return jt(t,xt)+"";if(F(t))return wt?wt.call(t):"";var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function St(t,e){return S(t)?t:function(t,e){if(S(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!F(t))||L.test(t)||!E.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:mt(function(t){return null==t?"":xt(t)}(t))}function At(t){if("string"==typeof t||F(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function Ot(t,e){for(var r=0,n=(e=St(e,t)).length;null!=t&&r<n;)t=t[At(e[r++])];return r&&r==n?t:void 0}var zt=function(){try{var t=tt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Pt=zt;function Nt(t,e,r){"__proto__"==e&&Pt?Pt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var kt=Object.prototype.hasOwnProperty;function Ct(t,e,r){var n=t[e];kt.call(t,e)&&at(n,r)&&(void 0!==r||e in t)||Nt(t,e,r)}var Tt=/^(?:0|[1-9]\d*)$/;function Bt(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Tt.test(t))&&t>-1&&t%1==0&&t<e}function It(t,e,r,n){if(!M(t))return t;for(var o=-1,a=(e=St(e,t)).length,i=a-1,c=t;null!=c&&++o<a;){var u=At(e[o]),s=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=i){var l=c[u];void 0===(s=n?n(l,u,c):void 0)&&(s=M(l)?l:Bt(e[o+1])?[]:{})}Ct(c,u,s),c=c[u]}return t}function Rt(t,e){return null!=t&&e in Object(t)}function Ut(t){return U(t)&&"[object Arguments]"==R(t)}var Ft=Object.prototype,Et=Ft.hasOwnProperty,Lt=Ft.propertyIsEnumerable,Mt=Ut(function(){return arguments}())?Ut:function(t){return U(t)&&Et.call(t,"callee")&&!Lt.call(t,"callee")};function Dt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function $t(t,e){return null!=t&&function(t,e,r){for(var n=-1,o=(e=St(e,t)).length,a=!1;++n<o;){var i=At(e[n]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&Dt(o)&&Bt(i,o)&&(S(t)||Mt(t))}(t,e,Rt)}function Gt(t,e){return function(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],c=Ot(t,i);r(c,i)&&It(a,St(i,t),c)}return a}(t,e,(function(e,r){return $t(t,r)}))}function Vt(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Ht=P?P.isConcatSpreadable:void 0;function Wt(t){return S(t)||Mt(t)||!!(Ht&&t&&t[Ht])}function qt(t,e,r,n,o){var a=-1,i=t.length;for(r||(r=Wt),o||(o=[]);++a<i;){var c=t[a];e>0&&r(c)?e>1?qt(c,e-1,r,n,o):Vt(o,c):n||(o[o.length]=c)}return o}function Kt(t){return(null==t?0:t.length)?qt(t,1):[]}function Xt(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Jt=Math.max;var Qt=Pt?function(t,e){return Pt(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:function(t){return t},Yt=Qt,Zt=Date.now;var te=function(t){var e=0,r=0;return function(){var n=Zt(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Yt),ee=te;function re(t){return ee(function(t,e,r){return e=Jt(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,a=Jt(n.length-e,0),i=Array(a);++o<a;)i[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(i),Xt(t,this,c)}}(t,void 0,Kt),t+"")}var ne=re((function(t,e){return null==t?{}:Gt(t,e)}));function oe(t){var e=this.__data__=new ut(t);this.size=e.size}function ae(t,e,r,n){var o=!r;r||(r={});for(var a=-1,i=e.length;++a<i;){var c=e[a],u=n?n(r[c],t[c],c,r,t):void 0;void 0===u&&(u=t[c]),o?Nt(r,c,u):Ct(r,c,u)}return r}oe.prototype.clear=function(){this.__data__=new ut,this.size=0},oe.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},oe.prototype.get=function(t){return this.__data__.get(t)},oe.prototype.has=function(t){return this.__data__.has(t)},oe.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ut){var n=r.__data__;if(!st||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new pt(n)}return r.set(t,e),this.size=r.size,this};var ie="object"==typeof exports&&exports&&!exports.nodeType&&exports,ce=ie&&"object"==typeof module&&module&&!module.nodeType&&module,ue=ce&&ce.exports===ie?z.Buffer:void 0,se=(ue?ue.isBuffer:void 0)||function(){return!1},le={};function pe(t){return function(e){return t(e)}}le["[object Float32Array]"]=le["[object Float64Array]"]=le["[object Int8Array]"]=le["[object Int16Array]"]=le["[object Int32Array]"]=le["[object Uint8Array]"]=le["[object Uint8ClampedArray]"]=le["[object Uint16Array]"]=le["[object Uint32Array]"]=!0,le["[object Arguments]"]=le["[object Array]"]=le["[object ArrayBuffer]"]=le["[object Boolean]"]=le["[object DataView]"]=le["[object Date]"]=le["[object Error]"]=le["[object Function]"]=le["[object Map]"]=le["[object Number]"]=le["[object Object]"]=le["[object RegExp]"]=le["[object Set]"]=le["[object String]"]=le["[object WeakMap]"]=!1;var de="object"==typeof exports&&exports&&!exports.nodeType&&exports,fe=de&&"object"==typeof module&&module&&!module.nodeType&&module,be=fe&&fe.exports===de&&A.process,ve=function(){try{var t=fe&&fe.require&&fe.require("util").types;return t||be&&be.binding&&be.binding("util")}catch(t){}}(),ge=ve&&ve.isTypedArray,ye=ge?pe(ge):function(t){return U(t)&&Dt(t.length)&&!!le[R(t)]},he=Object.prototype.hasOwnProperty;function me(t,e){var r=S(t),n=!r&&Mt(t),o=!r&&!n&&se(t),a=!r&&!n&&!o&&ye(t),i=r||n||o||a,c=i?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=c.length;for(var s in t)!e&&!he.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Bt(s,u))||c.push(s);return c}var je=Object.prototype;function _e(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||je)}function we(t,e){return function(r){return t(e(r))}}var xe=we(Object.keys,Object),Se=Object.prototype.hasOwnProperty;function Ae(t){return null!=t&&Dt(t.length)&&!D(t)}function Oe(t){return Ae(t)?me(t):function(t){if(!_e(t))return xe(t);var e=[];for(var r in Object(t))Se.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var ze=Object.prototype.hasOwnProperty;function Pe(t){if(!M(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=_e(t),r=[];for(var n in t)("constructor"!=n||!e&&ze.call(t,n))&&r.push(n);return r}function Ne(t){return Ae(t)?me(t,!0):Pe(t)}var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ce=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Te=Ce&&Ce.exports===ke?z.Buffer:void 0,Be=Te?Te.allocUnsafe:void 0;function Ie(){return[]}var Re=Object.prototype.propertyIsEnumerable,Ue=Object.getOwnPropertySymbols,Fe=Ue?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}(Ue(t),(function(e){return Re.call(t,e)})))}:Ie,Ee=Fe;var Le=we(Object.getPrototypeOf,Object),Me=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Vt(e,Ee(t)),t=Le(t);return e}:Ie,De=Me;function $e(t,e,r){var n=e(t);return S(t)?n:Vt(n,r(t))}function Ge(t){return $e(t,Oe,Ee)}function Ve(t){return $e(t,Ne,De)}var He=tt(z,"DataView"),We=tt(z,"Promise"),qe=tt(z,"Set"),Ke=tt(z,"WeakMap"),Xe="[object Map]",Je="[object Promise]",Qe="[object Set]",Ye="[object WeakMap]",Ze="[object DataView]",tr=W(He),er=W(st),rr=W(We),nr=W(qe),or=W(Ke),ar=R;(He&&ar(new He(new ArrayBuffer(1)))!=Ze||st&&ar(new st)!=Xe||We&&ar(We.resolve())!=Je||qe&&ar(new qe)!=Qe||Ke&&ar(new Ke)!=Ye)&&(ar=function(t){var e=R(t),r="[object Object]"==e?t.constructor:void 0,n=r?W(r):"";if(n)switch(n){case tr:return Ze;case er:return Xe;case rr:return Je;case nr:return Qe;case or:return Ye}return e});var ir=ar,cr=Object.prototype.hasOwnProperty;var ur=z.Uint8Array;function sr(t){var e=new t.constructor(t.byteLength);return new ur(e).set(new ur(t)),e}var lr=/\w*$/;var pr=P?P.prototype:void 0,dr=pr?pr.valueOf:void 0;function fr(t,e,r){var n,o=t.constructor;switch(e){case"[object ArrayBuffer]":return sr(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var r=e?sr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?sr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,lr.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return n=t,dr?Object(dr.call(n)):{}}}var br=Object.create,vr=function(){function t(){}return function(e){if(!M(e))return{};if(br)return br(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),gr=vr;var yr=ve&&ve.isMap,hr=yr?pe(yr):function(t){return U(t)&&"[object Map]"==ir(t)};var mr=ve&&ve.isSet,jr=mr?pe(mr):function(t){return U(t)&&"[object Set]"==ir(t)},_r="[object Arguments]",wr="[object Function]",xr="[object Object]",Sr={};function Ar(t,e,r,n,o,a){var i,c=1&e,u=2&e,s=4&e;if(r&&(i=o?r(t,n,o,a):r(t)),void 0!==i)return i;if(!M(t))return t;var l=S(t);if(l){if(i=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&cr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(t,i)}else{var p=ir(t),d=p==wr||"[object GeneratorFunction]"==p;if(se(t))return function(t,e){if(e)return t.slice();var r=t.length,n=Be?Be(r):new t.constructor(r);return t.copy(n),n}(t,c);if(p==xr||p==_r||d&&!o){if(i=u||d?{}:function(t){return"function"!=typeof t.constructor||_e(t)?{}:gr(Le(t))}(t),!c)return u?function(t,e){return ae(t,De(t),e)}(t,function(t,e){return t&&ae(e,Ne(e),t)}(i,t)):function(t,e){return ae(t,Ee(t),e)}(t,function(t,e){return t&&ae(e,Oe(e),t)}(i,t))}else{if(!Sr[p])return o?t:{};i=fr(t,p,c)}}a||(a=new oe);var f=a.get(t);if(f)return f;a.set(t,i),jr(t)?t.forEach((function(n){i.add(Ar(n,e,r,n,t,a))})):hr(t)&&t.forEach((function(n,o){i.set(o,Ar(n,e,r,o,t,a))}));var b=l?void 0:(s?u?Ve:Ge:u?Ne:Oe)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(b||t,(function(n,o){b&&(n=t[o=n]),Ct(i,o,Ar(n,e,r,o,t,a))})),i}function Or(t,e){return e.length<2?t:Ot(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}(e,0,-1))}function zr(t,e){return null==(t=Or(t,e=St(e,t)))||delete t[At((r=e,n=null==r?0:r.length,n?r[n-1]:void 0))];var r,n}Sr[_r]=Sr["[object Array]"]=Sr["[object ArrayBuffer]"]=Sr["[object DataView]"]=Sr["[object Boolean]"]=Sr["[object Date]"]=Sr["[object Float32Array]"]=Sr["[object Float64Array]"]=Sr["[object Int8Array]"]=Sr["[object Int16Array]"]=Sr["[object Int32Array]"]=Sr["[object Map]"]=Sr["[object Number]"]=Sr[xr]=Sr["[object RegExp]"]=Sr["[object Set]"]=Sr["[object String]"]=Sr["[object Symbol]"]=Sr["[object Uint8Array]"]=Sr["[object Uint8ClampedArray]"]=Sr["[object Uint16Array]"]=Sr["[object Uint32Array]"]=!0,Sr["[object Error]"]=Sr[wr]=Sr["[object WeakMap]"]=!1;var Pr=Function.prototype,Nr=Object.prototype,kr=Pr.toString,Cr=Nr.hasOwnProperty,Tr=kr.call(Object);function Br(t){return function(t){if(!U(t)||"[object Object]"!=R(t))return!1;var e=Le(t);if(null===e)return!0;var r=Cr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&kr.call(r)==Tr}(t)?void 0:t}var Ir=re((function(t,e){var r={};if(null==t)return r;var n=!1;e=jt(e,(function(e){return e=St(e,t),n||(n=e.length>1),e})),ae(t,Ve(t),r),n&&(r=Ar(r,7,Br));for(var o=e.length;o--;)zr(r,e[o]);return r})),Rr=Ir,Ur={name:"yzf-title",props:{props:{value:String,fontSize:Number,textAlign:String,color:String,backgroundColor:String,fontWeight:String,fontStyle:String,textDecoration:Boolean,paddingTop:Number,paddingLeft:Number,paddingRight:Number,paddingBottom:Number}},computed:{computedStyle(){const t=["fontSize","paddingTop","paddingLeft","paddingRight","paddingBottom"],e=ne(this.props||{},t),r=Rr(this.props||{},t);return{...m(e),...r}}}};Ur.render=function(t,e,r,n,u,s){return o(),a("div",{style:i([s.computedStyle])},c(r.props.value),5)};var Fr={name:"yzf-cube",data:()=>({imgStyle:{width:"100%",boxSizing:"border-box"}}),props:{props:{selectImg:Array,borderRadius:Number,paddingTop:Number,paddingLeft:Number,paddingRight:Number,paddingBottom:Number,defaultValue:Array}},computed:{resultArr(){const{selectImg:e,defaultValue:n}=this.props,o=e.filter((t=>!r(t))).filter((t=>!Object.values(t).every((t=>r(t)))));let a=n;return t(o)||(a=o),console.log(52,a),a},computedStyle(){const t=["borderRadius","paddingTop","paddingLeft","paddingRight","paddingBottom"],e=ne(this.props,t),r=Rr(this.props,t);return{...m(e),...r}}}};const Er=["src"];function Lr(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}Lr(".lc-img-item[data-v-2117b01c]{box-sizing:border-box;width:100%}"),Fr.render=function(t,e,r,n,c,p){return o(),a("div",null,[(o(!0),a(u,null,s(p.resultArr,((e,r)=>(o(),a("div",{key:t.yzf},[l("img",{mode:"widthFix",style:i([p.computedStyle,c.imgStyle]),src:e.imgUrl,alt:""},null,12,Er)])))),128))])},Fr.__scopeId="data-v-2117b01c";var Mr={name:"yzf-search",props:{props:{value:String,fontColor:String,iconShow:Boolean,backgroundColor:String,borderRadius:Number,icon:String,marginTop:Number,marginLeft:Number,marginRight:Number,marginBottom:Number}},computed:{computedStyle(){const t=["borderRadius","marginTop","marginLeft","marginRight","marginBottom"],e=ne(this.props,t),r=Rr(this.props,t);return{...m(e),...r,display:"flex",height:"34px",lineHeight:"34px",paddingLeft:"20px"}}},methods:{goSearch(){h||this.$routers.push("goodsList",{memberCode:this.memberCode})}}};const Dr={style:{overflow:"hidden"}},$r={style:{flex:"1"}},Gr=["src"];Mr.render=function(t,e,r,n,u,s){return o(),a("div",Dr,[l("div",{style:i([s.computedStyle]),onClick:e[0]||(e[0]=(...t)=>s.goSearch&&s.goSearch(...t))},[l("div",$r,c(r.props.value),1),r.props.iconShow?(o(),a("img",{key:0,src:r.props.icon,alt:"",style:{width:"20px",height:"20px","margin-top":"7px","margin-right":"10px"}},null,8,Gr)):p("",!0)],4)])};var Vr={name:"yzf-goods",props:{props:{SelectGoods:Object,arrange:Number,circular:Number,margin:Number,markedPrice:Number,paddingTop:Number,paddingLeft:Number,paddingRight:Number,paddingBottom:Number}},data:()=>({listArr:[],noDataStyle:{width:"100%",height:"180px",lineHeight:"180px",fontSize:"30px",backgroundColor:"#ccc",color:"#aaa",textAlign:"center"}}),mounted(){console.log(75),this.init()},methods:{async init(){const{goods:t=[]}=this.props,e={goodsCode:t.toString()},r=await w(this,e);this.listArr=n(r,"list",[]),console.log("🐽🐽🐽🐽🐽🐽🐽🐽",this.listArr)},goGoodsDetail(t){if(h)return;const{skuCode:e,skuNo:r}=t;let n={skuCode:e,skuNo:r};this.$routers.push("detail",n)}}};const Hr={key:1},Wr=["onClick"],qr=["src"],Kr={class:"goodsName"},Xr={class:"goodsPrice"},Jr={key:0,class:"scribing"};Lr(".cube-container[data-v-061bf896]{display:grid}.cube-container[data-v-061bf896].two[data-v-061bf896]{grid-template-columns:repeat(2,1fr)}.cube-container[data-v-061bf896].two[data-v-061bf896] .goodsName[data-v-061bf896]{font-size:16px;padding:15px 0 2px}.cube-container[data-v-061bf896].two[data-v-061bf896] .goodsPrice[data-v-061bf896]{font-size:14px;padding:2px 0 20px}.cube-container[data-v-061bf896].two[data-v-061bf896] .goodsPrice[data-v-061bf896] .scribing[data-v-061bf896]{font-size:12px}.cube-container[data-v-061bf896].one[data-v-061bf896]{grid-template-columns:repeat(1,1fr)}.cube-container[data-v-061bf896].one[data-v-061bf896] .goodsName[data-v-061bf896]{font-size:20px;padding:20px 0 5px}.cube-container[data-v-061bf896].one[data-v-061bf896] .goodsPrice[data-v-061bf896]{font-size:18px;padding:5px 0 20px}.cube-container[data-v-061bf896].one[data-v-061bf896] .goodsPrice[data-v-061bf896] .scribing[data-v-061bf896]{font-size:14px}.cube-container[data-v-061bf896] .cube-item[data-v-061bf896] img[data-v-061bf896]{width:100%}.cube-container[data-v-061bf896] .cube-item[data-v-061bf896] .goodsName[data-v-061bf896]{color:#000}.cube-container[data-v-061bf896] .cube-item[data-v-061bf896] .goodsPrice[data-v-061bf896]{color:#fe4854}.cube-container[data-v-061bf896] .cube-item[data-v-061bf896] .goodsPrice[data-v-061bf896] .scribing[data-v-061bf896]{color:#ccc;display:inline-block;text-decoration:line-through}"),Vr.render=function(t,e,r,n,b,v){return o(),a("div",null,[r.props.goods?(o(),a("div",Hr,[l("div",{class:d(["cube-container",1===r.props.arrange?"one":"two"]),style:i({paddingTop:r.props.paddingTop+"px",paddingLeft:r.props.paddingLeft+"px",paddingRight:r.props.paddingRight+"px",paddingBottom:r.props.paddingBottom+"px",gap:r.props.margin+"px"})},[(o(!0),a(u,null,s(b.listArr,((e,n)=>(o(),a("div",{class:"cube-item",key:t.yzf,onClick:t=>v.goGoodsDetail(e)},[l("img",{src:e.dataPic,mode:"widthFix",alt:"",style:i({borderRadius:2===r.props.circular?"0px":"10px"})},null,12,qr),l("div",Kr,c(e.goodsName),1),l("div",Xr,[f(" ¥"+c(e.pricesetNprice)+" ",1),1===r.props.markedPrice?(o(),a("div",Jr," ¥"+c(e.pricesetMakeprice),1)):p("",!0)])],8,Wr)))),128))],6)])):(o(),a("div",{key:0,style:i(b.noDataStyle)},"请选择商品",4))])},Vr.__scopeId="data-v-061bf896";var Qr={name:"yzf-slider",data:()=>({lowCode:h}),props:{props:{autoplay:Boolean,autoplayInterval:Number,direction:String,loop:Boolean,selectImg:Array,defaultValue:Array,imgHeight:Object,marginTop:Number,marginBottom:Number}},computed:{resultArr(){const{selectImg:e,defaultValue:n}=this.props,o=e.filter((t=>!r(t))).filter((t=>!Object.values(t).every((t=>r(t)))));let a=n;return t(o)||(a=o),a},imgH(){const{imgHeight:t}=this.props;return t.height/t.width*750},sliderStyle(){const t=ne(this.props,["marginTop","marginBottom"]);return{...m(t)}},reDirection(){const{direction:t}=this.props;return"horizontal"!==t}}};const Yr={key:0},Zr=["src"],tn={key:1},en=["src"];Lr(".lowCode-warp{position:relative}.lowCode-warp ul{bottom:10px;padding:0;position:absolute;text-align:center;width:100%}.lowCode-warp li{background-color:rgba(0,0,0,.3);border-radius:50%;display:inline-block;height:8px;margin:0 4px;width:8px}.lowCode-warp li:first-child{background-color:#000}"),Qr.render=function(t,e,r,n,c,p){const d=b("swiper-item"),f=b("swiper");return o(),a("div",null,[c.lowCode?(o(),a("div",Yr,[l("div",{class:"lowCode-warp",style:i([p.sliderStyle])},[l("img",{src:p.resultArr[0].imgUrl,alt:"",style:{width:"100%"}},null,8,Zr),l("ul",null,[(o(!0),a(u,null,s(p.resultArr,((e,r)=>(o(),a("li",{key:t.yzf})))),128))])],4)])):(o(),a("div",tn,[v(f,{"indicator-dots":!0,autoplay:r.props.autoplay,interval:r.props.autoplayInterval,vertical:p.reDirection,circular:r.props.loop,style:i({height:p.imgH+"rpx"})},{default:g((()=>[(o(!0),a(u,null,s(p.resultArr,((e,r)=>(o(),y(d,{key:t.yzf,style:i([p.sliderStyle,{boxSizing:"border-box"}])},{default:g((()=>[l("img",{src:e.imgUrl,alt:"",mode:"widthFix",style:{width:"100%"}},null,8,en)])),_:2},1032,["style"])))),128))])),_:1},8,["autoplay","interval","vertical","circular","style"])]))])};const rn=[Vr,Ur,Fr,Mr],nn=function(t){rn.forEach((e=>{t.component(e.name,e)}))};"undefined"!=typeof window&&window.Vue&&nn(window.Vue);export{Fr as Cube,Vr as Goods,Mr as Search,Qr as Slider,Ur as Title,nn as default};
|
|
1
|
+
import{isEmpty as t,isEqual as e,isUndefined as r,get as o}from"lodash-es";import{openBlock as n,createElementBlock as a,normalizeStyle as i,toDisplayString as c,Fragment as d,renderList as l,createElementVNode as s,createCommentVNode as u,normalizeClass as p,createTextVNode as f,resolveComponent as v,createVNode as g,withCtx as b,createBlock as y,pushScopeId as h,popScopeId as m}from"vue";const j="low-code"===process.env.VUE_APP_PLATFORM,x=t=>{let e={};for(let r in t)e[r]=_(t[r]);return e},_=t=>j?t+"px":2*t+"rpx",w=t=>{const e=new URLSearchParams;for(let r in t)e.append(r,t[r]);return e};const S=j?async(r,o)=>{const{id:n,goods:a}=r.props;if(t(a))return Promise.resolve({list:[]});const i=(t=>{const{goods:r,id:o}=t.props,{mGoods:n}=A[o]||{};return e(r,n)})(r);if(i)return Promise.resolve((t=>{const{mGoodsInfo:e}=A[t];return e})(n));const c=localStorage.getItem("saas-token");return await fetch(process.env.REACT_APP_BASE_URL+"web/rs/resourceGoods/queryResourceGoodsPagePalt.json",{method:"POST",headers:{"saas-token":c,"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:w(o)}).then((t=>t.json())).then(((t={})=>(((t,e,r)=>{A[t]={mGoodsInfo:r,mGoods:e}})(n,a,t),t)))}:(t,e)=>t.$ajax.run("find",e),A={};var k=Array.isArray,O="object"==typeof global&&global&&global.Object===Object&&global,N="object"==typeof self&&self&&self.Object===Object&&self,P=O||N||Function("return this")(),C=P.Symbol,z=Object.prototype,T=z.hasOwnProperty,B=z.toString,F=C?C.toStringTag:void 0;var I=Object.prototype.toString;var R="[object Null]",U="[object Undefined]",D=C?C.toStringTag:void 0;function L(t){return null==t?void 0===t?U:R:D&&D in Object(t)?function(t){var e=T.call(t,F),r=t[F];try{t[F]=void 0;var o=!0}catch(t){}var n=B.call(t);return o&&(e?t[F]=r:delete t[F]),n}(t):function(t){return I.call(t)}(t)}function E(t){return null!=t&&"object"==typeof t}var M="[object Symbol]";function G(t){return"symbol"==typeof t||E(t)&&L(t)==M}var $=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/;function H(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var W="[object AsyncFunction]",q="[object Function]",K="[object GeneratorFunction]",X="[object Proxy]";function J(t){if(!H(t))return!1;var e=L(t);return e==q||e==K||e==W||e==X}var Q,Y=P["__core-js_shared__"],Z=(Q=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"";var tt=Function.prototype.toString;function et(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var rt=/^\[object .+?Constructor\]$/,ot=Function.prototype,nt=Object.prototype,at=ot.toString,it=nt.hasOwnProperty,ct=RegExp("^"+at.call(it).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dt(t){return!(!H(t)||(e=t,Z&&Z in e))&&(J(t)?ct:rt).test(et(t));var e}function lt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return dt(r)?r:void 0}var st=lt(Object,"create");var ut="__lodash_hash_undefined__",pt=Object.prototype.hasOwnProperty;var ft=Object.prototype.hasOwnProperty;var vt="__lodash_hash_undefined__";function gt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function bt(t,e){return t===e||t!=t&&e!=e}function yt(t,e){for(var r=t.length;r--;)if(bt(t[r][0],e))return r;return-1}gt.prototype.clear=function(){this.__data__=st?st(null):{},this.size=0},gt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},gt.prototype.get=function(t){var e=this.__data__;if(st){var r=e[t];return r===ut?void 0:r}return pt.call(e,t)?e[t]:void 0},gt.prototype.has=function(t){var e=this.__data__;return st?void 0!==e[t]:ft.call(e,t)},gt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=st&&void 0===e?vt:e,this};var ht=Array.prototype.splice;function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}mt.prototype.clear=function(){this.__data__=[],this.size=0},mt.prototype.delete=function(t){var e=this.__data__,r=yt(e,t);return!(r<0)&&(r==e.length-1?e.pop():ht.call(e,r,1),--this.size,!0)},mt.prototype.get=function(t){var e=this.__data__,r=yt(e,t);return r<0?void 0:e[r][1]},mt.prototype.has=function(t){return yt(this.__data__,t)>-1},mt.prototype.set=function(t,e){var r=this.__data__,o=yt(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};var jt=lt(P,"Map");function xt(t,e){var r,o,n=t.__data__;return("string"==(o=typeof(r=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function _t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}_t.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(jt||mt),string:new gt}},_t.prototype.delete=function(t){var e=xt(this,t).delete(t);return this.size-=e?1:0,e},_t.prototype.get=function(t){return xt(this,t).get(t)},_t.prototype.has=function(t){return xt(this,t).has(t)},_t.prototype.set=function(t,e){var r=xt(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};var wt="Expected a function";function St(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(wt);var r=function(){var o=arguments,n=e?e.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=t.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(St.Cache||_t),r}St.Cache=_t;var At=500;var kt,Ot,Nt,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ct=/\\(\\)?/g,zt=(kt=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Pt,(function(t,r,o,n){e.push(o?n.replace(Ct,"$1"):r||t)})),e},Ot=St(kt,(function(t){return Nt.size===At&&Nt.clear(),t})),Nt=Ot.cache,Ot),Tt=zt;function Bt(t,e){for(var r=-1,o=null==t?0:t.length,n=Array(o);++r<o;)n[r]=e(t[r],r,t);return n}var Ft=1/0,It=C?C.prototype:void 0,Rt=It?It.toString:void 0;function Ut(t){if("string"==typeof t)return t;if(k(t))return Bt(t,Ut)+"";if(G(t))return Rt?Rt.call(t):"";var e=t+"";return"0"==e&&1/t==-Ft?"-0":e}function Dt(t,e){return k(t)?t:function(t,e){if(k(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!G(t))||V.test(t)||!$.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:Tt(function(t){return null==t?"":Ut(t)}(t))}var Lt=1/0;function Et(t){if("string"==typeof t||G(t))return t;var e=t+"";return"0"==e&&1/t==-Lt?"-0":e}function Mt(t,e){for(var r=0,o=(e=Dt(e,t)).length;null!=t&&r<o;)t=t[Et(e[r++])];return r&&r==o?t:void 0}var Gt=function(){try{var t=lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),$t=Gt;function Vt(t,e,r){"__proto__"==e&&$t?$t(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Ht=Object.prototype.hasOwnProperty;function Wt(t,e,r){var o=t[e];Ht.call(t,e)&&bt(o,r)&&(void 0!==r||e in t)||Vt(t,e,r)}var qt=9007199254740991,Kt=/^(?:0|[1-9]\d*)$/;function Xt(t,e){var r=typeof t;return!!(e=null==e?qt:e)&&("number"==r||"symbol"!=r&&Kt.test(t))&&t>-1&&t%1==0&&t<e}function Jt(t,e,r,o){if(!H(t))return t;for(var n=-1,a=(e=Dt(e,t)).length,i=a-1,c=t;null!=c&&++n<a;){var d=Et(e[n]),l=r;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(n!=i){var s=c[d];void 0===(l=o?o(s,d,c):void 0)&&(l=H(s)?s:Xt(e[n+1])?[]:{})}Wt(c,d,l),c=c[d]}return t}function Qt(t,e){return null!=t&&e in Object(t)}var Yt="[object Arguments]";function Zt(t){return E(t)&&L(t)==Yt}var te=Object.prototype,ee=te.hasOwnProperty,re=te.propertyIsEnumerable,oe=Zt(function(){return arguments}())?Zt:function(t){return E(t)&&ee.call(t,"callee")&&!re.call(t,"callee")},ne=9007199254740991;function ae(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=ne}function ie(t,e){return null!=t&&function(t,e,r){for(var o=-1,n=(e=Dt(e,t)).length,a=!1;++o<n;){var i=Et(e[o]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++o!=n?a:!!(n=null==t?0:t.length)&&ae(n)&&Xt(i,n)&&(k(t)||oe(t))}(t,e,Qt)}function ce(t,e){return function(t,e,r){for(var o=-1,n=e.length,a={};++o<n;){var i=e[o],c=Mt(t,i);r(c,i)&&Jt(a,Dt(i,t),c)}return a}(t,e,(function(e,r){return ie(t,r)}))}function de(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}var le=C?C.isConcatSpreadable:void 0;function se(t){return k(t)||oe(t)||!!(le&&t&&t[le])}function ue(t,e,r,o,n){var a=-1,i=t.length;for(r||(r=se),n||(n=[]);++a<i;){var c=t[a];e>0&&r(c)?e>1?ue(c,e-1,r,o,n):de(n,c):o||(n[n.length]=c)}return n}function pe(t){return(null==t?0:t.length)?ue(t,1):[]}var fe=Math.max;var ve=$t?function(t,e){return $t(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:function(t){return t},ge=ve,be=800,ye=16,he=Date.now;var me=function(t){var e=0,r=0;return function(){var o=he(),n=ye-(o-r);if(r=o,n>0){if(++e>=be)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ge),je=me;function xe(t){return je(function(t,e,r){return e=fe(void 0===e?t.length-1:e,0),function(){for(var o=arguments,n=-1,a=fe(o.length-e,0),i=Array(a);++n<a;)i[n]=o[e+n];n=-1;for(var c=Array(e+1);++n<e;)c[n]=o[n];return c[e]=r(i),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,c)}}(t,void 0,pe),t+"")}var _e=xe((function(t,e){return null==t?{}:ce(t,e)}));var we=200;function Se(t){var e=this.__data__=new mt(t);this.size=e.size}function Ae(t,e,r,o){var n=!r;r||(r={});for(var a=-1,i=e.length;++a<i;){var c=e[a],d=o?o(r[c],t[c],c,r,t):void 0;void 0===d&&(d=t[c]),n?Vt(r,c,d):Wt(r,c,d)}return r}Se.prototype.clear=function(){this.__data__=new mt,this.size=0},Se.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Se.prototype.get=function(t){return this.__data__.get(t)},Se.prototype.has=function(t){return this.__data__.has(t)},Se.prototype.set=function(t,e){var r=this.__data__;if(r instanceof mt){var o=r.__data__;if(!jt||o.length<we-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new _t(o)}return r.set(t,e),this.size=r.size,this};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Oe=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ne=Oe&&Oe.exports===ke?P.Buffer:void 0,Pe=(Ne?Ne.isBuffer:void 0)||function(){return!1},Ce={};function ze(t){return function(e){return t(e)}}Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;var Te="object"==typeof exports&&exports&&!exports.nodeType&&exports,Be=Te&&"object"==typeof module&&module&&!module.nodeType&&module,Fe=Be&&Be.exports===Te&&O.process,Ie=function(){try{var t=Be&&Be.require&&Be.require("util").types;return t||Fe&&Fe.binding&&Fe.binding("util")}catch(t){}}(),Re=Ie&&Ie.isTypedArray,Ue=Re?ze(Re):function(t){return E(t)&&ae(t.length)&&!!Ce[L(t)]},De=Object.prototype.hasOwnProperty;function Le(t,e){var r=k(t),o=!r&&oe(t),n=!r&&!o&&Pe(t),a=!r&&!o&&!n&&Ue(t),i=r||o||n||a,c=i?function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}(t.length,String):[],d=c.length;for(var l in t)!e&&!De.call(t,l)||i&&("length"==l||n&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Xt(l,d))||c.push(l);return c}var Ee=Object.prototype;function Me(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ee)}function Ge(t,e){return function(r){return t(e(r))}}var $e=Ge(Object.keys,Object),Ve=Object.prototype.hasOwnProperty;function He(t){return null!=t&&ae(t.length)&&!J(t)}function We(t){return He(t)?Le(t):function(t){if(!Me(t))return $e(t);var e=[];for(var r in Object(t))Ve.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var qe=Object.prototype.hasOwnProperty;function Ke(t){if(!H(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Me(t),r=[];for(var o in t)("constructor"!=o||!e&&qe.call(t,o))&&r.push(o);return r}function Xe(t){return He(t)?Le(t,!0):Ke(t)}var Je="object"==typeof exports&&exports&&!exports.nodeType&&exports,Qe=Je&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=Qe&&Qe.exports===Je?P.Buffer:void 0,Ze=Ye?Ye.allocUnsafe:void 0;function tr(){return[]}var er=Object.prototype.propertyIsEnumerable,rr=Object.getOwnPropertySymbols,or=rr?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,o=null==t?0:t.length,n=0,a=[];++r<o;){var i=t[r];e(i,r,t)&&(a[n++]=i)}return a}(rr(t),(function(e){return er.call(t,e)})))}:tr,nr=or;var ar=Ge(Object.getPrototypeOf,Object),ir=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)de(e,nr(t)),t=ar(t);return e}:tr,cr=ir;function dr(t,e,r){var o=e(t);return k(t)?o:de(o,r(t))}function lr(t){return dr(t,We,nr)}function sr(t){return dr(t,Xe,cr)}var ur=lt(P,"DataView"),pr=lt(P,"Promise"),fr=lt(P,"Set"),vr=lt(P,"WeakMap"),gr="[object Map]",br="[object Promise]",yr="[object Set]",hr="[object WeakMap]",mr="[object DataView]",jr=et(ur),xr=et(jt),_r=et(pr),wr=et(fr),Sr=et(vr),Ar=L;(ur&&Ar(new ur(new ArrayBuffer(1)))!=mr||jt&&Ar(new jt)!=gr||pr&&Ar(pr.resolve())!=br||fr&&Ar(new fr)!=yr||vr&&Ar(new vr)!=hr)&&(Ar=function(t){var e=L(t),r="[object Object]"==e?t.constructor:void 0,o=r?et(r):"";if(o)switch(o){case jr:return mr;case xr:return gr;case _r:return br;case wr:return yr;case Sr:return hr}return e});var kr=Ar,Or=Object.prototype.hasOwnProperty;var Nr=P.Uint8Array;function Pr(t){var e=new t.constructor(t.byteLength);return new Nr(e).set(new Nr(t)),e}var Cr=/\w*$/;var zr=C?C.prototype:void 0,Tr=zr?zr.valueOf:void 0;var Br="[object Boolean]",Fr="[object Date]",Ir="[object Map]",Rr="[object Number]",Ur="[object RegExp]",Dr="[object Set]",Lr="[object String]",Er="[object Symbol]",Mr="[object ArrayBuffer]",Gr="[object DataView]",$r="[object Float32Array]",Vr="[object Float64Array]",Hr="[object Int8Array]",Wr="[object Int16Array]",qr="[object Int32Array]",Kr="[object Uint8Array]",Xr="[object Uint8ClampedArray]",Jr="[object Uint16Array]",Qr="[object Uint32Array]";function Yr(t,e,r){var o,n=t.constructor;switch(e){case Mr:return Pr(t);case Br:case Fr:return new n(+t);case Gr:return function(t,e){var r=e?Pr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case $r:case Vr:case Hr:case Wr:case qr:case Kr:case Xr:case Jr:case Qr:return function(t,e){var r=e?Pr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case Ir:return new n;case Rr:case Lr:return new n(t);case Ur:return function(t){var e=new t.constructor(t.source,Cr.exec(t));return e.lastIndex=t.lastIndex,e}(t);case Dr:return new n;case Er:return o=t,Tr?Object(Tr.call(o)):{}}}var Zr=Object.create,to=function(){function t(){}return function(e){if(!H(e))return{};if(Zr)return Zr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),eo=to;var ro="[object Map]";var oo=Ie&&Ie.isMap,no=oo?ze(oo):function(t){return E(t)&&kr(t)==ro},ao="[object Set]";var io=Ie&&Ie.isSet,co=io?ze(io):function(t){return E(t)&&kr(t)==ao},lo=1,so=2,uo=4,po="[object Arguments]",fo="[object Function]",vo="[object GeneratorFunction]",go="[object Object]",bo={};function yo(t,e,r,o,n,a){var i,c=e&lo,d=e&so,l=e&uo;if(r&&(i=n?r(t,o,n,a):r(t)),void 0!==i)return i;if(!H(t))return t;var s=k(t);if(s){if(i=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Or.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}(t,i)}else{var u=kr(t),p=u==fo||u==vo;if(Pe(t))return function(t,e){if(e)return t.slice();var r=t.length,o=Ze?Ze(r):new t.constructor(r);return t.copy(o),o}(t,c);if(u==go||u==po||p&&!n){if(i=d||p?{}:function(t){return"function"!=typeof t.constructor||Me(t)?{}:eo(ar(t))}(t),!c)return d?function(t,e){return Ae(t,cr(t),e)}(t,function(t,e){return t&&Ae(e,Xe(e),t)}(i,t)):function(t,e){return Ae(t,nr(t),e)}(t,function(t,e){return t&&Ae(e,We(e),t)}(i,t))}else{if(!bo[u])return n?t:{};i=Yr(t,u,c)}}a||(a=new Se);var f=a.get(t);if(f)return f;a.set(t,i),co(t)?t.forEach((function(o){i.add(yo(o,e,r,o,t,a))})):no(t)&&t.forEach((function(o,n){i.set(n,yo(o,e,r,n,t,a))}));var v=s?void 0:(l?d?sr:lr:d?Xe:We)(t);return function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o&&!1!==e(t[r],r,t););}(v||t,(function(o,n){v&&(o=t[n=o]),Wt(i,n,yo(o,e,r,n,t,a))})),i}function ho(t,e){return e.length<2?t:Mt(t,function(t,e,r){var o=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(r=r>n?n:r)<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(n);++o<n;)a[o]=t[o+e];return a}(e,0,-1))}function mo(t,e){return null==(t=ho(t,e=Dt(e,t)))||delete t[Et((r=e,o=null==r?0:r.length,o?r[o-1]:void 0))];var r,o}bo[po]=bo["[object Array]"]=bo["[object ArrayBuffer]"]=bo["[object DataView]"]=bo["[object Boolean]"]=bo["[object Date]"]=bo["[object Float32Array]"]=bo["[object Float64Array]"]=bo["[object Int8Array]"]=bo["[object Int16Array]"]=bo["[object Int32Array]"]=bo["[object Map]"]=bo["[object Number]"]=bo[go]=bo["[object RegExp]"]=bo["[object Set]"]=bo["[object String]"]=bo["[object Symbol]"]=bo["[object Uint8Array]"]=bo["[object Uint8ClampedArray]"]=bo["[object Uint16Array]"]=bo["[object Uint32Array]"]=!0,bo["[object Error]"]=bo[fo]=bo["[object WeakMap]"]=!1;var jo="[object Object]",xo=Function.prototype,_o=Object.prototype,wo=xo.toString,So=_o.hasOwnProperty,Ao=wo.call(Object);function ko(t){return function(t){if(!E(t)||L(t)!=jo)return!1;var e=ar(t);if(null===e)return!0;var r=So.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&wo.call(r)==Ao}(t)?void 0:t}var Oo=xe((function(t,e){var r={};if(null==t)return r;var o=!1;e=Bt(e,(function(e){return e=Dt(e,t),o||(o=e.length>1),e})),Ae(t,sr(t),r),o&&(r=yo(r,7,ko));for(var n=e.length;n--;)mo(r,e[n]);return r})),No=Oo,Po={name:"cyy-title",props:{props:{value:String,fontSize:Number,textAlign:String,color:String,backgroundColor:String,fontWeight:String,fontStyle:String,textDecoration:Boolean,paddingTop:Number,paddingLeft:Number,paddingRight:Number,paddingBottom:Number}},computed:{computedStyle(){const t=["fontSize","paddingTop","paddingLeft","paddingRight","paddingBottom"],e=_e(this.props||{},t),r=No(this.props||{},t);return{...x(e),...r}}}};Po.render=function(t,e,r,o,d,l){return n(),a("div",{style:i([l.computedStyle])},c(r.props.value),5)},Po.__file="src/package/cyy-title/cyy-title.vue";var Co={name:"cyy-cube",data:()=>({imgStyle:{width:"100%",boxSizing:"border-box"}}),props:{props:{selectImg:Array,borderRadius:Number,paddingTop:Number,paddingLeft:Number,paddingRight:Number,paddingBottom:Number,defaultValue:Array}},computed:{resultArr(){const{selectImg:e,defaultValue:o}=this.props,n=e.filter((t=>!r(t))).filter((t=>!Object.values(t).every((t=>r(t)))));let a=o;return t(n)||(a=n),console.log(52,a),a},computedStyle(){const t=["borderRadius","paddingTop","paddingLeft","paddingRight","paddingBottom"],e=_e(this.props,t),r=No(this.props,t);return{...x(e),...r}}}};const zo=["src"];function To(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}To(".lc-img-item[data-v-347d4d81]{box-sizing:border-box;width:100%}"),Co.render=function(t,e,r,o,c,u){return n(),a("div",null,[(n(!0),a(d,null,l(u.resultArr,((e,r)=>(n(),a("div",{key:t.cyy},[s("img",{mode:"widthFix",style:i([u.computedStyle,c.imgStyle]),src:e.imgUrl,alt:""},null,12,zo)])))),128))])},Co.__scopeId="data-v-347d4d81",Co.__file="src/package/cyy-image/cyy-image.vue";var Bo={name:"cyy-search",props:{props:{value:String,fontColor:String,iconShow:Boolean,backgroundColor:String,borderRadius:Number,icon:String,marginTop:Number,marginLeft:Number,marginRight:Number,marginBottom:Number}},computed:{computedStyle(){const t=["borderRadius","marginTop","marginLeft","marginRight","marginBottom"],e=_e(this.props,t),r=No(this.props,t);return{...x(e),...r,display:"flex",height:"34px",lineHeight:"34px",paddingLeft:"20px"}}},methods:{goSearch(){j||this.$routers.push("goodsList",{memberCode:this.memberCode})}}};const Fo={style:{overflow:"hidden"}},Io={style:{flex:"1"}},Ro=["src"];Bo.render=function(t,e,r,o,d,l){return n(),a("div",Fo,[s("div",{style:i([l.computedStyle]),onClick:e[0]||(e[0]=(...t)=>l.goSearch&&l.goSearch(...t))},[s("div",Io,c(r.props.value),1),r.props.iconShow?(n(),a("img",{key:0,src:r.props.icon,alt:"",style:{width:"20px",height:"20px","margin-top":"7px","margin-right":"10px"}},null,8,Ro)):u("v-if",!0)],4)])},Bo.__file="src/package/cyy-search/cyy-search.vue";var Uo={name:"cyy-goods",props:{props:{SelectGoods:Object,arrange:Number,circular:Number,margin:Number,markedPrice:Number,paddingTop:Number,paddingLeft:Number,paddingRight:Number,paddingBottom:Number}},data:()=>({listArr:[],noDataStyle:{width:"100%",height:"180px",lineHeight:"180px",fontSize:"30px",backgroundColor:"#ccc",color:"#aaa",textAlign:"center"}}),mounted(){console.log(75),this.init()},methods:{async init(){const{goods:t=[]}=this.props,e={goodsCode:t.toString()},r=await S(this,e);this.listArr=o(r,"list",[]),console.log("🐽🐽🐽🐽🐽🐽🐽🐽",this.listArr)},goGoodsDetail(t){if(j)return;const{skuCode:e,skuNo:r}=t;let o={skuCode:e,skuNo:r};this.$routers.push("detail",o)}}};const Do={key:1},Lo=["onClick"],Eo=["src"],Mo={class:"goodsName"},Go={class:"goodsPrice"},$o={key:0,class:"scribing"};To(".cube-container[data-v-585820b7]{display:grid}.cube-container[data-v-585820b7].two[data-v-585820b7]{grid-template-columns:repeat(2,1fr)}.cube-container[data-v-585820b7].two[data-v-585820b7] .goodsName[data-v-585820b7]{font-size:16px;padding:15px 0 2px}.cube-container[data-v-585820b7].two[data-v-585820b7] .goodsPrice[data-v-585820b7]{font-size:14px;padding:2px 0 20px}.cube-container[data-v-585820b7].two[data-v-585820b7] .goodsPrice[data-v-585820b7] .scribing[data-v-585820b7]{font-size:12px}.cube-container[data-v-585820b7].one[data-v-585820b7]{grid-template-columns:repeat(1,1fr)}.cube-container[data-v-585820b7].one[data-v-585820b7] .goodsName[data-v-585820b7]{font-size:20px;padding:20px 0 5px}.cube-container[data-v-585820b7].one[data-v-585820b7] .goodsPrice[data-v-585820b7]{font-size:18px;padding:5px 0 20px}.cube-container[data-v-585820b7].one[data-v-585820b7] .goodsPrice[data-v-585820b7] .scribing[data-v-585820b7]{font-size:14px}.cube-container[data-v-585820b7] .cube-item[data-v-585820b7] img[data-v-585820b7]{width:100%}.cube-container[data-v-585820b7] .cube-item[data-v-585820b7] .goodsName[data-v-585820b7]{color:#000}.cube-container[data-v-585820b7] .cube-item[data-v-585820b7] .goodsPrice[data-v-585820b7]{color:#fe4854}.cube-container[data-v-585820b7] .cube-item[data-v-585820b7] .goodsPrice[data-v-585820b7] .scribing[data-v-585820b7]{color:#ccc;display:inline-block;text-decoration:line-through}"),Uo.render=function(t,e,r,o,v,g){return n(),a("div",null,[r.props.goods?(n(),a("div",Do,[s("div",{class:p(["cube-container",1===r.props.arrange?"one":"two"]),style:i({paddingTop:r.props.paddingTop+"px",paddingLeft:r.props.paddingLeft+"px",paddingRight:r.props.paddingRight+"px",paddingBottom:r.props.paddingBottom+"px",gap:r.props.margin+"px"})},[(n(!0),a(d,null,l(v.listArr,((e,o)=>(n(),a("div",{class:"cube-item",key:t.cyy,onClick:t=>g.goGoodsDetail(e)},[s("img",{src:e.dataPic,mode:"widthFix",alt:"",style:i({borderRadius:2===r.props.circular?"0px":"10px"})},null,12,Eo),s("div",Mo,c(e.goodsName),1),s("div",Go,[f(" ¥"+c(e.pricesetNprice)+" ",1),1===r.props.markedPrice?(n(),a("div",$o," ¥"+c(e.pricesetMakeprice),1)):u("v-if",!0)])],8,Lo)))),128))],6)])):(n(),a("div",{key:0,style:i(v.noDataStyle)},"请选择商品",4))])},Uo.__scopeId="data-v-585820b7",Uo.__file="src/package/cyy-goods/cyy-goods.vue";var Vo={name:"cyy-slider",data:()=>({lowCode:j}),props:{props:{autoplay:Boolean,autoplayInterval:Number,direction:String,loop:Boolean,selectImg:Array,defaultValue:Array,imgHeight:Object,marginTop:Number,marginBottom:Number}},computed:{resultArr(){const{selectImg:e,defaultValue:o}=this.props,n=e.filter((t=>!r(t))).filter((t=>!Object.values(t).every((t=>r(t)))));let a=o;return t(n)||(a=n),a},imgH(){const{imgHeight:t}=this.props;return t.height/t.width*750},sliderStyle(){const t=_e(this.props,["marginTop","marginBottom"]);return{...x(t)}},reDirection(){const{direction:t}=this.props;return"horizontal"!==t}}};const Ho={key:0},Wo=["src"],qo={key:1},Ko=["src"];To(".lowCode-warp{position:relative}.lowCode-warp ul{bottom:10px;padding:0;position:absolute;text-align:center;width:100%}.lowCode-warp li{background-color:rgba(0,0,0,.3);border-radius:50%;display:inline-block;height:8px;margin:0 4px;width:8px}.lowCode-warp li:first-child{background-color:#000}"),Vo.render=function(t,e,r,o,c,u){const p=v("swiper-item"),f=v("swiper");return n(),a("div",null,[c.lowCode?(n(),a("div",Ho,[s("div",{class:"lowCode-warp",style:i([u.sliderStyle])},[s("img",{src:u.resultArr[0].imgUrl,alt:"",style:{width:"100%"}},null,8,Wo),s("ul",null,[(n(!0),a(d,null,l(u.resultArr,((e,r)=>(n(),a("li",{key:t.cyy})))),128))])],4)])):(n(),a("div",qo,[g(f,{"indicator-dots":!0,autoplay:r.props.autoplay,interval:r.props.autoplayInterval,vertical:u.reDirection,circular:r.props.loop,style:i({height:u.imgH+"rpx"})},{default:b((()=>[(n(!0),a(d,null,l(u.resultArr,((e,r)=>(n(),y(p,{key:t.cyy,style:i([u.sliderStyle,{boxSizing:"border-box"}])},{default:b((()=>[s("img",{src:e.imgUrl,alt:"",mode:"widthFix",style:{width:"100%"}},null,8,Ko)])),_:2},1032,["style"])))),128))])),_:1},8,["autoplay","interval","vertical","circular","style"])]))])},Vo.__file="src/package/cyy-slider/cyy-slider.vue";var Xo={name:"cyy-goodsOne",props:{props:{title:Object,more:Number,bill:String,SelectGoods:Object,arrange:Number,circular:Number,margin:Number,markedPrice:Number,paddingTop:Number,paddingLeft:Number,paddingRight:Number,paddingBottom:Number}},data:()=>({listArr:[],noDataStyle:{width:"100%",height:"180px",lineHeight:"180px",fontSize:"30px",backgroundColor:"#ccc",color:"#aaa",textAlign:"center"}}),mounted(){console.log(75),this.init()},methods:{async init(){const{goods:t=[]}=this.props,e={goodsCode:t.toString()},r=await S(this,e);this.listArr=o(r,"list",[]),console.log("🐽🐽🐽🐽🐽🐽🐽🐽",this.listArr)},goGoodsDetail(t){if(j)return;const{skuCode:e,skuNo:r}=t;let o={skuCode:e,skuNo:r};this.$routers.push("detail",o)},jumpToSearch(){}},maskTitle:t=>"1"===t?"预售中":"无库存"};const Jo=t=>(h("data-v-6a9dc7dd"),t=t(),m(),t),Qo={key:1},Yo={class:"three-layout"},Zo={key:0,class:"top-left"},tn={key:1,class:"top-right"},en=[Jo((()=>s("div",null,"更多",-1))),Jo((()=>s("image",{"lazy-load":!0,src:""},null,-1)))],rn={class:"three-layout-content"},on={class:"three-layout-bigImg"},nn=["src"],an={class:"three-layout-goods"},cn=Jo((()=>s("image",{"lazy-load":!0,src:"",mode:"aspectFill"},null,-1))),dn={key:0,class:"mask-three-more"},ln={class:"price-bo x"},sn={class:"now-price"},un={key:0,class:"origin-price"};To(".three-layout[data-v-6a9dc7dd]{border-radius:28px}.three-layout[data-v-6a9dc7dd] .mask-three-more[data-v-6a9dc7dd]{background-color:#000;color:#fff;display:block;font-size:52px;height:392px;line-height:392px;opacity:.5;position:absolute;text-align:center;top:0;width:392px}.three-layout[data-v-6a9dc7dd] .three-layout-title[data-v-6a9dc7dd]{display:flex;justify-content:space-between;margin:60px 50px}.three-layout[data-v-6a9dc7dd] .three-layout-title[data-v-6a9dc7dd] .top-left[data-v-6a9dc7dd]{color:#333;font-family:PingFangSC-Semibold,PingFang SC;font-size:64px;font-weight:600;line-height:88px}.three-layout[data-v-6a9dc7dd] .three-layout-title[data-v-6a9dc7dd] .top-right[data-v-6a9dc7dd]{align-items:center;display:flex}.three-layout[data-v-6a9dc7dd] .three-layout-title[data-v-6a9dc7dd] .top-right[data-v-6a9dc7dd] div[data-v-6a9dc7dd]{color:#595959;font-size:48px}.three-layout[data-v-6a9dc7dd] .three-layout-title[data-v-6a9dc7dd] .top-right[data-v-6a9dc7dd] image[data-v-6a9dc7dd]{height:36px;margin-left:12px;width:24px}.three-layout[data-v-6a9dc7dd] .three-layout-content[data-v-6a9dc7dd]{background:#fff;border-radius:28px;box-shadow:0 20px 40px 0 rgba(0,0,0,.1);margin:60px 58px}.three-layout[data-v-6a9dc7dd] .three-layout-content[data-v-6a9dc7dd] .three-layout-bigImg[data-v-6a9dc7dd] image[data-v-6a9dc7dd]{border-radius:28px 28px 0 0;display:inline-block;height:756px;width:100%}.three-layout[data-v-6a9dc7dd] .three-layout-content[data-v-6a9dc7dd] .three-layout-goods[data-v-6a9dc7dd]{display:flex;justify-content:center;padding:0 40px 40px}.three-layout[data-v-6a9dc7dd] .three-layout-content[data-v-6a9dc7dd] .three-layout-goods[data-v-6a9dc7dd] .goods-items[data-v-6a9dc7dd]{width:424px}.scroll-list[data-v-6a9dc7dd]{box-sizing:border-box;display:flex;justify-content:space-between;overflow:hidden;white-space:nowrap;width:100%}.scroll-list[data-v-6a9dc7dd] .scroll-item[data-v-6a9dc7dd]{display:inline-block;margin-right:40px}.scroll-list[data-v-6a9dc7dd] .scroll-item[data-v-6a9dc7dd] image[data-v-6a9dc7dd]{border-radius:20px;height:392px;width:392px}.scroll-list[data-v-6a9dc7dd] .scroll-item[data-v-6a9dc7dd] p[data-v-6a9dc7dd]{-webkit-box-orient:vertical;-webkit-line-clamp:1;color:#000;display:-webkit-box;font-family:PingFangSC-Regular,PingFang SC;font-size:48px;font-weight:400;line-height:68px;overflow:hidden;white-space:normal;width:392px}.scroll-top[data-v-6a9dc7dd]{margin-top:40px}"),Xo.render=function(t,e,r,o,p,y){const h=v("vop-label"),m=v("scroll-div");return n(),a("div",null,[r.props.goods?(n(),a("div",Qo,[s("div",Yo,[s("div",{class:"three-layout-title",onClick:e[0]||(e[0]=t=>y.jumpToSearch())},[t.title.isShow?(n(),a("div",Zo,c(t.title.title||""),1)):u("v-if",!0),1===t.more?(n(),a("div",tn,en)):u("v-if",!0)]),s("div",rn,[s("div",on,[s("image",{"lazy-load":!0,src:t.bill?t.bill:"",mode:"aspectFill"},null,8,nn)]),s("div",an,[g(m,{"scroll-x":"true","scroll-with-animation":"true",class:"scroll-list scroll-top"},{default:b((()=>[(n(!0),a(d,null,l(p.listArr,((r,o)=>(n(),a("div",{class:"scroll-item",key:o,onClick:e[1]||(e[1]=e=>t.toDetail())},[cn,r.goodsSupplynum<=0||"1"===r.goodsProperty5?(n(),a("div",dn,c(t.maskTitle(r.goodsProperty5)),1)):u("v-if",!0),s("p",null,[g(h,{goodsType:r.contlistPrice1},null,8,["goodsType"]),f(c(r.contlistName),1)]),s("div",ln,[s("div",sn,"¥"+c(t.toFix(r.contlistPrice,2,2)||0),1),1==r.contlistConNow?(n(),a("div",un,"¥"+c(t.toFix(r.contlistPicurl1,2,2)||0),1)):u("v-if",!0)])])))),128))])),_:1})])])])])):(n(),a("div",{key:0,style:i(p.noDataStyle)},"请选择商品样式一",4)),u(' <div v-else>\r\n <div\r\n :class="[\'cube-container\', props.arrange === 1 ? \'one\' : \'two\']"\r\n :style="{\r\n paddingTop: props.paddingTop + \'px\',\r\n paddingLeft: props.paddingLeft + \'px\',\r\n paddingRight: props.paddingRight + \'px\',\r\n paddingBottom: props.paddingBottom + \'px\',\r\n gap: props.margin + \'px\',\r\n }"\r\n >\r\n <div v-for="(item, index) in listArr" class="cube-item" :key="cyy" @click="goGoodsDetail(item)">\r\n <img\r\n :src="item.dataPic"\r\n mode="widthFix"\r\n alt=""\r\n :style="{\r\n borderRadius: props.circular === 2 ? \'0px\' : \'10px\',\r\n }"\r\n />\r\n <div class="goodsName">{{ item.goodsName }}</div>\r\n <div class="goodsPrice">\r\n ¥{{ item.pricesetNprice }}\r\n <div class="scribing" v-if="props.markedPrice === 1">¥{{ item.pricesetMakeprice }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div> ')])},Xo.__scopeId="data-v-6a9dc7dd",Xo.__file="src/package/cyy-goodsOne/cyy-goodsOne.vue";const pn=[Uo,Po,Co,Bo,Vo,Xo],fn=function(t){pn.forEach((e=>{t.component(e.name,e)}))};"undefined"!=typeof window&&window.Vue&&fn(window.Vue);export{Co as Cube,Uo as Goods,Xo as GoodsOne,Bo as Search,Vo as Slider,Po as Title,fn as default};
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// Import vue component
|
|
2
|
-
import { Goods, Title, Cube, Search } from
|
|
2
|
+
import { Goods, Title, Cube, Search, Slider, GoodsOne } from "./package";
|
|
3
3
|
|
|
4
|
-
const components = [Goods, Title, Cube, Search];
|
|
4
|
+
const components = [Goods, Title, Cube, Search, Slider, GoodsOne];
|
|
5
5
|
|
|
6
6
|
// will install the plugin only once
|
|
7
7
|
const install = function (Vue) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
components.forEach((component) => {
|
|
9
|
+
Vue.component(component.name, component);
|
|
10
|
+
});
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
if (typeof window !==
|
|
14
|
-
|
|
13
|
+
if (typeof window !== "undefined" && window.Vue) {
|
|
14
|
+
install(window.Vue);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export * from
|
|
17
|
+
export * from "./package";
|
|
18
18
|
|
|
19
19
|
export default install;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<view class="three-layout">
|
|
4
|
+
<view class="three-layout-title" @click="jumpToSearch(floorList.cmsContlistReDomainList)">
|
|
5
|
+
<view class="top-left" v-if="floorList.conttitleNameNow">{{ floorList.conttitleNameNow || "" }} </view>
|
|
6
|
+
<view class="top-right">
|
|
7
|
+
<view>更多</view>
|
|
8
|
+
<image :lazy-load="true" src="@/static/car/arrow.png"></image>
|
|
9
|
+
</view>
|
|
10
|
+
</view>
|
|
11
|
+
|
|
12
|
+
<view class="three-layout-content">
|
|
13
|
+
<view class="three-layout-bigImg">
|
|
14
|
+
<image :lazy-load="true" :src="floorList.conttitlePicurlNow ? checkImgUrl(floorList.conttitlePicurlNow) : ''" mode="aspectFill"></image>
|
|
15
|
+
</view>
|
|
16
|
+
<view class="three-layout-goods">
|
|
17
|
+
<scroll-view scroll-x="true" scroll-with-animation="true" class="scroll-list scroll-top">
|
|
18
|
+
<view class="scroll-item" v-for="(item, index) in floorList.cmsContlistReDomainList" :key="index" @click="toDetail(item.contlistPicurl3)">
|
|
19
|
+
<image :lazy-load="true" :src="checkImgUrl(item.contlistCon || item.contlistPicurl)" mode="aspectFill" lazy-load="true"></image>
|
|
20
|
+
<view class="mask-three-more" v-if="item.goodsSupplynum <= 0 || item.goodsProperty5 === '1'">{{ maskTitle(item.goodsProperty5) }}</view>
|
|
21
|
+
<p><vop-label :goodsType="item.contlistPrice1"></vop-label>{{ item.contlistName }}</p>
|
|
22
|
+
<view class="price-box">
|
|
23
|
+
<view class="now-price">¥{{ $toFix(item.contlistPrice, 2, 2) || 0 }}</view>
|
|
24
|
+
<view class="origin-price" v-if="item.contlistConNow == 1"> ¥{{ $toFix(item.contlistPicurl1, 2, 2) || 0 }}</view>
|
|
25
|
+
</view>
|
|
26
|
+
</view>
|
|
27
|
+
</scroll-view>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import { checkImgUrl } from "@/utils/checkImg.js";
|
|
36
|
+
export default {
|
|
37
|
+
props: {
|
|
38
|
+
floorList: Object, // 楼层数据
|
|
39
|
+
floorSymbol: String,
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
checkImgUrl,
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
toDetail(item) {
|
|
48
|
+
this.$emit("toDetail", item);
|
|
49
|
+
},
|
|
50
|
+
jumpToSearch(item) {
|
|
51
|
+
this.$emit("jumpToSearch", item, 1);
|
|
52
|
+
},
|
|
53
|
+
maskTitle(presale) {
|
|
54
|
+
if (presale === "1") {
|
|
55
|
+
return "预售中";
|
|
56
|
+
} else {
|
|
57
|
+
return "无库存";
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
mounted() {
|
|
62
|
+
// console.log(this.floorList, 'mounted');
|
|
63
|
+
},
|
|
64
|
+
watch: {},
|
|
65
|
+
filters: {},
|
|
66
|
+
};
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<style lang="scss" scoped>
|
|
70
|
+
// 布局为三个一行排列方式 , 也为一部分通用部分
|
|
71
|
+
.three-layout {
|
|
72
|
+
// margin: 30rpx 25rpx;
|
|
73
|
+
// box-shadow: 0px 10rpx 20rpx 0px rgba(0, 0, 0, 0.1);
|
|
74
|
+
border-radius: 14rpx;
|
|
75
|
+
// background: pink;
|
|
76
|
+
// padding: 27rpx 20rpx 0rpx;
|
|
77
|
+
.mask {
|
|
78
|
+
position: absolute;
|
|
79
|
+
display: block;
|
|
80
|
+
width: 108rpx;
|
|
81
|
+
height: 108rpx;
|
|
82
|
+
line-height: 108rpx;
|
|
83
|
+
background-color: #000;
|
|
84
|
+
opacity: 0.5;
|
|
85
|
+
font-size: 26 rpx;
|
|
86
|
+
text-align: center;
|
|
87
|
+
color: #ffffff;
|
|
88
|
+
}
|
|
89
|
+
.mask-three-nomore {
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 0;
|
|
92
|
+
display: block;
|
|
93
|
+
width: 196rpx;
|
|
94
|
+
height: 196rpx;
|
|
95
|
+
line-height: 196rpx;
|
|
96
|
+
background-color: #000;
|
|
97
|
+
opacity: 0.5;
|
|
98
|
+
font-size: 26 rpx;
|
|
99
|
+
text-align: center;
|
|
100
|
+
color: #ffffff;
|
|
101
|
+
}
|
|
102
|
+
.mask-three-more {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 0rpx;
|
|
105
|
+
display: block;
|
|
106
|
+
width: 196rpx;
|
|
107
|
+
height: 196rpx;
|
|
108
|
+
line-height: 196rpx;
|
|
109
|
+
background-color: #000;
|
|
110
|
+
opacity: 0.5;
|
|
111
|
+
font-size: 26 rpx;
|
|
112
|
+
text-align: center;
|
|
113
|
+
color: #ffffff;
|
|
114
|
+
}
|
|
115
|
+
.three-layout-title {
|
|
116
|
+
margin: 30rpx 25rpx;
|
|
117
|
+
display: flex;
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
.top-left {
|
|
120
|
+
font-size: 32rpx;
|
|
121
|
+
font-family: PingFangSC-Semibold, PingFang SC;
|
|
122
|
+
font-weight: 600;
|
|
123
|
+
color: #333333;
|
|
124
|
+
line-height: 44rpx;
|
|
125
|
+
}
|
|
126
|
+
.top-right {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
view {
|
|
130
|
+
color: #595959;
|
|
131
|
+
font-size: 24rpx;
|
|
132
|
+
}
|
|
133
|
+
image {
|
|
134
|
+
width: 12rpx;
|
|
135
|
+
height: 18rpx;
|
|
136
|
+
margin-left: 6rpx;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.three-layout-content {
|
|
141
|
+
margin: 30rpx 29rpx;
|
|
142
|
+
box-shadow: 0px 10rpx 20rpx 0px rgba(0, 0, 0, 0.1);
|
|
143
|
+
border-radius: 14rpx;
|
|
144
|
+
// border: 4rpx solid #f6f6f6;
|
|
145
|
+
background: #fff;
|
|
146
|
+
.three-layout-bigImg {
|
|
147
|
+
image {
|
|
148
|
+
border-radius: 14rpx 14rpx 0 0;
|
|
149
|
+
display: inline-block;
|
|
150
|
+
width: 100%;
|
|
151
|
+
height: 378rpx;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
.three-layout-goods {
|
|
155
|
+
display: flex;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
padding: 0rpx 20rpx;
|
|
158
|
+
padding-bottom: 20rpx;
|
|
159
|
+
.goods-items {
|
|
160
|
+
width: 212rpx;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.scroll-list {
|
|
167
|
+
width: 100%;
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
// padding: 0 16rpx;
|
|
171
|
+
display: flex;
|
|
172
|
+
justify-content: space-between;
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
// margin-top: 20rpx;
|
|
175
|
+
|
|
176
|
+
.scroll-item {
|
|
177
|
+
display: inline-block;
|
|
178
|
+
margin-right: 20rpx;
|
|
179
|
+
|
|
180
|
+
image {
|
|
181
|
+
width: 196rpx;
|
|
182
|
+
height: 196rpx;
|
|
183
|
+
border-radius: 10rpx;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
p {
|
|
187
|
+
width: 196rpx;
|
|
188
|
+
white-space: normal;
|
|
189
|
+
display: -webkit-box;
|
|
190
|
+
-webkit-box-orient: vertical;
|
|
191
|
+
-webkit-line-clamp: 1;
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
font-size: 24rpx;
|
|
194
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
195
|
+
font-weight: 400;
|
|
196
|
+
color: #000000;
|
|
197
|
+
line-height: 34rpx;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.price-box {
|
|
201
|
+
margin-top: 5rpx;
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
|
|
205
|
+
.now-price {
|
|
206
|
+
color: #eb2b27;
|
|
207
|
+
font-weight: bold;
|
|
208
|
+
font-size: 24rpx;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.origin-price {
|
|
212
|
+
color: #8c8c8c;
|
|
213
|
+
font-size: 22rpx;
|
|
214
|
+
text-decoration: line-through;
|
|
215
|
+
margin-left: 8rpx;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
.un-scroll-item {
|
|
220
|
+
display: inline-block;
|
|
221
|
+
margin-right: 15rpx;
|
|
222
|
+
|
|
223
|
+
image {
|
|
224
|
+
width: 196rpx;
|
|
225
|
+
height: 196rpx;
|
|
226
|
+
// border-radius: 10rpx;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
p {
|
|
230
|
+
width: 196rpx;
|
|
231
|
+
white-space: normal;
|
|
232
|
+
display: -webkit-box;
|
|
233
|
+
-webkit-box-orient: vertical;
|
|
234
|
+
-webkit-line-clamp: 1;
|
|
235
|
+
overflow: hidden;
|
|
236
|
+
font-size: 24rpx;
|
|
237
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
238
|
+
font-weight: 400;
|
|
239
|
+
color: #000000;
|
|
240
|
+
line-height: 34rpx;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.price-box {
|
|
244
|
+
margin-top: 5rpx;
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
|
|
248
|
+
.now-price {
|
|
249
|
+
color: #eb2b27;
|
|
250
|
+
font-weight: bold;
|
|
251
|
+
font-size: 24rpx;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.origin-price {
|
|
255
|
+
color: #8c8c8c;
|
|
256
|
+
font-size: 22rpx;
|
|
257
|
+
text-decoration: line-through;
|
|
258
|
+
margin-left: 8rpx;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.scroll-top {
|
|
265
|
+
margin-top: 20rpx;
|
|
266
|
+
}
|
|
267
|
+
</style>
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div v-if="!props.goods" :style="noDataStyle">请选择商品样式一</div>
|
|
4
|
+
<div v-else>
|
|
5
|
+
<div class="three-layout">
|
|
6
|
+
<div class="three-layout-title" @click="jumpToSearch()">
|
|
7
|
+
<div class="top-left" v-if="title.isShow">{{ title.title || "" }}</div>
|
|
8
|
+
<div v-if="more === 1" class="top-right">
|
|
9
|
+
<div>更多</div>
|
|
10
|
+
<image :lazy-load="true" src=""></image>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="three-layout-content">
|
|
15
|
+
<div class="three-layout-bigImg">
|
|
16
|
+
<image :lazy-load="true" :src="bill ? bill : ''" mode="aspectFill"></image>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="three-layout-goods">
|
|
19
|
+
<scroll-div scroll-x="true" scroll-with-animation="true" class="scroll-list scroll-top">
|
|
20
|
+
<div class="scroll-item" v-for="(item, index) in listArr" :key="index" @click="toDetail()">
|
|
21
|
+
<image :lazy-load="true" src="" mode="aspectFill" lazy-load="true"></image>
|
|
22
|
+
<div class="mask-three-more" v-if="item.goodsSupplynum <= 0 || item.goodsProperty5 === '1'">{{ maskTitle(item.goodsProperty5) }}</div>
|
|
23
|
+
<p><vop-label :goodsType="item.contlistPrice1"></vop-label>{{ item.contlistName }}</p>
|
|
24
|
+
<div class="price-bo x">
|
|
25
|
+
<div class="now-price">¥{{ toFix(item.contlistPrice, 2, 2) || 0 }}</div>
|
|
26
|
+
<div class="origin-price" v-if="item.contlistConNow == 1">¥{{ toFix(item.contlistPicurl1, 2, 2) || 0 }}</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</scroll-div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<!-- <div v-else>
|
|
36
|
+
<div
|
|
37
|
+
:class="['cube-container', props.arrange === 1 ? 'one' : 'two']"
|
|
38
|
+
:style="{
|
|
39
|
+
paddingTop: props.paddingTop + 'px',
|
|
40
|
+
paddingLeft: props.paddingLeft + 'px',
|
|
41
|
+
paddingRight: props.paddingRight + 'px',
|
|
42
|
+
paddingBottom: props.paddingBottom + 'px',
|
|
43
|
+
gap: props.margin + 'px',
|
|
44
|
+
}"
|
|
45
|
+
>
|
|
46
|
+
<div v-for="(item, index) in listArr" class="cube-item" :key="cyy" @click="goGoodsDetail(item)">
|
|
47
|
+
<img
|
|
48
|
+
:src="item.dataPic"
|
|
49
|
+
mode="widthFix"
|
|
50
|
+
alt=""
|
|
51
|
+
:style="{
|
|
52
|
+
borderRadius: props.circular === 2 ? '0px' : '10px',
|
|
53
|
+
}"
|
|
54
|
+
/>
|
|
55
|
+
<div class="goodsName">{{ item.goodsName }}</div>
|
|
56
|
+
<div class="goodsPrice">
|
|
57
|
+
¥{{ item.pricesetNprice }}
|
|
58
|
+
<div class="scribing" v-if="props.markedPrice === 1">¥{{ item.pricesetMakeprice }}</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div> -->
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
import { fetchGoodImpl, isLc } from "../../utils/index.js";
|
|
68
|
+
import { get } from "lodash-es";
|
|
69
|
+
export default {
|
|
70
|
+
name: "cyy-goodsOne",
|
|
71
|
+
props: {
|
|
72
|
+
props: {
|
|
73
|
+
title: Object,
|
|
74
|
+
more: Number,
|
|
75
|
+
bill: String,
|
|
76
|
+
SelectGoods: Object,
|
|
77
|
+
arrange: Number,
|
|
78
|
+
circular: Number,
|
|
79
|
+
margin: Number,
|
|
80
|
+
markedPrice: Number,
|
|
81
|
+
paddingTop: Number,
|
|
82
|
+
paddingLeft: Number,
|
|
83
|
+
paddingRight: Number,
|
|
84
|
+
paddingBottom: Number,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
data() {
|
|
88
|
+
return {
|
|
89
|
+
listArr: [],
|
|
90
|
+
noDataStyle: {
|
|
91
|
+
width: "100%",
|
|
92
|
+
height: "180px",
|
|
93
|
+
lineHeight: "180px",
|
|
94
|
+
fontSize: "30px",
|
|
95
|
+
backgroundColor: "#ccc",
|
|
96
|
+
color: "#aaa",
|
|
97
|
+
textAlign: "center",
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
mounted() {
|
|
102
|
+
console.log(75);
|
|
103
|
+
this.init();
|
|
104
|
+
},
|
|
105
|
+
methods: {
|
|
106
|
+
async init() {
|
|
107
|
+
const { goods = [] } = this.props;
|
|
108
|
+
const goodsCode = goods.toString();
|
|
109
|
+
const paramObj = { goodsCode };
|
|
110
|
+
const res = await fetchGoodImpl(this, paramObj);
|
|
111
|
+
this.listArr = get(res, "list", []);
|
|
112
|
+
console.log("🐽🐽🐽🐽🐽🐽🐽🐽", this.listArr);
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
goGoodsDetail(item) {
|
|
116
|
+
if (isLc) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const { skuCode, skuNo } = item;
|
|
120
|
+
let params = {
|
|
121
|
+
skuCode: skuCode,
|
|
122
|
+
skuNo: skuNo,
|
|
123
|
+
};
|
|
124
|
+
this.$routers.push("detail", params);
|
|
125
|
+
},
|
|
126
|
+
jumpToSearch() {},
|
|
127
|
+
},
|
|
128
|
+
maskTitle(presale) {
|
|
129
|
+
if (presale === "1") {
|
|
130
|
+
return "预售中";
|
|
131
|
+
} else {
|
|
132
|
+
return "无库存";
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
</script>
|
|
137
|
+
|
|
138
|
+
<style lang="less" scoped>
|
|
139
|
+
.three-layout {
|
|
140
|
+
border-radius: 28px;
|
|
141
|
+
.mask-three-more {
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 0px;
|
|
144
|
+
display: block;
|
|
145
|
+
width: 392px;
|
|
146
|
+
height: 392px;
|
|
147
|
+
line-height: 392px;
|
|
148
|
+
background-color: #000;
|
|
149
|
+
opacity: 0.5;
|
|
150
|
+
font-size: 52px;
|
|
151
|
+
text-align: center;
|
|
152
|
+
color: #ffffff;
|
|
153
|
+
}
|
|
154
|
+
.three-layout-title {
|
|
155
|
+
margin: 60px 50px;
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: space-between;
|
|
158
|
+
.top-left {
|
|
159
|
+
font-size: 64px;
|
|
160
|
+
font-family: PingFangSC-Semibold, PingFang SC;
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
color: #333333;
|
|
163
|
+
line-height: 88px;
|
|
164
|
+
}
|
|
165
|
+
.top-right {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
div {
|
|
169
|
+
color: #595959;
|
|
170
|
+
font-size: 48px;
|
|
171
|
+
}
|
|
172
|
+
image {
|
|
173
|
+
width: 24px;
|
|
174
|
+
height: 36px;
|
|
175
|
+
margin-left: 12px;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.three-layout-content {
|
|
180
|
+
margin: 60px 58px;
|
|
181
|
+
box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.1);
|
|
182
|
+
border-radius: 28px;
|
|
183
|
+
background: #fff;
|
|
184
|
+
.three-layout-bigImg {
|
|
185
|
+
image {
|
|
186
|
+
border-radius: 28px 28px 0 0;
|
|
187
|
+
display: inline-block;
|
|
188
|
+
width: 100%;
|
|
189
|
+
height: 756px;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
.three-layout-goods {
|
|
193
|
+
display: flex;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
padding: 0px 40px;
|
|
196
|
+
padding-bottom: 40px;
|
|
197
|
+
.goods-items {
|
|
198
|
+
width: 424px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.scroll-list {
|
|
205
|
+
width: 100%;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
overflow: hidden;
|
|
208
|
+
display: flex;
|
|
209
|
+
justify-content: space-between;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
|
|
212
|
+
.scroll-item {
|
|
213
|
+
display: inline-block;
|
|
214
|
+
margin-right: 40px;
|
|
215
|
+
|
|
216
|
+
image {
|
|
217
|
+
width: 392px;
|
|
218
|
+
height: 392px;
|
|
219
|
+
border-radius: 20px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
p {
|
|
223
|
+
width: 392px;
|
|
224
|
+
white-space: normal;
|
|
225
|
+
display: -webkit-box;
|
|
226
|
+
-webkit-box-orient: vertical;
|
|
227
|
+
-webkit-line-clamp: 1;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
font-size: 48px;
|
|
230
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
231
|
+
font-weight: 400;
|
|
232
|
+
color: #000000;
|
|
233
|
+
line-height: 68px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.scroll-top {
|
|
239
|
+
margin-top: 40px;
|
|
240
|
+
}
|
|
241
|
+
</style>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Title } from "./cyy-title/cyy-title.vue";
|
|
2
|
+
export { default as Cube } from "./cyy-image/cyy-image.vue";
|
|
3
|
+
export { default as Search } from "./cyy-search/cyy-search.vue";
|
|
4
|
+
export { default as Goods } from "./cyy-goods/cyy-goods.vue";
|
|
5
|
+
export { default as Slider } from "./cyy-slider/cyy-slider.vue";
|
|
6
|
+
export { default as GoodsOne } from "./cyy-goodsOne/cyy-goodsOne.vue";
|
package/src/components/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as Title } from './cyy-title/cyy-title.vue';
|
|
2
|
-
export { default as Cube } from './cyy-image/cyy-image.vue';
|
|
3
|
-
export { default as Search } from './cyy-search/cyy-search.vue';
|
|
4
|
-
export { default as Goods } from './cyy-goods/cyy-goods.vue';
|
|
5
|
-
export { default as Slider } from './cyy-slider/cyy-slider.vue';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|