服务器提交
This commit is contained in:
10
public/weapp/components/ns-birthday-gift/ns-birthday-gift.js
Executable file
10
public/weapp/components/ns-birthday-gift/ns-birthday-gift.js
Executable file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-birthday-gift/ns-birthday-gift"],{"0f37":function(t,i,n){},2976:function(t,i,n){},"35e5":function(t,i,n){"use strict";var a=n("2976"),e=n.n(a);e.a},"4fcb":function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={name:"ns-birthday-gift",components:{uniPopup:function(){n.e("components/uni-popup/uni-popup").then(function(){return resolve(n("d745"))}.bind(null,n)).catch(n.oe)}},data:function(){return{birthday:{flag:!1,coupon_list:{}},callback:null}},computed:{introduction:function(){var t=0;if(this.birthday.blessing_content)for(var i=0,n=this.birthday.blessing_content.length;i<n;i++){var a=this.birthday.blessing_content.charCodeAt(i);t+=a>=1&&a<=126||65376<=a&&a<=65439?1:2}return t}},created:function(){this.storeToken&&this.init()},methods:{init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.callback=t),this.getBirthdayGift()},cancel:function(){this.$refs.birthdayGift.close()},getBirthdayGift:function(){var t=this;this.$api.sendRequest({url:"/birthdaygift/api/Config/config",success:function(i){i.code>=0&&i.data&&(t.birthday=i.data,t.getReceiveGift())}})},getReceiveGift:function(){var t=this;1==this.birthday.flag&&(this.$refs.birthdayGift.open(),this.$api.sendRequest({url:"/birthdaygift/api/Config/receive",data:{id:this.birthday.id},success:function(i){t.callback&&t.callback()}}))},closeRewardPopup:function(t){1==t?this.$util.redirectTo("/pages_tool/member/point_detail",{}):2==t?this.$util.redirectTo("/pages_tool/member/balance_detail",{}):this.$util.redirectTo("/pages_tool/member/coupon",{})}}};i.default=a},5542:function(t,i,n){"use strict";n.r(i);var a=n("a0d0"),e=n("ce9a");for(var r in e)["default"].indexOf(r)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(r);n("adf3"),n("35e5");var o=n("828b"),u=Object(o["a"])(e["default"],a["b"],a["c"],!1,null,"5fe79ee3",null,!1,a["a"],void 0);i["default"]=u.exports},a0d0:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return r})),n.d(i,"a",(function(){return a}));var a={uniPopup:function(){return n.e("components/uni-popup/uni-popup").then(n.bind(null,"d745"))}},e=function(){var t=this,i=t.$createElement,n=(t._self._c,t.birthday?t.$util.img("public/uniapp/birthday_gift/birthday_gift_bg.png"):null),a=t.birthday?t.$util.img("public/uniapp/birthday_gift/birthday_gift_left.png"):null,e=t.birthday?t.$util.img("public/uniapp/birthday_gift/birthday_gift_right.png"):null,r=t.birthday&&t.birthday.point>0?parseFloat(t.birthday.point):null,o=t.birthday&&0==t.birthday.balance_type&&t.birthday.balance>0?parseFloat(t.birthday.balance):null,u=t.birthday&&1==t.birthday.balance_type&&t.birthday.balance_money>0?parseFloat(t.birthday.balance_money):null,c=t.birthday?t.birthday.coupon_list.length:null,l=t.birthday&&c>0?t.__map(t.birthday.coupon_list,(function(i,n){var a=t.__get_orig(i),e="reward"==i.type?parseFloat(i.money):null;return{$orig:a,m3:e}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:e,m0:r,m1:o,m2:u,g3:c,l0:l}})},r=[]},adf3:function(t,i,n){"use strict";var a=n("0f37"),e=n.n(a);e.a},ce9a:function(t,i,n){"use strict";n.r(i);var a=n("4fcb"),e=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(r);i["default"]=e.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/ns-birthday-gift/ns-birthday-gift-create-component',
|
||||
{
|
||||
'components/ns-birthday-gift/ns-birthday-gift-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("5542"))
|
||||
})
|
||||
},
|
||||
[['components/ns-birthday-gift/ns-birthday-gift-create-component']]
|
||||
]);
|
||||
6
public/weapp/components/ns-birthday-gift/ns-birthday-gift.json
Executable file
6
public/weapp/components/ns-birthday-gift/ns-birthday-gift.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
1
public/weapp/components/ns-birthday-gift/ns-birthday-gift.wxml
Executable file
1
public/weapp/components/ns-birthday-gift/ns-birthday-gift.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<view class="data-v-5fe79ee3"><block wx:if="{{birthday}}"><view data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" class="reward-popup data-v-5fe79ee3" catchtouchmove="__e"><uni-popup vue-id="ce451cfc-1" type="center" maskClick="{{false}}" data-ref="birthdayGift" class="data-v-5fe79ee3 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="reward-wrap data-v-5fe79ee3"><view class="wrap data-v-5fe79ee3" style="{{'background-image:'+('url('+$root.g0+')')+';'}}"><block wx:if="{{memberInfo}}"><view class="birthday-title-name data-v-5fe79ee3">{{"Dear "+memberInfo.nickname}}</view></block><block wx:if="{{birthday.blessing_content}}"><view class="birthday-title-desc data-v-5fe79ee3">{{''+birthday.blessing_content+''}}</view></block><block wx:else><view class="birthday-title-desc data-v-5fe79ee3">感谢您一直以来的支持,在您生日到来之际,特为您送上最真诚的祝福!</view></block><view class="birthday-title-hint data-v-5fe79ee3"><image class="birthday-img-all data-v-5fe79ee3" src="{{$root.g1}}" mode></image><view class="font-size-toolbar data-v-5fe79ee3">生日贺礼</view><image class="birthday-img-all data-v-5fe79ee3" src="{{$root.g2}}" mode></image></view><scroll-view class="register-box data-v-5fe79ee3" scroll-y="true"><view class="reward-content data-v-5fe79ee3"><block wx:if="{{birthday.point>0}}"><view class="content data-v-5fe79ee3"><view class="info data-v-5fe79ee3"><text class="num data-v-5fe79ee3">{{''+$root.m0+''}}<text class="type data-v-5fe79ee3">积分</text></text><view class="desc data-v-5fe79ee3">用于下单时抵现或兑换商品等</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['1']]]]]}}" class="tip data-v-5fe79ee3" bindtap="__e">立即查看</view></view></block><block wx:if="{{birthday.balance_type==0&&birthday.balance>0}}"><view class="content data-v-5fe79ee3"><view class="info data-v-5fe79ee3"><text class="num data-v-5fe79ee3">{{''+$root.m1+''}}<text class="type data-v-5fe79ee3">元红包</text></text><view class="desc data-v-5fe79ee3">不可提现红包</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['2']]]]]}}" class="tip data-v-5fe79ee3" bindtap="__e">立即查看</view></view></block><block wx:if="{{birthday.balance_type==1&&birthday.balance_money>0}}"><view class="content data-v-5fe79ee3"><view class="info data-v-5fe79ee3"><text class="num data-v-5fe79ee3">{{''+$root.m2+''}}<text class="type data-v-5fe79ee3">元红包</text></text><view class="desc data-v-5fe79ee3">可提现红包</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['2']]]]]}}" class="tip data-v-5fe79ee3" bindtap="__e">立即查看</view></view></block><block wx:if="{{$root.g3>0}}"><block class="data-v-5fe79ee3"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-5fe79ee3"><view class="content data-v-5fe79ee3"><view class="info data-v-5fe79ee3"><block wx:if="{{item.$orig.type=='reward'}}"><text class="num data-v-5fe79ee3">{{''+item.m3+''}}<text class="type data-v-5fe79ee3">元优惠劵</text></text></block><block wx:else><block wx:if="{{item.$orig.type=='discount'}}"><text class="num data-v-5fe79ee3">{{''+item.$orig.discount+''}}<text class="type data-v-5fe79ee3">折</text></text></block></block><view class="desc data-v-5fe79ee3">用于下单时抵现或兑换商品等</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['3']]]]]}}" class="tip data-v-5fe79ee3" bindtap="__e">立即查看</view></view></block></block></block></block></view></scroll-view></view><view data-event-opts="{{[['tap',[['cancel']]]]}}" class="close-btn data-v-5fe79ee3" bindtap="__e"><text class="iconfont icon-close btn data-v-5fe79ee3"></text></view></view></uni-popup></view></block></view>
|
||||
1
public/weapp/components/ns-birthday-gift/ns-birthday-gift.wxss
Executable file
1
public/weapp/components/ns-birthday-gift/ns-birthday-gift.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.register-box.data-v-5fe79ee3 .uni-scroll-view{background:unset!important}.register-box.data-v-5fe79ee3{max-height:320rpx;overflow-y:scroll}.data-v-5fe79ee3 .uni-popup__wrapper-box{background-color:initial!important}.data-v-5fe79ee3 .birthday-title-hint uni-image{width:113rpx!important;height:24rpx!important}.reward-wrap{width:600rpx;height:auto}.reward-wrap .wrap{width:600rpx;height:932rpx;background-size:100%;background-repeat:no-repeat;padding-bottom:40rpx}.reward-wrap .wrap .birthday-title-name{font-size:32rpx;font-weight:700;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;padding-top:350rpx;text-align:center;color:#fff;line-height:1}.reward-wrap .wrap .birthday-title-desc{font-weight:500;margin:30rpx 70rpx 20rpx;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;color:#fff}.reward-wrap .wrap .birthday-title-hint{font-size:32rpx;font-weight:700;font-family:BDZongYi-A001;display:flex;align-items:center;justify-content:center;margin:0 0 40rpx;line-height:1}.reward-wrap .wrap .birthday-title-hint .birthday-img-all{width:100rpx;height:20rpx}.reward-wrap .wrap .birthday-title-hint > view{margin:0 20rpx;color:#fff}.reward-wrap .reward-content{margin:0 40rpx}.reward-wrap .head{color:#fff;text-align:center;line-height:1;margin:20rpx 0}.reward-wrap .content:last-child{margin-bottom:0}.reward-wrap .content{display:flex;align-items:center;padding:16rpx 26rpx;background:#fff;border-radius:10rpx;margin-bottom:20rpx;box-sizing:border-box;height:136rpx}.reward-wrap .content .info{flex:1}.reward-wrap .content .tip{color:#fa5b14;padding:10rpx 0 10rpx 20rpx;width:60rpx;line-height:1.5;letter-spacing:2rpx;border-left:2rpx dashed #e5e5e5}.reward-wrap .content .num{font-size:48rpx;color:#fa5b14;font-weight:bolder;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;max-width:300rpx}.reward-wrap .content .type{font-size:28rpx;margin-left:10rpx;line-height:1;font-weight:400;color:#606266}.reward-wrap .content .desc{margin-top:8rpx;color:#909399;font-size:24rpx;line-height:1}.reward-wrap .close-btn{text-align:center;margin-top:40rpx}.reward-wrap .close-btn .btn{font-size:40rpx;color:#fff;border:4rpx solid #fff;border-radius:50%;padding:10rpx;font-weight:700;width:40rpx;height:40rpx;margin:0 auto;line-height:40rpx}
|
||||
Reference in New Issue
Block a user