cyywl_shop_app/dist/static/js/pages-member_renew-index.1c...

1 line
13 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member_renew-index"],{"0ad3":function(e,t,i){"use strict";var r=i("1ad0"),a=i.n(r);a.a},"1ad0":function(e,t,i){var r=i("fbca");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("4f06").default;a("cc62a22a",r,!0,{sourceMap:!1,shadowMode:!1})},"5e1c":function(e,t,i){"use strict";i("7a82");var r=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("e25e"),i("caad"),i("2532"),i("4de4"),i("d3b7"),i("14d9"),i("d81d");var a=r(i("ade3")),n=r(i("5530")),o=r(i("c7eb")),m=r(i("1da1")),s=i("43cd"),b=r(i("ae4b")),d=r(i("821a")),l={name:"member_renew",components:{paymentMember:b.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:{userPhone:""},rules:{userName:[{required:!0,message:"姓名不能为空",trigger:["blur"]}],userPhone:[{required:!0,message:"手机号不能为空",trigger:["blur"]},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[1-25-9])\d{8}$/g,transform:function(e){return String(e)},message:"手机号不正确190.193号段不可充值)",trigger:["blur"]}]}}},onLoad:function(){var e=this;return(0,m.default)((0,o.default)().mark((function t(){var i;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return uni.showLoading({title:"加载中",mask:!0}),t.prev=1,t.next=4,(0,s.memberGradeInfo)();case 4:i=t.sent,e.memberData=i.data,e.form.userPhone=d.default.state.app.userInfo.mobile;case 7:return t.prev=7,uni.hideLoading(),t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[1,,7,10]])})))()},methods:(0,a.default)({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;this.$refs.uForm.validate().then((function(t){if(e.activeIndex.length){e.$set(e,"pay_close",!0);var i=e.activeIndex.map((function(t){return(0,n.default)((0,n.default)({},e.memberData[t]),{},{gearId:e.memberData[t].id})}));e.payInfo={userPhone:d.default.state.app.userInfo.mobile,userName:e.form.userName,orderInfos:i}}else e.$util.Tips({title:"请选择档次套餐"})})).catch((function(e){}))},onChangeFun:function(e){var t=e,i=t.action||null,r=void 0!=t.value?t.value:null;i&&this[i]&&this[i](r)},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,r=void 0!=t.value?t.value:null;i&&this[i]&&this[i](r)}))};t.default=l},"81e0":function(e,t,i){"use strict";i.r(t);var r=i("cd18"),a=i("abd8");for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);i("0ad3");var o=i("f0c5"),m=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"583e466e",null,!1,r["a"],void 0);t["default"]=m.exports},abd8:function(e,t,i){"use strict";i.r(t);var r=i("5e1c"),a=i.n(r);for(var n in r)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t["default"]=a.a},cd18: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(){return r}));var r={"u-Form":i("1f60").default,uFormItem:i("c431").default,"u-Input":i("f193").default},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"box"},[r("v-uni-view",{staticClass:"box-phone"},[r("u--form",{ref:"uForm",attrs:{model:e.form,rules:e.rules,labelWidth:"100",errorType:"toast"}},[r("u-form-item",{attrs:{label:"姓名",prop:"userName"}},[r("u--input",{attrs:{maxlength:"11",placeholder:"请输入您的姓名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),r("u-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("u--input",{attrs:{maxlength:"11",disabled:!0,placeholder:"请输入您的手机号"},model:{value:e.form.userPhone,callback:function(t){e.$set(e.form,"userPhone",t)},expression:"form.userPhone"}})],1)],1)],1),r("v-uni-view",{staticClass:"box-member"},[r("v-uni-view",{staticClass:"box-title"},[r("v-uni-image",{attrs:{src:i("d0b7")}})],1),r("v-uni-view",{staticClass:"member-list"},[e._l(e.memberData,(function(t,a){return r("v-uni-view",{key:a,class:[e.activeIndex.includes(a)&&"member-active",!!parseInt(t.isExist)&&"member-disbled","member-item"],on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.handleMember(t,a)}}},[r("v-uni-view",{staticClass:"member-image"},[r("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:!parseInt(t.isExist),expression:"!!!parseInt(item.isExist)"}],attrs:{src:i("8ec9")}}),r("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:!!parseInt(t.isExist),expression:"!!parseInt(item.isExist)"}],attrs:{src:i("5bd2")}})],1),r("v-uni-view",{staticClass:"member-text"},[r("v-uni-view",{staticClass:"text-title"},[r("v-uni-text",[e._v(e._s(t.name.split("得")[0])+"得"),r("v-uni-text",[e._v(e._s(t.name.split("得")[1]))])],1),r("v-uni-view")],1),r("v-uni-text",{staticClass:"text-content"},[e._v(e._s(t.gearRemarks))])],1)],1)})),r("v-uni-view",{staticClass:"member-prompt"},[e._v("* 办理三个项目即可升级会员2会员2享XX权益。")])],2)],1),r("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)}}}),r("v-uni-button",{staticClass:"box-submit",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPay.apply(void 0,arguments)}}},[e._v("立即充值")])],1)},n=[]},fbca:function(e,t,i){var r=i("24fb"),a=i("1de5"),n=i("c47d");t=r(!1);var o=a(n);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-583e466e]{position:relative;padding:8% %?40?% %?30?% %?40?%;min-height:100vh;background:url('+o+');background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.box .box-phone .u-form-item[data-v-583e466e]{margin-bottom:%?32?%}.box .box-phone[data-v-583e466e] .u-form-item__body, .box .box-phone .u-input[data-v-583e466e]{height:%?100?%;border-radius:%?20?%;padding:0 %?30?%;background:#fff!important}.box .box-phone[data-v-583e466e] .u-form-item__body__right__message{margin-top:%?10?%;color:#fff;font-size:%?26?%}.box .phone-money[data-v-583e466e]{width:%?604?%;height:%?140?%;position:absolute;top:2%;left:15%}.box .box-member[data-v-583e466e]{margin-top:10%;box-shadow:0 0 15px -5px #000;width:100%;border-radius:20px;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-583e466e]{position:absolute;top:%?-37?%;left:%?-203?%;margin-left:50%}.box .box-member .box-title uni-image[data-v-583e466e]{width:%?406?%;height:%?88?%;position:relative;display:flex;align-items:center;justify-content:center}.box .box-member .box-title uni-image[data-v-583e466e]::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-583e466e]{margin:%?53?% %?30?% %?20?% %?30?%;position:relative}.box .box-member .member-list .member-item[data-v-583e466e]{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-583e466e]{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-583e466e]{width:100%;height:100%}.box .box-member .member-list .member-item .member-text[data-v-583e466e]{display:flex;flex-direction:column;justify-content:space-between;flex:.9}.box .box-member .member-list .member-item .member-text .text-title[data-v-583e466e]{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-583e466e]{color:#c80d00}.box .box-member .member-list .member-item .member-text .text-title uni-view[data-v-583e466e]{width:%?18?%;height:%?6?%;background:#feac49;border-radius:%?3?%}.box .box-member .member-list .member-item .member-text .text-content[data-v-583e466e]{font-size:%?24?%;color:#747474}.box .box-member .member-list .member-active[data-v-583e466e]{transition:.3s;background:linear-gradient(#ff995f,#da0e00)}.box .box-member .member-list .member-active .member-image[data-v-583e466e]{background:linear-gradient(#ff995f,#da0e00)}.box .box-member .member-list .member-active .member-text .text-title uni-text[data-v-583e466e]{color:#fff}.box .box-member .member-list .member-active .member-text .text-title uni-text uni-text[data-v-583e466e]{color:#dfd02a}.box .box-member .member-list .member-active .member-text .text-title uni-view[data-v-583e466e]{background:#fff}.box .box-member .member-list .member-active .member-text .text-content[data-v-583e466e]{color:#fff}.box .box-member .member-list .member-disbled[data-v-583e466e]{transition:.3s;background:linear-gradient(#efefef,#bcbcbc)}.box .box-member .member-list .member-disbled .member-image[data-v-583e466e]{background:linear-gradient(#efefef,#aaa)}.box .box-member .member-list .member-disbled .member-text .text-title uni-text[data-v-583e466e]{color:#868585}.box .box-member .member-list .member-disbled .member-text .text-title uni-text uni-text[data-v-583e466e]{color:#868585}.box .box-member .member-list .member-disbled .member-text .text-title uni-view[data-v-583e466e]{background:#fff}.box .box-member .member-list .member-disbled .member-text .text-content[data-v-583e466e]{color:#5c5c5c}.box .box-member .member-list .member-prompt[data-v-583e466e]{display:flex;justify-content:center;font-size:%?24?%;color:#fff}.box .box-privilege[data-v-583e466e]{box-shadow:0 0 15px -5px #000;border-radius:%?36?%;width:100%;margin-top:12%;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-583e466e]{position:absolute;top:-9%;left:%?-203?%;margin-left:50%}.box .box-privilege .box-title uni-image[data-v-583e466e]{width:%?406?%;height:%?87?%;position:relative;display:flex;align-items:center;justify-content:center}.box .box-privilege .box-title uni-image[data-v-583e466e]::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-583e466e]{margin:%?84?% %?10?% %?40?% %?10?%;display:flex;justify-content:space-between}.box .box-privilege .privilege-list .privilege-item[data-v-583e466e]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:#fff;padding:%?16?% %?16?%;border-radius:%?20?%;margin:0 %?10?%}.box .box-privilege .privilege-list .privilege-item uni-image[data-v-583e466e]{width:%?96?%;height:%?96?%;border-radius:50%;margin-bottom:%?15?%}.box .box-privilege .privilege-list .privilege-item .privilege-text[data-v-583e466e]{color:#000;line-height:%?36?%;text-align:center;font-size:%?26?%}.box .box-submit[data-v-583e466e]{background:linear-gradient(#ffc82b,#fd7a32);margin-top:9%;display:flex;justify-content:center;align-items:center;height:%?87?%;border-radius:%?44?%;color:#fff;font-size:%?32?%}',""]),e.exports=t}}]);