1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member_application-index"],{"025d":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var a={uModal:i("c1ec").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"payment",class:e.pay_close?"on":""},[i("v-uni-view",{staticClass:"title acea-row row-center-wrapper"},[e._v("选择付款方式"),i("v-uni-text",{staticClass:"iconfont icon-guanbi",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}})],1),e._l(e.payMode,(function(t,a){return i("v-uni-view",{key:a,staticClass:"item acea-row row-between-wrapper",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.goPay(t.value)}}},[i("v-uni-view",{staticClass:"left acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"iconfont",class:t.icon}),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"name"},[e._v(e._s(t.name))]),t.number?i("v-uni-view",{staticClass:"info"},[e._v(e._s(t.title)),i("span",{staticClass:"money"},[e._v("¥"+e._s(t.number))])]):i("v-uni-view",{staticClass:"info"},[e._v(e._s(t.title))])],1)],1),i("v-uni-view",{staticClass:"iconfont icon-xiangyou"})],1)}))],2),e.pay_close?i("v-uni-view",{staticClass:"mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}}):e._e(),i("v-uni-button",{staticClass:"clipboard",staticStyle:{cursor:"pointer",display:"none"},attrs:{"data-clipboard-text":e.alipayLink}}),i("u-modal",{attrs:{show:e.alipayShow,title:"支付宝支付"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.handleConfirm.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"slot-content"},[i("v-uni-rich-text",{attrs:{nodes:e.alipayForm}})],1)],1)],1)},o=[]},"0463":function(e,t,i){var a=i("4238");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("3741c5aa",a,!0,{sourceMap:!1,shadowMode:!1})},"0f76":function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i("7d1b");var n=a(i("2ab4")),o=i("43cd"),r=i("26cb"),s=a(i("0874")),c={props:{payMode:{type:Array,default:function(){return[]}},pay_close:{type:Boolean,default:!1},payInfo:{type:Object,deafult:function(){return{orderInfos:[]}}}},data:function(){return{alipayShow:!1,alipayForm:"链接已复制,请到外部浏览器完成支付",alipayLink:""}},computed:(0,r.mapGetters)(["systemPlatform","openId"]),mounted:function(){new s.default(".clipboard")},methods:{handleConfirm:function(){this.alipayShow=!1,window.location.reload()},close:function(){this.$emit("onChangeFun",{action:"payClose"})},goPay:function(e){var t=this;if(0===t.payInfo.orderInfos.length)return t.$util.Tips({title:"请选择要支付的订单"});(0,n.default)({payInfo:t.payInfo,payType:e,createOrderFun:o.memberTopUp,wxPaySuccess:function(){window.location.reload()},aliPaySuccess:function(e){t.alipayLink=e,setTimeout((function(){document.querySelector(".clipboard").click(),t.alipayShow=!0}),500)}})}}};t.default=c},"1de5":function(e,t,i){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"3cd5":function(e,t,i){e.exports=i.p+"static/img/vip1.4a702faf.png"},4238:function(e,t,i){var a=i("24fb"),n=i("1de5"),o=i("c47d");t=a(!1);var r=n(o);t.push([e.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/* crmeb颜色变量 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.box[data-v-7e8c762c]{position:relative;padding:%?207?% %?40?% 0 %?40?%;min-height:100vh;background:url('+r+');background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.box .u-nav-slot[data-v-7e8c762c] .u-popup__content{padding-bottom:20%!important}.box .phone-money[data-v-7e8c762c]{width:%?604?%;height:%?140?%;position:absolute;top:2%;left:15%}.box .box-member[data-v-7e8c762c]{box-shadow:0 0 15px -5px #000;width:100%;box-sizing:border-box;border:1px solid transparent;background-image:linear-gradient(#ffd55d,#fd752f),linear-gradient(180deg,#ffd55d,#fdcb3b);background-origin:border-box;background-clip:content-box,border-box;border-radius:20px;position:relative}.box .box-member .box-title[data-v-7e8c762c]{position:absolute;top:%?-37?%;left:%?-203?%;margin-left:50%}.box .box-member .box-title uni-image[data-v-7e8c762c]{width:%?406?%;height:%?88?%;position:relative;display:flex;align-items:center;justify-content:center}.box .box-member .box-title uni-image[data-v-7e8c762c]::before{content:"会员详情介绍";position:absolute;font-size:%?34?%;font-family:Adobe Heiti Std;font-weight:400;color:#ff4b47;text-shadow:1px 5px 5px rgba(255,195,30,.78)}.box .box-member .member-list[data-v-7e8c762c]{margin:%?53?% %?30?% %?20?% %?30?%;position:relative}.box .box-member .member-list .member-item[data-v-7e8c762c]{padding:%?30?% %?20?% %?27?% %?20?%;display:flex;justify-content:space-between;background:#fff;margin-bottom:%?20?%;border-radius:%?20?%}.box .box-member .member-list .member-item .member-image[data-v-7e8c762c]{width:%?100?%;height:%?100?%;border-radius:%?35?%;background:linear-gradient(#ffebb2,#fdcb3b);padding:%?6?% %?13?%}.box .box-member .member-list .member-item .member-image uni-image[data-v-7e8c762c]{width:100%;height:100%}.box .box-member .member-list .member-item .member-text[data-v-7e8c762c]{display:flex;flex-direction:column;justify-content:space-between;flex:.9}.box .box-member .member-list .member-item .member-text .text-title[data-v-7e8c762c]{margin-top:%?-14?%;font-size:%?32?%;font-weight:bolder;-webkit-transform:skew(-6deg,0);transform:skew(-6deg,0);display:flex;justify-content:space-between}.box .box-member .member-list .member-item .member-text .text-title uni-text uni-text[data-v-7e8c762c]{color:#c80d00}.box .box-member .member-list .member-item .member-text .text-title uni-view[data-v-7e8c762c]{width:%?18?%;height:%?6?%;background:#feac49;border-radius:%?3?%}.box .box-member .member-list .member-item .member-text .text-content[data-v-7e8c762c]{font-size:%?24?%;color:#747474}.box .box-member .member-list .member-active[data-v-7e8c762c]{transition:.3s;background:linear-gradient(#ff995f,#da0e00)}.box .box-member .member-list .member-active .member-image[data-v-7e8c762c]{background:linear-gradient(#ff995f,#da0e00)}.box .box-member .member-list .member-active .member-text .text-title uni-text[data-v-7e8c762c]{color:#fff}.box .box-member .member-list .member-active .member-text .text-title uni-text uni-text[data-v-7e8c762c]{color:#dfd02a}.box .box-member .member-list .member-active .member-text .text-title uni-view[data-v-7e8c762c]{background:#fff}.box .box-member .member-list .member-active .member-text .text-content[data-v-7e8c762c]{color:#fff}.box .box-member .member-list .member-disbled[data-v-7e8c762c]{transition:.3s;background:linear-gradient(#efefef,#bcbcbc)}.box .box-member .member-list .member-disbled .member-image[data-v-7e8c762c]{background:linear-gradient(#efefef,#aaa)}.box .box-member .member-list .member-disbled .member-text .text-title uni-text[data-v-7e8c762c]{color:#868585}.box .box-member .member-list .member-disbled .member-text .text-title uni-text uni-text[data-v-7e8c762c]{color:#868585}.box .box-member .member-list .member-disbled .member-text .text-title uni-view[data-v-7e8c762c]{background:#fff}.box .box-member .member-list .member-disbled .member-text .text-content[data-v-7e8c762c]{color:#5c5c5c}.box .box-privilege[data-v-7e8c762c]{box-shadow:0 0 15px -5px #000;border-radius:%?36?%;width:100%;margin-top:9%;border-radius:20px;box-sizing:border-box;border:1px solid transparent;background-image:linear-gradient(#ffd55d,#fd752f),linear-gradient(180deg,#ffebb2,#fdcb3b);background-origin:border-box;background-clip:content-box,border-box;border-radius:20px;display:flex;flex:1;position:relative}.box .box-privilege .box-title[data-v-7e8c762c]{position:absolute;top:%?-37?%;left:%?-203?%;margin-left:50%}.box .box-privilege .box-title uni-image[data-v-7e8c762c]{width:%?406?%;height:%?88?%;position:relative;display:flex;align-items:center;justify-content:center}.box .box-privilege .box-title uni-image[data-v-7e8c762c]::before{content:"特权详情";position:absolute;font-size:%?34?%;font-family:Adobe Heiti Std;font-weight:400;color:#ff4b47;text-shadow:1px 5px 5px rgba(255,195,30,.78)}.box .box-privilege .privilege-list[data-v-7e8c762c]{margin:%?54?% %?10?% %?10?% %?10?%;display:flex;justify-content:space-between}.box .box-privilege .privilege-list .privilege-item[data-v-7e8c762c]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:#fff;padding:%?6?% %?16?%;border-radius:%?20?%;margin:0 %?10?%}.box .box-privilege .privilege-list .privilege-item uni-image[data-v-7e8c762c]{width:%?96?%;height:%?96?%;border-radius:50%;margin-bottom:%?15?%}.box .box-privilege .privilege-list .privilege-item .privilege-text[data-v-7e8c762c]{color:#000;line-height:%?36?%;text-align:center;font-size:%?26?%}.box .box-others[data-v-7e8c762c]{width:46%;background:linear-gradient(#ff6672,#d60338);display:flex;justify-content:center;align-items:center;height:%?87?%;border-radius:%?44?%;color:#fff;font-size:%?32?%}.box .box-submit[data-v-7e8c762c]{width:46%;background:linear-gradient(#ffc82b,#fd7a32);display:flex;justify-content:center;align-items:center;height:%?87?%;border-radius:%?44?%;color:#fff;font-size:%?32?%}',""]),e.exports=t},"425c":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.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/* crmeb颜色变量 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.payment[data-v-351228a8]{position:fixed;bottom:0;left:0;width:100%;border-radius:%?16?% %?16?% 0 0;background-color:#fff;padding-bottom:20%;z-index:99;transition:all .3s cubic-bezier(.25,.5,.5,.9);-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.payment.on[data-v-351228a8]{-webkit-transform:translateZ(0);transform:translateZ(0)}.payment .title[data-v-351228a8]{text-align:center;height:%?123?%;font-size:%?32?%;color:#282828;font-weight:700;padding-right:%?30?%;margin-left:%?30?%;position:relative;border-bottom:%?1?% solid #eee}.payment .title .iconfont[data-v-351228a8]{position:absolute;right:%?30?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:%?43?%;color:#8a8a8a;font-weight:400}.payment .item[data-v-351228a8]{border-bottom:%?1?% solid #eee;height:%?130?%;margin-left:%?30?%;padding-right:%?30?%}.payment .item .left[data-v-351228a8]{width:%?600?%}.payment .item .left .text[data-v-351228a8]{width:%?540?%}.payment .item .left .text .name[data-v-351228a8]{font-size:%?32?%;color:#282828}.payment .item .left .text .info[data-v-351228a8]{font-size:%?24?%;color:#999}.payment .item .left .text .info .money[data-v-351228a8]{color:#f90}.payment .item .left .iconfont[data-v-351228a8]{font-size:%?45?%;color:#09bb07}.payment .item .left .iconfont.icon-zhifubao[data-v-351228a8]{color:#00aaea}.payment .item .left .iconfont.icon-yuezhifu[data-v-351228a8]{color:#f90}.payment .item .left .iconfont.icon-yuezhifu1[data-v-351228a8]{color:#eb6623}.payment .item .iconfont[data-v-351228a8]{font-size:%?0.3?%;color:#999}',""]),e.exports=t},"4e2d":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"box"},[a("v-uni-image",{staticClass:"phone-money",attrs:{src:i("7f0a")}}),a("v-uni-view",{staticClass:"box-member"},[a("v-uni-view",{staticClass:"box-title"},[a("v-uni-image",{attrs:{src:i("d0b7")}})],1),a("v-uni-view",{staticClass:"member-list"},e._l(e.memberData,(function(t,n){return a("v-uni-view",{key:n,class:[e.activeIndex.includes(n)&&"member-active",!!parseInt(t.isExist)&&"member-disbled","member-item"],on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.handleMember(t,n)}}},[a("v-uni-view",{staticClass:"member-image"},[a("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:!parseInt(t.isExist),expression:"!!!parseInt(item.isExist)"}],attrs:{src:i("8ec9")}}),a("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:!!parseInt(t.isExist),expression:"!!parseInt(item.isExist)"}],attrs:{src:i("5bd2")}})],1),a("v-uni-view",{staticClass:"member-text"},[a("v-uni-view",{staticClass:"text-title"},[a("v-uni-text",[e._v(e._s(t.name.split("得")[0])+"得"),a("v-uni-text",[e._v(e._s(t.name.split("得")[1]))])],1),a("v-uni-view")],1),a("v-uni-text",{staticClass:"text-content"},[e._v(e._s(t.gearRemarks))])],1)],1)})),1)],1),a("v-uni-view",{staticClass:"box-privilege"},[a("v-uni-view",{staticClass:"box-title"},[a("v-uni-image",{attrs:{src:i("d0b7")}})],1),a("v-uni-view",{staticClass:"privilege-list"},e._l(4,(function(t,n){return a("v-uni-view",{key:n,staticClass:"privilege-item"},[a("v-uni-image",{attrs:{src:i("3cd5")}}),a("v-uni-text",{staticClass:"privilege-text"},[e._v("开通立享大额话费返送。")])],1)})),1)],1),a("paymentMember",{attrs:{payMode:e.payMode,pay_close:e.pay_close,payInfo:e.payInfo},on:{onChangeFun:function(t){arguments[0]=t=e.$handleEvent(t),e.onChangeFun.apply(void 0,arguments)}}}),a("v-uni-view",{staticStyle:{display:"flex","justify-content":"space-between","margin-top":"4%"}},[a("v-uni-button",{staticClass:"box-submit",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPay.apply(void 0,arguments)}}},[e._v("立即充值")]),a("v-uni-button",{staticClass:"box-others",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleOther.apply(void 0,arguments)}}},[e._v("代他人充值")])],1)],1)},n=[]},"5bd2":function(e,t,i){e.exports=i.p+"static/img/disbled.bcb0bb9f.png"},"6ce6":function(e,t,i){"use strict";var a=i("f926"),n=i.n(a);n.a},"71d3":function(e,t,i){"use strict";i.r(t);var a=i("4e2d"),n=i("a868");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("79f3");var r=i("f0c5"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"7e8c762c",null,!1,a["a"],void 0);t["default"]=s.exports},"73dc":function(e,t,i){"use strict";i.r(t);var a=i("0f76"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"79f3":function(e,t,i){"use strict";var a=i("0463"),n=i.n(a);n.a},"7f0a":function(e,t,i){e.exports=i.p+"static/img/phoneMoney.00b97281.png"},"8ec9":function(e,t,i){e.exports=i.p+"static/img/success.520a8cbf.png"},a868:function(e,t,i){"use strict";i.r(t);var a=i("ceca"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},ae4b:function(e,t,i){"use strict";i.r(t);var a=i("025d"),n=i("73dc");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("6ce6");var r=i("f0c5"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"351228a8",null,!1,a["a"],void 0);t["default"]=s.exports},c47d:function(e,t,i){e.exports=i.p+"static/img/bg.0d2330f2.png"},ceca:function(e,t,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("d3b7"),i("e25e"),i("caad"),i("2532"),i("4de4"),i("14d9"),i("d81d");var n=a(i("ade3")),o=a(i("5530")),r=a(i("c7eb")),s=a(i("1da1")),c=i("43cd"),l=a(i("ae4b")),d=a(i("821a")),m={name:"member_application",components:{paymentMember:l.default},data:function(){return{memberData:[],payInfo:{userPhone:"",confirmPhone:"",orderInfos:[]},payMode:[{name:"微信支付",icon:"icon-weixinzhifu",value:"WXPAY",title:"微信快捷支付"},{name:"支付宝",icon:"icon-zhifubao",value:"ALIPAY",title:"支付宝快捷支付"}],pay_close:!1,activeIndex:[],form:{phone:""},show:!0,ref:null}},onShow:function(){var e=this;return(0,s.default)((0,r.default)().mark((function t(){var i;return(0,r.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,uni.showLoading({title:"加载中",mask:!0}),t.next=4,(0,c.memberGradeInfo)();case 4:i=t.sent,i.data.some((function(e){return!!parseInt(e.isExist)}))?(uni.setTabBarItem({index:2,pagePath:"/pages/member_equity/index"}),uni.switchTab({url:"/pages/member_equity/index"})):uni.setTabBarItem({index:2,pagePath:"/pages/member_application/index"}),e.memberData=i.data;case 7:return t.prev=7,uni.hideLoading(),t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[0,,7,10]])})))()},methods:(0,n.default)({handleOther:function(){uni.navigateTo({url:"/pages/member_others/index"})},handleSelect:function(e){switch(e.name){case"购买记录":uni.navigateTo({url:"/pages/member_record/index"});break;case"代他人充值":uni.navigateTo({url:"/pages/member_others/index"});break;default:break}},handleMember:function(e,t){parseInt(e.isExist)||(this.activeIndex.includes(t)?this.activeIndex=this.activeIndex.filter((function(e){return e!==t})):this.activeIndex.push(t))},goPay:function(){var e=this;if(this.activeIndex.length){this.$set(this,"pay_close",!0);var t=this.activeIndex.map((function(t){return(0,o.default)((0,o.default)({},e.memberData[t]),{},{gearId:e.memberData[t].id})}));this.payInfo={userPhone:d.default.state.app.userInfo.mobile,orderInfos:t}}else this.$util.Tips({title:"请选择档次套餐"})},onChangeFun:function(e){var t=e,i=t.action||null,a=void 0!=t.value?t.value:null;i&&this[i]&&this[i](a)},payClose:function(){this.pay_close=!1},pay_complete:function(){this.status=!1,this.page=1,this.$set(this,"bargain",[]),this.$set(this,"pay_close",!1),this.getBargainUserList()},pay_fail:function(){this.pay_close=!1}},"onChangeFun",(function(e){var t=e,i=t.action||null,a=void 0!=t.value?t.value:null;i&&this[i]&&this[i](a)}))};t.default=m},d0b7:function(e,t,i){e.exports=i.p+"static/img/memberTitle.74e619b3.png"},f926:function(e,t,i){var a=i("425c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("4b9ed3c5",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |