第一次提交
This commit is contained in:
10
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.js
vendored
Normal file
10
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/home-push/home-push"],{"572e":function(t,n,o){"use strict";var e=o("6b95"),u=o.n(e);u.a},"6b95":function(t,n,o){},"778f":function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={components:{Popup:function(){o.e("components/uni-popup").then(function(){return resolve(o("b892"))}.bind(null,o)).catch(o.oe)}},data:function(){return{isPopup:!1,type:0,width:600,height:800,backgroundColor:"none",boxShadow:"none",form:{},coupon:[]}},props:["homepush_data"],created:function(){},mounted:function(){this.setData()},methods:{setData:function(){this.isPopup=!0,this.form=this.homepush_data,this.type=this.homepush_data.type,this.coupon=this.homepush_data.coupon},hidePopupFunc:function(n){t.setStorageSync("homepush_name",this.homepush_data.name),this.isPopup=!1},jumpPage:function(t){this.hidePopupFunc(),this.gotoPage("/"+t)},getCoupon:function(){var n=this,o=[];n.coupon.forEach((function(t){o.push(t.coupon_id)})),n._get("user.coupon/receiveList",{coupon_ids:JSON.stringify(o)},(function(o){t.showToast({title:"领取成功",icon:"success",mask:!0,duration:2e3}),n.hidePopupFunc()}))}}};n.default=e}).call(this,o("df3c")["default"])},c07d:function(t,n,o){"use strict";o.r(n);var e=o("778f"),u=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(i);n["default"]=u.a},d61e:function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return u})),o.d(n,"a",(function(){}));var e=function(){var t=this.$createElement;this._self._c},u=[]},e978:function(t,n,o){"use strict";o.r(n);var e=o("d61e"),u=o("c07d");for(var i in u)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return u[t]}))}(i);o("572e");var c=o("828b"),s=Object(c["a"])(u["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=s.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'pages/index/home-push/home-push-create-component',
|
||||
{
|
||||
'pages/index/home-push/home-push-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("e978"))
|
||||
})
|
||||
},
|
||||
[['pages/index/home-push/home-push-create-component']]
|
||||
]);
|
||||
6
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"popup": "/components/uni-popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="home-push-wrap"><popup vue-id="1100afea-1" show="{{isPopup}}" width="{{width}}" height="{{height}}" backgroundColor="{{backgroundColor}}" boxShadow="{{boxShadow}}" padding="{{0}}" data-event-opts="{{[['^hidePopup',[['hidePopupFunc']]]]}}" bind:hidePopup="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="{{['home-push',type==1||type==3?'home-push-bg':'']}}"><block wx:if="{{type==1}}"><view class="image-text"><view class="pic"><image src="{{form.file_path}}" mode="aspectFill"></image></view><view class="title">{{form.title}}</view><view class="des">{{form.remark}}</view><view class="btns"><button type="primary" data-event-opts="{{[['tap',[['jumpPage',['$0'],['form.link.url']]]]]}}" bindtap="__e">{{form.des}}</button></view></view></block><block wx:if="{{type==2}}"><view data-event-opts="{{[['tap',[['jumpPage',['$0'],['form.link.url']]]]]}}" class="image-only" bindtap="__e"><view class="pic"><image src="{{form.file_path}}" mode="aspectFill"></image></view></view></block><block wx:if="{{type==3}}"><view class="cuopon"><block wx:if="{{form.file_path!=null&&form.file_path!=''}}"><view class="cuopon-title d-c-c"><image src="{{form.file_path}}" mode="aspectFill"></image></view></block><view class="list"><block wx:for="{{coupon}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item"><view class="info"><view class="num"><text class="f30">{{item.name}}</text></view></view><view class="explan"><text class="name">{{item.type}}</text></view></view></block></view><view class="btns"><button type="primary" data-event-opts="{{[['tap',[['getCoupon']]]]}}" bindtap="__e">立即领取</button></view></view></block></view><view data-event-opts="{{[['tap',[['hidePopupFunc',[true]]]]]}}" class="close-btns" bindtap="__e"><text class="icon iconfont icon-guanbi"></text></view></popup></view>
|
||||
2
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.wxss
vendored
Normal file
2
unpackage/dist/build/mp-weixin/pages/index/home-push/home-push.wxss
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.home-push{width:100%;border-radius:20rpx;overflow:hidden}.home-push-bg{background:#fff;box-shadow:0 0 30rpx rgba(0,0,0,.1)}.home-push .title{padding:10rpx 20rpx;text-align:center;font-size:30rpx;font-weight:700}.home-push .des{padding:20rpx;color:#999}.home-push .btns{padding:20rpx;display:flex;justify-content:center;align-items:center}.home-push .btns button{width:200rpx;padding:0;height:80rpx;line-height:80rpx;font-size:28rpx;border-radius:45rpx;background:#e2231a}.home-push-wrap .image-text .pic{width:600rpx;height:300rpx}.home-push-wrap .image-only .pic{width:600rpx;height:420rpx}.home-push .cuopon .cuopon-title{width:600rpx;height:250rpx;overflow:hidden}.home-push-wrap image{width:100%;height:100%}.home-push .cuopon .list{padding:20rpx}.home-push .cuopon .list .item{margin-top:20rpx;display:flex;justify-content:flex-start;background:#fff9eb}.home-push .cuopon .item .info{flex:1;padding:20rpx;border:1px solid #ffe4d8;border-radius:16rpx}.home-push .cuopon .item .info .num{color:#e2231a}.home-push .cuopon .item .explan{position:relative;width:120rpx;padding:20rpx;display:flex;justify-content:center;align-items:center;flex-direction:column;border:1px solid #ffe4d8;border-left:2px dashed #ffe4d8;border-radius:16rpx;background:#ff553c;color:#fff}.home-push .cuopon .item .explan .name{font-size:30rpx;color:#fff9eb}.home-push .cuopon .item .explan .sub{color:#ff9897}.home-push .cuopon .list .explan::before,
|
||||
.home-push .cuopon .list .explan::after{display:block;position:absolute;content:"";width:20rpx;height:10rpx;background:#fff}.home-push .cuopon .list .explan::before{left:-10rpx;top:-1px;border-radius:0 0 10rpx 10rpx}.home-push .cuopon .list .explan::after{left:-10rpx;bottom:-1px;border-radius:10rpx 10rpx 0 0}.home-push-wrap .close-btns{margin:50rpx auto 0;width:60rpx;height:60rpx;display:flex;justify-content:center;align-items:center;border-radius:50%;background:none;border:2px solid #fff}.home-push-wrap .close-btns .iconfont{color:#fff}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
12
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
12
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "首页",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"nav-bar": "/components/navBar/navBar",
|
||||
"diy": "/components/diy/diy",
|
||||
"homepush": "/pages/index/home-push/home-push",
|
||||
"uni-load-more": "/components/uni-load-more",
|
||||
"search-product": "/components/searchProduct"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="{{[$root.m0]}}" data-theme="{{$root.m1}}"><view class="top_head pr" style="{{('background-color: '+bgcolor+';')}}"><view class="head_top" style="{{('height:'+$root.m2+'px;')}}"></view><view class="d-b-c" style="{{($root.m3==0?'':'height:'+$root.m4+'px;')}}"><view class="index_log"><image src="{{toplogo||''}}" mode></image></view><view class="d-s-c flex-1"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="top_search search-wx" style="{{('height:'+$root.m5+' px;color:'+bgcolor+';')}}" bindtap="__e"><text class="icon iconfont icon-sousuo" style="{{('color:'+bgcolor+';')}}"></text>搜索商品</view><view data-event-opts="{{[['tap',[['scanQrcode',['$event']]]]]}}" class="top_search_right" bindtap="__e"><text class="icon iconfont icon-saoyisao1"></text></view></view></view><block wx:if="{{openCategory.open}}"><view class="nuter"><nav-bar style="width:100%;" vue-id="8dd740cc-1" color="{{openCategory.color}}" currentI="{{thisindex}}" navList="{{category_list}}" data-event-opts="{{[['^currentIndex',[['setIndex']]]]}}" bind:currentIndex="__e" bind:__l="__l"></nav-bar></view></block><block wx:else><view style="height:20rpx;"></view></block></view><view class="top_bg" style="{{('background-color: '+bgcolor+';')}}"></view><view><block wx:if="{{thisindex==0}}"><view><diy style="position:relative;" vue-id="8dd740cc-2" diyItems="{{items}}" bind:__l="__l"></diy></view></block><block wx:if="{{thisindex!=0}}"><view><view class="product-list"><block wx:for="{{product_list}}" wx:for-item="pitem" wx:for-index="pindex" wx:key="pindex"><view data-event-opts="{{[['tap',[['gotoPage',['/pages/product/detail/detail?product_id='+pitem.product_id]]]]]}}" class="{{['product_item','o-h',pindex%2==1?'product_item_right':'']}}" bindtap="__e"><view><image style="width:345rpx;height:345rpx;" src="{{pitem.product_image}}" mode></image></view><view class="text-ellipsis-2 f26 pro_name p-0-20 mt20">{{pitem.product_name}}</view><view class="mt36 mb20 p-0-20"><text class="f20 fb redF6">¥</text><text class="f32 fb redF6">{{pitem.product_sku.product_price}}</text><text class="text-d-line f20 gray9 ml10">¥</text><text class="text-d-line f24 gray9">{{pitem.product_sku.line_price}}</text></view></view></block></view><block wx:if="{{$root.g0}}"><view class="d-c-c p30 ww100"><text class="iconfont icon-wushuju"></text><text class="cont">亲,暂无相关记录哦</text></view></block><block wx:else><uni-load-more vue-id="8dd740cc-3" loadingType="{{loadingType}}" bind:__l="__l"></uni-load-more></block></view></block></view><block wx:if="{{is_collection}}"><view class="collection-box" style="{{('top:'+($root.m6+$root.m7+10)+'px;')}}"><view class="inner"><text>点击“</text><text class="point">.</text><text class="point point-big">.</text><text class="point">.</text><text>”添加到我的小程序,\n微信首页下拉即可快速访问店铺</text></view><button class="close-btn" type="primary" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e">x</button></view></block><block wx:if="{{is_follow=='1'}}"><view class="{{['follow-gzh',is_auto?'is_auto':'']}}"><text data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="icon iconfont icon-guanbi" bindtap="__e"></text><official-account></official-account></view></block><block wx:if="{{is_homepush}}"><homepush vue-id="8dd740cc-4" homepush_data="{{homepush_data}}" bind:__l="__l"></homepush></block><search-product vue-id="8dd740cc-5" isShow="{{showSearch}}" data-event-opts="{{[['^close',[['closeSearch']]]]}}" bind:close="__e" bind:__l="__l"></search-product><tab-bar vue-id="8dd740cc-6" bind:__l="__l"></tab-bar></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
@ -0,0 +1 @@
|
||||
.bg-f2{background-color:#f2f2f2}.top_head{line-height:30px;z-index:1;padding-left:26rpx;position:-webkit-sticky;position:sticky;top:0;left:0;z-index:100}.head_top{width:100%;height:25px}.index_log{min-height:46rpx;line-height:46rpx;font-size:26rpx;font-weight:800;color:#fff}.index_log image{width:60rpx;height:60rpx}.top_search{height:60rpx;line-height:60rpx;background:#fff;border-radius:30rpx 0 0 30rpx;font-size:30rpx;margin-left:10rpx;color:#ee1413;font-weight:800}.top_search.search-wx{width:385rpx}.top_search.special{width:100%}.top_search_right{background:#fff;border-radius:0 30rpx 30rpx 0;height:60rpx;position:relative}.top_search_right::before{content:" ";width:1rpx;height:20rpx;background-color:#d9d9d9;left:0;top:0;bottom:0;margin:auto;position:absolute}.top_search_right .icon-saoyisao1{padding:0 20rpx}.top_search .icon-sousuo{font-size:30rpx;color:#ee1413;margin-left:20rpx;margin-right:10rpx}.top_bg{position:absolute;top:0;z-index:0;width:750rpx;height:350rpx}.top_bg image{width:750rpx;height:350rpx}.nuter{width:100%;height:80rpx;line-height:80rpx;display:flex;justify-content:space-around;font-size:35rpx;padding-bottom:10rpx}.nuter view{flex:1;font-size:30rpx;text-align:center;transition:all .5s ease .1s}swiper{height:80vh;width:100%;overflow:hidden}.swiper-item{overflow-y:scroll;width:100%;height:99%;box-sizing:border-box}.banner{height:240rpx;width:710rpx}.banner image{width:710rpx;height:240rpx}.new-people .group-bd{display:flex;justify-content:space-between}.new-people .list{padding-right:30rpx}.new-people .list .item{width:180rpx;text-align:center}.new-people .list .price{font-size:24rpx}.new-people .list .price .num{font-size:34rpx;font-weight:700}.new-people .list button{font-size:24rpx;background:#6170ff}.new-people .list image{width:180rpx;height:180rpx;border:1px dashed #ccc}.new-people .other{width:230rpx}.new-people .other image{width:100%}.group-seckill .left .iconfont{margin-right:8rpx;color:#e2231a;font-size:40rpx}.group-seckill .list .item{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:150rpx;height:230rpx;border:1px dashed #ccc}.group-seckill .list text{line-height:60rpx;color:#e2231a}.group-seckill .list image{width:150rpx;height:150rpx}.group-hd .datetime .time{padding:4rpx;background:#e2231a;color:#fff;border-radius:4rpx}.group-hd .datetime .point{padding:0 10rpx;color:#e2231a}.collection-box{position:fixed;width:380rpx;padding:20rpx;top:20rpx;right:20rpx;line-height:40rpx;font-size:24rpx;border-radius:16rpx;background:#fff;border:1px solid #eee;box-shadow:0 0 6rpx 0 rgba(0,0,0,.08);z-index:100}.collection-box::after{position:absolute;content:"";display:block;right:140rpx;top:-15rpx;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:30rpx;height:30rpx;-webkit-transform:rotate;transform:rotate;background:#fff;border-left:1px solid #eee;border-top:1px solid #eee}.collection-box .point{width:20rpx;height:20rpx;font-size:60rpx;line-height:0;color:#666}.collection-box .point-big{font-size:80rpx}.collection-box .close-btn{position:absolute;padding:0;right:10rpx;top:10rpx;width:40rpx;height:40rpx;line-height:30rpx;background:#fff;color:#999;border-radius:50%}.follow-gzh{position:fixed;left:0;right:0;bottom:calc(0px);border-radius:16rpx;box-shadow:0 0 20rpx 0 rgba(0,0,0,.1);background:#fff;z-index:10}.follow-gzh.is_auto{bottom:calc(env(safe-area-inset-bottom) + 98rpx)}.follow-gzh .iconfont{display:block;position:absolute;right:10rpx;top:10rpx;z-index:99}.product-list{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;position:relative;z-index:1}.product_item{width:345rpx;margin:20rpx;border-radius:12rpx;background-color:#fff}.product_item.product_item_right{margin-left:0}.product_item .pro_name{height:68rpx;line-height:34rpx}.chat{width:40rpx;height:40rpx}.newsnum{position:absolute;top:-8rpx;right:-16rpx;z-index:100;border-radius:50%;width:25rpx;height:25rpx;text-align:center;line-height:25rpx;color:#fff;background-color:#f63;padding:5rpx;font-size:20rpx}
|
||||
Reference in New Issue
Block a user