plugin-page-sharepacket-index.65acc7fa.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["plugin-page-sharepacket-index"],{"06993":function(t,e,i){"use strict";i.r(e);var n=i("d428"),a=i("be0c");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("3bf0");var s=i("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"2a9a3d7c",null,!1,n["a"],void 0);e["default"]=r.exports},"21c6":function(t,e,i){var n=i("4132");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("0146d1ce",n,!0,{sourceMap:!1,shadowMode:!1})},"2ba2":function(t,e,i){"use strict";i.r(e);var n=i("7f0a"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"386f":function(t,e,i){var n=i("538e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("9f8800e8",n,!0,{sourceMap:!1,shadowMode:!1})},"3bf0":function(t,e,i){"use strict";var n=i("21c6"),a=i.n(n);a.a},4132:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */\n/* 分享红包 */.share-continer[data-v-2a9a3d7c]{width:100%;padding-bottom:%?100?%;background-color:hsla(0,0%,100%,.8);border-radius:%?30?% %?30?% 0 0;position:fixed;bottom:0;-webkit-transform:translateY(10px);transform:translateY(10px);transition:all .5s}.top-bg uni-image[data-v-2a9a3d7c]{width:100%}.packet-content[data-v-2a9a3d7c]{margin-top:%?-100?%;position:relative}.packet-content .contact-packet[data-v-2a9a3d7c]{border-radius:%?15?%;background-color:#fff;overflow:hidden}.packet-butt[data-v-2a9a3d7c]{width:50%;margin:%?40?% auto;padding:%?18?% 0;border-radius:%?50?%}.use-packet[data-v-2a9a3d7c]{border-radius:%?15?%;background-color:#fff;overflow:hidden}.sell-store[data-v-2a9a3d7c]{border-radius:%?30?% %?30?% 0 0}.shear-packet[data-v-2a9a3d7c]{width:90%;height:%?80?%;border-radius:%?100?%;line-height:%?80?%;margin:0 auto;font-size:%?32?%}',""]),t.exports=e},"538e":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.brilliant-title[data-v-71a57327]{position:relative;width:100%}.brilliant-title .bg[data-v-71a57327]{width:100%;position:absolute;top:%?0?%}.brilliant-title .title[data-v-71a57327]{width:100%;text-align:center;top:0;font-size:%?36?%;font-weight:700}.brilliant-title .title .left-icon[data-v-71a57327]{margin-right:%?20?%}.brilliant-title .title .right-icon[data-v-71a57327]{margin-left:%?20?%}',""]),t.exports=e},"6e90":function(t,e,i){"use strict";i.r(e);var n=i("a267"),a=i("2ba2");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("9d6a");var s=i("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"71a57327",null,!1,n["a"],void 0);e["default"]=r.exports},"7f0a":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={options:{virtualHost:!0},props:{leftIcon:{type:String,default:"science"},rightIcon:{type:String,default:"science"},color:{type:String,default:"tn-cool-bg-1"},isLoading:{type:Boolean,default:!1}},data:function(){return{}}};e.default=n},"9d0a":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.showToast=e.showModal=e.showLoading=e.closeLoading=void 0;e.showToast=function(t){var e=t.title,i=t.icon,n=t.mask,a=t.callback;uni.showToast({icon:i||"none",title:e,mask:n||!0}),setTimeout((function(){a&&a()}),1500)};e.showModal=function(t){var e=t.title,i=t.content,n=t.showCancel,a=t.cancelText,o=t.confirmText,s=t.callback;uni.showModal({title:e||"操作提示",content:i,showCancel:n||!1,cancelText:a||"取消",confirmText:o||"确认",success:function(t){t.confirm&&s&&s(!0),t.cancel&&s&&s(!1)}})};e.showLoading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.title,i=void 0===e?"":e,n=t.mask,a=void 0!==n&&n;uni.showLoading({title:i,mask:a})};e.closeLoading=function(){uni.hideLoading()}},"9d6a":function(t,e,i){"use strict";var n=i("386f"),a=i.n(n);a.a},a267:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"brilliant-title"},[e("v-uni-view",{staticClass:"bg"},[e("v-uni-image",{staticClass:"image",attrs:{src:"http://qny.wdsp666.com/images/1/2022/11/jeOsePSOL6itPP3J96n2o76uTOsBPl.png?imageMogr2/thumbnail/750x",mode:"widthFix"}})],1),e("v-uni-view",{staticClass:"title tn-text-clip",class:[this.color]},[e("v-uni-text",{staticClass:"left-icon",class:["tn-icon-"+this.leftIcon]}),this._t("default"),this.isLoading?[e("v-uni-text",[this._v("Loading...")])]:this._e(),e("v-uni-text",{staticClass:"right-icon",class:["tn-icon-"+this.rightIcon]})],2)],1)},a=[]},a978:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.postGetPacketApi=e.postConcatPacketApi=e.getRedListApi=e.getPushStoreListApi=e.getPacketApi=e.getIssuingPacketApi=e.getErrPacketUserApi=void 0;var a=n(i("9b1b")),o=n(i("7653"));e.getPacketApi=function(t){return o.default.get("api/user.award.index/index",(0,a.default)({},t))};e.postGetPacketApi=function(t){return o.default.post("api/user.award.index/receive",(0,a.default)({},t))};e.getErrPacketUserApi=function(t){return o.default.get("api/user.award.index/getfail",(0,a.default)({},t))};e.postConcatPacketApi=function(t){return o.default.post("api/user.award.index/merge",(0,a.default)({},t))};e.getIssuingPacketApi=function(t){return o.default.get("api/user.award.index/ontheway",(0,a.default)({},t))};e.getRedListApi=function(t){return o.default.get("api/user.award.index/recordall",(0,a.default)({},t))};e.getPushStoreListApi=function(t){return o.default.get("api/user.award.index/store",(0,a.default)({},t))}},be0c:function(t,e,i){"use strict";i.r(e);var n=i("f758"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},d428:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("custom-page",{attrs:{"custom-navbar":!0,"wrapper-begin-navbar":!1,"enable-safe-area-bottom":!1,"transparent-navbar":!0}},[i("v-uni-view",{staticClass:"tn-bg-gray--light"},[i("v-uni-view",{staticClass:"top-bg"},[i("v-uni-image",{attrs:{src:t.redpacketInfo.data.redpacket.thumb,mode:"widthFix"}})],1),i("v-uni-view",{staticClass:"tn-padding-sm packet-content"},[i("v-uni-view",{staticClass:"tn-text-center contact-packet"},[i("brilliant-title",[i("v-uni-text",{staticClass:"value-data"},[t._v("恭喜您获得红包奖励")])],1),i("v-uni-view",{},[i("v-uni-text",{staticClass:"tn-text-xxl-xxl tn-color-red tn-text-bold"},[t._v(t._s(t.homeredpacket[0].discount||0)),i("v-uni-text",{staticClass:"tn-text-lg"},[t._v("元")])],1)],1),i("v-uni-view",{},[i("v-uni-text",{staticClass:"tn-text-sm tn-color-gray tn-text-sm"},[t._v("红包可直接抵扣优惠")])],1),i("v-uni-view",{staticClass:"tn-color-red tn-border-red tn-text-xl packet-butt",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.navPage("./marge?id="+t.redpacketInfo.id)}}},[i("v-uni-text",{staticClass:"tn-text-md"},[t._v("合成我的红包")]),i("v-uni-text",{staticClass:"tn-icon-wechat tn-padding-left-xs tn-text-sm"})],1)],1),i("v-uni-view",{staticClass:"tn-text-center tn-margin-top use-packet"},[i("brilliant-title",[i("v-uni-text",{staticClass:"value-data"},[t._v("如何使用红包")])],1),i("v-uni-view",{},[i("v-uni-image",{attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/yaoqingshuoming2.png",mode:"widthFix"}})],1)],1),i("v-uni-view",{staticClass:"tn-text-center tn-margin-top use-packet"},[i("brilliant-title",[i("v-uni-text",{staticClass:"value-data"},[t._v("活动规则")])],1),i("v-uni-view",{staticClass:"tn-padding tn-margin-bottom-sm tn-text-left"},[i("v-uni-view",[t._v("1.进入本活动页面即可领取红包,点击分享按钮(二维码、链接均可)分享给好友,好友接受邀请后领取红包(该红包可直接使用),好友在3天内使用该红包,邀请人即可获得相同的红包奖励。")]),i("v-uni-view",{staticClass:"tn-margin-top-sm"},[t._v("2.活动期间,每人每天最多领一次红包,多个红包可合成一个红包使用,合成红包数量无上限")])],1)],1)],1),i("v-uni-view",{staticClass:"tn-bg-white sell-store",attrs:{id:"push-store"}},[i("brilliant-title",[i("v-uni-text",{staticClass:"value-data"},[t._v("推荐商家")])],1),t._l(t.storeData,(function(t,e){return i("v-uni-view",{key:t.id,staticClass:"tn-padding-sm"},[i("store-list-item",{key:t.id,attrs:{store:t}})],1)}))],2),i("v-uni-view",{staticClass:"share-continer tn-padding-lg",style:{transform:"translateY("+t.showInfo+"px)"}},[i("v-uni-button",{staticClass:"tn-cool-bg-9 tn-color-white tn-text-sm shear-packet",attrs:{"open-type":"share"}},[t._v("立即分享赚红包"),i("v-uni-text",{staticClass:"tn-icon-wechat"})],1)],1)],1)],1)},a=[]},dc1f:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},computed:{themeBgColor:function(){return this.$isTheme()?"--theme-general-color":this.vuex_themeBgColor||""},themeOpacityBgColor:function(){return this.vuex_themeBgColor?"".concat(this.vuex_themeBgColor,"7F"):""},themeFontColor:function(){return this.$isTheme()?"--general-color-text":this.vuex_themeFontColor||""},themeBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.backgroundColor=this.vuex_themeBgColor),this.vuex_themeFontColor&&(t.color=this.vuex_themeFontColor),this.$isTheme()&&(t.backgroundColor="var(--theme-general-color)",t.color="--general-color-text"),t},themeLineBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.border="1rpx solid ".concat(this.vuex_themeBgColor),t.color=this.vuex_themeBgColor),this.$isTheme()&&(t.border="1rpx solid var(--theme-general-color)",t.color="var(--theme-general-color)"),t}}}},f758:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("fd3c"),i("64aa");var a=n(i("6e90")),o=n(i("a5f1")),s=i("419c"),r=i("a978"),c={components:{BrilliantTitle:a.default,StoreListItem:o.default},data:function(){return{id:"",parent_uid:"",showInfo:0,page:1,limit:10,homeredpacket:[],redpacketInfo:{},memberInfo:{},redbacketCount:0,storeData:[]}},onLoad:function(t){t.id&&(this.id=t.id),t.parent_uid&&(this.parent_uid=t.parent_uid),this.getViewtop(),this.getIndexApi()},onShareAppMessage:function(t){return{title:"分享红包",path:"/plugin-page/sharepacket/index?id=".concat(this.redpacketInfo.id,"&parent_uid=").concat(this.memberInfo.uid),fail:function(t){console.log(t)}}},methods:{navPage:s.navPage,getIndexApi:function(){this.getPacket()},getViewtop:function(){var t=this;this._tGetRect("#push-store").then((function(e){e?t.topInfo=e.height:setTimeout((function(){t.getViewtop()}),50)}))},getPacket:function(){var t=this;(0,r.getPacketApi)({id:this.id,parent_uid:this.parent_uid}).then((function(e){t.homeredpacket=e.homeredpacket,t.redpacketInfo=e.redpacketInfo,t.memberInfo=e.memberInfo,t.redbacketCount=e.redbacketCount,!t.homeredpacket.length>0&&t.getRedPacket(),(0,r.getPushStoreListApi)({id:t.redpacketInfo.id,page:t.page,limit:t.limit}).then((function(e){t.storeData=t.storeData.concat(e.stores.map((function(t){var e,i=Number((null===t||void 0===t?void 0:t.delivery_price)||0);return 1===(null===t||void 0===t?void 0:t.free_deliveryfee)&&(i=0),{id:t.id,title:t.title,logo:t.logo||"",content:t.content,score:Number(t.score||0),sailed:t.sailed,isRest:(null===t||void 0===t?void 0:t.is_rest)||0,isInBusiness:(null===t||void 0===t?void 0:t.is_in_business)||0,label:"",deliveryTime:(null===t||void 0===t?void 0:t.delivery_time)||0,distance:(null===t||void 0===t?void 0:t.distance)||0,sendPrice:(null===t||void 0===t?void 0:t.send_price)||0,deliveryPrice:i,activityLabels:(null===t||void 0===t||null===(e=t.activity)||void 0===e?void 0:e.labels)||[],delivery_title:(null===t||void 0===t?void 0:t.delivery_title)||"校园配送"}})))}))}))},getRedPacket:function(){var t=this;(0,r.postGetPacketApi)({id:this.redpacketInfo.id||0,parent_uid:this.parent_uid}).then((function(e){t.getPacket()}))},getPushStoreList:function(){var t=this;(0,r.getPushStoreListApi)({id:this.redpacketInfo.id,page:1,limit:10}).then((function(e){t.storeData=e.stores}))}},onPageScroll:function(t){this.topInfo>=t.scrollTop?this.showInfo=0:this.showInfo=200}};e.default=c}}]);