This commit is contained in:
2025-12-20 08:34:16 +08:00
commit 9d4fdc7242
872 changed files with 3536 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-new-gift/ns-new-gift"],{"08c2":function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={components:{uniPopup:function(){i.e("components/uni-popup/uni-popup").then(function(){return resolve(i("1843"))}.bind(null,i)).catch(i.oe)}},data:function(){return{newgift:{flag:!1,award_list:{point:0,coupon_list:{}},remark:{}},bgHight:"940rpx !important",bytesCount:null}},filters:{int:function(t){var n=String(t),i=n.split(".");return parseInt(i[1])>0?n:i[0]}},computed:{introduction:function(){for(var t=0,n=0,i=this.newgift.remark.length;n<i;n++){var e=this.newgift.remark.charCodeAt(n);t+=e>=1&&e<=126||65376<=e&&e<=65439?1:2}return t}},created:function(){this.storeToken&&this.init()},methods:{init:function(){this.getHolidayGift()},getHolidayGift:function(){var t=this;this.$api.sendRequest({url:"/scenefestival/api/config/config",success:function(n){n.data&&n.data[0]&&(t.newgift=n.data[0],t.newgift.award_list.award_type.length<=1&&(t.bgHight="800rpx !important"),t.getGift())}})},cancel:function(){this.$refs.nsNewGift.close()},getGift:function(){1==this.newgift.flag&&(this.$refs.nsNewGift.open(),this.$api.sendRequest({url:"/scenefestival/api/config/receive",data:{festival_id:this.newgift.festival_id},success:function(t){}}))},closeRewardPopup:function(t){1==t?this.$util.redirectTo("/pages_tool/member/point_detail",{}):2==t?this.$util.redirectTo("/pages_tool/member/balance_detail",{}):3==t&&this.$util.redirectTo("/pages_tool/member/coupon",{})}}};n.default=e},"252d":function(t,n,i){"use strict";i.r(n);var e=i("2e77"),a=i("5777");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("b988"),i("46fa");var u=i("828b"),l=Object(u["a"])(a["default"],e["b"],e["c"],!1,null,"c9e973d8",null,!1,e["a"],void 0);n["default"]=l.exports},"2e77":function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){return e}));var e={uniPopup:function(){return i.e("components/uni-popup/uni-popup").then(i.bind(null,"1843"))}},a=function(){var t=this,n=t.$createElement,i=(t._self._c,t.newgift?t.$util.img("public/uniapp/new_gift/holiday_polite-bg.png"):null),e=t.newgift?t.$util.img("public/uniapp/new_gift/holiday_polite_left.png"):null,a=t.newgift?t.$util.img("public/uniapp/new_gift/holiday_polite_right.png"):null,o=t.newgift&&0==t.newgift.award_list.balance_type&&t.newgift.award_list.balance>0?t._f("int")(t.newgift.award_list.balance):null,u=t.newgift&&1==t.newgift.award_list.balance_type&&t.newgift.award_list.balance_money>0?t._f("int")(t.newgift.award_list.balance_money):null,l=t.newgift?t.newgift.award_list.coupon_list.length:null,r=t.newgift&&l>0?t.__map(t.newgift.award_list.coupon_list,(function(n,i){var e=t.__get_orig(n),a="reward"==n.type?parseFloat(n.money):null,o="reward"!=n.type&&"discount"==n.type?t._f("int")(n.discount):null;return{$orig:e,m0:a,f2:o}})):null;t.$mp.data=Object.assign({},{$root:{g0:i,g1:e,g2:a,f0:o,f1:u,g3:l,l0:r}})},o=[]},"46fa":function(t,n,i){"use strict";var e=i("a8c6"),a=i.n(e);a.a},5777:function(t,n,i){"use strict";i.r(n);var e=i("08c2"),a=i.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a},"8a26":function(t,n,i){},a8c6:function(t,n,i){},b988:function(t,n,i){"use strict";var e=i("8a26"),a=i.n(e);a.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/ns-new-gift/ns-new-gift-create-component',
{
'components/ns-new-gift/ns-new-gift-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("252d"))
})
},
[['components/ns-new-gift/ns-new-gift-create-component']]
]);

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-popup": "/components/uni-popup/uni-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="data-v-c9e973d8"><block wx:if="{{newgift}}"><view data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" class="reward-popup data-v-c9e973d8" catchtouchmove="__e"><uni-popup vue-id="3246c476-1" type="center" maskClick="{{false}}" data-ref="nsNewGift" class="data-v-c9e973d8 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="reward-wrap data-v-c9e973d8"><view class="newgift-content data-v-c9e973d8" style="{{'background-image:'+('url('+$root.g0+')')+';'}}"><view class="content-title-holiday data-v-c9e973d8"><image class="birthday-img-all data-v-c9e973d8" src="{{$root.g1}}" mode></image><view class="font-size-toolbar activity-name data-v-c9e973d8">{{newgift.activity_name}}</view><image class="birthday-img-all data-v-c9e973d8" src="{{$root.g2}}" mode></image></view><block wx:if="{{memberInfo}}"><view class="content-title-name data-v-c9e973d8">{{"Dear "+memberInfo.nickname}}</view></block><block wx:if="{{newgift.remark}}"><view class="content-title-hint data-v-c9e973d8">{{newgift.remark}}</view></block><block wx:else><view class="content-title-hint data-v-c9e973d8">{{"感谢您一直以来的支持,为回馈会员,商城"+(newgift.activity_name?newgift.activity_name:'xx')+"节日,为您提供以下福利"}}</view></block><scroll-view class="register-box data-v-c9e973d8" scroll-y="true"><view class="{{['data-v-c9e973d8',introduction>38?'reward-content':'reward-content-two']}}"><block wx:if="{{newgift.award_list.point>0}}"><view class="content data-v-c9e973d8"><view class="info data-v-c9e973d8"><text class="num data-v-c9e973d8">{{''+newgift.award_list.point+''}}<text class="type data-v-c9e973d8">积分</text></text><view class="desc data-v-c9e973d8">用于参与活动购买商品时抵扣</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['1']]]]]}}" class="tip data-v-c9e973d8" bindtap="__e">立即查看</view></view></block><block wx:if="{{newgift.award_list.balance_type==0&&newgift.award_list.balance>0}}"><view class="content data-v-c9e973d8"><view class="info data-v-c9e973d8"><text class="num data-v-c9e973d8">{{''+$root.f0+''}}<text class="type data-v-c9e973d8">元红包</text></text><view class="desc data-v-c9e973d8">不可提现红包</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['2']]]]]}}" class="tip data-v-c9e973d8" bindtap="__e">立即查看</view></view></block><block wx:if="{{newgift.award_list.balance_type==1&&newgift.award_list.balance_money>0}}"><view class="content data-v-c9e973d8"><view class="info data-v-c9e973d8"><text class="num data-v-c9e973d8">{{''+$root.f1+''}}<text class="type data-v-c9e973d8">元红包</text></text><view class="desc data-v-c9e973d8">可提现红包</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['2']]]]]}}" class="tip data-v-c9e973d8" bindtap="__e">立即查看</view></view></block><block wx:if="{{$root.g3>0}}"><block class="data-v-c9e973d8"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-c9e973d8"><view class="content data-v-c9e973d8"><view class="info data-v-c9e973d8"><block wx:if="{{item.$orig.type=='reward'}}"><text class="num data-v-c9e973d8">{{''+item.m0+''}}<text class="type data-v-c9e973d8">元优惠劵</text></text></block><block wx:else><block wx:if="{{item.$orig.type=='discount'}}"><text class="num data-v-c9e973d8">{{''+item.f2+''}}<text class="type data-v-c9e973d8">折</text></text></block></block><view class="desc data-v-c9e973d8">用于下单时抵现或兑换商品等</view></view><view data-event-opts="{{[['tap',[['closeRewardPopup',['3']]]]]}}" class="tip data-v-c9e973d8" bindtap="__e">立即查看</view></view></block></block></block></block></view></scroll-view></view><view data-event-opts="{{[['tap',[['cancel']]]]}}" class="close-btn data-v-c9e973d8" bindtap="__e"><text class="iconfont icon-close btn data-v-c9e973d8"></text></view></view></uni-popup></view></block></view>

View File

@@ -0,0 +1 @@
.data-v-c9e973d8 .newgift-content uni-image{width:113rpx!important;height:24rpx!important}.data-v-c9e973d8 .reward-popup .uni-popup__wrapper.uni-custom.center .uni-popup__wrapper-box{max-height:unset!important;overflow-y:unset}.register-box.data-v-c9e973d8 .uni-scroll-view{background:unset!important}.register-box.data-v-c9e973d8{max-height:300rpx;overflow-y:scroll}.reward-wrap{width:85vw;height:auto}.reward-wrap .newgift-content{width:100%;height:auto;background-size:100%;background-repeat:no-repeat;padding-bottom:40rpx}.reward-wrap .content-title-holiday{font-size:32rpx;font-weight:700;font-family:BDZongYi-A001;display:flex;align-items:center;justify-content:center;padding-top:320rpx;line-height:1}.reward-wrap .content-title-holiday .birthday-img-all{width:100rpx;height:20rpx}.reward-wrap .content-title-holiday > view{margin:0 20rpx;color:#fff;font-weight:700}.reward-wrap .content-title-name{font-size:32rpx;font-weight:700;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;color:#fff;margin:30rpx 0 40rpx;line-height:1}.reward-wrap .content-title-hint{margin:0 70rpx 40rpx;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;color:#fff}.reward-wrap .reward-content{max-height:300rpx;margin:0 56rpx}.reward-wrap .reward-content-two{max-height:360rpx;margin:0 56rpx}.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}.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;max-width:300rpx}.reward-wrap .content .type{font-size:24rpx;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:20rpx;z-index:500}.reward-wrap .close-btn .btn{color:#fff;font-size:40rpx;border:4rpx solid #fff;border-radius:50%;padding:10rpx;font-weight:700;width:40rpx;height:40rpx;margin:0 auto;line-height:40rpx}