pages-my-vip.ba0a004c.js 9.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-vip"],{"094e":function(t,a,e){"use strict";var i=e("9e2b"),n=e.n(i);n.a},"0d511":function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("c975");var i={name:"bar-title",props:{bgColor:{type:String,default:""},isBack:{type:Boolean,default:!0},backText:{type:String,default:""},fixed:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},title:{type:String,default:""}},data:function(){return{isWechatBrowser:!1}},methods:{BackPage:function(){uni.navigateBack()},leftTap:function(){this.$emit("leftTap")},contentTap:function(){this.$emit("contentTap")},rightTap:function(){this.$emit("rightTap")}},created:function(){uni.setNavigationBarTitle({title:this.title}),this.isWechatBrowser=navigator.userAgent.toLocaleLowerCase().indexOf("micromessenger")>0}};a.default=i},"1c72":function(t,a,e){var i=e("796e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("66db7f3a",i,!0,{sourceMap:!1,shadowMode:!1})},"49f8":function(t,a,e){var i=e("fab6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("5fcc3938",i,!0,{sourceMap:!1,shadowMode:!1})},5328:function(t,a,e){"use strict";var i=e("49f8"),n=e.n(i);n.a},5606:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".zaiui-bar-title-box .cu-bar[data-v-095caefc]{padding-top:0;min-height:calc(0px + %?101?%)}.zaiui-bar-title-box .cu-bar .content[data-v-095caefc]{top:0}.zaiui-bar-title-box .cu-bar .content .cu-tag[data-v-095caefc]{position:relative;top:%?-2.72?%;padding:0 %?5.45?%}.zaiui-bar-title-box .cu-bar .content .cu-tag uni-text[data-v-095caefc]{position:relative;top:%?2?%}.zaiui-bar-title-box .cu-bar.fixed.no-shadow[data-v-095caefc]{box-shadow:inherit}.zaiui-bar-title-box .cu-bar.bg-white[data-v-095caefc]{color:#333}.zaiui-bar-title-box .zaiui-seat-height[data-v-095caefc]{width:100%;height:calc(0px + %?101?%)}",""]),t.exports=a},"713c":function(t,a,e){"use strict";e.r(a);var i=e("ede5"),n=e("df75a");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("094e");var s=e("f0c5"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"095caefc",null,!1,i["a"],void 0);a["default"]=r.exports},"796e":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,"",""]),t.exports=a},"8a83":function(t,a,e){"use strict";e.r(a);var i=e("f32e"),n=e("992f");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("e1e8"),e("5328");var s=e("f0c5"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"2883f8f2",null,!1,i["a"],void 0);a["default"]=r.exports},"936b":function(t,a,e){"use strict";e("7a82");var i=e("ee27").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=i(e("713c")),o=i(e("b27f")),s={components:{barTitle:n.default},data:function(){return{skin:!0,headTab:{list:[{id:0,name:"会员权益"}],TabCur:0},user:{},place:{},viplist:[]}},onLoad:function(){this.loadInfo(),this.loadList()},onReady:function(){o.default.setBarColor(!0),uni.pageScrollTo({scrollTop:0,duration:0})},methods:{loadInfo:function(){var t=this;this.reqByuser({url:"?l=vip.info",data:{},success:function(a){1==a.data.status?(t.user=a.data.data.user,t.place=a.data.data.place):t.error=a.data.msg}})},loadList:function(){var t=this;this.reqByuser({url:"?l=vip.list",data:{},success:function(a){1==a.data.status?t.viplist=a.data.data.list:t.error=a.data.msg}})},handleBuy:function(t){var a=this;this.reqByuser({url:"?l=vip.buy",data:{id:t},success:function(t){1==t.data.status?(console.log(t.data.data),location.href=t.data.data.pay.link):a.error=t.data.msg}})}}};a.default=s},"992f":function(t,a,e){"use strict";e.r(a);var i=e("936b"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},"9e2b":function(t,a,e){var i=e("5606");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("38d2a49e",i,!0,{sourceMap:!1,shadowMode:!1})},b27f:function(t,a,e){"use strict";e("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("a9e3"),e("d401"),e("d3b7"),e("25f0"),e("e25e"),e("c975"),e("ac1f"),e("5319");var i={strLeng:function(t){if(t){for(var a=t.length,e=0,i=0;i<a;i++)t.charCodeAt(i)>128?e+=2:e+=1;return e}return 0},getPageNum:function(t,a){var e=Number(t)/Number(a);if(e%1!==0){var i=e.toString(),n=parseInt(i.substring(0,i.indexOf("."))),o=i.replace(/\d+\.(\d*)/,"$1");o>0&&(e=n+1)}return e},setBarColor:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?uni.setNavigationBarColor({frontColor:"#000000",backgroundColor:"#FAFAFA"}):uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#FAFAFA"})},zaiui_log:function(t){}},n=i;a.default=n},df75a:function(t,a,e){"use strict";e.r(a);var i=e("0d511"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},e1e8:function(t,a,e){"use strict";var i=e("1c72"),n=e.n(i);n.a},ede5:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"zaiui-bar-title-box",style:t.isWechatBrowser?"display: none;":""},[e("v-uni-view",{staticClass:"cu-bar",class:[t.fixed?"fixed":"",t.shadow?"":"no-shadow",t.bgColor]},[t.isBack?e("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.BackPage.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"cuIcon-back"}),e("v-uni-text",[t._v(t._s(t.backText))])],1):t._e(),t.isBack?t._e():e("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.leftTap.apply(void 0,arguments)}}},[t._t("left")],2),e("v-uni-view",{staticClass:"content",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.contentTap.apply(void 0,arguments)}}},[t._t("content")],2),e("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.rightTap.apply(void 0,arguments)}}},[t._t("right")],2)],1),t.fixed?e("v-uni-view",{staticClass:"zaiui-seat-height"}):t._e()],1)},n=[]},ee05:function(t,a,e){t.exports=e.p+"static/images/my/price_shape.png"},f32e:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",[i("bar-title",{attrs:{bgColor:"bg-white",isBack:!0,title:"会员"}},[i("template",{attrs:{slot:"content"},slot:"content"},[t._v("会员")])],2),i("v-uni-view",{staticClass:"zaiui-user-info-box"},[i("v-uni-view",{staticClass:"cu-list menu-avatar"},[i("v-uni-view",{staticClass:"cu-item"},[i("v-uni-view",{staticClass:"cu-avatar round lg",style:"background-image:url("+t.user.avatar+");"}),i("v-uni-view",{staticClass:"content text-xl"},[i("v-uni-view",{staticClass:"flex flex-direction",staticStyle:{"align-items":"flex-start"}},[i("v-uni-text",{staticClass:"margin-right"},[t._v(t._s(t.user.name))])],1)],1)],1)],1)],1),t._l(t.viplist,(function(a){return i("v-uni-view",{staticClass:"card"},[i("v-uni-image",{staticClass:"card-bg",attrs:{src:e("ee05")}}),i("v-uni-view",{staticClass:"flex hd"},[i("v-uni-view",{staticClass:"col"},[i("v-uni-view",{staticClass:"text-white h4"},[i("v-uni-text",{staticClass:"text-white cuIcon-vipcard"}),t._v(t._s(a.name))],1)],1),i("v-uni-view",{staticClass:"col text-end"},[i("v-uni-button",{staticClass:"cu-btn bg-red",attrs:{"data-type":"vip"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBuy(a.id)}}},[t._v("立即购买")])],1)],1),i("v-uni-view",{staticClass:"detail"},[i("v-uni-view",{staticClass:"text-white price"},[t._v("价格"),i("v-uni-text",[t._v("¥"+t._s(a.price))])],1),i("v-uni-view",{staticClass:"text-white price"},[t._v("有效期"),i("v-uni-text",[t._v(t._s(a.day_desc))])],1)],1),i("v-uni-view",{staticClass:"detail"},[i("v-uni-view",{staticClass:"text-white"},[t._v(t._s(a.content)),i("v-uni-text",{staticClass:"margin-left-xs text-red cuIcon-roundright"})],1)],1)],1)}))],2)},n=[]},fab6:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".card[data-v-2883f8f2]{position:relative;width:%?680?%;height:%?380?%;margin:%?32?% auto 0;border-radius:%?15?%;box-sizing:border-box;padding:%?32?%}.card uni-image[data-v-2883f8f2]{position:absolute;background-color:#0cbc87;width:100%;border-radius:%?15?%;height:100%;left:0;top:0;opacity:.8}.card > uni-view[data-v-2883f8f2]{position:relative;z-index:1}.card .hd[data-v-2883f8f2]{align-items:center;justify-content:space-between;margin-bottom:%?40?%}.card .hd .h4[data-v-2883f8f2]{font-size:%?40?%;font-weight:bolder}.card .hd .h4 uni-text[data-v-2883f8f2]{margin-right:%?10?%}.card .detail[data-v-2883f8f2]{display:flex;margin-bottom:%?20?%;justify-content:space-between}.card .detail .price[data-v-2883f8f2]{display:flex;flex-direction:column;width:45%;font-size:%?28?%;margin-right:%?20?%}.card .detail .price uni-text[data-v-2883f8f2]{font-size:%?40?%;margin-top:%?5?%}.card .detail .price uni-text.through[data-v-2883f8f2]{text-decoration:line-through;font-size:%?28?%}",""]),t.exports=a}}]);