第一次提交
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}
|
||||
Reference in New Issue
Block a user