Commit 9f86a08b73488daa9b5720c730400c3463c98829
1 parent
f8d339cc
~~ 优惠促销多活动的的优化 ~~·
Showing
6 changed files
with
189 additions
and
2 deletions
components/promate_pop/promate_pop.js
0 → 100644
| 1 | +Component({ | ||
| 2 | + /*** 页面的初始数据***/ | ||
| 3 | + data: { | ||
| 4 | + type:0,// 0只显示再商品详情页面 1显示再有选择按钮 | ||
| 5 | + }, | ||
| 6 | + methods: { | ||
| 7 | + | ||
| 8 | + //-- 初始化弹出框 -- | ||
| 9 | + set_init(){ | ||
| 10 | + | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /*----pop的开关---*/ | ||
| 14 | + close_pro_pop: async function (event) { | ||
| 15 | + this.setData({pro_pop: 0}); | ||
| 16 | + }, | ||
| 17 | + } | ||
| 18 | +}) | ||
| 0 | \ No newline at end of file | 19 | \ No newline at end of file | 
components/promate_pop/promate_pop.json
0 → 100644
components/promate_pop/promate_pop.wxml
0 → 100644
| 1 | +<!-- --弹起领券-- --> | ||
| 2 | +<view wx:if='{{pro_pop==1}}'> | ||
| 3 | + <view class="cover-layer flex-center" bindtap="close_pro_pop"></view> | ||
| 4 | + <view class="cx-popup {{pro_pop== true ? 'up_pro' : 'down_pro'}} "> | ||
| 5 | + <view class="top-frame"> | ||
| 6 | + <view class="top t-c">促销列表</view> | ||
| 7 | + </view> | ||
| 8 | + | ||
| 9 | + <view class="xc-frame"> | ||
| 10 | + <view class="top-frame"> | ||
| 11 | + <view class="xc-coupon-frame "> | ||
| 12 | + | ||
| 13 | + </view> | ||
| 14 | + </view> | ||
| 15 | + </view> | ||
| 16 | + <view class="cx-confirm pd20" bindtap="close_pro_pop"> | ||
| 17 | + <view wx:if="{{type==0}}" class="confirm t-c">我知道了</view> | ||
| 18 | + <view wx:if="{{type==1}}" class="confirm t-c">确定</view> | ||
| 19 | + </view> | ||
| 20 | + </view> | ||
| 21 | +</view> | ||
| 0 | \ No newline at end of file | 22 | \ No newline at end of file | 
components/promate_pop/promate_pop.wxss
0 → 100644
| 1 | +@import '../../app.wxss'; | ||
| 2 | +/* 自定义弹出窗口 */ | ||
| 3 | +.cx-popup { | ||
| 4 | + width: 100%; | ||
| 5 | + background: #fff; | ||
| 6 | + z-index: 35; | ||
| 7 | + border-top-left-radius: 10rpx; | ||
| 8 | + border-top-right-radius: 10rpx; | ||
| 9 | + position: fixed; | ||
| 10 | + bottom: 0; | ||
| 11 | +} | ||
| 12 | +.xc-top-content { | ||
| 13 | + width: 88%; | ||
| 14 | + height: 85rpx; | ||
| 15 | + padding-top: 50rpx; | ||
| 16 | + font-size: 36rpx; | ||
| 17 | +} | ||
| 18 | +.xc-valid-coupon { | ||
| 19 | + width: 90%; | ||
| 20 | + height: 40rpx; | ||
| 21 | + padding-top: 24rpx; | ||
| 22 | + overflow: hidden; | ||
| 23 | +} | ||
| 24 | +.xc-frame { | ||
| 25 | + padding: 20rpx; | ||
| 26 | +} | ||
| 27 | +.xc-frame .list-frame { | ||
| 28 | + width: 90%; | ||
| 29 | + height: 100%; | ||
| 30 | + overflow-y: scroll; | ||
| 31 | + margin-top: 20rpx; | ||
| 32 | +} | ||
| 33 | + | ||
| 34 | +.xc-close-frame { | ||
| 35 | + margin-top: 30rpx; | ||
| 36 | + width: 15%; | ||
| 37 | + display: flex; | ||
| 38 | +} | ||
| 39 | + | ||
| 40 | +.xc-close { | ||
| 41 | + width: 70rpx; | ||
| 42 | + height: 70rpx; | ||
| 43 | + border-radius: 50%; | ||
| 44 | + border: 5rpx solid #a5a5a7; | ||
| 45 | + text-align: center; | ||
| 46 | + line-height: 55rpx; | ||
| 47 | + font-size: 80rpx; | ||
| 48 | + color: #a5a5a7; | ||
| 49 | + font-family: "微软正黑体"; | ||
| 50 | + margin-top: 8rpx; | ||
| 51 | +} | ||
| 52 | +.xc-money { | ||
| 53 | + color: #ff0013; | ||
| 54 | +} | ||
| 55 | + | ||
| 56 | +.xc-coupon-effect { | ||
| 57 | + width: 99%; | ||
| 58 | + height: 128rpx; | ||
| 59 | + border-bottom: 3rpx solid #ddd; | ||
| 60 | +} | ||
| 61 | + | ||
| 62 | +.xc-goods-coupon { | ||
| 63 | + width: 80%; | ||
| 64 | + height: 100%; | ||
| 65 | +} | ||
| 66 | + | ||
| 67 | +.xc-title { | ||
| 68 | + width: 50%; | ||
| 69 | + margin-left: 222rpx; | ||
| 70 | +} | ||
| 71 | + | ||
| 72 | +.xc-coupon-money { | ||
| 73 | + color: #c91e31; | ||
| 74 | + font-size: 35rpx; | ||
| 75 | + margin-top: 20rpx; | ||
| 76 | + | ||
| 77 | +} | ||
| 78 | + | ||
| 79 | +.xc-coupon-time { | ||
| 80 | + height: 50rpx; | ||
| 81 | + font-size: 27rpx; | ||
| 82 | + color: #a4a4a4; | ||
| 83 | +} | ||
| 84 | + | ||
| 85 | +.xc-coupon-time .time { | ||
| 86 | + margin-left: 15rpx; | ||
| 87 | + font-size: 27rpx; | ||
| 88 | +} | ||
| 89 | + | ||
| 90 | +.xc-coupon-selection { | ||
| 91 | + width: 99%; | ||
| 92 | + height: 100%; | ||
| 93 | +} | ||
| 94 | + | ||
| 95 | +.xc-confirm { | ||
| 96 | + width: 90%; | ||
| 97 | + height: 75rpx; | ||
| 98 | + margin: 0 auto; | ||
| 99 | + background: #c41830; | ||
| 100 | + color: #fff; | ||
| 101 | + border-radius: 10rpx; | ||
| 102 | + font-size: 30rpx; | ||
| 103 | + margin-top: 50rpx; | ||
| 104 | +} | ||
| 105 | + | ||
| 106 | +.xc-not-Selection { | ||
| 107 | + width: 60rpx; | ||
| 108 | + height: 60rpx; | ||
| 109 | + background: #eeeeee; | ||
| 110 | +} | ||
| 111 | + | ||
| 112 | +.up_pro { | ||
| 113 | + animation: up .7s; | ||
| 114 | +} | ||
| 115 | + | ||
| 116 | +.down_pro { | ||
| 117 | + animation: down 1s; | ||
| 118 | +} | ||
| 119 | + | ||
| 120 | +@keyframes up_pro { | ||
| 121 | + 0% { | ||
| 122 | + transform: translateY(550rpx); | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + 100% { | ||
| 126 | + transform: translateY(0); | ||
| 127 | + } | ||
| 128 | +} | ||
| 129 | + | ||
| 130 | +@keyframes down_pro { | ||
| 131 | + 0% { | ||
| 132 | + transform: translateY(0); | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + 100% { | ||
| 136 | + transform: translateY(550rpx); | ||
| 137 | + } | ||
| 138 | +} | 
pages/goods/goodsInfo/goodsInfo.json
| @@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
| 5 | "nav_box": "/components/nav_box/nav_box", | 5 | "nav_box": "/components/nav_box/nav_box", | 
| 6 | "warn": "/components/long_warn/long_warn", | 6 | "warn": "/components/long_warn/long_warn", | 
| 7 | "goods_recommend": "/components/goods_list/goods_list", | 7 | "goods_recommend": "/components/goods_list/goods_list", | 
| 8 | - "share": "/components/share/share" | 8 | + "share": "/components/share/share", | 
| 9 | + "pro_pop": "/components/promate_pop/promate_pop" | ||
| 9 | } | 10 | } | 
| 10 | } | 11 | } | 
| 11 | \ No newline at end of file | 12 | \ No newline at end of file | 
pages/goods/goodsInfo/goodsInfo.wxml
| @@ -1721,6 +1721,7 @@ | @@ -1721,6 +1721,7 @@ | ||
| 1721 | <warn id="warn"></warn> | 1721 | <warn id="warn"></warn> | 
| 1722 | <!-- 分享控件,底部弹出 --> | 1722 | <!-- 分享控件,底部弹出 --> | 
| 1723 | <share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share> | 1723 | <share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share> | 
| 1724 | + | ||
| 1724 | <view wx:if="{{showPoster}}"> | 1725 | <view wx:if="{{showPoster}}"> | 
| 1725 | <view class="mask" catchtap="closePoster"></view> | 1726 | <view class="mask" catchtap="closePoster"></view> | 
| 1726 | <view class="poster-container"> | 1727 | <view class="poster-container"> | 
| @@ -1791,4 +1792,8 @@ | @@ -1791,4 +1792,8 @@ | ||
| 1791 | <include src="buy_flash_normal.wxml" /> | 1792 | <include src="buy_flash_normal.wxml" /> | 
| 1792 | </view> | 1793 | </view> | 
| 1793 | 1794 | ||
| 1794 | -<include src="../../../components/com_servicer/com_servicer.wxml"></include> | ||
| 1795 | \ No newline at end of file | 1795 | \ No newline at end of file | 
| 1796 | +<include src="../../../components/com_servicer/com_servicer.wxml"></include> | ||
| 1797 | + | ||
| 1798 | +<!-- 促销弹出框 --> | ||
| 1799 | +<pro_pop id="pro_pop"></pro_pop> | ||
| 1800 | + | 
