提交 ded8fee8 编写于 作者: zhangzhiwei's avatar zhangzhiwei

.

上级 c79c91b7
.image-container[data-v-196c542a]{background-color:#fff;border-top-left-radius:10px;border-top-right-radius:10px;overflow:hidden}.image-container .van-image[data-v-196c542a]{width:100%;height:100%;border-radius:inherit}
import{q as e,e as t,f as a,h as s,w as l,i,j as d,l as o,t as f,x as r,v as n}from"./index.b2bc642a.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";var p=c({props:{item:{type:Object,default:()=>({})}},methods:{goto(t){t&&e({url:t})}}},[["render",function(e,c,p,u,g,m){const x=t("van-image"),_=r,h=n;return a(),s(h,null,{default:l((()=>[i("div",{class:"image-container",onClick:c[0]||(c[0]=e=>m.goto(`/pages/good/detail?skuId=${p.item.skuId}&spuId=${p.item.spuId}`))},[d(x,{fit:"cover","lazy-load":"",src:p.item.mainImg,"loading-icon":"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png","icon-size":"30vw"},null,8,["src"])]),d(_,{class:"text-s ellipsis line_over2",style:{height:"32px","text-align":"left",background:"#ffffff",padding:"15rpx"}},{default:l((()=>[o(f(p.item.title),1)])),_:1}),d(h,{style:{display:"flex",background:"#ffffff",padding:"15rpx"}},{default:l((()=>[d(h,{class:"text-orange text-ss"},{default:l((()=>[o("¥ "),d(_,{class:"text-bold text-l"},{default:l((()=>[o(f(p.item.salePrice),1)])),_:1})])),_:1}),d(h,{class:"text-ss",style:{"margin-left":"16rpx"}},{default:l((()=>[d(_,{class:"text-gray text-ss line-through"},{default:l((()=>[o("¥"+f(p.item.salePrice),1)])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-196c542a"]]);export{p as S};
.van-sidebar-item--select[data-v-05decbec]:before{background-color:#eba926}.container[data-v-05decbec]{-webkit-overflow-scrolling:touch}.right_side[data-v-05decbec]{position:fixed;width:.45rem;height:100%;right:0;top:2.6rem;z-index:999}.right_side .letter_slider[data-v-05decbec]{position:absolute;width:1.6rem;overflow:hidden;right:0;top:0;height:87%;overflow-y:auto;z-index:9999}.right_side .letter_slider_li[data-v-05decbec]{height:2rem;line-height:2rem;text-align:center;font-size:.9rem;color:#858585}.right-content[data-v-05decbec]{flex:1;height:88vh;overflow-x:scroll;padding-bottom:10px}.sidebar[data-v-05decbec]{height:88vh;overflow-x:scroll;-webkit-overflow-scrolling:touch}.main[data-v-05decbec]{display:flex}.box[data-v-6ddca230]{padding:.225rem;margin:.425rem 0;box-shadow:.0625rem .3125rem .3125rem #fff;text-align:center;background:#f1f5f8;border:1px solid #d6d8d9;-webkit-overflow-scrolling:touch}.right_side[data-v-6ddca230]{position:fixed;width:.55rem;height:100%;right:0;top:2.6rem;z-index:999}.right_side .letter_slider[data-v-6ddca230]{position:absolute;width:1.8rem;overflow:hidden;right:0;top:0;background:#ffffff;height:87%;overflow-y:auto;z-index:999}.right_side .letter_slider_li[data-v-6ddca230]{height:2rem;line-height:2rem;text-align:center;font-size:1rem;color:#858585}.radio[data-v-6ddca230]{margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #dcdcdc;padding-left:1rem}.radio[data-v-6ddca230]:first-child{padding-top:1rem}.radio[data-v-6ddca230]:last-child{margin-bottom:0}.last_box[data-v-6ddca230]:last-child{padding-bottom:2.6rem}
.container[data-v-a43bfe7a]{-webkit-overflow-scrolling:touch}.right_side[data-v-a43bfe7a]{position:fixed;width:.45rem;height:100%;right:0;top:2.6rem;z-index:999}.right_side .letter_slider[data-v-a43bfe7a]{position:absolute;width:1.6rem;overflow:hidden;right:0;top:0;height:87%;overflow-y:auto;z-index:9999}.right_side .letter_slider_li[data-v-a43bfe7a]{height:2rem;line-height:2rem;text-align:center;font-size:.9rem;color:#858585}.right-content[data-v-a43bfe7a]{flex:1;height:88vh;overflow-x:scroll;padding-bottom:10px}.sidebar[data-v-a43bfe7a]{height:88vh;overflow-x:scroll;-webkit-overflow-scrolling:touch}.main[data-v-a43bfe7a]{display:flex}.box[data-v-5015c704]{padding:.225rem;margin:.425rem 0;box-shadow:.0625rem .3125rem .3125rem #fff;text-align:center;background:#f1f5f8;border:1px solid #d6d8d9;-webkit-overflow-scrolling:touch}.right_side[data-v-5015c704]{position:fixed;width:.55rem;height:100%;right:0;top:2.6rem;z-index:999}.right_side .letter_slider[data-v-5015c704]{position:absolute;width:1.8rem;overflow:hidden;right:0;top:0;background:#ffffff;height:87%;overflow-y:auto;z-index:999}.right_side .letter_slider_li[data-v-5015c704]{height:2rem;line-height:2rem;text-align:center;font-size:1rem;color:#858585}.radio[data-v-5015c704]{margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #dcdcdc;padding-left:1rem}.radio[data-v-5015c704]:first-child{padding-top:1rem}.radio[data-v-5015c704]:last-child{margin-bottom:0}.last_box[data-v-5015c704]:last-child{padding-bottom:2.6rem}
.sign[data-v-cfc62460]{position:absolute;right:1.8vw;top:2vw;width:40px;text-align:center}.sign img[data-v-cfc62460]{width:40px;margin-bottom:-18px}.sign .discount[data-v-cfc62460]{font-family:MiSans-Semibold;text-shadow:.5px .5px #ddd;color:#a532e0;font-weight:1000;font-size:12px}[data-v-cfc62460]:root{--van-sidebar-selected-border-height: 30px}.search_bar[data-v-cfc62460]{position:fixed;top:0;left:0;right:0;width:100vw;z-index:5}.banner_top[data-v-cfc62460]{height:43.5vw}.banner_afterTop[data-v-cfc62460],.banner_afterTap[data-v-cfc62460]{height:20vw}.block_title[data-v-cfc62460]{margin:40 rpx auto 25 rpx auto;width:60vw}.down_price[data-v-cfc62460]{transition:all ease-in-out .2s;transform:rotate(90deg)}.up_price[data-v-cfc62460]{transition:all ease-in-out .2s;transform:rotate(-90deg)}
.sign[data-v-e403999e]{position:absolute;right:1.8vw;top:2vw;width:40px;text-align:center}.sign img[data-v-e403999e]{width:40px;margin-bottom:-18px}.sign .discount[data-v-e403999e]{font-family:MiSans-Semibold;text-shadow:.5px .5px #ddd;color:#a532e0;font-weight:1000;font-size:12px}[data-v-e403999e]:root{--van-sidebar-selected-border-height: 30px}.search_bar[data-v-e403999e]{position:fixed;top:0;left:0;right:0;width:100vw;z-index:5}.banner_top[data-v-e403999e]{height:43.5vw}.banner_afterTop[data-v-e403999e],.banner_afterTap[data-v-e403999e]{height:20vw}.block_title[data-v-e403999e]{margin:40 rpx auto 25 rpx auto;width:60vw}.down_price[data-v-e403999e]{transition:all ease-in-out .2s;transform:rotate(90deg)}.up_price[data-v-e403999e]{transition:all ease-in-out .2s;transform:rotate(-90deg)}
.card-div[data-v-f90fa3b0]{position:relative;margin:0 auto;width:21.5625rem;height:9.90625rem;background:#FFFFFF;box-shadow:0 .125rem .5rem rgba(0,0,0,.12);border-radius:.5rem}.card-div .dianpu[data-v-f90fa3b0]{background-color:#fef9ef;box-sizing:content-box;height:3.125rem;line-height:3.125rem;border-radius:0 0 .5rem .5rem;position:absolute;bottom:0;right:0;left:0}.sign[data-v-f90fa3b0]{position:absolute;right:1.8vw;top:2vw;width:40px;text-align:center}.sign img[data-v-f90fa3b0]{width:40px;margin-bottom:-18px}.sign .discount[data-v-f90fa3b0]{font-family:MiSans-Semibold;text-shadow:.5px .5px #ddd;color:#a532e0;font-weight:1000;font-size:12px}.wrapper1[data-v-f90fa3b0]{display:flex;align-items:center;justify-content:center;height:100%}.block1[data-v-f90fa3b0]{text-align:left;padding:0 10px;border-radius:10px;width:85%;background-color:#fff}.search_bar[data-v-f90fa3b0]{width:100vw}.banner_top[data-v-f90fa3b0]{height:43.5vw}.banner_afterTop[data-v-f90fa3b0],.banner_afterTap[data-v-f90fa3b0]{height:20vw}.block_title[data-v-f90fa3b0]{margin:1.25rem auto .78125rem;width:60vw}.sign[data-v-68e2f486]{position:absolute;right:1.8vw;top:0;width:40px;text-align:center}.sign img[data-v-68e2f486]{width:40px;margin-bottom:-18px}.sign .discount[data-v-68e2f486]{font-family:MiSans-Semibold;text-shadow:.5px .5px #ddd;color:#a532e0;font-weight:1000;font-size:12px}.swipe_btn[data-v-68e2f486]{height:100%;width:3.125rem;padding:0;font-size:.8125rem}.top_right[data-v-68e2f486]{position:absolute;right:10px}.top_box[data-v-8ccb6154]{background:url(/assets/my_bg.4cbbc5e2.png) no-repeat;background-size:100% auto}.top_box .user_box .user_head[data-v-8ccb6154]{width:78 rpx;height:78 rpx;border:2 rpx solid #fff;position:relative;border-radius:50%}.top_box .user_box .user_head[data-v-8ccb6154]:before{content:"";position:absolute;border-radius:50%;top:0;left:0;right:0;bottom:0;background:linear-gradient(180deg,#ffe5cd 0%,#ffb399 100%)}.top_box .user_box .user_edit[data-v-8ccb6154]{color:#fff;background:rgba(255,255,255,.1);border-radius:50px;border:1px solid rgba(255,255,255,.24);padding:6px 12px;font-size:12px}.top_box .long_action_btn[data-v-8ccb6154]{width:48%}.v-divider[data-v-8ccb6154]{width:.5px;height:20px;background:#DDDDDD} .card-div[data-v-d39ac5ca]{position:relative;margin:0 auto;width:21.5625rem;height:9.90625rem;background:#FFFFFF;box-shadow:0 .125rem .5rem rgba(0,0,0,.12);border-radius:.5rem}.card-div .dianpu[data-v-d39ac5ca]{background-color:#fef9ef;box-sizing:content-box;height:3.125rem;line-height:3.125rem;border-radius:0 0 .5rem .5rem;position:absolute;bottom:0;right:0;left:0}.sign[data-v-d39ac5ca]{position:absolute;right:1.8vw;top:2vw;width:40px;text-align:center}.sign img[data-v-d39ac5ca]{width:40px;margin-bottom:-18px}.sign .discount[data-v-d39ac5ca]{font-family:MiSans-Semibold;text-shadow:.5px .5px #ddd;color:#a532e0;font-weight:1000;font-size:12px}.wrapper1[data-v-d39ac5ca]{display:flex;align-items:center;justify-content:center;height:100%}.block1[data-v-d39ac5ca]{text-align:left;padding:0 10px;border-radius:10px;width:85%;background-color:#fff}.search_bar[data-v-d39ac5ca]{width:100vw}.banner_top[data-v-d39ac5ca]{height:43.5vw}.banner_afterTop[data-v-d39ac5ca],.banner_afterTap[data-v-d39ac5ca]{height:20vw}.block_title[data-v-d39ac5ca]{margin:1.25rem auto .78125rem;width:60vw}.sign[data-v-68e2f486]{position:absolute;right:1.8vw;top:0;width:40px;text-align:center}.sign img[data-v-68e2f486]{width:40px;margin-bottom:-18px}.sign .discount[data-v-68e2f486]{font-family:MiSans-Semibold;text-shadow:.5px .5px #ddd;color:#a532e0;font-weight:1000;font-size:12px}.swipe_btn[data-v-68e2f486]{height:100%;width:3.125rem;padding:0;font-size:.8125rem}.top_right[data-v-68e2f486]{position:absolute;right:10px}.top_box[data-v-6572c42a]{background:url(/assets/my_bg.4cbbc5e2.png) no-repeat;background-size:100% auto}.top_box .user_box .user_head[data-v-6572c42a]{width:78 rpx;height:78 rpx;border:2 rpx solid #fff;position:relative;border-radius:50%}.top_box .user_box .user_head[data-v-6572c42a]:before{content:"";position:absolute;border-radius:50%;top:0;left:0;right:0;bottom:0;background:linear-gradient(180deg,#ffe5cd 0%,#ffb399 100%)}.top_box .user_box .user_edit[data-v-6572c42a]{color:#fff;background:rgba(255,255,255,.1);border-radius:50px;border:1px solid rgba(255,255,255,.24);padding:6px 12px;font-size:12px}.top_box .long_action_btn[data-v-6572c42a]{width:48%}.v-divider[data-v-6572c42a]{width:.5px;height:20px;background:#DDDDDD}
import{d as a,r as e,P as t,z as n,o as l,v as o,c as s,g as d,f as r,h as i,w as u,j as c,l as m,t as g,u as b,m as f,n as h,F as v,e as p,x as I,C as k,k as P}from"./index.4b423d79.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";var _=y(a({setup(a){const y=e({title:t.getTitle(),tab:{active:"detail",list:[{title:"详情",name:"detail",url:""},{title:"图+二维码",name:"pictureAndQrCode",url:""},{title:"二维码",name:"qrCode",url:""},{title:"无底高清",name:"skuImage",url:""},{title:"吊牌",name:"handTag",url:""}]},skuId:"",data:{},brand:{},otherInfo:{color:"",material:""}}),_=n((()=>{var a;if(!(null==(a=y.data)?void 0:a.skuJson))return"";return y.data.skuJson.find((a=>a.skuId==y.skuId))}));function C(a){const e=new Blob([a],{type:"image/jpg"});return new Promise(((a,t)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>a(n.result),n.onerror=a=>t(a)}))}function L(a){_.value&&("detail"==a?function(){console.log(y.otherInfo,"state.otherInfo");const a=y.tab.list.find((a=>"detail"==a.name));a&&!a.url&&s.imageDetail({brandLogo:y.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,productPrice:_.value.productPrice,salePrice:_.value.salePrice,skuId:y.skuId,domain:d("subdomain"),specify:`W${_.value.specWidth}*H${_.value.specHeight}*D${_.value.specLength}`,color:y.otherInfo.color,lights:_.value.lightSourceCount||"",material:y.otherInfo.material,isSJS:null!==_.value.salePrice?1:0}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"pictureAndQrCode"==a?function(){const a=y.tab.list.find((a=>"pictureAndQrCode"==a.name));a&&!a.url&&s.pictureAndQrCode({brandLogo:y.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,skuId:y.skuId,domain:d("subdomain")}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"qrCode"==a?function(){const a=y.tab.list.find((a=>"qrCode"==a.name));a&&!a.url&&s.imageQrCode({brandLogo:y.brand.brandLogo,model:_.value.model,skuId:y.skuId,domain:d("subdomain")}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"skuImage"==a?function(){const a=y.tab.list.find((a=>"skuImage"==a.name));a&&!a.url&&s.skuImage({brandLogo:y.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,productPrice:_.value.productPrice,salePrice:_.value.salePrice,skuId:y.skuId,domain:d("subdomain"),specify:`W${_.value.specWidth}*H${_.value.specHeight}*D${_.value.specLength}`,color:y.otherInfo.color,lights:_.value.lightSourceCount||"",material:y.otherInfo.material,isSJS:null!==_.value.salePrice?1:0}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"handTag"==a&&function(){const a=y.tab.list.find((a=>"handTag"==a.name));a&&!a.url&&s.handTag({brandLogo:y.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,productPrice:_.value.productPrice,skuId:y.skuId,domain:d("subdomain"),specify:`W${_.value.specWidth}*H${_.value.specHeight}*D${_.value.specLength}`,classify:y.data.classify,brandName:y.brand.brandName,material:y.otherInfo.material}).then((e=>{C(e).then((e=>{a.url=e}))}))}())}function w(){t.goBack()}return l((()=>{const a=t.getCurQuery();y.skuId=a.skuId,y.skuId?s.getProduct(y.skuId,{domain:d("subdomain")}).then((a=>{y.data=a;const e=y.data.labelJson.find((a=>"10011"==a.labelNum)),t=y.data.labelJson.find((a=>"10010"==a.labelNum));e&&(y.otherInfo.color=e.labelParams.map((a=>a.name)).join(",")),t&&(y.otherInfo.material=t.labelParams.map((a=>a.name)).join(",")),s.brandInfo({brandId:y.data.brandId}).then((a=>{y.brand=a;const e=y.tab.list.find((a=>a.name==y.tab.active));L(e?e.name:y.tab.list[0].name)}))})):o({url:"/pages/index"})})),(a,e)=>{const t=p("van-icon"),n=I,l=p("van-tab"),o=p("van-tabs"),s=p("van-sticky"),d=p("van-image");return r(),i(n,{class:"text-center"},{default:u((()=>[c(s,null,{default:u((()=>[c(n,{class:"sh mg-b-40"},{default:u((()=>[c(n,{class:"top-bar justify-center bg-white"},{default:u((()=>[c(t,{class:"top-left",name:"arrow-left",onClick:w}),c(n,{class:"top-center"},{default:u((()=>[m(g(b(y).title),1)])),_:1})])),_:1}),c(o,{class:"top_tab",active:b(y).tab.active,"onUpdate:active":e[0]||(e[0]=a=>b(y).tab.active=a),onChange:L,scrollspy:""},{default:u((()=>[(r(!0),f(v,null,h(b(y).tab.list,((a,e)=>(r(),i(l,{name:a.name},{title:u((()=>[c(n,{style:k(1==e?"width:78px":"")},{default:u((()=>[m(g(a.title),1)])),_:2},1032,["style"])])),_:2},1032,["name"])))),256))])),_:1},8,["active"])])),_:1})])),_:1}),c(n,{style:{height:"140vw"}},{default:u((()=>[(r(!0),f(v,null,h(b(y).tab.list,((a,e)=>(r(),f(v,null,[b(y).tab.active==a.name&&a.url?(r(),i(d,{key:0,"lazy-load":"","loading-icon":"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png","icon-size":"81vw",height:"126vw",width:"81vw",src:a.url},null,8,["src"])):P("v-if",!0)],64)))),256))])),_:1}),c(n,{class:"text-gray pd-20"},{default:u((()=>[m(g(">>长按上方图片保存<<"))])),_:1})])),_:1})}}}),[["__scopeId","data-v-f2a86a04"]]);export{_ as default}; import{d as a,r as e,P as t,y as n,o as l,q as o,c as s,g as d,f as r,h as i,w as u,j as c,l as m,t as b,u as g,m as f,n as h,F as v,e as p,v as I,C as k,k as y}from"./index.b2bc642a.js";import{_ as P}from"./plugin-vue_export-helper.21dcd24c.js";var _=P(a({setup(a){const P=e({title:t.getTitle(),tab:{active:"detail",list:[{title:"详情",name:"detail",url:""},{title:"图+二维码",name:"pictureAndQrCode",url:""},{title:"二维码",name:"qrCode",url:""},{title:"无底高清",name:"skuImage",url:""},{title:"吊牌",name:"handTag",url:""}]},skuId:"",data:{},brand:{},otherInfo:{color:"",material:""}}),_=n((()=>{var a;if(!(null==(a=P.data)?void 0:a.skuJson))return"";return P.data.skuJson.find((a=>a.skuId==P.skuId))}));function C(a){const e=new Blob([a],{type:"image/jpg"});return new Promise(((a,t)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>a(n.result),n.onerror=a=>t(a)}))}function L(a){_.value&&("detail"==a?function(){console.log(P.otherInfo,"state.otherInfo");const a=P.tab.list.find((a=>"detail"==a.name));a&&!a.url&&s.imageDetail({brandLogo:P.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,productPrice:_.value.productPrice,salePrice:_.value.salePrice,skuId:P.skuId,domain:d("subdomain"),specify:`W${_.value.specWidth}*H${_.value.specHeight}*D${_.value.specLength}`,color:P.otherInfo.color,lights:_.value.lightSourceCount||"",material:P.otherInfo.material,isSJS:null!==_.value.salePrice?1:0}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"pictureAndQrCode"==a?function(){const a=P.tab.list.find((a=>"pictureAndQrCode"==a.name));a&&!a.url&&s.pictureAndQrCode({brandLogo:P.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,skuId:P.skuId,domain:d("subdomain")}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"qrCode"==a?function(){const a=P.tab.list.find((a=>"qrCode"==a.name));a&&!a.url&&s.imageQrCode({brandLogo:P.brand.brandLogo,model:_.value.model,skuId:P.skuId,domain:d("subdomain")}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"skuImage"==a?function(){const a=P.tab.list.find((a=>"skuImage"==a.name));a&&!a.url&&s.skuImage({brandLogo:P.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,productPrice:_.value.productPrice,salePrice:_.value.salePrice,skuId:P.skuId,domain:d("subdomain"),specify:`W${_.value.specWidth}*H${_.value.specHeight}*D${_.value.specLength}`,color:P.otherInfo.color,lights:_.value.lightSourceCount||"",material:P.otherInfo.material,isSJS:null!==_.value.salePrice?1:0}).then((e=>{C(e).then((e=>{a.url=e}))}))}():"handTag"==a&&function(){const a=P.tab.list.find((a=>"handTag"==a.name));a&&!a.url&&s.handTag({brandLogo:P.brand.brandLogo,skuImage:_.value.mainImg,model:_.value.model,productPrice:_.value.productPrice,skuId:P.skuId,domain:d("subdomain"),specify:`W${_.value.specWidth}*H${_.value.specHeight}*D${_.value.specLength}`,classify:P.data.classify,brandName:P.brand.brandName,material:P.otherInfo.material}).then((e=>{C(e).then((e=>{a.url=e}))}))}())}function w(){t.goBack()}return l((()=>{const a=t.getCurQuery();P.skuId=a.skuId,P.skuId?s.getProduct(P.skuId,{domain:d("subdomain")}).then((a=>{P.data=a;const e=P.data.labelJson.find((a=>"10011"==a.labelNum)),t=P.data.labelJson.find((a=>"10010"==a.labelNum));e&&(P.otherInfo.color=e.labelParams.map((a=>a.name)).join(",")),t&&(P.otherInfo.material=t.labelParams.map((a=>a.name)).join(",")),s.brandInfo({brandId:P.data.brandId}).then((a=>{P.brand=a;const e=P.tab.list.find((a=>a.name==P.tab.active));L(e?e.name:P.tab.list[0].name)}))})):o({url:"/pages/index"})})),(a,e)=>{const t=p("van-icon"),n=I,l=p("van-tab"),o=p("van-tabs"),s=p("van-sticky"),d=p("van-image");return r(),i(n,{class:"text-center"},{default:u((()=>[c(s,null,{default:u((()=>[c(n,{class:"sh mg-b-40"},{default:u((()=>[c(n,{class:"top-bar justify-center bg-white"},{default:u((()=>[c(t,{class:"top-left",name:"arrow-left",onClick:w}),c(n,{class:"top-center"},{default:u((()=>[m(b(g(P).title),1)])),_:1})])),_:1}),c(o,{class:"top_tab",active:g(P).tab.active,"onUpdate:active":e[0]||(e[0]=a=>g(P).tab.active=a),onChange:L,scrollspy:""},{default:u((()=>[(r(!0),f(v,null,h(g(P).tab.list,((a,e)=>(r(),i(l,{name:a.name},{title:u((()=>[c(n,{style:k(1==e?"width:78px":"")},{default:u((()=>[m(b(a.title),1)])),_:2},1032,["style"])])),_:2},1032,["name"])))),256))])),_:1},8,["active"])])),_:1})])),_:1}),c(n,{style:{height:"140vw"}},{default:u((()=>[(r(!0),f(v,null,h(g(P).tab.list,((a,e)=>(r(),f(v,null,[g(P).tab.active==a.name&&a.url?(r(),i(d,{key:0,"lazy-load":"","loading-icon":"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png","icon-size":"81vw",height:"126vw",width:"81vw",src:a.url},null,8,["src"])):y("v-if",!0)],64)))),256))])),_:1}),c(n,{class:"text-gray pd-20"},{default:u((()=>[m(b(">>长按上方图片保存<<"))])),_:1})])),_:1})}}}),[["__scopeId","data-v-f2a86a04"]]);export{_ as default};
import{d as t,G as a,r as s,P as e,f as o,h as l,w as r,j as n,l as i,t as c,u as f,e as u,x as d}from"./index.4b423d79.js";import{t as p}from"./toTop.d4ffe9bb.js";import{_ as m}from"./plugin-vue_export-helper.21dcd24c.js";var _=m(t({setup(t){a((t=>{}));const m=s({title:e.getTitle()});function _(){e.goBack()}return(t,a)=>{const s=u("van-icon"),e=d,g=u("van-sticky"),h=u("van-image");return o(),l(e,null,{default:r((()=>[n(g,null,{default:r((()=>[n(e,{class:"top-bar justify-center bg-white sh"},{default:r((()=>[n(s,{class:"top-left",name:"arrow-left",onClick:_}),n(e,{class:"top-center"},{default:r((()=>[i(c(f(m).title),1)])),_:1})])),_:1})])),_:1}),n(h,{width:"100%",src:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/issue.png"}),n(p)])),_:1})}}}),[["__scopeId","data-v-7e910103"]]);export{_ as default};
import{d as a,G as t,r as s,P as e,f as o,h as l,w as r,j as c,l as n,t as i,u,e as f,v as p}from"./index.b2bc642a.js";import{t as d}from"./toTop.fac15c80.js";import{_ as m}from"./plugin-vue_export-helper.21dcd24c.js";var _=m(a({setup(a){t((a=>{}));const m=s({title:e.getTitle()});function _(){e.goBack()}return(a,t)=>{const s=f("van-icon"),e=p,g=f("van-sticky"),h=f("van-image");return o(),l(e,null,{default:r((()=>[c(g,null,{default:r((()=>[c(e,{class:"top-bar justify-center bg-white sh"},{default:r((()=>[c(s,{class:"top-left",name:"arrow-left",onClick:_}),c(e,{class:"top-center"},{default:r((()=>[n(i(u(m).title),1)])),_:1})])),_:1})])),_:1}),c(h,{width:"100%",src:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/issue.png"}),c(d)])),_:1})}}}),[["__scopeId","data-v-7e910103"]]);export{_ as default};
import{c as t,f as a,m as e,j as s,w as i,i as n,t as o,l,e as r,x as d}from"./index.4b423d79.js";import{_ as u}from"./plugin-vue_export-helper.21dcd24c.js";var c=u({name:"technicalSupport",data:()=>({userData:{},url:""}),onLoad:function(t){window.location.href=`https://redirectwx.edstao.com/#/pages/good/share?etaomallId=${t.etaomallId}&link=${t.link}&title=${t.title}&skuId=${t.skuId}&brandName=${t.brandName}&mainImg=${t.mainImg}`},mounted(){this.getUrl(),this.wxSign()},beforeDestroy(){window.location.href=`https://${this.userData.link}.edstao.com/#/pages/good/detail?skuId=${this.userData.skuId}`},methods:{goback(){window.location.href=`https://${this.userData.link}.edstao.com/#/pages/good/detail?skuId=${this.userData.skuId}`},getUrl(){let t=decodeURIComponent(window.location.href);const a={};t.replace(/([^?&=]+)=([^&]+)/g,((t,e,s)=>a[e]=s)),console.log(a,"qqqqqqqqqq"),this.userData=a},wxSign(){let a=this;t.wxSign({skuId:this.userData.skuId,etaomallId:this.userData.etaomallId,url:window.location.href}).then((t=>{a.url=t.redirecturl,a.initWX(t)}))},initWX(t){let a=this;const e=window._wx,s={debug:!1,appId:t.appid,timestamp:t.timestamp,nonceStr:t.nonceStr,signature:t.signature,jsApiList:["updateAppMessageShareData"]};console.log(s),e.config(s),e.ready((function(){e.updateAppMessageShareData({title:"商城-"+a.userData.brandName,desc:a.userData.title,link:t.redirecturl,imgUrl:a.userData.mainImg,success:function(t){}})})),e.error((function(t){}))}}},[["render",function(t,u,c,p,g,m){const h=r("van-icon"),f=d,w=r("van-sticky");return a(),e("div",{style:{background:"#ffffff",height:"100vh","line-height":"50px"}},[s(w,null,{default:i((()=>[s(f,{class:"top-bar top_bar justify-center bg-white sh"},{default:i((()=>[s(h,{class:"top-left",name:"arrow-left",onClick:m.goback},null,8,["onClick"]),n("p",null,"分享详情")])),_:1})])),_:1}),n("div",{style:{padding:"20px"}},[n("p",null,"标题:商城- "+o(g.userData.brandName),1),n("p",null,"商品描述:"+o(g.userData.title),1),n("p",null,[l("商品图片:"),n("img",{style:{width:"120px","vertical-align":"top"},src:g.userData.mainImg,alt:""},null,8,["src"])])])])}]]);export{c as default}; import{c as t,f as a,m as e,j as s,w as i,i as n,t as o,l,e as r,v as d}from"./index.b2bc642a.js";import{_ as u}from"./plugin-vue_export-helper.21dcd24c.js";var c=u({name:"technicalSupport",data:()=>({userData:{},url:""}),onLoad:function(t){window.location.href=`https://redirectwx.edstao.com/#/pages/good/share?etaomallId=${t.etaomallId}&link=${t.link}&title=${t.title}&skuId=${t.skuId}&brandName=${t.brandName}&mainImg=${t.mainImg}`},mounted(){this.getUrl(),this.wxSign()},beforeDestroy(){window.location.href=`https://${this.userData.link}.edstao.com/#/pages/good/detail?skuId=${this.userData.skuId}`},methods:{goback(){window.location.href=`https://${this.userData.link}.edstao.com/#/pages/good/detail?skuId=${this.userData.skuId}`},getUrl(){let t=decodeURIComponent(window.location.href);const a={};t.replace(/([^?&=]+)=([^&]+)/g,((t,e,s)=>a[e]=s)),console.log(a,"qqqqqqqqqq"),this.userData=a},wxSign(){let a=this;t.wxSign({skuId:this.userData.skuId,etaomallId:this.userData.etaomallId,url:window.location.href}).then((t=>{a.url=t.redirecturl,a.initWX(t)}))},initWX(t){let a=this;const e=window._wx,s={debug:!1,appId:t.appid,timestamp:t.timestamp,nonceStr:t.nonceStr,signature:t.signature,jsApiList:["updateAppMessageShareData"]};console.log(s),e.config(s),e.ready((function(){e.updateAppMessageShareData({title:"商城-"+a.userData.brandName,desc:a.userData.title,link:t.redirecturl,imgUrl:a.userData.mainImg,success:function(t){}})})),e.error((function(t){}))}}},[["render",function(t,u,c,p,g,m){const h=r("van-icon"),f=d,w=r("van-sticky");return a(),e("div",{style:{background:"#ffffff",height:"100vh","line-height":"50px"}},[s(w,null,{default:i((()=>[s(f,{class:"top-bar top_bar justify-center bg-white sh"},{default:i((()=>[s(h,{class:"top-left",name:"arrow-left",onClick:m.goback},null,8,["onClick"]),n("p",null,"分享详情")])),_:1})])),_:1}),n("div",{style:{padding:"20px"}},[n("p",null,"标题:商城- "+o(g.userData.brandName),1),n("p",null,"商品描述:"+o(g.userData.title),1),n("p",null,[l("商品图片:"),n("img",{style:{width:"120px","vertical-align":"top"},src:g.userData.mainImg,alt:""},null,8,["src"])])])])}]]);export{c as default};
import{d as a,r as t,o as s,P as e,v as l,f as i,h as n,w as o,j as d,u as c,m as u,n as m,F as r,e as p,x as h,M as f,N as g}from"./index.4b423d79.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";var w=v(a({setup(a){const v=t({tab:{active:0,list:[{name:"W",url:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd1.jpg"},{name:"H",url:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd2.jpg"},{name:"D",url:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd2.jpg"}]},skuId:void 0});function w(){e.goBack()}return s((()=>{const a=e.getCurQuery();v.skuId=a.skuId,v.skuId||l({url:"/pages/index"})})),(a,t)=>{const s=p("van-icon"),e=p("van-tab"),l=p("van-tabs"),b=h,x=p("van-sticky"),O=p("van-image");return i(),n(b,{class:"text-center"},{default:o((()=>[d(x,null,{default:o((()=>[d(b,{class:"justify-center bg-white sh mg-b-40"},{default:o((()=>[d(s,{class:"top-left",name:"arrow-left",onClick:w}),d(l,{class:"top_tab",active:c(v).tab.active,"onUpdate:active":t[0]||(t[0]=a=>c(v).tab.active=a),animated:""},{default:o((()=>[(i(!0),u(r,null,m(c(v).tab.list,(a=>(i(),n(e,{title:a.name},null,8,["title"])))),256))])),_:1},8,["active"])])),_:1})])),_:1}),d(b,{class:"whd_card"},{default:o((()=>[(i(!0),u(r,null,m(c(v).tab.list,((a,t)=>f((i(),n(O,{"loading-icon":"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png","icon-size":"90vw",width:"90vw",src:a.url},null,8,["src"])),[[g,c(v).tab.active==t]]))),256)),d(O,{"loading-icon":"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png","icon-size":"90vw",width:"90vw",src:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd_detail.png"})])),_:1})])),_:1})}}}),[["__scopeId","data-v-644dc77a"]]);export{w as default}; import{d as a,r as t,o as s,P as e,q as l,f as i,h as n,w as o,j as c,u as d,m as u,n as m,F as r,e as p,v as h,M as f,N as g}from"./index.b2bc642a.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";var w=v(a({setup(a){const v=t({tab:{active:0,list:[{name:"W",url:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd1.jpg"},{name:"H",url:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd2.jpg"},{name:"D",url:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd2.jpg"}]},skuId:void 0});function w(){e.goBack()}return s((()=>{const a=e.getCurQuery();v.skuId=a.skuId,v.skuId||l({url:"/pages/index"})})),(a,t)=>{const s=p("van-icon"),e=p("van-tab"),l=p("van-tabs"),b=h,O=p("van-sticky"),T=p("van-image");return i(),n(b,{class:"text-center"},{default:o((()=>[c(O,null,{default:o((()=>[c(b,{class:"justify-center bg-white sh mg-b-40"},{default:o((()=>[c(s,{class:"top-left",name:"arrow-left",onClick:w}),c(l,{class:"top_tab",active:d(v).tab.active,"onUpdate:active":t[0]||(t[0]=a=>d(v).tab.active=a),animated:""},{default:o((()=>[(i(!0),u(r,null,m(d(v).tab.list,(a=>(i(),n(e,{title:a.name},null,8,["title"])))),256))])),_:1},8,["active"])])),_:1})])),_:1}),c(b,{class:"whd_card"},{default:o((()=>[(i(!0),u(r,null,m(d(v).tab.list,((a,t)=>f((i(),n(T,{"loading-icon":"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png","icon-size":"90vw",width:"90vw",src:a.url},null,8,["src"])),[[g,d(v).tab.active==t]]))),256)),c(T,{"loading-icon":"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png","icon-size":"90vw",width:"90vw",src:"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/whd_detail.png"})])),_:1})])),_:1})}}}),[["__scopeId","data-v-644dc77a"]]);export{w as default};
var a=Object.defineProperty,e=Object.defineProperties,o=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,l=(e,o,t)=>o in e?a(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t;import{d as i,G as n,r as d,b as p,g as c,H as f,f as g,h as m,w as u,j as y,i as v,u as h,a2 as b,l as x,B as k,k as w,m as _,n as j,F as O,q as C,c as S,P as I,e as P,v as T}from"./index.b2bc642a.js";import{S as F}from"./ShopCard.f285da36.js";import{t as N}from"./toTop.fac15c80.js";import{_ as U}from"./plugin-vue_export-helper.21dcd24c.js";var V=U(i({setup(a){n((a=>{}));const i=d({skuId:"",spuId:"",params:{},sortType:0,showStyle:!0,active:0,keyword:"",loading:{cartAdd:!1,productFav:!1,brandFav:!1,share:!1},banner:{top:[],afterTop:[],afterTap:[]},good:{loading:!1,finished:!1,fail:!1,page:0,list:[]}});function U(a){i.good.list=[],i.good.page=0,0==a.name&&(i.sortType=0,delete i.params.sort),1==a.name&&(i.sortType=3,1==i.params.sort?i.params.sort=0:i.params.sort=1),z(),2==a.name&&(localStorage.getItem("isClassify")?history.back():C({url:"/pages/classify/index?good=1"}),localStorage.removeItem("isClassify"))}function V(){C({url:"/pages/topSearch/index"})}function z(){var a,n;i.good.loading||i.good.fail||(i.good.loading=!0,++i.good.page,S.productList((a=((a,e)=>{for(var o in e||(e={}))s.call(e,o)&&l(a,o,e[o]);if(t)for(var o of t(e))r.call(e,o)&&l(a,o,e[o]);return a})({sortType:i.sortType},i.params),n={pageNum:i.good.page,pageSize:20,link:c("subdomain")?c("subdomain"):"alisa"},e(a,o(n)))).then((a=>{a&&a.hasNextPage||(i.good.finished=!0),i.good.list.push(...a.list)})).catch((()=>{i.good.fail=!0})).finally((()=>{i.good.loading=!1})))}function B(){i.good.page-=1,i.good.finished=!1,i.good.fail=!1,z()}function L(){I.goBack()}return p((()=>{i.showStyle=""===c("searchCard")||c("searchCard");let a=f().ctx.$page.options||"";if(a){if(a.money){let e="",o="",t=a.money;if(t.indexOf("元以下")>-1)o=t.replace("元以下","");else if(t.indexOf("以上")>-1)e=t.replace("以上","");else{let a=t.replace("元","");e=a.split("-")[0],o=a.split("-")[1]}return i.params.minSalePrice=e,void(i.params.maxSalePrice=o)}a.search&&(i.keyword=decodeURIComponent(a.search)),a.actId&&(i.params.actId=a.actId,i.keyword="");let e=Object.keys(a);i.params[e]=a[e]}i.params=a})),(a,e)=>{const o=P("van-icon"),t=P("van-search"),s=P("van-tab"),r=P("van-tabs"),l=P("van-sticky"),n=P("van-col"),d=P("van-row"),p=P("van-list"),c=T;return g(),m(c,{class:"text-center pd-b-px-55"},{default:u((()=>[y(l,null,{default:u((()=>[v("div",{style:{display:"flex","align-items":"center",background:"#ffffff"}},[y(o,{size:"1.5rem",name:"arrow-left",style:{color:"#757575"},onClick:L}),y(t,{modelValue:h(i).keyword,"onUpdate:modelValue":e[0]||(e[0]=a=>h(i).keyword=a),style:{flex:"1"},placeholder:"请输入搜索关键词",onClick:b(V,["stop"])},null,8,["modelValue","onClick"])]),y(r,{active:h(i).active,"onUpdate:active":e[1]||(e[1]=a=>h(i).active=a),color:"#ff6600","line-width":"206rpx","title-active-color":"#ff6600",onClickTab:U},{default:u((()=>[y(s,{title:"默认"}),y(s,null,{title:u((()=>[x(" 价格 "),void 0!==h(i).params.sort?(g(),m(o,{key:0,class:k(0==h(i).params.sort?"down_price":"up_price"),name:"play"},null,8,["class"])):w("v-if",!0)])),_:1}),y(s,{title:"筛选"})])),_:1},8,["active"])])),_:1}),v("div",{style:{"margin-top":".2rem"}}),y(p,{loading:h(i).good.loading,finished:h(i).good.finished,"finished-text":"没有更多了",onLoad:z},{default:u((()=>[y(d,{gutter:"12",style:{margin:"20rpx 20rpx"}},{default:u((()=>[(g(!0),_(O,null,j(h(i).good.list,(a=>(g(),m(n,{span:"12",style:{"margin-bottom":"25rpx"}},{default:u((()=>[y(F,{item:a},null,8,["item"])])),_:2},1024)))),256))])),_:1})])),_:1},8,["loading","finished"]),h(i).good.fail?(g(),m(c,{key:0,class:"text-ss text-gray pd-50",onClick:B},{default:u((()=>[x("请求失败,点击重试 "),y(o,{name:"replay"})])),_:1})):w("v-if",!0),y(N,{showNav:!0})])),_:1})}}}),[["__scopeId","data-v-e403999e"]]);export{V as default};
import{d as A,r as e,P as t,o as r,c as B,g as n,f as s,h as o,w as i,j as a,l as c,t as Q,u as g,m as w,n as l,F as u,k as U,e as C,x as F,a3 as h,a4 as d,a5 as f}from"./index.4b423d79.js";import{b as p}from"./browser.c7be5676.js";import{_ as H}from"./plugin-vue_export-helper.21dcd24c.js"; import{d as A,r as e,P as t,o as r,c as B,g as n,f as s,h as o,w as i,j as a,l as c,t as Q,u as g,m as w,n as l,F as u,k as U,e as C,v as F,a3 as h,a4 as d,a5 as f}from"./index.b2bc642a.js";import{b as p}from"./browser.c7be5676.js";import{_ as H}from"./plugin-vue_export-helper.21dcd24c.js";
/*! /*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com> * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com> * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
......
此差异已折叠。
此差异已折叠。
import{d as e,r as a,z as s,K as o,o as l,P as t,S as i,g as n,f as d,h as r,w as c,i as p,j as u,l as m,p as g,u as h,k as f,m as w,T as x,c as _,s as y,B as b,q as v,v as k,e as V,x as C,y as H}from"./index.4b423d79.js";import{_ as j}from"./right_rule.083b6d28.js";import{_ as P}from"./favicon.a72fb3d2.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";var F=z(e({setup(e){const z=a({docmHeight:document.documentElement.clientHeight,showHeight:document.documentElement.clientHeight,hideshow:!0,params:{phone:"",pwd:""},showPwd:!1,focus:"",read:!1,store:!1,loading:{login:!1},redirect:void 0,switch:{store:!1}}),F=s((()=>!(!z.params.phone||!z.params.pwd)));function E(){z.read?z.loading.login||(z.loading.login=!0,_.login({mobilePhone:z.params.phone,password:z.params.pwd}).then((e=>{y("login",{store:z.store,phone:z.store?z.params.phone:"",pwd:z.store?z.params.pwd:""}),y("user",e),b({url:z.redirect||"/"})})).finally((()=>{z.loading.login=!1}))):x("请阅读并同意协议")}function U(){v({url:"/pages/my/technicalSupport?name=login"})}function B(e){z.focus=e}function G(e){e&&k({url:e})}function S(){z.showPwd=!z.showPwd}return o([()=>z.showHeight],((e,a)=>{z.docmHeight>z.showHeight?z.hideshow=!1:z.hideshow=!0})),l((()=>{window.onresize=()=>{z.showHeight=document.body.clientHeight};const e=t.getCurQuery();z.redirect=e.redirect,i("user");const a=n("login")||{};z.store=a.store||!1,z.params.phone=a.phone||"",z.params.pwd=a.pwd||""})),(e,a)=>{const s=V("van-icon"),o=C,l=V("van-image"),t=V("van-field"),i=H,n=V("van-button"),x=V("van-checkbox"),_=V("van-form");return d(),r(o,{class:"login-bg"},{default:c((()=>[p("img",{onClick:U,src:j,style:{position:"fixed",right:"0",top:"70%","z-index":"99"},alt:""}),u(o,{class:"pd-40"},{default:c((()=>[u(o,{class:"text-xxl pd-b-20 mg-l-10-m"},{default:c((()=>[u(s,{name:"arrow-left",onClick:a[0]||(a[0]=e=>G("/"))})])),_:1}),u(l,{width:"214rpx",src:"/static/img/logo.png"}),u(o,{class:"text-xxl text-bold pd-v-45"},{default:c((()=>[m("你好,欢迎使用商城。")])),_:1}),u(_,{class:"transparent",onSubmit:E},{default:c((()=>[u(t,{class:g({"field-focus":"phone"==h(z).focus}),modelValue:h(z).params.phone,"onUpdate:modelValue":a[1]||(a[1]=e=>h(z).params.phone=e),placeholder:"请输入手机号",type:"digit",clearable:"",onFocus:a[2]||(a[2]=e=>B("phone")),onBlur:a[3]||(a[3]=e=>B("")),"clear-trigger":"always",name:"phone",autocomplete:"on"},{"left-icon":c((()=>[u(s,{"class-prefix":"icon",name:"shoujihao"})])),_:1},8,["class","modelValue"]),u(t,{class:g({"field-focus":"pwd"==h(z).focus}),modelValue:h(z).params.pwd,"onUpdate:modelValue":a[4]||(a[4]=e=>h(z).params.pwd=e),clearable:"",autocomplete:"off","clear-trigger":"always",placeholder:"请输入密码",type:h(z).showPwd?"text":"password",onFocus:a[5]||(a[5]=e=>B("pwd")),onBlur:a[6]||(a[6]=e=>B(""))},{"left-icon":c((()=>[u(s,{"class-prefix":"icon",name:"mima"})])),"right-icon":c((()=>[u(s,{class:"mg-l-30","class-prefix":"icon",name:h(z).showPwd?"xianshimima":"yincangmima",onClick:S},null,8,["name"])])),_:1},8,["class","modelValue","type"]),u(o,{class:"justify-between pd-t-40 text-ss text-darkGray"},{default:c((()=>[u(o,{class:""},{default:c((()=>[m(" 还没有账号? 立即 "),u(i,{class:"text-orange",onClick:a[7]||(a[7]=e=>G("/pages/login/register"))},{default:c((()=>[m("注册")])),_:1})])),_:1}),u(o,{class:"",onClick:a[8]||(a[8]=e=>G("/pages/login/forget?phone="+h(z).params.phone))},{default:c((()=>[m("忘记密码?")])),_:1})])),_:1}),p("div",{class:"pd-v-50"},[u(n,{disabled:!h(F),"native-type":"submit",class:"text-l",loading:h(z).loading.login,color:h(F)?"linear-gradient(315deg, #FE521F 0%, #FE7902 100%)":"#cccccc",round:"",block:""},{default:c((()=>[m(" 登录 ")])),_:1},8,["disabled","loading","color"])]),u(o,{class:"justify-between text-ss"},{default:c((()=>[u(x,{class:"","icon-size":"17px",modelValue:h(z).read,"onUpdate:modelValue":a[11]||(a[11]=e=>h(z).read=e)},{default:c((()=>[u(o,{class:"text-darkGray"},{default:c((()=>[m(" 阅读并同意 "),u(i,{class:"text-orange",onClick:a[9]||(a[9]=e=>G("/pages/login/policy"))},{default:c((()=>[m("《隐私协议》")])),_:1}),m(" 和 "),u(i,{class:"text-orange",onClick:a[10]||(a[10]=e=>G("/pages/login/service"))},{default:c((()=>[m("《服务协议》")])),_:1})])),_:1})])),_:1},8,["modelValue"]),h(z).switch.store?(d(),r(x,{key:0,class:"scale-9 scale-rt","icon-size":"17px",modelValue:h(z).store,"onUpdate:modelValue":a[12]||(a[12]=e=>h(z).store=e)},{default:c((()=>[u(i,{class:"text-darkGray"},{default:c((()=>[m("记住密码")])),_:1})])),_:1},8,["modelValue"])):f("v-if",!0)])),_:1})])),_:1}),h(z).hideshow?(d(),w("div",{key:0,style:{"text-align":"center",position:"absolute",bottom:"10px",width:"100%",left:"0"},onClick:U},[p("img",{style:{width:"20px",height:"20px","vertical-align":"sub","margin-right":"10px"},src:P,alt:""}),p("span",{style:{color:"#666666"}},"提供技术支持")])):f("v-if",!0)])),_:1})])),_:1})}}}),[["__scopeId","data-v-98e3d766"]]);export{F as default}; import{d as e,r as a,y as s,K as o,o as l,P as t,S as i,g as n,f as d,h as r,w as c,i as p,j as u,l as m,B as g,u as h,k as f,m as w,T as x,c as _,s as y,A as b,p as v,q as k,e as V,v as C,x as H}from"./index.b2bc642a.js";import{_ as j}from"./right_rule.083b6d28.js";import{_ as P}from"./favicon.a72fb3d2.js";import{_ as F}from"./plugin-vue_export-helper.21dcd24c.js";var z=F(e({setup(e){const F=a({docmHeight:document.documentElement.clientHeight,showHeight:document.documentElement.clientHeight,hideshow:!0,params:{phone:"",pwd:""},showPwd:!1,focus:"",read:!1,store:!1,loading:{login:!1},redirect:void 0,switch:{store:!1}}),z=s((()=>!(!F.params.phone||!F.params.pwd)));function E(){F.read?F.loading.login||(F.loading.login=!0,_.login({mobilePhone:F.params.phone,password:F.params.pwd}).then((e=>{y("login",{store:F.store,phone:F.store?F.params.phone:"",pwd:F.store?F.params.pwd:""}),y("user",e),b({url:F.redirect||"/"})})).finally((()=>{F.loading.login=!1}))):x("请阅读并同意协议")}function U(){v({url:"/pages/my/technicalSupport?name=login"})}function B(e){F.focus=e}function G(e){e&&k({url:e})}function S(){F.showPwd=!F.showPwd}return o([()=>F.showHeight],((e,a)=>{F.docmHeight>F.showHeight?F.hideshow=!1:F.hideshow=!0})),l((()=>{window.onresize=()=>{F.showHeight=document.body.clientHeight};const e=t.getCurQuery();F.redirect=e.redirect,i("user");const a=n("login")||{};F.store=a.store||!1,F.params.phone=a.phone||"",F.params.pwd=a.pwd||""})),(e,a)=>{const s=V("van-icon"),o=C,l=V("van-image"),t=V("van-field"),i=H,n=V("van-button"),x=V("van-checkbox"),_=V("van-form");return d(),r(o,{class:"login-bg"},{default:c((()=>[p("img",{onClick:U,src:j,style:{position:"fixed",right:"0",top:"70%","z-index":"99"},alt:""}),u(o,{class:"pd-40"},{default:c((()=>[u(o,{class:"text-xxl pd-b-20 mg-l-10-m"},{default:c((()=>[u(s,{name:"arrow-left",onClick:a[0]||(a[0]=e=>G("/"))})])),_:1}),u(l,{width:"214rpx",src:"/static/img/logo.png"}),u(o,{class:"text-xxl text-bold pd-v-45"},{default:c((()=>[m("你好,欢迎使用商城。")])),_:1}),u(_,{class:"transparent",onSubmit:E},{default:c((()=>[u(t,{class:g({"field-focus":"phone"==h(F).focus}),modelValue:h(F).params.phone,"onUpdate:modelValue":a[1]||(a[1]=e=>h(F).params.phone=e),placeholder:"请输入手机号",type:"digit",clearable:"",onFocus:a[2]||(a[2]=e=>B("phone")),onBlur:a[3]||(a[3]=e=>B("")),"clear-trigger":"always",name:"phone",autocomplete:"on"},{"left-icon":c((()=>[u(s,{"class-prefix":"icon",name:"shoujihao"})])),_:1},8,["class","modelValue"]),u(t,{class:g({"field-focus":"pwd"==h(F).focus}),modelValue:h(F).params.pwd,"onUpdate:modelValue":a[4]||(a[4]=e=>h(F).params.pwd=e),clearable:"",autocomplete:"off","clear-trigger":"always",placeholder:"请输入密码",type:h(F).showPwd?"text":"password",onFocus:a[5]||(a[5]=e=>B("pwd")),onBlur:a[6]||(a[6]=e=>B(""))},{"left-icon":c((()=>[u(s,{"class-prefix":"icon",name:"mima"})])),"right-icon":c((()=>[u(s,{class:"mg-l-30","class-prefix":"icon",name:h(F).showPwd?"xianshimima":"yincangmima",onClick:S},null,8,["name"])])),_:1},8,["class","modelValue","type"]),u(o,{class:"justify-between pd-t-40 text-ss text-darkGray"},{default:c((()=>[u(o,{class:""},{default:c((()=>[m(" 还没有账号? 立即 "),u(i,{class:"text-orange",onClick:a[7]||(a[7]=e=>G("/pages/login/register"))},{default:c((()=>[m("注册")])),_:1})])),_:1}),u(o,{class:"",onClick:a[8]||(a[8]=e=>G("/pages/login/forget?phone="+h(F).params.phone))},{default:c((()=>[m("忘记密码?")])),_:1})])),_:1}),p("div",{class:"pd-v-50"},[u(n,{disabled:!h(z),"native-type":"submit",class:"text-l",loading:h(F).loading.login,color:h(z)?"linear-gradient(315deg, #FE521F 0%, #FE7902 100%)":"#cccccc",round:"",block:""},{default:c((()=>[m(" 登录 ")])),_:1},8,["disabled","loading","color"])]),u(o,{class:"justify-between text-ss"},{default:c((()=>[u(x,{class:"","icon-size":"17px",modelValue:h(F).read,"onUpdate:modelValue":a[11]||(a[11]=e=>h(F).read=e)},{default:c((()=>[u(o,{class:"text-darkGray"},{default:c((()=>[m(" 阅读并同意 "),u(i,{class:"text-orange",onClick:a[9]||(a[9]=e=>G("/pages/login/policy"))},{default:c((()=>[m("《隐私协议》")])),_:1}),m(" 和 "),u(i,{class:"text-orange",onClick:a[10]||(a[10]=e=>G("/pages/login/service"))},{default:c((()=>[m("《服务协议》")])),_:1})])),_:1})])),_:1},8,["modelValue"]),h(F).switch.store?(d(),r(x,{key:0,class:"scale-9 scale-rt","icon-size":"17px",modelValue:h(F).store,"onUpdate:modelValue":a[12]||(a[12]=e=>h(F).store=e)},{default:c((()=>[u(i,{class:"text-darkGray"},{default:c((()=>[m("记住密码")])),_:1})])),_:1},8,["modelValue"])):f("v-if",!0)])),_:1})])),_:1}),h(F).hideshow?(d(),w("div",{key:0,style:{"text-align":"center",position:"absolute",bottom:"10px",width:"100%",left:"0"},onClick:U},[p("img",{style:{width:"20px",height:"20px","vertical-align":"sub","margin-right":"10px"},src:P,alt:""}),p("span",{style:{color:"#666666"}},"提供技术支持")])):f("v-if",!0)])),_:1})])),_:1})}}}),[["__scopeId","data-v-98e3d766"]]);export{z as default};
import{f as r,h as e,W as o}from"./index.4b423d79.js";import{_ as s}from"./plugin-vue_export-helper.21dcd24c.js";var t=s({},[["render",function(s,t){const a=o;return r(),e(a,{src:"https://img.edsmall.com/ROOT/ETao/resource/policy.html"})}]]);export{t as default}; import{f as r,h as e,W as o}from"./index.b2bc642a.js";import{_ as s}from"./plugin-vue_export-helper.21dcd24c.js";var t=s({},[["render",function(s,t){const a=o;return r(),e(a,{src:"https://img.edsmall.com/ROOT/ETao/resource/policy.html"})}]]);export{t as default};
import{f as r,h as e,W as s}from"./index.4b423d79.js";import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";var t=o({},[["render",function(o,t){const a=s;return r(),e(a,{src:"https://img.edsmall.com/ROOT/ETao/resource/service.html"})}]]);export{t as default}; import{f as r,h as e,W as s}from"./index.b2bc642a.js";import{_ as o}from"./plugin-vue_export-helper.21dcd24c.js";var t=o({},[["render",function(o,t){const a=s;return r(),e(a,{src:"https://img.edsmall.com/ROOT/ETao/resource/service.html"})}]]);export{t as default};
import{q as t,g as a,f as e,m as l,j as s,w as i,l as o,i as n,k as c,e as r,x as p}from"./index.4b423d79.js";import{_ as g}from"./favicon.a72fb3d2.js";import{_ as m}from"./plugin-vue_export-helper.21dcd24c.js";var d=m({name:"certificate",data:()=>({mail:{}}),methods:{goBack(){t({url:"/pages/good/contact"})},gotoU(){t({url:"/pages/my/technicalSupport?name=contact"})}},mounted(){this.mail=a("mail")||{}}},[["render",function(t,a,m,d,f,u){const h=r("van-icon"),y=p,v=r("van-sticky");return e(),l("div",null,[s(v,null,{default:i((()=>[s(y,{class:"top-bar justify-center bg-white sh"},{default:i((()=>[s(h,{class:"top-left",name:"arrow-left",onClick:u.goBack},null,8,["onClick"]),s(y,null,{default:i((()=>[s(y,{class:"text-m",style:{"font-size":"16px"}},{default:i((()=>[o("证照信息")])),_:1})])),_:1})])),_:1})])),_:1}),n("div",{style:{"text-align":"center","margin-top":"150px"}},[f.mail.licensePath?(e(),l("img",{key:0,style:{width:"60vw",height:"60vw"},src:f.mail.licensePath,alt:"加载失败"},null,8,["src"])):(e(),l("img",{key:1,style:{width:"60vw",height:"60vw"},src:"/assets/certificates_none.f7f66615.png",alt:"加载失败"})),f.mail.licensePath?c("v-if",!0):(e(),l("p",{key:2,style:{color:"#666666"}},"暂无任相关信息~"))]),n("div",{style:{"text-align":"center",position:"absolute",bottom:"10px",width:"100%"}},[n("img",{onClick:a[0]||(a[0]=(...t)=>u.gotoU&&u.gotoU(...t)),style:{width:"20px",height:"20px","vertical-align":"sub","margin-right":"10px"},src:g,alt:""}),n("span",{style:{color:"#666666"}},"提供技术支持"),n("p",{onClick:a[1]||(a[1]=(...t)=>u.gotoU&&u.gotoU(...t)),style:{"margin-top":"10px"}},[n("span",{style:{color:"#666666"}},"资质与规则")])])])}]]);export{d as default}; import{p as t,g as a,f as e,m as l,j as s,w as i,l as o,i as n,k as c,e as r,v as p}from"./index.b2bc642a.js";import{_ as g}from"./favicon.a72fb3d2.js";import{_ as m}from"./plugin-vue_export-helper.21dcd24c.js";var d=m({name:"certificate",data:()=>({mail:{}}),methods:{goBack(){t({url:"/pages/good/contact"})},gotoU(){t({url:"/pages/my/technicalSupport?name=contact"})}},mounted(){this.mail=a("mail")||{}}},[["render",function(t,a,m,d,f,u){const h=r("van-icon"),y=p,v=r("van-sticky");return e(),l("div",null,[s(v,null,{default:i((()=>[s(y,{class:"top-bar justify-center bg-white sh"},{default:i((()=>[s(h,{class:"top-left",name:"arrow-left",onClick:u.goBack},null,8,["onClick"]),s(y,null,{default:i((()=>[s(y,{class:"text-m",style:{"font-size":"16px"}},{default:i((()=>[o("证照信息")])),_:1})])),_:1})])),_:1})])),_:1}),n("div",{style:{"text-align":"center","margin-top":"150px"}},[f.mail.licensePath?(e(),l("img",{key:0,style:{width:"60vw",height:"60vw"},src:f.mail.licensePath,alt:"加载失败"},null,8,["src"])):(e(),l("img",{key:1,style:{width:"60vw",height:"60vw"},src:"/assets/certificates_none.f7f66615.png",alt:"加载失败"})),f.mail.licensePath?c("v-if",!0):(e(),l("p",{key:2,style:{color:"#666666"}},"暂无任相关信息~"))]),n("div",{style:{"text-align":"center",position:"absolute",bottom:"10px",width:"100%"}},[n("img",{onClick:a[0]||(a[0]=(...t)=>u.gotoU&&u.gotoU(...t)),style:{width:"20px",height:"20px","vertical-align":"sub","margin-right":"10px"},src:g,alt:""}),n("span",{style:{color:"#666666"}},"提供技术支持"),n("p",{onClick:a[1]||(a[1]=(...t)=>u.gotoU&&u.gotoU(...t)),style:{"margin-top":"10px"}},[n("span",{style:{color:"#666666"}},"资质与规则")])])])}]]);export{d as default};
import{q as e,f as l,m as a,j as o,w as t,l as s,k as i,i as n,e as r,x as c}from"./index.4b423d79.js";import{_ as p}from"./plugin-vue_export-helper.21dcd24c.js";var u=p({name:"technicalSupport",data:()=>({url:""}),onLoad:function(e){this.url=e.name},methods:{goPDF(l){e({url:"/pages/my/pdfh5?type="+l})},goBack(l){let a="";"login"==l?a="/pages/login/login":"contact"==l?a="/pages/good/contact":"detail"==l?a="/pages/my/detail":"index"==l&&(a="/"),e({url:a})}}},[["render",function(e,p,u,d,g,m){const f=r("van-icon"),h=c,y=r("van-sticky"),x=r("van-divider");return l(),a("div",null,[o(y,null,{default:t((()=>[o(h,{class:"top-bar justify-center bg-white sh"},{default:t((()=>[o(f,{class:"top-left",name:"arrow-left",onClick:p[0]||(p[0]=e=>m.goBack(g.url))}),o(h,null,{default:t((()=>[o(h,{class:"text-m",style:{"font-size":"16px",color:"#333333"}},{default:t((()=>[s("资质与规则")])),_:1})])),_:1})])),_:1})])),_:1}),i('<img src="../../static/img/weizhi.png" style="width: 100%" alt="">'),n("div",{style:{margin:"10px 10px"}},[n("p",{style:{color:"#666666"}},"*若无法预览,请复制链接后在浏览器打开"),o(x,{style:{borderColor:"#DDDDDD"}}),n("h2",{style:{margin:"10px auto"}},"商城平台交易指引"),n("p",null,[n("a",{style:{color:"#1A79FF"},onClick:p[1]||(p[1]=e=>m.goPDF(2))},"https://img.edsmall.com/ROOT/ETao/resource/trading_guidelines.pdf")]),n("h2",{style:{margin:"10px auto","margin-top":"30px"}},"营业执照"),n("p",null,[n("a",{style:{color:"#1A79FF"},onClick:p[2]||(p[2]=e=>m.goPDF(1))},"https://edspicserver.oss-cn-hangzhou.aliyuncs.com/ROOT/ETao/resource/business_license.pdf")]),n("h2",{style:{margin:"10px auto","margin-top":"30px"}},"增值电信业务经营许可证"),n("p",null,[n("a",{style:{color:"#1A79FF"},onClick:p[3]||(p[3]=e=>m.goPDF(3))},"https://img.edsmall.com/ROOT/ETao/resource/ThePeoplesRepublicofChina.pdf")])])])}]]);export{u as default}; import{p as e,f as l,m as a,j as o,w as t,l as s,k as i,i as n,e as r,v as c}from"./index.b2bc642a.js";import{_ as p}from"./plugin-vue_export-helper.21dcd24c.js";var u=p({name:"technicalSupport",data:()=>({url:""}),onLoad:function(e){this.url=e.name},methods:{goPDF(l){e({url:"/pages/my/pdfh5?type="+l})},goBack(l){let a="";"login"==l?a="/pages/login/login":"contact"==l?a="/pages/good/contact":"detail"==l?a="/pages/my/detail":"index"==l&&(a="/"),e({url:a})}}},[["render",function(e,p,u,d,g,m){const f=r("van-icon"),h=c,y=r("van-sticky"),x=r("van-divider");return l(),a("div",null,[o(y,null,{default:t((()=>[o(h,{class:"top-bar justify-center bg-white sh"},{default:t((()=>[o(f,{class:"top-left",name:"arrow-left",onClick:p[0]||(p[0]=e=>m.goBack(g.url))}),o(h,null,{default:t((()=>[o(h,{class:"text-m",style:{"font-size":"16px",color:"#333333"}},{default:t((()=>[s("资质与规则")])),_:1})])),_:1})])),_:1})])),_:1}),i('<img src="../../static/img/weizhi.png" style="width: 100%" alt="">'),n("div",{style:{margin:"10px 10px"}},[n("p",{style:{color:"#666666"}},"*若无法预览,请复制链接后在浏览器打开"),o(x,{style:{borderColor:"#DDDDDD"}}),n("h2",{style:{margin:"10px auto"}},"商城平台交易指引"),n("p",null,[n("a",{style:{color:"#1A79FF"},onClick:p[1]||(p[1]=e=>m.goPDF(2))},"https://img.edsmall.com/ROOT/ETao/resource/trading_guidelines.pdf")]),n("h2",{style:{margin:"10px auto","margin-top":"30px"}},"营业执照"),n("p",null,[n("a",{style:{color:"#1A79FF"},onClick:p[2]||(p[2]=e=>m.goPDF(1))},"https://edspicserver.oss-cn-hangzhou.aliyuncs.com/ROOT/ETao/resource/business_license.pdf")]),n("h2",{style:{margin:"10px auto","margin-top":"30px"}},"增值电信业务经营许可证"),n("p",null,[n("a",{style:{color:"#1A79FF"},onClick:p[3]||(p[3]=e=>m.goPDF(3))},"https://img.edsmall.com/ROOT/ETao/resource/ThePeoplesRepublicofChina.pdf")])])])}]]);export{u as default};
import{d as e,r as t,b as a,c as n,f as s,h as r,w as o,j as l,u as i,i as f,l as c,v as p,e as d,x as u}from"./index.4b423d79.js";const g=e({setup(e){const g=t({userInfo:{}});function x(e){e&&p({url:e})}function m(){history.back()}return a((()=>{n.afterSaleImg().then((e=>{g.userInfo=e}))})),(e,t)=>{const a=d("van-icon"),n=d("van-nav-bar"),p=d("van-sticky"),b=d("van-image"),v=d("van-col"),h=d("van-row"),y=u;return s(),r(y,{class:"text-center pd-b-px-55"},{default:o((()=>[l(p,null,{default:o((()=>[l(n,{title:"申请售后","left-arrow":"",onClickLeft:m},{left:o((()=>[l(a,{name:"arrow-left",size:"25",color:"#323233"})])),_:1})])),_:1}),l(b,{style:{width:"100%"},src:i(g).userInfo.imgUrl},null,8,["src"]),f("p",{style:{"font-size":"14px","text-align":"center",color:"#bfbfbf","margin-top":"20px"}},"用心为您服务"),l(h,{style:{background:"#ffffff",position:"fixed",bottom:"0",width:"100%"}},{default:o((()=>[l(v,{span:"12",style:{"border-right":"1px solid #f9f9f9","text-align":"center",padding:"16px"},onClick:t[0]||(t[0]=e=>x("/pages/good/contact"))},{default:o((()=>[l(a,{name:"phone-circle-o",size:"20px",style:{color:"#fe7e58","margin-right":"6px"}}),c(" 联系商家 ")])),_:1}),l(v,{span:"12",style:{"text-align":"center",padding:"16px"},onClick:t[1]||(t[1]=e=>x("/pages/order/customerService"))},{default:o((()=>[l(a,{name:"service-o",size:"20px",style:{color:"#fe7e58","margin-right":"6px"}}),c(" 平台介入 ")])),_:1})])),_:1})])),_:1})}}});export{g as default}; import{d as e,r as t,b as a,c as n,f as s,h as r,w as o,j as l,u as i,i as f,l as c,q as p,e as d,v as u}from"./index.b2bc642a.js";const g=e({setup(e){const g=t({userInfo:{}});function x(e){e&&p({url:e})}function m(){history.back()}return a((()=>{n.afterSaleImg().then((e=>{g.userInfo=e}))})),(e,t)=>{const a=d("van-icon"),n=d("van-nav-bar"),p=d("van-sticky"),b=d("van-image"),v=d("van-col"),h=d("van-row"),y=u;return s(),r(y,{class:"text-center pd-b-px-55"},{default:o((()=>[l(p,null,{default:o((()=>[l(n,{title:"申请售后","left-arrow":"",onClickLeft:m},{left:o((()=>[l(a,{name:"arrow-left",size:"25",color:"#323233"})])),_:1})])),_:1}),l(b,{style:{width:"100%"},src:i(g).userInfo.imgUrl},null,8,["src"]),f("p",{style:{"font-size":"14px","text-align":"center",color:"#bfbfbf","margin-top":"20px"}},"用心为您服务"),l(h,{style:{background:"#ffffff",position:"fixed",bottom:"0",width:"100%"}},{default:o((()=>[l(v,{span:"12",style:{"border-right":"1px solid #f9f9f9","text-align":"center",padding:"16px"},onClick:t[0]||(t[0]=e=>x("/pages/good/contact"))},{default:o((()=>[l(a,{name:"phone-circle-o",size:"20px",style:{color:"#fe7e58","margin-right":"6px"}}),c(" 联系商家 ")])),_:1}),l(v,{span:"12",style:{"text-align":"center",padding:"16px"},onClick:t[1]||(t[1]=e=>x("/pages/order/customerService"))},{default:o((()=>[l(a,{name:"service-o",size:"20px",style:{color:"#fe7e58","margin-right":"6px"}}),c(" 平台介入 ")])),_:1})])),_:1})])),_:1})}}});export{g as default};
var e=Object.defineProperty,t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(t,a,s)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s;import{r,a as o,E as i,b as n,J as c,f as d,m as f,i as h,j as u,w as g,l as p,F as m,n as y,k as v,P as b,a0 as k,q as L,a1 as x,D as O,e as S,t as j}from"./index.4b423d79.js";import{_ as C}from"./plugin-vue_export-helper.21dcd24c.js";var I=C({setup(){const e=r({search:"",historyList:["随便看看"],styleList:["欧式风格","美式风格","中式","亚洲风格"],goback:()=>{b.goBack()},toGoodList:(t,a)=>{if(a){if(!t)return;let a=localStorage.getItem("searchList"),s=null;if(a){s=JSON.parse(a),-1===s.indexOf(e.search)&&s.push(e.search)}else s=[],s.push(e.search);localStorage.setItem("searchList",JSON.stringify(s))}const s=k();1==s.length||"pages/goodList/index"!=s[s.length-2].route?L({url:`/pages/goodList/index?search=${t}`}):x({delta:1,complete:function(){setTimeout((()=>{L({url:`/pages/goodList/index?search=${t}`})}),200)}})},del:()=>{O.confirm({title:"是否清空全部历史记录?"}).then((()=>{e.historyList=[],localStorage.removeItem("searchList")})).catch((()=>{}))}}),d=o();i((()=>{e.search="",e.historyList=localStorage.getItem("searchList")?JSON.parse(localStorage.getItem("searchList")).reverse():[]})),n((()=>{setTimeout((()=>{d.value&&d.value.focus()}))}));const f=c(e);return((e,r)=>{for(var o in r||(r={}))a.call(r,o)&&l(e,o,r[o]);if(t)for(var o of t(r))s.call(r,o)&&l(e,o,r[o]);return e})({searchField:d},f)}},[["render",function(e,t,a,s,l,r){const o=S("van-search"),i=S("van-button"),n=S("van-icon");return d(),f("div",{style:{background:"#f1f5f8",height:"100vh"}},[h("div",{style:{display:"flex","justify-content":"flex-start","align-items":"center",background:"#ffffff"}},[u(o,{clearable:!1,modelValue:e.search,"onUpdate:modelValue":t[0]||(t[0]=t=>e.search=t),style:{flex:"2"},placeholder:"请输入搜索关键词",name:"etaoSearch",ref:"searchField"},null,8,["modelValue"]),u(i,{type:"warning",size:"small",style:{margin:"0 8px",background:"#ff6600"},onClick:t[1]||(t[1]=t=>e.toGoodList(e.search,"search"))},{default:g((()=>[p("搜索")])),_:1}),u(i,{size:"small",style:{"margin-right":"10px"},onClick:e.goback},{default:g((()=>[p("取消")])),_:1},8,["onClick"])]),h("div",null,[h("h4",{style:{color:"#5392e2",padding:"10px"}},[h("span",{style:{float:"right","font-size":"1.3rem",color:"#adaeae"}},[u(n,{name:"delete-o",onClick:e.del},null,8,["onClick"])]),p(" #历史搜索 ")]),h("div",{style:{background:"#ffffff",padding:"10px","line-height":"1.6rem"}},[e.historyList.length>0?(d(),f("div",{key:0},[(d(!0),f(m,null,y(e.historyList,(t=>(d(),f("ul",null,[h("li",{onClick:a=>e.toGoodList(t),style:{border:"1px solid #f1f5f8",margin:"2px auto"}},j(t),9,["onClick"])])))),256))])):(d(),f("p",{key:1},"没有任何历史记录"))]),v('<h4 style="color: #5392e2;padding: 10px;line-height: 2.3rem">#热门搜索</h4>'),v("<div>"),v('<ul style="background: #ffffff;padding: 10px" v-for="item in styleList">'),v('<li @click="toGoodList(item)">{{item}}</li>'),v("</ul>"),v("</div>")])])}]]);export{I as default};
var e=Object.defineProperty,t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(t,a,s)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s;import{r,a as o,E as i,b as n,J as c,f,m as d,i as h,j as u,w as g,l as p,F as m,n as y,k as b,P as v,a0 as k,p as L,a1 as x,D as O,e as S,t as j}from"./index.b2bc642a.js";import{_ as C}from"./plugin-vue_export-helper.21dcd24c.js";var I=C({setup(){const e=r({search:"",historyList:["随便看看"],styleList:["欧式风格","美式风格","中式","亚洲风格"],goback:()=>{v.goBack()},toGoodList:(t,a)=>{if(a){if(!t)return;let a=localStorage.getItem("searchList"),s=null;if(a){s=JSON.parse(a),-1===s.indexOf(e.search)&&s.push(e.search)}else s=[],s.push(e.search);localStorage.setItem("searchList",JSON.stringify(s))}const s=k();1==s.length||"pages/goodList/index"!=s[s.length-2].route?L({url:`/pages/goodList/index?search=${t}`}):x({delta:1,complete:function(){setTimeout((()=>{L({url:`/pages/goodList/index?search=${t}`})}),200)}})},del:()=>{O.confirm({title:"是否清空全部历史记录?"}).then((()=>{e.historyList=[],localStorage.removeItem("searchList")})).catch((()=>{}))}}),f=o();i((()=>{e.search="",e.historyList=localStorage.getItem("searchList")?JSON.parse(localStorage.getItem("searchList")).reverse():[]})),n((()=>{setTimeout((()=>{f.value&&f.value.focus()}))}));const d=c(e);return((e,r)=>{for(var o in r||(r={}))a.call(r,o)&&l(e,o,r[o]);if(t)for(var o of t(r))s.call(r,o)&&l(e,o,r[o]);return e})({searchField:f},d)}},[["render",function(e,t,a,s,l,r){const o=S("van-search"),i=S("van-button"),n=S("van-icon");return f(),d("div",{style:{background:"#f1f5f8",height:"100vh"}},[h("div",{style:{display:"flex","justify-content":"flex-start","align-items":"center",background:"#ffffff"}},[u(o,{clearable:!1,modelValue:e.search,"onUpdate:modelValue":t[0]||(t[0]=t=>e.search=t),style:{flex:"2"},placeholder:"请输入搜索关键词",name:"etaoSearch",ref:"searchField"},null,8,["modelValue"]),u(i,{type:"warning",size:"small",style:{margin:"0 8px",background:"#ff6600"},onClick:t[1]||(t[1]=t=>e.toGoodList(e.search,"search"))},{default:g((()=>[p("搜索")])),_:1}),u(i,{size:"small",style:{"margin-right":"10px"},onClick:e.goback},{default:g((()=>[p("取消")])),_:1},8,["onClick"])]),h("div",null,[h("h4",{style:{color:"#5392e2",padding:"10px"}},[h("span",{style:{float:"right","font-size":"1.3rem",color:"#adaeae"}},[u(n,{name:"delete-o",onClick:e.del},null,8,["onClick"])]),p(" #历史搜索 ")]),h("div",{style:{background:"#ffffff",padding:"10px","line-height":"1.6rem"}},[e.historyList.length>0?(f(),d("div",{key:0},[(f(!0),d(m,null,y(e.historyList,(t=>(f(),d("ul",null,[h("li",{onClick:a=>e.toGoodList(t),style:{border:"1px solid #f1f5f8",margin:"2px auto"}},j(t),9,["onClick"])])))),256))])):(f(),d("p",{key:1},"没有任何历史记录"))]),b('<h4 style="color: #5392e2;padding: 10px;line-height: 2.3rem">#热门搜索</h4>'),b("<div>"),b('<ul style="background: #ffffff;padding: 10px" v-for="item in styleList">'),b('<li @click="toGoodList(item)">{{item}}</li>'),b("</ul>"),b("</div>")])])}]]);export{I as default};
import{f as a,h as n,w as t,l as e,x as l,e as s,j as r,d as u,r as d,m as o,M as c,N as i,u as b,F as p}from"./index.4b423d79.js";import{_ as f}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as x}from"./tabbar.b49b352c.js";var _=f({},[["render",function(s,r){const u=l;return a(),n(u,{class:"justify-center pd-b-px-55"},{default:t((()=>[e(" 已移除地图 ")])),_:1})}]]);var m=f({},[["render",function(u,d){const o=s("van-swipe-item"),c=s("van-swipe"),i=l;return a(),n(i,{class:"pd-b-px-55"},{default:t((()=>[r(c,{class:"my-swipe",autoplay:3e3,"indicator-color":"white"},{default:t((()=>[r(o,null,{default:t((()=>[e("bannar1")])),_:1}),r(o,null,{default:t((()=>[e("bannar2")])),_:1}),r(o,null,{default:t((()=>[e("bannar3")])),_:1}),r(o,null,{default:t((()=>[e("bannar4")])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-0512164e"]]);var v=f({},[["render",function(s,r){const u=l;return a(),n(u,{class:"justify-center pd-b-px-55"},{default:t((()=>[e(" 已去除直播 ")])),_:1})}]]);const I=u({setup(n){const t=d({tabIndex:0}),e={list:[{text:"首页",icon:"wap-home"},{text:"直播",icon:"bars"},{text:"地图",icon:"manager"}]};return(n,l)=>(a(),o(p,null,[c(r(m,null,null,512),[[i,0===b(t).tabIndex]]),c(r(v,null,null,512),[[i,1===b(t).tabIndex]]),c(r(_,null,null,512),[[i,2===b(t).tabIndex]]),r(x,{current:b(t).tabIndex,list:e.list,onTabChange:l[0]||(l[0]=a=>b(t).tabIndex=a)},null,8,["current","list"])],64))}});export{I as default}; import{f as a,h as n,w as t,l as e,v as l,e as s,j as r,d as u,r as d,m as o,M as c,N as i,u as b,F as p}from"./index.b2bc642a.js";import{_ as f}from"./plugin-vue_export-helper.21dcd24c.js";import{_ as x}from"./tabbar.961db6b6.js";var _=f({},[["render",function(s,r){const u=l;return a(),n(u,{class:"justify-center pd-b-px-55"},{default:t((()=>[e(" 已移除地图 ")])),_:1})}]]);var m=f({},[["render",function(u,d){const o=s("van-swipe-item"),c=s("van-swipe"),i=l;return a(),n(i,{class:"pd-b-px-55"},{default:t((()=>[r(c,{class:"my-swipe",autoplay:3e3,"indicator-color":"white"},{default:t((()=>[r(o,null,{default:t((()=>[e("bannar1")])),_:1}),r(o,null,{default:t((()=>[e("bannar2")])),_:1}),r(o,null,{default:t((()=>[e("bannar3")])),_:1}),r(o,null,{default:t((()=>[e("bannar4")])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-0512164e"]]);var v=f({},[["render",function(s,r){const u=l;return a(),n(u,{class:"justify-center pd-b-px-55"},{default:t((()=>[e(" 已去除直播 ")])),_:1})}]]);const I=u({setup(n){const t=d({tabIndex:0}),e={list:[{text:"首页",icon:"wap-home"},{text:"直播",icon:"bars"},{text:"地图",icon:"manager"}]};return(n,l)=>(a(),o(p,null,[c(r(m,null,null,512),[[i,0===b(t).tabIndex]]),c(r(v,null,null,512),[[i,1===b(t).tabIndex]]),c(r(_,null,null,512),[[i,2===b(t).tabIndex]]),r(x,{current:b(t).tabIndex,list:e.list,onTabChange:l[0]||(l[0]=a=>b(t).tabIndex=a)},null,8,["current","list"])],64))}});export{I as default};
import{d as a,e,f as t,h as n,w as s,m as l,n as o,i as c,t as i,F as r,Q as d}from"./index.b2bc642a.js";const u=a({props:{list:{default:void 0},current:{default:0}},emits:["tabChange"],setup(a,{emit:u}){const b=a;function m(a){d({title:b.list[a].text||""}),u("tabChange",a)}return(d,u)=>{const p=e("van-icon"),g=e("van-tabbar-item"),h=e("van-tabbar");return t(),n(h,{modelValue:b.current,"onUpdate:modelValue":u[0]||(u[0]=a=>b.current=a),onChange:m,"z-index":"9999"},{default:s((()=>[(t(!0),l(r,null,o(a.list,(a=>(t(),n(g,{badge:a.badge||"","badge-props":{color:"#FE521F"}},{icon:s((e=>[a.selectedIconPath&&a.iconPath?(t(),l("img",{key:0,src:e.active?a.selectedIconPath:a.iconPath},null,8,["src"])):(t(),n(p,{key:1,name:a.icon},null,8,["name"]))])),default:s((()=>[c("span",null,i(a.text),1)])),_:2},1032,["badge"])))),256))])),_:1},8,["modelValue"])}}});export{u as _};
import{d as e,e as a,f as t,h as n,w as s,m as l,n as o,i as c,t as i,F as r,Q as d}from"./index.4b423d79.js";const u=e({props:{list:{default:void 0},current:{default:0}},emits:["tabChange"],setup(e,{emit:u}){const m=e;function b(e){d({title:m.list[e].text||""}),u("tabChange",e)}return(d,u)=>{const p=a("van-icon"),g=a("van-tabbar-item"),h=a("van-tabbar");return t(),n(h,{modelValue:m.current,"onUpdate:modelValue":u[0]||(u[0]=e=>m.current=e),onChange:b,"z-index":"9999"},{default:s((()=>[(t(!0),l(r,null,o(e.list,(e=>(t(),n(g,{badge:e.badge||"","badge-props":{color:"#FE521F"}},{icon:s((a=>[e.selectedIconPath&&e.iconPath?(t(),l("img",{key:0,src:a.active?e.selectedIconPath:e.iconPath},null,8,["src"])):(t(),n(p,{key:1,name:e.icon},null,8,["name"]))])),default:s((()=>[c("span",null,i(e.text),1)])),_:2},1032,["badge"])))),256))])),_:1},8,["modelValue"])}}});export{u as _};
import{d as a,r as s,G as o,e as n,f as e,m as l,j as t,w as i,h as p,k as r,i as c,p as u,u as m,C as d,M as h,N as v,F as x,n as w,l as f,t as b,R as g,v as _,x as k}from"./index.4b423d79.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";var T=y(a({props:{showNav:{type:Boolean,default:!1},bottom:{default:"75px"}},setup(a){const y=s({showToTop:!1,nav:{show:!1,list:[{name:"首页",icon:"wap-home-o",url:"/"},{name:"分类",icon:"apps-o",url:"/?index=1"},{name:"搜索",icon:"search",url:"/pages/topSearch/index"},{name:"购物车",icon:"shopping-cart-o",url:"/?index=2"},{name:"我的",icon:"manager-o",url:"/?index=3"},{name:"收藏夹",icon:"like-o",url:"/pages/my/fav"}]}});function T(){g({scrollTop:0})}function C(){y.nav.show=!0}return o((a=>{y.showToTop=a.scrollTop>100})),(s,o)=>{const g=n("van-image"),j=k,N=n("van-icon"),z=n("van-overlay");return e(),l(x,null,[t(j,{class:"fix_rb",style:d({bottom:a.bottom})},{default:i((()=>[a.showNav?(e(),p(g,{key:0,width:"48px",class:"btn mg-b-px-10",src:"/static/img/rb_nav.png",onClick:C})):r("v-if",!0),c("br"),t(g,{width:"48px",class:u(["btn toTop",{show:m(y).showToTop}]),src:"/static/img/rb_top.png",onClick:T},null,8,["class"])])),_:1},8,["style"]),t(z,{style:{"z-index":"7"},show:m(y).nav.show,onClick:o[0]||(o[0]=a=>m(y).nav.show=!1)},{default:i((()=>[h(t(j,{class:"fix_rb bg-white ra-20 pd-h-px-20 pd-v-px-5 mg-r-px-10-m"},{default:i((()=>[(e(!0),l(x,null,w(m(y).nav.list,((a,s)=>(e(),l(x,null,[t(j,{class:"inline-block text-center pd-px-5",style:{width:"45px"},onClick:s=>{var o;(o=a.url)&&_({url:o})}},{default:i((()=>[t(N,{size:"24",name:a.icon},null,8,["name"]),t(j,{class:"text-ss"},{default:i((()=>[f(b(a.name),1)])),_:2},1024)])),_:2},1032,["onClick"]),s%3==2?(e(),l("br",{key:0})):r("v-if",!0)],64)))),256))])),_:1},512),[[v,m(y).nav.show]])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-6e54bf03"]]);export{T as t}; import{d as a,r as s,G as o,e as n,f as e,m as l,j as t,w as i,h as r,k as p,i as c,B as u,u as m,C as d,M as h,N as v,F as x,n as w,l as f,t as b,R as g,q as _,v as k}from"./index.b2bc642a.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";var T=y(a({props:{showNav:{type:Boolean,default:!1},bottom:{default:"75px"}},setup(a){const y=s({showToTop:!1,nav:{show:!1,list:[{name:"首页",icon:"wap-home-o",url:"/"},{name:"分类",icon:"apps-o",url:"/?index=1"},{name:"搜索",icon:"search",url:"/pages/topSearch/index"},{name:"购物车",icon:"shopping-cart-o",url:"/?index=2"},{name:"我的",icon:"manager-o",url:"/?index=3"},{name:"收藏夹",icon:"like-o",url:"/pages/my/fav"}]}});function T(){g({scrollTop:0})}function C(){y.nav.show=!0}return o((a=>{y.showToTop=a.scrollTop>100})),(s,o)=>{const g=n("van-image"),j=k,N=n("van-icon"),z=n("van-overlay");return e(),l(x,null,[t(j,{class:"fix_rb",style:d({bottom:a.bottom})},{default:i((()=>[a.showNav?(e(),r(g,{key:0,width:"48px",class:"btn mg-b-px-10",src:"/static/img/rb_nav.png",onClick:C})):p("v-if",!0),c("br"),t(g,{width:"48px",class:u(["btn toTop",{show:m(y).showToTop}]),src:"/static/img/rb_top.png",onClick:T},null,8,["class"])])),_:1},8,["style"]),t(z,{style:{"z-index":"7"},show:m(y).nav.show,onClick:o[0]||(o[0]=a=>m(y).nav.show=!1)},{default:i((()=>[h(t(j,{class:"fix_rb bg-white ra-20 pd-h-px-20 pd-v-px-5 mg-r-px-10-m"},{default:i((()=>[(e(!0),l(x,null,w(m(y).nav.list,((a,s)=>(e(),l(x,null,[t(j,{class:"inline-block text-center pd-px-5",style:{width:"45px"},onClick:s=>{var o;(o=a.url)&&_({url:o})}},{default:i((()=>[t(N,{size:"24",name:a.icon},null,8,["name"]),t(j,{class:"text-ss"},{default:i((()=>[f(b(a.name),1)])),_:2},1024)])),_:2},1032,["onClick"]),s%3==2?(e(),l("br",{key:0})):p("v-if",!0)],64)))),256))])),_:1},512),[[v,m(y).nav.show]])])),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-6e54bf03"]]);export{T as t};
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<title></title> <title></title>
<!--preload-links--> <!--preload-links-->
<!--app-context--> <!--app-context-->
<script type="module" crossorigin src="/assets/index.4b423d79.js"></script> <script type="module" crossorigin src="/assets/index.b2bc642a.js"></script>
<link rel="stylesheet" href="/assets/index.55916ec7.css"> <link rel="stylesheet" href="/assets/index.55916ec7.css">
</head> </head>
<body> <body>
......
<template>
<view>
<div class="image-container" @click="goto(`/pages/good/detail?skuId=${item.skuId}&spuId=${item.spuId}`)">
<van-image fit="cover" lazy-load :src="item.mainImg"
loading-icon="https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png" icon-size="30vw" />
</div>
<text class="text-s ellipsis line_over2" style="height: 32px;text-align: left;background: #ffffff;padding: 15rpx">
{{ item.title }}
</text>
<view style="display: flex;background: #ffffff;padding: 15rpx">
<view class="text-orange text-ss">
<text class="text-bold text-l">{{ item.salePrice }}</text>
</view>
<view class="text-ss" style="margin-left: 16rpx">
<text class="text-gray text-ss line-through">{{ item.salePrice }}</text>
</view>
</view>
</view>
</template>
<script>
export default {
props:{
item:{
type:Object,
default: ()=>{ return {} }
},
},
methods:{
goto(url) {
url && uni.navigateTo({ url })
}
}
}
</script>
<style lang="scss" scoped>
.image-container {
background-color: #ffffff;
border-top-left-radius: 10px; /* 设置圆角的大小 */
border-top-right-radius: 10px; /* 设置圆角的大小 */
overflow: hidden;
}
.image-container .van-image {
width: 100%;
height: 100%;
border-radius: inherit; /* 继承外层容器的圆角 */
}
</style>
\ No newline at end of file
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
<div style="display: flex;align-items:center;background: #ffffff"> <div style="display: flex;align-items:center;background: #ffffff">
<van-icon size="1.5rem" name="arrow-left" style="color: #757575;" @click="goBack" /> <van-icon size="1.5rem" name="arrow-left" style="color: #757575;" @click="goBack" />
<van-search v-model="state.keyword" style="flex: 1" placeholder="请输入搜索关键词" @click.stop="topSearch" /> <van-search v-model="state.keyword" style="flex: 1" placeholder="请输入搜索关键词" @click.stop="topSearch" />
<img v-if="state.showStyle" src="../../static/img/icon_search1.jpg" alt="" @click="changeIcon"
style="width: 1.8rem;height: 1.6rem;margin-right: 3px">
<img v-if="!state.showStyle" src="../../static/img/icon_search2.jpg" alt="" @click="changeIcon"
style="width: 1.8rem;height: 1.6rem;margin-right: 3px">
</div> </div>
<van-tabs v-model:active="state.active" color="#ff6600" line-width="206rpx" <van-tabs v-model:active="state.active" color="#ff6600" line-width="206rpx"
title-active-color="#ff6600" @click-tab="changeTab"> title-active-color="#ff6600" @click-tab="changeTab">
...@@ -26,121 +22,11 @@ ...@@ -26,121 +22,11 @@
<div style="margin-top: .2rem"></div> <div style="margin-top: .2rem"></div>
<van-list :loading="state.good.loading" :finished="state.good.finished" finished-text="没有更多了" <van-list :loading="state.good.loading" :finished="state.good.finished" finished-text="没有更多了"
@load="onGoodLoad"> @load="onGoodLoad">
<van-grid :center="false" :column-num="2" :gutter="3" v-if="state.showStyle"> <van-row gutter="12" style="margin: 20rpx 20rpx;">
<van-grid-item style="border-radius: 4px" class="text-left" v-for="(item, index) in state.good.list" :key="item.skuId" <van-col span="12" v-for="item in state.good.list" style="margin-bottom: 25rpx">
@click="goto(`/pages/good/detail?skuId=${item.skuId}&spuId=${item.spuId}`)"> <ShopCard :item="item"></ShopCard>
<van-image class="self_center" width="30vw" height="30vw" lazy-load :src="item.mainImg" />
<view :class="[item.zoneIcon||item.isVideoIcon||item.coTip==1?'mg-t-30-m':'']">
<!--活动角标-->
<div class="sign" v-if="item.subScriptImgUrl">
<img :src="item.subScriptImgUrl" alt="" />
<div class="discount" style="color: rgba(247, 103, 67, 1)">{{item.discount}}</div>
</div>
<span v-if="item.coTip==1" style="color: #ff5500;border: 1px solid #ff5500;font-size: 12px;margin-right: 2px;font-weight: bold;padding: 1px">热销</span>
<span v-if="item.leftDownIcons&&item.leftDownIcons.length>0">
<span v-for="item1 in item.leftDownIcons " style="margin-right: 3px" >
<van-image width="60rpx" height="32rpx" :src="item1" />
</span>
</span>
<van-image v-if="item.isVideoIcon" class="mg-l-5" width="32rpx" height="32rpx" src="/static/img/play.png" />
</view>
<text class="text-s ellipsis line_over2 pd-t-10" style="width: 315rpx;margin-bottom:6px;">
{{ item.title }}
</text>
<text class="text-ss">{{ item.size }}</text>
<text class="text-gray text-ss"></text>
<!--未开启设计师模式-->
<div v-if="item.salePrice">
<view v-if="!item.actPrice" class="text-gray text-ss line-through">零售价¥{{ item.productPrice }}</view>
<view v-if="item.actPrice">
<view class="text-gray text-ss">零售价¥{{ item.productPrice }}</view>
<view class="text-gray text-ss line-through">优惠价¥{{ item.salePrice }}</view>
<view class="text-orange text-ss">活动价¥
<text class="text-bold text-l">{{ item.actPrice }}</text>
</view>
</view>
<view v-else class="text-orange text-ss">优惠价¥
<text class="text-bold text-l">{{ item.salePrice }}</text>
</view>
</div>
<div v-else class="text-orange" style="font-size: 13px;margin-top: 3px">
<view v-if="item.actPrice">
<view class="text-gray text-ss line-through">零售价¥{{ item.productPrice }}</view>
<view class="text-orange text-ss">活动价¥
<text class="text-bold text-l">{{ item.actPrice }}</text>
</view>
</view>
<text v-else class="text-bold text-ss" >零售价¥{{ item.productPrice }}</text>
</div>
</van-grid-item>
</van-grid>
<van-grid :center="false" :column-num="1" :gutter="7" v-else>
<van-grid-item class="text-left" v-for="(item, index) in state.good.list" :key="index"
@click="goto(`/pages/good/detail?skuId=${item.skuId}&spuId=${item.spuId}`)">
<van-row>
<van-col span="7" style="position: relative">
<van-image class="self_center" width="6rem" height="6rem" lazy-load
:src="item.mainImg" />
<!--活动角标-->
<div class="sign" style="top: 0" v-if="item.subScriptImgUrl">
<img :src="item.subScriptImgUrl" alt="" />
<div class="discount" style="color: rgba(247, 103, 67, 1)">{{item.discount}}</div>
</div>
<view style="position: absolute;left: 0;bottom: 0">
<span v-if="item.coTip==1" style="color: #ff5500;border: 1px solid #ff5500;font-size: 12px;margin-right: 2px;font-weight: bold;padding: 1px">热销</span>
<van-image v-if="item.zoneIcon" width="60rpx" lazy-load :src="item.zoneIcon" />
<van-image v-if="item.isVideoIcon" class="pd-l-5" width="32rpx" height="32rpx" src="/static/img/play.png" />
</view>
</van-col>
<van-col span="16" offset="1">
<p class="text-s ellipsis line_over2 pd-t-10" >
{{ item.title }}
</p>
<div style="line-height: 1.2rem">
<p class="text-ss">{{ item.size }}</p>
<p class="text-gray text-ss"></p>
<div v-if="item.salePrice">
<view v-if="item.actPrice">
<p class="text-gray text-ss">零售价¥{{ item.productPrice }}</p>
<p class="text-gray text-ss line-through">优惠价¥{{ item.salePrice }}</p>
<p class="text-orange text-ss">
<img @click.stop="check(item)" src="../../static/img/car_search.png"
style="float: right;width: 1.8rem;margin-top: -5px" alt="">
活动价¥
<text class="text-bold text-l">{{ item.actPrice }}</text>
</p>
</view>
<view v-else>
<p class="text-gray text-ss line-through">零售价¥{{ item.productPrice }}</p>
<p class="text-orange text-ss">
<img @click.stop="check(item)" src="../../static/img/car_search.png"
style="float: right;width: 1.8rem;margin-top: -5px" alt="">
优惠价¥
<text class="text-bold text-l">{{ item.salePrice }}</text>
</p>
</view>
</div>
<div v-else>
<view v-if="item.actPrice">
<view class="text-gray text-ss line-through">零售价¥{{ item.productPrice }}</view>
<p class="text-orange text-ss text-bold" style="font-size: 14px;margin-top: 6px" >
活动价¥{{ item.actPrice }}
<img @click.stop="check(item)" src="../../static/img/car_search.png"
style="float: right;width: 1.8rem;margin-top: -5px" alt="">
</p>
</view>
<p class="text-orange text-ss text-bold" style="font-size: 14px;margin-top: 6px" v-else>
零售价¥{{ item.productPrice }}
<img @click.stop="check(item)" src="../../static/img/car_search.png"
style="float: right;width: 1.8rem;margin-top: -5px" alt="">
</p>
</div>
</div>
</van-col> </van-col>
</van-row> </van-row>
</van-grid-item>
</van-grid>
</van-list> </van-list>
<view v-if="state.good.fail" class="text-ss text-gray pd-50" @click="failReset">请求失败,点击重试 <view v-if="state.good.fail" class="text-ss text-gray pd-50" @click="failReset">请求失败,点击重试
<van-icon name="replay" /> <van-icon name="replay" />
...@@ -150,6 +36,7 @@ ...@@ -150,6 +36,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import ShopCard from '@/components/ShopCard.vue';
import { Dialog } from "vant"; import { Dialog } from "vant";
import {Toast} from 'vant'; import {Toast} from 'vant';
import api from "@/api"; import api from "@/api";
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</van-sticky> </van-sticky>
<!--名片--> <!--名片-->
<view style="background: #ffffff;padding-bottom: 36rpx;padding-top: 20rpx"> <view style="background: #ffffff;padding-bottom: 36rpx;padding-top: 20rpx" >
<view class="card-div"> <view class="card-div">
<van-row gutter="12" class="pd-h-px-10" style="padding-top: 26rpx"> <van-row gutter="12" class="pd-h-px-10" style="padding-top: 26rpx">
<van-col span="6" > <van-col span="6" >
...@@ -72,7 +72,7 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v ...@@ -72,7 +72,7 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
<view style="font-size: 40rpx;font-weight: bold;margin-top: 36rpx">频道专区</view> <view style="font-size: 40rpx;font-weight: bold;margin-top: 36rpx">频道专区</view>
<view style="margin-top: 16px;margin-bottom: 50rpx"> <view style="margin-top: 16px;margin-bottom: 50rpx" >
<view> <view>
<van-row gutter="8" class="pd-h-px-10"> <van-row gutter="8" class="pd-h-px-10">
<van-col span="12" > <van-col span="12" >
...@@ -90,7 +90,7 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v ...@@ -90,7 +90,7 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v
</van-row> </van-row>
</view> </view>
</view> </view>
<van-tabs class="pd-b-10" v-model:active="state.tab.active" animated swipeable> <van-tabs class="pd-b-10" v-model:active="state.tab.active" animated swipeable >
<van-tab v-for="tItem in state.tab.tabList" :title="tItem.title"> <van-tab v-for="tItem in state.tab.tabList" :title="tItem.title">
<van-grid class="small-padding" :column-num="4"> <van-grid class="small-padding" :column-num="4">
<van-grid-item v-for="item in tItem.list" :key="item.id" <van-grid-item v-for="item in tItem.list" :key="item.id"
...@@ -109,7 +109,7 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v ...@@ -109,7 +109,7 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v
</van-swipe-item> </van-swipe-item>
</van-swipe> </van-swipe>
<template v-if="state.banner.areaBanner.length > 0&&false"> <template v-if="state.banner.areaBanner.length > 0">
<van-image class="block_title" src="https://img.edsmall.com/ROOT/ETao/fenxiao/h5/area_title.png" /> <van-image class="block_title" src="https://img.edsmall.com/ROOT/ETao/fenxiao/h5/area_title.png" />
<view> <view>
<view v-if="state.banner.areaBanner.length == 6"> <view v-if="state.banner.areaBanner.length == 6">
...@@ -143,57 +143,11 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v ...@@ -143,57 +143,11 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx">拨打</span> </v
<van-image class="block_title" src="https://img.edsmall.com/ROOT/ETao/fenxiao/h5/recommend_title.png" /> <van-image class="block_title" src="https://img.edsmall.com/ROOT/ETao/fenxiao/h5/recommend_title.png" />
<van-list v-if="state.inited" :loading="state.good.loading" :finished="state.good.finished" finished-text="没有更多了" <van-list v-if="state.inited" :loading="state.good.loading" :finished="state.good.finished" finished-text="没有更多了"
offset="10" @load="onGoodLoad"> offset="10" @load="onGoodLoad">
<van-grid :center="false" :column-num="2" :gutter="3"> <van-row gutter="12" style="margin: 10rpx 20rpx;">
<van-grid-item class="text-left" v-for="item in state.good.list" style="border-radius: 4px" <van-col span="12" v-for="item in state.good.list" style="margin-bottom: 25rpx">
@tap="goto(`/pages/good/detail?skuId=${item.skuId}&spuId=${item.spuId}`)"> <ShopCard :item="item"></ShopCard>
</van-col>
<van-image class="self_center" width="30vw" height="30vw" lazy-load :src="item.mainImg" </van-row>
loading-icon="https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png" icon-size="30vw" />
<!--活动角标-->
<div class="sign" v-if="item.subScriptImgUrl">
<van-image :src="item.subScriptImgUrl" alt="" />
<div class="discount" style="color: rgba(247, 103, 67, 1)">{{item.discount}}</div>
</div>
<view :class="[item.zoneIcon||item.isVideoIcon||item.coTip==1?'mg-t-30-m':'']">
<span v-if="item.coTip==1" class="host_tip" style="position: relative;z-index: 9999">热销</span>
<span v-if="item.leftDownIcons&&item.leftDownIcons.length>0">
<span v-for="item1 in item.leftDownIcons" style="margin-right: 3px">
<van-image width="60rpx" height="32rpx" :src="item1" />
</span>
</span>
<van-image v-if="item.isVideoIcon" class="mg-l-5" width="32rpx" height="32rpx"
src="/static/img/play.png" />
</view>
<text class="text-s ellipsis line_over2 pd-t-10" style="width: 320rpx;height: 32px;margin-bottom:6px">
{{ item.title }}
</text>
<text class="text-ss">{{ item.size }}</text>
<text class="text-gray text-ss"></text>
<!--未开启设计师模式-->
<div v-if="item.salePrice">
<view v-if="!item.actPrice" class="text-gray text-ss line-through">零售价¥{{ item.productPrice }}</view>
<view v-if="item.actPrice">
<view class="text-gray text-ss">零售价¥{{ item.productPrice }}</view>
<view class="text-gray text-ss line-through">优惠价¥{{ item.salePrice }}</view>
<view class="text-orange text-ss">活动价¥
<text class="text-bold text-l">{{ item.actPrice }}</text>
</view>
</view>
<view v-else class="text-orange text-ss">优惠价¥
<text class="text-bold text-l">{{ item.salePrice }}</text>
</view>
</div>
<div v-else class="text-orange" style="font-size: 13px;margin-top: 3px">
<view v-if="item.actPrice">
<view class="text-gray text-ss line-through">零售价¥{{ item.productPrice }}</view>
<view class="text-orange text-ss">活动价¥
<text class="text-bold text-l">{{ item.actPrice }}</text>
</view>
</view>
<text v-else class="text-bold text-ss" >零售价¥{{ item.productPrice }}</text>
</div>
</van-grid-item>
</van-grid>
</van-list> </van-list>
<view v-if="state.good.fail" class="text-ss text-gray pd-50" @tap="failReset">请求失败,点击重试 <view v-if="state.good.fail" class="text-ss text-gray pd-50" @tap="failReset">请求失败,点击重试
<van-icon name="replay" /> <van-icon name="replay" />
...@@ -212,6 +166,7 @@ import api from "@/api"; ...@@ -212,6 +166,7 @@ import api from "@/api";
import { Toast } from 'vant'; import { Toast } from 'vant';
import { onBeforeMount, onMounted, reactive,ref} from 'vue'; import { onBeforeMount, onMounted, reactive,ref} from 'vue';
import toTop from '@/components/tool/toTop.vue'; import toTop from '@/components/tool/toTop.vue';
import ShopCard from '@/components/ShopCard.vue';
import popupBanner from '@/components/tool/popupBanner.vue'; import popupBanner from '@/components/tool/popupBanner.vue';
const state = reactive({ const state = reactive({
show:false, show:false,
...@@ -445,6 +400,7 @@ function changeTab(name: any, ZQ?: any,num?:any) { ...@@ -445,6 +400,7 @@ function changeTab(name: any, ZQ?: any,num?:any) {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.card-div{ .card-div{
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
......
...@@ -74,82 +74,18 @@ ...@@ -74,82 +74,18 @@
</van-cell-group> </van-cell-group>
</van-sticky> </van-sticky>
<van-list :loading="state.good.loading"> <van-list :loading="state.good.loading">
<van-grid :center="false" :column-num="2"> <van-row gutter="12" style="margin: 15rpx 20rpx;">
<van-grid-item class="text-left" v-for="item in state.good.list" style="border-radius: 4px" <van-col span="12" v-for="item in state.good.list" style="margin-bottom: 25rpx">
@tap="goto(`/pages/good/detail?skuId=${item.skuId}&spuId=${item.spuId}`)"> <ShopCard :item="item"></ShopCard>
<van-image class="self_center" width="30vw" height="30vw" lazy-load :src="item.mainImg" </van-col>
loading-icon="https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png" </van-row>
icon-size="30vw" />
<!--为你推荐活动角标-->
<div class="sign" v-if="item.subScriptImgUrl">
<img :src="item.subScriptImgUrl" alt="" />
<div class="discount" style="color: rgba(247, 103, 67, 1)">{{item.discount}}</div>
</div>
<view :class="[item.zoneIcon||item.isVideoIcon?'mg-t-30-m':'']">
<van-image v-for="item in item.leftDownIcons" style="margin-right: 4rpx" width="60rpx" height="32rpx" :src="item" />
<van-image v-if="item.isVideoIcon" class="mg-l-5" width="32rpx" height="32rpx"
src="/static/img/play.png" />
</view>
<text class="text-s ellipsis line_over2 pd-t-10"
style="width: 320rpx;height: 32px;margin-bottom:6px">
{{ item.title }}
</text>
<text class="text-gray text-ss"></text>
<div style="line-height: 1.2rem" v-if="item.salePrice !== null">
<p class="text-ss">{{ item.size }}</p>
<p class="text-gray text-ss"></p>
<div v-if="item.actPrice">
<div >
<p class="text-gray text-ss " style="float: right;margin-right: 20px">
零售价¥
<text class="text-bold text-l">{{ item.productPrice }}</text>
</p>
<div class="text-gray text-ss line-through" >
优惠价¥
<text class="text-bold text-l">{{ item.salePrice }}</text>
</div>
</div>
</div>
<div v-if="!item.actPrice">
<p class="text-gray text-ss line-through">零售价¥{{ item.productPrice
}} </p>
<p class="text-orange text-ss" >
优惠价¥
<text class="text-bold text-l">{{ item.salePrice }}</text>
</p>
</div>
<p class="text-orange text-ss" v-if="item.actPrice">
活动价¥
<text class="text-bold text-l">{{ item.actPrice }}</text>
</p>
</div>
<div style="line-height: 1.2rem" v-else>
<p class="text-ss">{{ item.size }}</p>
<p class="text-gray text-ss"></p>
<p class="text-gray text-ss line-through" v-if="item.actPrice">
零售价¥
<text class="text-bold text-l">{{ item.productPrice }}</text>
</p>
<p class="text-orange text-ss"
v-else>
零售价¥
<text class="text-bold text-l">{{ item.productPrice }}</text>
</p>
<p class="text-orange text-ss"
style="color: #ff8b3e;font-size: 15px;margin-top: 5px" v-if="item.actPrice">
活动价¥
<text class="text-bold text-l">{{ item.actPrice }}</text>
</p>
</div>
</van-grid-item>
</van-grid>
</van-list> </van-list>
<to-top /> <to-top />
</view> </view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import ShopCard from '@/components/ShopCard.vue';
import toTop from '@/components/tool/toTop.vue'; import toTop from '@/components/tool/toTop.vue';
import {onBeforeMount, reactive} from "vue"; import {onBeforeMount, reactive} from "vue";
import {Dialog, ImagePreview} from 'vant'; import {Dialog, ImagePreview} from 'vant';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册