Commit 09ebbb66 by 肖康

commit

parent b6e78200
......@@ -37,7 +37,8 @@
"pages/user/orderDetail",
"pages/user/orderPay",
"pages/user/orderPayLine",
"pages/activity/ac618"
"pages/activity/ac618",
"pages/activity/index"
],
"window": {
"navigationBarTextStyle": "black",
......
<view class="ac618Page data-v-ae49a68a"><bar-x class="data-v-ae49a68a" u-i="ae49a68a-0" bind:__l="__l"/><view class="fixed-tp data-v-ae49a68a"><search-head class="data-v-ae49a68a" bindconfirm="{{a}}" bindgoUrl="{{b}}" u-i="ae49a68a-1" bind:__l="__l"/></view><view class="headfg data-v-ae49a68a"></view><view wx:if="{{c}}" class="cons data-v-ae49a68a"><view wx:for="{{d}}" wx:for-item="item" wx:key="c" class="group data-v-ae49a68a"><view class="tit data-v-ae49a68a">{{item.a}}</view><navigator wx:for="{{item.b}}" wx:for-item="itemj" wx:key="j" class="data-v-ae49a68a" url="{{itemj.i}}"><view class="item row data-v-ae49a68a"><view class="tag data-v-ae49a68a"><view class="t data-v-ae49a68a">直降</view><view class="b row rowCenter verCenter data-v-ae49a68a"><text class="data-v-ae49a68a">¥</text><view class="data-v-ae49a68a">{{itemj.a}}</view></view></view><view class="imagebox data-v-ae49a68a"><image class="data-v-ae49a68a" src="{{itemj.b}}" mode="aspectFit"></image></view><view class="r data-v-ae49a68a"><view class="elep tiop data-v-ae49a68a">{{itemj.c}}</view><view class="row htagbox data-v-ae49a68a"><view wx:if="{{itemj.d}}" class="row data-v-ae49a68a"><view wx:for="{{itemj.e}}" wx:for-item="itemtag" wx:key="b" class="htagi data-v-ae49a68a">{{itemtag.a}}</view></view></view><view class="t-text elep2 data-v-ae49a68a">{{itemj.f}}</view><view class="pricebox row data-v-ae49a68a"><view class="acprice row verCenter data-v-ae49a68a"><text class="data-v-ae49a68a">¥</text><view class="data-v-ae49a68a">{{itemj.g}}</view><text class="data-v-ae49a68a">活动价</text></view><view class="rcprice row verCenter data-v-ae49a68a"><text class="data-v-ae49a68a">¥{{itemj.h}}</text><view class="data-v-ae49a68a">日常价</view></view></view></view></view></navigator></view></view><bottom-nav wx:if="{{e}}" class="data-v-ae49a68a" u-i="ae49a68a-2" bind:__l="__l" u-p="{{e}}"/></view>
\ No newline at end of file
<view class="ac618Page data-v-622dadc9"><bar-x class="data-v-622dadc9" u-i="622dadc9-0" bind:__l="__l"/><view class="fixed-tp data-v-622dadc9"><search-head class="data-v-622dadc9" bindconfirm="{{a}}" bindgoUrl="{{b}}" u-i="622dadc9-1" bind:__l="__l"/></view><view class="headfg data-v-622dadc9"></view><view wx:if="{{c}}" class="cons data-v-622dadc9"><view wx:for="{{d}}" wx:for-item="item" wx:key="c" class="group data-v-622dadc9"><view class="tit data-v-622dadc9">{{item.a}}</view><navigator wx:for="{{item.b}}" wx:for-item="itemj" wx:key="j" class="data-v-622dadc9" url="{{itemj.i}}"><view class="item row data-v-622dadc9"><view class="tag data-v-622dadc9"><view class="t data-v-622dadc9">直降</view><view class="b row rowCenter verCenter data-v-622dadc9"><text class="data-v-622dadc9">¥</text><view class="data-v-622dadc9">{{itemj.a}}</view></view></view><view class="imagebox data-v-622dadc9"><image class="data-v-622dadc9" src="{{itemj.b}}" mode="aspectFit"></image></view><view class="r data-v-622dadc9"><view class="elep tiop data-v-622dadc9">{{itemj.c}}</view><view class="row htagbox data-v-622dadc9"><view wx:if="{{itemj.d}}" class="row data-v-622dadc9"><view wx:for="{{itemj.e}}" wx:for-item="itemtag" wx:key="b" class="htagi data-v-622dadc9">{{itemtag.a}}</view></view></view><view class="t-text elep2 data-v-622dadc9">{{itemj.f}}</view><view class="pricebox row data-v-622dadc9"><view class="acprice row verCenter data-v-622dadc9"><text class="data-v-622dadc9">¥</text><view class="data-v-622dadc9">{{itemj.g}}</view><text class="data-v-622dadc9">活动价</text></view><view class="rcprice row verCenter data-v-622dadc9"><text class="data-v-622dadc9">¥{{itemj.h}}</text><view class="data-v-622dadc9">日常价</view></view></view></view></view></navigator></view></view><bottom-nav wx:if="{{e}}" class="data-v-622dadc9" u-i="622dadc9-2" bind:__l="__l" u-p="{{e}}"/></view>
\ No newline at end of file
view.data-v-ae49a68a,text.data-v-ae49a68a,input.data-v-ae49a68a,navigator.data-v-ae49a68a{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-user-select:text;user-select:text;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}body.data-v-ae49a68a,page.data-v-ae49a68a,view.data-v-ae49a68a,text.data-v-ae49a68a,scroll-view.data-v-ae49a68a{-webkit-user-select:text!important;user-select:text!important}.navigator-hover.data-v-ae49a68a{background:none;opacity:1}image.data-v-ae49a68a{vertical-align:middle}.elep.data-v-ae49a68a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.elep2.data-v-ae49a68a{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.column.data-v-ae49a68a{display:flex;flex-direction:column}.row.data-v-ae49a68a{display:flex;flex-direction:row}.boxsiz.data-v-ae49a68a{box-sizing:border-box}.bothSide.data-v-ae49a68a{justify-content:space-between}.avarage.data-v-ae49a68a{justify-content:space-around}.rowCenter.data-v-ae49a68a{justify-content:center}.verCenter.data-v-ae49a68a{align-items:center}page.data-v-ae49a68a{background:#f5f6fa}.ac618Page.data-v-ae49a68a{padding-bottom:200rpx}.ac618Page .fixed-tp.data-v-ae49a68a{height:112rpx;position:fixed;top:175rpx;left:0rpx;right:0rpx;background:#fff;z-index:2}.ac618Page .headfg.data-v-ae49a68a{height:1024rpx;background:url(https://imgscdn.ichunt.com/show/origin/3bf7c0j20hs0hs0000081hkp49lj4) no-repeat;background-size:100% 100%}.ac618Page .group .tit.data-v-ae49a68a{font-size:65rpx;font-weight:700;color:#000;text-align:center;margin-top:100rpx;margin-bottom:60rpx}.ac618Page .group .item.data-v-ae49a68a{width:694rpx;background:#fff;box-shadow:0 3rpx 4rpx rgba(0,0,0,.3);border-radius:20rpx;border:1px solid rgba(0,0,0,.3);margin:0 auto;margin-bottom:60rpx;position:relative;box-sizing:border-box;padding:55rpx 31rpx 48rpx}.ac618Page .group .item .tag.data-v-ae49a68a{width:138rpx;height:89rpx;position:absolute;left:8rpx;top:-12rpx;background:url(https://imgscdn.ichunt.com/show/origin/649bf0j10hs0hs0000007m4qx7cay) no-repeat;background-size:100% 100%;padding-top:5px;box-sizing:border-box;z-index:1}.ac618Page .group .item .tag .t.data-v-ae49a68a{font-weight:700;font-size:15rpx;color:#fff;text-align:center}.ac618Page .group .item .tag .b.data-v-ae49a68a{font-weight:700;font-size:35rpx;color:#fff;letter-spacing:-2rpx}.ac618Page .group .item .tag .b text.data-v-ae49a68a{font-size:14rpx;position:relative;top:3px}.ac618Page .group .item image.data-v-ae49a68a,.ac618Page .group .item .imagebox.data-v-ae49a68a{width:198rpx;height:198rpx}.ac618Page .group .item .r.data-v-ae49a68a{margin-left:38rpx}.ac618Page .group .item .r .tiop.data-v-ae49a68a{width:380rpx;height:28rpx;line-height:28rpx;font-weight:700;font-size:30rpx;color:#191919;margin-bottom:8rpx;letter-spacing:-2rpx}.ac618Page .group .item .r .htagbox.data-v-ae49a68a{height:26rpx}.ac618Page .group .item .r .htagbox .htagi.data-v-ae49a68a{height:26rpx;background:rgba(255,219,213,.3);border-radius:5rpx;border:1px solid #D7393E;color:#d7393e;font-size:18rpx;text-align:center;margin-right:12rpx;padding:0 8rpx}.ac618Page .group .item .r .t-text.data-v-ae49a68a{height:60rpx;font-size:22rpx;line-height:30rpx;width:380rpx;color:#7f7f7f;margin-top:14rpx;margin-bottom:14rpx}.ac618Page .group .item .r .pricebox.data-v-ae49a68a{margin-top:22rpx}.ac618Page .group .item .r .pricebox .acprice.data-v-ae49a68a{color:#cf121b;font-size:20rpx}.ac618Page .group .item .r .pricebox .acprice text.data-v-ae49a68a{position:relative;top:2rpx}.ac618Page .group .item .r .pricebox .acprice view.data-v-ae49a68a{font-size:35rpx;font-weight:700}.ac618Page .group .item .r .pricebox .rcprice.data-v-ae49a68a{color:#7f7f7f;font-size:20rpx;margin-left:10rpx;position:relative;top:2rpx}.ac618Page .group .item .r .pricebox .rcprice text.data-v-ae49a68a{text-decoration:line-through}
view.data-v-622dadc9,text.data-v-622dadc9,input.data-v-622dadc9,navigator.data-v-622dadc9{box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-user-select:text;user-select:text;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}body.data-v-622dadc9,page.data-v-622dadc9,view.data-v-622dadc9,text.data-v-622dadc9,scroll-view.data-v-622dadc9{-webkit-user-select:text!important;user-select:text!important}.navigator-hover.data-v-622dadc9{background:none;opacity:1}image.data-v-622dadc9{vertical-align:middle}.elep.data-v-622dadc9{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.elep2.data-v-622dadc9{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.column.data-v-622dadc9{display:flex;flex-direction:column}.row.data-v-622dadc9{display:flex;flex-direction:row}.boxsiz.data-v-622dadc9{box-sizing:border-box}.bothSide.data-v-622dadc9{justify-content:space-between}.avarage.data-v-622dadc9{justify-content:space-around}.rowCenter.data-v-622dadc9{justify-content:center}.verCenter.data-v-622dadc9{align-items:center}page.data-v-622dadc9{background:#f5f6fa}.ac618Page.data-v-622dadc9{padding-bottom:200rpx}.ac618Page .fixed-tp.data-v-622dadc9{height:112rpx;position:fixed;top:175rpx;left:0rpx;right:0rpx;background:#fff;z-index:2}.ac618Page .headfg.data-v-622dadc9{height:1024rpx;background:url(https://imgscdn.ichunt.com/show/origin/3bf7c0j20hs0hs0000081hkp49lj4) no-repeat;background-size:100% 100%}.ac618Page .group .tit.data-v-622dadc9{font-size:65rpx;font-weight:700;color:#000;text-align:center;margin-top:100rpx;margin-bottom:60rpx}.ac618Page .group .item.data-v-622dadc9{width:694rpx;background:#fff;box-shadow:0 3rpx 4rpx rgba(0,0,0,.3);border-radius:20rpx;border:1px solid rgba(0,0,0,.3);margin:0 auto;margin-bottom:60rpx;position:relative;box-sizing:border-box;padding:55rpx 31rpx 48rpx}.ac618Page .group .item .tag.data-v-622dadc9{width:138rpx;height:89rpx;position:absolute;left:8rpx;top:-12rpx;background:url(https://imgscdn.ichunt.com/show/origin/649bf0j10hs0hs0000007m4qx7cay) no-repeat;background-size:100% 100%;padding-top:5px;box-sizing:border-box;z-index:1}.ac618Page .group .item .tag .t.data-v-622dadc9{font-weight:700;font-size:15rpx;color:#fff;text-align:center}.ac618Page .group .item .tag .b.data-v-622dadc9{font-weight:700;font-size:35rpx;color:#fff;letter-spacing:-2rpx}.ac618Page .group .item .tag .b text.data-v-622dadc9{font-size:14rpx;position:relative;top:3px}.ac618Page .group .item image.data-v-622dadc9,.ac618Page .group .item .imagebox.data-v-622dadc9{width:198rpx;height:198rpx}.ac618Page .group .item .r.data-v-622dadc9{margin-left:38rpx}.ac618Page .group .item .r .tiop.data-v-622dadc9{width:380rpx;height:28rpx;line-height:28rpx;font-weight:700;font-size:30rpx;color:#191919;margin-bottom:8rpx;letter-spacing:-2rpx}.ac618Page .group .item .r .htagbox.data-v-622dadc9{height:26rpx}.ac618Page .group .item .r .htagbox .htagi.data-v-622dadc9{height:26rpx;background:rgba(255,219,213,.3);border-radius:5rpx;border:1px solid #D7393E;color:#d7393e;font-size:18rpx;text-align:center;margin-right:12rpx;padding:0 8rpx}.ac618Page .group .item .r .t-text.data-v-622dadc9{height:60rpx;font-size:22rpx;line-height:30rpx;width:380rpx;color:#7f7f7f;margin-top:14rpx;margin-bottom:14rpx}.ac618Page .group .item .r .pricebox.data-v-622dadc9{margin-top:22rpx}.ac618Page .group .item .r .pricebox .acprice.data-v-622dadc9{color:#cf121b;font-size:20rpx}.ac618Page .group .item .r .pricebox .acprice text.data-v-622dadc9{position:relative;top:2rpx}.ac618Page .group .item .r .pricebox .acprice view.data-v-622dadc9{font-size:35rpx;font-weight:700}.ac618Page .group .item .r .pricebox .rcprice.data-v-622dadc9{color:#7f7f7f;font-size:20rpx;margin-left:10rpx;position:relative;top:2rpx}.ac618Page .group .item .r .pricebox .rcprice text.data-v-622dadc9{text-decoration:line-through}
"use strict";const o=require("../../common/vendor.js"),t=require("../../util/api.js"),e=require("../../util/util.js"),r={data:()=>({boxStyle:{},activity_code:"",ActivityInfo:{},list:{},coupon_flag:[]}),onLoad(o){this.activity_code=o.activity_code||"iedgeyuan",this.getData()},methods:{getData(){this.request(t.Api_Url+"/api/activity/getActivityInfo","GET",{activity_code:this.activity_code},!0).then((t=>{if(0===t.code)if(-1==t.data.activity_status)o.index.showModal({title:"提示",content:"该活动已过期",showCancel:!1,confirmText:"确定",success:function(o){o.confirm&&(window.location.href="/")}});else if(t.data&&t.data.h5_html_config){this.ActivityInfo=t.data;var r=JSON.parse(t.data.h5_html_config),n=Object.entries(r).filter((o=>"baseConfig"!==o[0])).reduce(((o,[t,e])=>Object.assign(o,{[t]:e})),{});this.list=n;var i=JSON.parse(this.ActivityInfo.h5_html_config).baseConfig,a=i.page_color||"",h=i.page_background;this.boxStyle={background:a,backgroundImage:`url(${h})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center 45px"};var c=!1;Object.values(n).forEach((o=>{const t=o.basic_elements;if("coupon"!==t||c)"formModule"===t&&(this.formModuleData=o,this.formModule.form_data=o.form_data.map((o=>({...o,input_value:""}))));else{var r=JSON.parse(o.columnCouponId);this.coupon_flag=e.createArray(r.length,!1),c=!0}}))}else o.index.showToast({title:"暂无该活动,请检查活动地址",icon:"none"}),setTimeout((()=>{window.location.href="/"}),2e3);else o.index.showToast({title:t.msg,icon:"none"})}))},issueChange(e,r){this.request(t.Api_Url+"/api/coupon/issue","GET",{id:e},!0,!0).then((t=>{0===t.code?(this.$set(this.coupon_flag,r,!0),o.index.showToast({title:t.msg,icon:"success"}),setTimeout((()=>{this.getData()}),2e3)):o.index.showToast({title:t.msg,icon:"none"})}))}}};const n=o._export_sfc(r,[["render",function(t,e,r,n,i,a){return{a:o.f(i.list,((e,r,n)=>o.e({a:"customLayout"==e.basic_elements},"customLayout"==e.basic_elements?o.e({b:1==e.columns},1==e.columns?o.e({c:e.hot},e.hot?{d:o.o((o=>t.toUrl(e.hot[0].url,o)),r),e:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[0].width+"rpx;height:"+e.hot[0].height+"rpx;left:"+e.hot[0].x+"rpx;top:"+e.hot[0].y+"rpx;background-image:url("+e.hot[0].pic+")")}:{},{f:o.s(750==e.columnWidthOne?"width:100%":e.width),g:e.columnOneUrl,h:e.columnOneHref?e.columnOneHref:"javascript:;",i:e.columnOneHref?"_blank":"",j:o.s(750==e.columnWidthOne?"width:100%":e.width),k:o.s(750==e.width?"width:100%":"width:"+e.width+"rpx")}):2==e.columns?o.e({m:e.hot},e.hot?{n:o.o((o=>t.toUrl(e.hot[0].url,o)),r),o:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[0].width+"rpx;height:"+e.hot[0].height+"rpx;left:"+e.hot[0].x+"rpx;top:"+e.hot[0].y+"rpx;background-image:url("+e.hot[0].pic+")")}:{},{p:e.columnOneUrl,q:e.columnOneHref?e.columnOneHref:"javascript:;",r:e.columnOneHref?"_blank":"",s:o.s("width:"+e.columnWidthOne+"rpx;margin-right:"+e.spacing+"rpx"),t:e.hot},e.hot?{v:o.o((o=>t.toUrl(e.hot[1].url,o)),r),w:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[1].width+"rpx;height:"+e.hot[1].height+"rpx;left:"+e.hot[1].x+"rpx;top:"+e.hot[1].y+"rpx;background-image:url("+e.hot[1].pic+")")}:{},{x:e.columnTwoUrl,y:e.columnTwoHref?e.columnTwoHref:"javascript:;",z:e.columnTwoHref?"_blank":"",A:o.s("width:"+e.columnWidthTwo+"rpx"),B:o.s(750==e.width?"width:100%":"width:"+e.width+"rpx")}):3==e.columns?o.e({D:e.hot},e.hot?{E:o.o((o=>t.toUrl(e.hot[0].url,o)),r),F:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[0].width+"rpx;height:"+e.hot[0].height+"rpx;left:"+e.hot[0].x+"rpx;top:"+e.hot[0].y+"rpx;background-image:url("+e.hot[0].pic+")")}:{},{G:e.columnOneUrl,H:e.columnOneHref?e.columnOneHref:"javascript:;",I:e.columnOneHref?"_blank":"",J:o.s("width:"+e.columnWidthOne+"rpx;margin-right:"+e.spacing+"rpx"),K:e.hot},e.hot?{L:o.o((o=>t.toUrl(e.hot[1].url,o)),r),M:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[1].width+"rpx;height:"+e.hot[1].height+"rpx;left:"+e.hot[1].x+"rpx;top:"+e.hot[1].y+"rpx;background-image:url("+e.hot[1].pic+")")}:{},{N:e.columnTwoUrl,O:e.columnTwoHref?e.columnTwoHref:"javascript:;",P:e.columnTwoHref?"_blank":"",Q:o.s("width:"+e.columnWidthTwo+"rpx;margin-right:"+e.spacing+"rpx"),R:e.hot},e.hot?{S:o.o((o=>t.toUrl(e.hot[2].url,o)),r),T:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[2].width+"rpx;height:"+e.hot[2].height+"rpx;left:"+e.hot[2].x+"rpx;top:"+e.hot[2].y+"rpx;background-image:url("+e.hot[2].pic+")")}:{},{U:e.columnThreeUrl,V:e.columnThreeHref?e.columnThreeHref:"javascript:;",W:e.columnThreeHref?"_blank":"",X:o.s("width:"+e.columnWidthThree+"rpx"),Y:o.s(750==e.width?"width:100%":"width:"+e.width+"rpx")}):4==e.columns?o.e({aa:e.hot},e.hot?{ab:o.o((o=>t.toUrl(e.hot[0].url,o)),r),ac:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[0].width+"rpx;height:"+e.hot[0].height+"rpx;left:"+e.hot[0].x+"rpx;top:"+e.hot[0].y+"rpx;background-image:url("+e.hot[0].pic+")")}:{},{ad:e.columnOneUrl,ae:e.columnOneHref?e.columnOneHref:"javascript:;",af:e.columnOneHref?"_blank":"",ag:o.s("width:"+e.columnWidthOne+"rpx;margin-right:"+e.spacing+"rpx"),ah:e.hot},e.hot?{ai:o.o((o=>t.toUrl(e.hot[1].url,o)),r),aj:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[1].width+"rpx;height:"+e.hot[1].height+"rpx;left:"+e.hot[1].x+"rpx;top:"+e.hot[1].y+"rpx;background-image:url("+e.hot[1].pic+")")}:{},{ak:e.columnTwoUrl,al:e.columnTwoHref?e.columnTwoHref:"javascript:;",am:e.columnTwoHref?"_blank":"",an:o.s("width:"+e.columnWidthTwo+"rpx;margin-right:"+e.spacing+"rpx"),ao:e.hot},e.hot?{ap:o.o((o=>t.toUrl(e.hot[2].url,o)),r),aq:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[2].width+"rpx;height:"+e.hot[2].height+"rpx;left:"+e.hot[2].x+"rpx;top:"+e.hot[2].y+"rpx;background-image:url("+e.hot[2].pic+")")}:{},{ar:e.columnThreeUrl,as:e.columnThreeHref?e.columnThreeHref:"javascript:;",at:e.columnThreeHref?"_blank":"",av:o.s("width:"+e.columnWidthThree+"rpx;margin-right:"+e.spacing+"rpx"),aw:e.hot},e.hot?{ax:o.o((o=>t.toUrl(e.hot[3].url,o)),r),ay:o.s("position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"+e.hot[3].width+"rpx;height:"+e.hot[3].height+"rpx;left:"+e.hot[3].x+"rpx;top:"+e.hot[3].y+"rpx;background-image:url("+e.hot[3].pic+")")}:{},{az:e.columnFourUrl,aA:e.columnFourHref?e.columnFourHref:"javascript:;",aB:e.columnFourHref?"_blank":"",aC:o.s("width:"+e.columnWidthFour+"rpx"),aD:o.s(750==e.width?"width:100%":"width:"+e.width+"rpx")}):{},{l:2==e.columns,C:3==e.columns,Z:4==e.columns}):"coupon"==e.basic_elements?o.e({aF:1==e.pattern},1==e.pattern?{aG:o.f(JSON.parse(e.columnCouponUrl),((t,r,n)=>({a:t,b:i.coupon_flag[r]?1:"",c:o.o((o=>a.issueChange(JSON.parse(e.columnCouponId)[r],r)),r),d:r}))),aH:t.indicatorDots,aI:t.autoplay,aJ:o.s("height:"+e.couponWidth+"rpx")}:2==e.pattern?o.e({aL:1==JSON.parse(e.columnCouponUrl).length},1==JSON.parse(e.columnCouponUrl).length?{aM:o.f(JSON.parse(e.columnCouponUrl),((t,r,n)=>({a:t,b:i.coupon_flag[r]?1:"",c:o.o((o=>a.issueChange(JSON.parse(e.columnCouponId)[r],r)),r),d:JSON.parse(e.columnCouponId)[r],e:r}))),aN:o.s("width:"+e.couponLength+"rpx;margin-right:0;height:"+e.couponWidth+"rpx")}:{aO:o.f(JSON.parse(e.columnCouponUrl),((t,r,n)=>({a:t,b:i.coupon_flag[r]?1:"",c:o.o((o=>a.issueChange(JSON.parse(e.columnCouponId)[r],r)),r),d:JSON.parse(e.columnCouponId)[r],e:r}))),aP:o.s("width:"+e.couponLength+"rpx;height:"+e.couponWidth+"rpx")}):{},{aK:2==e.pattern,aQ:o.s("width:100%;background-size:cover;background-repeat:no-repeat;background-position: center;background-image:url("+e.bg+")")}):{},{aE:"coupon"==e.basic_elements,aR:r,aS:o.s("height:"+e.height+"rpx")}))),b:o.s(i.boxStyle)}}],["__scopeId","data-v-452cb2c0"]]);wx.createPage(n);
{
"usingComponents": {}
}
\ No newline at end of file
<view class="activity-box data-v-452cb2c0" style="{{b}}"><view class="cube-set-drag-area data-v-452cb2c0"><view wx:for="{{a}}" wx:for-item="item" wx:key="aR" class="cube-initial row verCenter rowCenter data-v-452cb2c0" style="{{item.aS}}"><block wx:if="{{item.a}}"><block wx:if="{{item.b}}"><view class="cube-set-drag-content customLayout row verCenter data-v-452cb2c0" style="{{item.k}}"><navigator class="box row data-v-452cb2c0" href="{{item.h}}" target="{{item.i}}" style="{{item.j}}"><text wx:if="{{item.c}}" class="data-v-452cb2c0" catchtap="{{item.d}}" style="{{item.e}}"></text><image style="{{item.f}}" class="pic data-v-452cb2c0" src="{{item.g}}" mode="aspectFill"></image></navigator></view></block><block wx:elif="{{item.l}}"><view class="cube-set-drag-content customLayout row verCenter data-v-452cb2c0" style="{{item.B}}"><navigator class="box row data-v-452cb2c0" href="{{item.q}}" target="{{item.r}}" style="{{item.s}}"><text wx:if="{{item.m}}" class="data-v-452cb2c0" catchtap="{{item.n}}" style="{{item.o}}"></text><image class="pic data-v-452cb2c0" src="{{item.p}}" mode="aspectFill"></image></navigator><navigator class="box row data-v-452cb2c0" href="{{item.y}}" target="{{item.z}}" style="{{item.A}}"><text wx:if="{{item.t}}" class="data-v-452cb2c0" catchtap="{{item.v}}" style="{{item.w}}"></text><image class="pic data-v-452cb2c0" src="{{item.x}}" mode="aspectFill"></image></navigator></view></block><block wx:elif="{{item.C}}"><view class="cube-set-drag-content customLayout row verCenter data-v-452cb2c0" style="{{item.Y}}"><navigator class="box row data-v-452cb2c0" href="{{item.H}}" target="{{item.I}}" style="{{item.J}}"><text wx:if="{{item.D}}" class="data-v-452cb2c0" catchtap="{{item.E}}" style="{{item.F}}"></text><image class="pic data-v-452cb2c0" src="{{item.G}}" mode="aspectFill"></image></navigator><navigator class="box row data-v-452cb2c0" href="{{item.O}}" target="{{item.P}}" style="{{item.Q}}"><text wx:if="{{item.K}}" class="data-v-452cb2c0" catchtap="{{item.L}}" style="{{item.M}}"></text><image class="pic data-v-452cb2c0" src="{{item.N}}" mode="aspectFill"></image></navigator><navigator class="box row data-v-452cb2c0" href="{{item.V}}" target="{{item.W}}" style="{{item.X}}"><text wx:if="{{item.R}}" class="data-v-452cb2c0" catchtap="{{item.S}}" style="{{item.T}}"></text><image class="pic data-v-452cb2c0" src="{{item.U}}" mode="aspectFill"></image></navigator></view></block><block wx:elif="{{item.Z}}"><view class="cube-set-drag-content customLayout row verCenter data-v-452cb2c0" style="{{item.aD}}"><navigator class="box row data-v-452cb2c0" href="{{item.ae}}" target="{{item.af}}" style="{{item.ag}}"><text wx:if="{{item.aa}}" class="data-v-452cb2c0" catchtap="{{item.ab}}" style="{{item.ac}}"></text><image class="pic data-v-452cb2c0" src="{{item.ad}}" mode="aspectFill"></image></navigator><navigator class="box row data-v-452cb2c0" href="{{item.al}}" target="{{item.am}}" style="{{item.an}}"><text wx:if="{{item.ah}}" class="data-v-452cb2c0" catchtap="{{item.ai}}" style="{{item.aj}}"></text><image class="pic data-v-452cb2c0" src="{{item.ak}}" mode="aspectFill"></image></navigator><navigator class="box row data-v-452cb2c0" href="{{item.as}}" target="{{item.at}}" style="{{item.av}}"><text wx:if="{{item.ao}}" class="data-v-452cb2c0" catchtap="{{item.ap}}" style="{{item.aq}}"></text><image class="pic data-v-452cb2c0" src="{{item.ar}}" mode="aspectFill"></image></navigator><navigator class="box row data-v-452cb2c0" href="{{item.aA}}" target="{{item.aB}}" style="{{item.aC}}"><text wx:if="{{item.aw}}" class="data-v-452cb2c0" catchtap="{{item.ax}}" style="{{item.ay}}"></text><image class="pic data-v-452cb2c0" src="{{item.az}}" mode="aspectFill"></image></navigator></view></block></block><block wx:elif="{{item.aE}}"><view class="cube-set-drag-content coupon data-v-452cb2c0" style="{{item.aQ}}"><block wx:if="{{item.aF}}"><view class="carousel row data-v-452cb2c0" style="{{item.aJ}}"><swiper class="swiper data-v-452cb2c0" circular indicator-dots="{{item.aH}}" autoplay="{{item.aI}}" indicator-color="#C6C7CC" indicator-active-color="#1969F9"><swiper-item wx:for="{{item.aG}}" wx:for-item="v" wx:key="d" class="{{['swiper-item', 'data-v-452cb2c0', v.b && 'curr']}}" bindtap="{{v.c}}"><image mode="aspectFill" src="{{v.a}}" lazy-load="true" class="pic data-v-452cb2c0"></image></swiper-item></swiper></view></block><block wx:elif="{{item.aK}}"><view class="carousel-list row rowCenter verCenter data-v-452cb2c0"><block wx:if="{{item.aL}}"><view wx:for="{{item.aM}}" wx:for-item="v" wx:key="e" class="{{['box', 'data-v-452cb2c0', v.b && 'curr']}}" bindtap="{{v.c}}" data-id="{{v.d}}" style="{{item.aN}}"><image mode="aspectFill" src="{{v.a}}" lazy-load="true" class="pic data-v-452cb2c0"></image></view></block><block wx:else><view wx:for="{{item.aO}}" wx:for-item="v" wx:key="e" class="{{['box', 'data-v-452cb2c0', v.b && 'curr']}}" bindtap="{{v.c}}" data-id="{{v.d}}" style="{{item.aP}}"><image mode="aspectFill" src="{{v.a}}" lazy-load="true" class="pic data-v-452cb2c0"></image></view></block></view></block></view></block></view></view></view>
\ No newline at end of file
"use strict";const e=require("../common/vendor.js");exports.request=(t="",n="GET",o={},r,a)=>{r&&e.index.showLoading({mask:!0});var s=Object.assign(o,{pf:"xcx"});const i=e.index.getStorageSync("token");let l={"Content-Type":"application/json; charset=utf-8"};return a&&(l={"Content-Type":"application/x-www-form-urlencoded"}),i&&(l.token=i),new Promise(((o,a)=>{e.index.request({method:n,url:t,data:s,header:l,dataType:"json",withCredentials:!0,success:t=>{if(r&&e.index.hideLoading(),200===t.statusCode){let r=t.data;if(101==r.code||"账号未登录"==r.msg){var n=getCurrentPages();let t=n[n.length-1];t.route;let o=t.$page.fullPath;return console.log(o),void e.index.reLaunch({url:`/pages/auth/login?referer=${encodeURIComponent(o)}`})}o(r)}else a(t),e.index.showToast({title:"网络出现问题",icon:"error"})},fail:t=>{r&&e.index.hideLoading(),e.index.showToast({title:"网络出现问题",icon:"error"}),a(t)}})}))},exports.startCountdown=e=>{let t=e.duration||60,n=null;const o=e.onTick||(e=>{}),r=e.onComplete||(()=>{});return{start:function(){n=setInterval((()=>{t<=0?(clearInterval(n),r()):(t--,o(t))}),1e3)},stop:function(){clearInterval(n),r()}}};
"use strict";const e=require("../common/vendor.js");exports.createArray=(e,t)=>Array(e).fill(t),exports.request=(t="",n="GET",o={},r,a)=>{r&&e.index.showLoading({mask:!0});var s=Object.assign(o,{pf:"xcx"});const i=e.index.getStorageSync("token");let l={"Content-Type":"application/json; charset=utf-8"};return a&&(l={"Content-Type":"application/x-www-form-urlencoded"}),i&&(l.token=i),new Promise(((o,a)=>{e.index.request({method:n,url:t,data:s,header:l,dataType:"json",withCredentials:!0,success:t=>{if(r&&e.index.hideLoading(),200===t.statusCode){let r=t.data;if(101==r.code||"账号未登录"==r.msg){var n=getCurrentPages();let t=n[n.length-1];t.route;let o=t.$page.fullPath;return console.log(o),void e.index.reLaunch({url:`/pages/auth/login?referer=${encodeURIComponent(o)}`})}o(r)}else a(t),e.index.showToast({title:"网络出现问题",icon:"error"})},fail:t=>{r&&e.index.hideLoading(),e.index.showToast({title:"网络出现问题",icon:"error"}),a(t)}})}))},exports.startCountdown=e=>{let t=e.duration||60,n=null;const o=e.onTick||(e=>{}),r=e.onComplete||(()=>{});return{start:function(){n=setInterval((()=>{t<=0?(clearInterval(n),r()):(t--,o(t))}),1e3)},stop:function(){clearInterval(n),r()}}};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment