1 line
16 KiB
JavaScript
Executable File
1 line
16 KiB
JavaScript
Executable File
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-newActivity-subsidy-subsidy3"],{"41cf":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-37e5442a]{background-color:#ffe3bd}body.?%PAGE?%[data-v-37e5442a]{background-color:#ffe3bd}.bg[data-v-37e5442a]{position:relative;height:auto}.bg .bg_img[data-v-37e5442a]{width:%?750?%;position:absolute;top:0;left:0}.bg .bg_back[data-v-37e5442a]{height:%?34?%;width:%?20?%;position:absolute;top:%?30?%;left:%?30?%}.bg .bg_title[data-v-37e5442a]{font-size:%?32?%;color:#fff;font-weight:500;position:absolute;top:%?30?%;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%)}.bg .b_title[data-v-37e5442a]{position:absolute;width:100%;height:%?70?%;top:%?225?%;left:0;text-align:center;font-size:%?36?%;color:#f1503f;display:flex;justify-content:center;align-items:flex-end}.bg .b_title .count[data-v-37e5442a]{font-size:%?66?%;font-weight:700;margin:%?10?% %?20?%}.bg .b_body[data-v-37e5442a]{position:absolute;width:%?710?%;margin-left:%?21?%;margin-right:%?19?%;height:auto;background-color:#fff;top:%?534?%;left:0;border-radius:%?50?%;padding:%?28?%;margin-bottom:%?30?%;display:flex;flex-direction:column;align-content:center}.bg .b_body .body_head_img[data-v-37e5442a]{width:%?253?%;margin:0 auto}.bg .b_body .b_head[data-v-37e5442a]{background-color:#fff2e0;border-radius:%?20?%;color:#c44100;display:flex;margin-top:%?28?%;font-size:%?28?%;padding:%?20?% 0}.bg .b_body .b_head .head_title[data-v-37e5442a]{padding-left:%?20?%;width:%?190?%}.bg .b_body .b_head .head_title2[data-v-37e5442a]{padding-left:%?20?%;width:%?280?%}.bg .b_body .b_content[data-v-37e5442a]{background-color:#fff2ed;border-radius:%?20?%;color:#ff5a3a;padding-top:%?20?%;margin-top:%?28?%;font-size:%?32?%}.bg .b_body .b_content .mall[data-v-37e5442a]{font-size:%?26?%}.bg .b_body .b_content .content_list[data-v-37e5442a]{display:flex;padding-bottom:%?20?%}.bg .b_body .b_content .content_list .content_item[data-v-37e5442a]{padding-left:%?20?%;width:%?190?%}.bg .b_body .b_content .content_list .content_item2[data-v-37e5442a]{padding-left:%?20?%;width:%?280?%}.bg .b_body .b_content .none[data-v-37e5442a]{text-align:center;padding:%?20?%}',""]),t.exports=e},"492f":function(t,e,n){"use strict";n.r(e);var i=n("93e8"),o=n("d5bb");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("555d");var r=n("f0c5"),u=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"37e5442a",null,!1,i["a"],void 0);e["default"]=u.exports},"555d":function(t,e,n){"use strict";var i=n("70b7"),o=n.n(i);o.a},"70b7":function(t,e,n){var i=n("41cf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("ab42fd2c",i,!0,{sourceMap:!1,shadowMode:!1})},"93e8":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticStyle:{height:"var(--status-bar-height)","background-color":"#e54841"}}),n("v-uni-view",{staticClass:"bg"},[n("v-uni-image",{staticClass:"bg_img",attrs:{mode:"widthFix",src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/subsidy.webp"}}),n("v-uni-image",{staticClass:"bg_back",attrs:{src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/back.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"bg_title"},[t._v("现金抵扣红包")]),n("v-uni-view",{staticClass:"b_title"},[n("v-uni-view",[t._v("总计剩余")]),n("v-uni-view",{staticClass:"count"},[t._v(t._s(t.total_amount))]),n("v-uni-view",[t._v("元抵扣红包")])],1),n("v-uni-view",{staticClass:"b_body"},[n("v-uni-image",{staticClass:"body_head_img",attrs:{mode:"widthFix",src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/srecord.webp"}}),n("v-uni-view",{staticClass:"b_head"},[n("v-uni-view",{staticClass:"head_title"},[t._v("消费金额")]),n("v-uni-view",{staticClass:"head_title"},[t._v("补贴金额")]),n("v-uni-view",{staticClass:"head_title2"},[t._v("红包获得时间")])],1),n("v-uni-view",{staticClass:"b_content"},[t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"content_list"},[n("v-uni-view",{staticClass:"content_item"},[t._v(t._s(e.order_amount)),n("v-uni-text",{staticClass:"mall"},[t._v("元")])],1),n("v-uni-view",{staticClass:"content_item"},[t._v(t._s(e.coupon_price)),n("v-uni-text",{staticClass:"mall"},[t._v("元")])],1),n("v-uni-view",{staticClass:"content_item2"},[n("v-uni-text",{staticClass:"mall"},[t._v(t._s(e.create_time))])],1)],1)})),0==t.list.length?n("v-uni-view",{staticClass:"mall none",staticStyle:{"padding-top":"0"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTo.apply(void 0,arguments)}}},[t._v(t._s("暂无记录, 去消费领补贴 >>"))]):t._e()],2)],1)],1)],1)},o=[]},"95ca":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return o.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return o.default.get("store/product/assist/count",{},{noAuth:!0})},e.chooseConsumption=function(t){return o.default.post("storeActivity/choose",t)},e.consumption=function(t){return o.default.get("storeActivity/consumption",t,{noAuth:!0})},e.getActivitycategory=function(t){return o.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return o.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return o.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return o.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return o.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return o.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return o.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return o.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return o.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return o.default.post("combination/poster",t)},e.getCombinationUser=function(t){return o.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return o.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return o.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return o.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return o.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return o.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return o.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return o.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return o.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return o.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return o.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return o.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return o.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return o.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return o.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return o.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return o.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return o.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.storeActivityDistrict=function(t){return o.default.get("storeActivity/district",t)},e.storeActivityProduct=function(t){return o.default.get("storeActivity/product",t)},e.storeActivityQrcode=function(t){return o.default.get("qrcode",t)},e.storeActivityReceive=function(t){return o.default.post("storeActivity/receive",t)},e.storeActivityRecord=function(t){return o.default.get("storeActivity/record",t)},e.storeActivityStatus=function(t){return o.default.get("storeActivity/status",t)},e.storeActivityTotal=function(t){return o.default.get("storeActivity/total",t)};var o=i(n("6860"))},d5bb:function(t,e,n){"use strict";n.r(e);var i=n("de76"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},de76:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("95ca"),o=(n("f89e"),n("33b4"),{data:function(){return{total_amount:"0.00",list:[]}},onLoad:function(){},onShow:function(){this.storeActivityRecord()},methods:{back:function(){uni.navigateBack()},storeActivityRecord:function(){var t=this;(0,i.storeActivityRecord)({type:2}).then((function(e){t.list=e.data.record,t.total_amount=e.data.total_amount||"0.00"}))},navTo:function(){uni.switchTab({url:"/pages/index/index"})}},onPullDownRefresh:function(){uni.stopPullDownRefresh()}});e.default=o},f89e:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,i){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){n(t.tapIndex)},fail:function(t){i(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,n){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){n(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,a.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{showCancel:!0,cancelText:"取消",confirmText:"确定"};return new Promise((function(i,o){uni.showModal((0,a.default)((0,a.default)({},n),{},{title:t,content:e,success:function(t){t.confirm&&i(),t.cancel&&o()}}))}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,o=(0,a.default)({title:t,duration:i,position:"center",mask:!0,icon:e||"none"},n);uni.showToast(o)},e.chooseImage=function(t){return new Promise((function(e,n){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){n(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=r,e.formatDate=u,e.getQuarterStartDate=function(){var t=new Date(d,function(){var t=0;c<3&&(t=0);2<c&&c<6&&(t=3);5<c&&c<9&&(t=6);c>8&&(t=9);return t}(),1);return u(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(n){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,n){var i=e,o="navigateTo";switch(i=n?i+"?"+r(n):i,t){case 1:o="navigateTo";break;case 2:o="redirectTo";break;case 3:o="reLaunch";break;case 4:o="switchTab";break;default:o="navigateTo";break}uni[o]({url:i,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,o.default)(window))&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var a=document.createElement("canvas"),r=a.getContext("2d"),u=new Image;return u.onload=function(){a.width=u.width,a.height=u.height,r.drawImage(u,0,0),e(a.toDataURL()),a.height=a.width=0},u.onerror=n,void(u.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,o.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,o.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var i=new plus.io.FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t)},i.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return u(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),u(t,"yyyy-MM-dd")},e.throttle=function(t,e){var n,i;e=e||200;return function(){for(var o=this,a=arguments.length,r=new Array(a),u=0;u<a;u++)r[u]=arguments[u];n=r,i||(i=setTimeout((function(){i=null,t.apply(o,n)}),e))}},e.unique=function(t){t=t||[];for(var e={},n=0;n<t.length;n++){var i=JSON.stringify(t[n]);"undefined"==typeof i&&(e[i]=1)}for(var n in t.length=0,e)t[t.length]=n;return t};var o=i(n("53ca")),a=i(n("5530"));function r(t){var e,n=[];return Object.keys(t).forEach((function(e){n.push("".concat(e,"=").concat(t[e]))})),e=n.join("&"),e}function u(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}n("e9c4"),n("d9e2"),n("d401"),n("d3b7"),n("159b"),n("b64b"),n("14d9"),n("99af"),n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr(String(e[n]).length)));return t};var s=new Date,c=s.getMonth(),d=s.getYear();d+=d<2e3?1900:0}}]); |