1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0a65":function(t,i,n){"use strict";n.r(i);var e=n("65aa"),a=n("5932");for(var o in a)"default"!==o&&function(t){n.d(i,t,(function(){return a[t]}))}(o);n("690c");var d,r=n("f0c5"),c=Object(r["a"])(a["default"],e["b"],e["c"],!1,null,"70c04cd2",null,!1,e["a"],d);i["default"]=c.exports},"4dc7":function(t,i,n){var e=n("b2d0");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("4f06").default;a("7db64224",e,!0,{sourceMap:!1,shadowMode:!1})},5932:function(t,i,n){"use strict";n.r(i);var e=n("e8ae"),a=n.n(e);for(var o in e)"default"!==o&&function(t){n.d(i,t,(function(){return e[t]}))}(o);i["default"]=a.a},"65aa":function(t,i,n){"use strict";var e;n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){return e}));var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{staticClass:"list-body"},[n("v-uni-view",{staticClass:"swiper-dom"},[n("v-uni-swiper",{staticClass:"swiper",attrs:{"indicator-dots":!0,circular:!0,"indicator-color":"rgba(0, 0, 0, .3)","indicator-active-color":"#ffffff"}},t._l(t.bannerList,(function(t,i){return n("v-uni-swiper-item",{key:i,staticClass:"banner-item"},[n("v-uni-view",{staticClass:"banner-image"},[n("v-uni-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.cover}})],1)],1)})),1)],1),n("v-uni-view",{staticClass:"tab-list all-row-center"},[n("v-uni-view",{staticClass:"tab-dom all-row-center"},t._l(t.tabList,(function(i,e){return n("v-uni-view",{key:e,class:t.tabIndex===e?"tab-item-check":"tab-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changeIndex(e)}}},[t._v(t._s(i.name))])})),1)],1),t._l(t.goodsList,(function(i,e){return n("v-uni-view",{key:e,staticClass:"index-card all-col-start",staticStyle:{position:"relative"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goTo(i.id)}}},[1==i.state?n("v-uni-text",{staticStyle:{padding:"2rpx 38rpx","border-radius":"100rpx","background-color":"rgba(21, 22, 27, 1)",color:"rgba(250, 224, 76, 1)","font-size":"22rpx",position:"absolute",top:"34rpx",left:"40rpx","z-index":"100"}},[t._v("进行中")]):t._e(),2==i.state?n("v-uni-text",{staticStyle:{padding:"2rpx 38rpx","border-radius":"100rpx","background-color":"rgba(21, 22, 27, 1)",color:"rgba(166, 220, 134, 1)","font-size":"22rpx",position:"absolute",top:"34rpx",left:"40rpx","z-index":"100"}},[t._v("敬请期待 "+t._s(i.sell_time)+" 开售")]):t._e(),3==i.state?n("v-uni-text",{staticStyle:{padding:"2rpx 38rpx","border-radius":"100rpx","background-color":"rgba(21, 22, 27, 1)",color:"rgba(168, 168, 168, 1)","font-size":"22rpx",position:"absolute",top:"34rpx",left:"40rpx","z-index":"100"}},[t._v("已售罄")]):t._e(),n("v-uni-view",{staticClass:"image-dom all-col-center"},[n("v-uni-image",{staticClass:"image",attrs:{src:i.cover,mode:"aspectFill"}}),3===i.state?n("v-uni-view",{class:"icon-mine"},[t._v("告罄")]):t._e()],1),n("v-uni-view",{staticClass:"name all-row-start"},[n("v-uni-view",{staticClass:"name-text all-font-small all-font-white all-font-biga",staticStyle:{"margin-right":"20rpx"}},[t._v(t._s(i.name))]),n("v-uni-view",{staticClass:"num all-row-start"},[n("v-uni-view",{staticClass:"num-name all-font-bigb"},[t._v("限量")]),n("v-uni-view",{staticClass:"num-number all-font-yellow all-row-center all-font-bigb"},[t._v(t._s(i.inventory))])],1)],1),n("v-uni-view",{staticClass:"price-dom name all-row-start",staticStyle:{"margin-bottom":"20rpx"}},[n("v-uni-view",{staticClass:"price all-font-big all-font-white"},[t._v("¥"+t._s(i.price))]),1===i.state?n("v-uni-view",{staticClass:"qianggou"},[t._v("立即抢购")]):t._e(),2===i.state?n("v-uni-view",{staticClass:"qianggou",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.tixing(i)}}},[t._v("提醒我")]):t._e()],1)],1)}))],2)},o=[]},"690c":function(t,i,n){"use strict";var e=n("4dc7"),a=n.n(e);a.a},b2d0:function(t,i,n){var e=n("24fb");i=e(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.list-body .index-card[data-v-70c04cd2]{overflow:hidden;width:%?710?%;background:url(https://htglhgwh.nftguanfang.com/static/pic/collection-images/7.png) no-repeat %?-25?% 50%;\n /* background-repeat: no-repeat; */background-size:%?750?% 100%;\n /* padding: 30rpx 0; */padding-bottom:%?20?%;position:relative;margin:0 auto %?20?% auto\n /* 图片容器 */}.list-body .index-card .qianggou[data-v-70c04cd2]{width:%?140?%;height:%?48?%;background:linear-gradient(180deg,#e2b2ed,#8ce9ee);font-size:%?20?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#000;text-align:center;line-height:%?48?%}.list-body .index-card .more-text[data-v-70c04cd2]{margin-top:%?50?%;margin-bottom:15vh;color:#a6a7a9}.list-body .index-card .image-dom[data-v-70c04cd2]{\n /* margin: 20rpx; */border-radius:%?40?%;position:relative;z-index:40;overflow:hidden;width:%?710?%;height:%?710?%;margin-bottom:%?10?%}.list-body .index-card .image[data-v-70c04cd2]{width:100%;border-radius:%?10?%;width:%?710?%;height:%?710?%}.list-body .index-card .name[data-v-70c04cd2]{width:90%;margin:%?10?% 0\n /* margin-bottom: 20rpx; */}.list-body .index-card .price-dom[data-v-70c04cd2]{justify-content:space-between}.list-body .index-card .price[data-v-70c04cd2]{font-size:%?36?%;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#89f0fb}.list-body .index-card .name-image[data-v-70c04cd2]{width:%?30?%;height:%?30?%;margin-left:%?20?%}.list-body .index-card .price-image[data-v-70c04cd2]{width:%?60?%;height:%?60?%;border-radius:%?60?%;border:1px #eee solid;margin-right:%?20?%}.list-body .index-card .num[data-v-70c04cd2]{border:%?2?% solid #89f0fb\n /* background-image: url("https://htglhgwh.nftguanfang.com/static/pic/collection-images/34.png");\n\t\t\tbackground-size: 100% 100%; */}.list-body .index-card .num-name[data-v-70c04cd2]{\n /* width: 44rpx; */\n /* height: 28rpx; */padding:%?2?% %?6?%;background:linear-gradient(180deg,#e2b2ed,#8ce9ee);\n /* width: 3em; */text-align:center}.list-body .index-card .num-number[data-v-70c04cd2]{\n /* width: 4em; */justify-content:space-around;padding:0 %?30?%}.list-body .index-card .name-text-price[data-v-70c04cd2]{align-items:flex-end}.list-body .index-card .icon-mine[data-v-70c04cd2]{position:absolute;z-index:20;right:%?-70?%;top:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background-color:#25262a;color:#808083;width:%?250?%;height:%?60?%;text-align:center}.list-body .tab-list[data-v-70c04cd2]{width:100vw;height:%?100?%;margin-bottom:%?40?%}.list-body .tab-list .tab-dom[data-v-70c04cd2]{width:95%;height:100%;background-color:#25262a;justify-content:space-around}.list-body .tab-list .tab-item[data-v-70c04cd2]{color:#a6a7a9}.list-body .tab-list .tab-item-check[data-v-70c04cd2]{color:#dfc791;background:linear-gradient(90deg,#a2eafc,#e0b3f9 45%,#f4d078);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.list-body .swiper-dom[data-v-70c04cd2]{width:100vw}.list-body .swiper-dom .swiper[data-v-70c04cd2]{z-index:0;margin:%?20?%;height:%?340?%;border-radius:%?20?%;overflow:hidden}.list-body .swiper-dom .banner-item[data-v-70c04cd2]{width:100%;height:100%;border-radius:%?20?%;overflow:hidden}.list-body .swiper-dom .banner-image[data-v-70c04cd2]{height:100%;width:100%}',""]),t.exports=i},e8ae:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{bannerList:[],tabList:[{id:1,name:"藏品展示"},{id:2,name:"发售日历"}],tabIndex:0,goodsList:[]}},onLoad:function(t){this.getBanner(),t.code&&this.getopenid(t.code)},onShow:function(){uni.getStorageSync("token")?this.getGoods():uni.navigateTo({url:"./login"})},onPullDownRefresh:function(){this.getGoods()},methods:{getopenid:function(t){this.$u.post("/api/User_center/bindOpenid",{code:t}).then((function(t){}))},tixing:function(t){this.$u.post("/api/Index/setRemind",{id:t.id}).then((function(t){uni.showToast({icon:"none",title:t.msg})}))},goTo:function(t){uni.navigateTo({url:"/pages/index/goodsinfo?id="+t})},getGoods:function(){var t=this;this.$u.get("/api/Index/indexCollectionList").then((function(i){uni.stopPullDownRefresh(),t.goodsList=i.data}))},getBanner:function(){var t=this;this.$u.get("/api/Index/getBanner").then((function(i){console.log(i),1===i.code&&(t.bannerList=i.data)}))},changeIndex:function(t){1==t&&uni.navigateTo({url:"./rili"})}}};i.default=e}}]);
|