1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-info-page-user-info-qrCode"],{"19ad":function(t,e,n){var a=n("a096");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("1e0d9b1b",a,!0,{sourceMap:!1,shadowMode:!1})},2636:function(t,e,n){"use strict";n.r(e);var a=n("cdb2"),i=n("b707");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("6e03");var r=n("828b"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"760cc50b",null,!1,a["a"],void 0);e["default"]=c.exports},"2d2d":function(t,e,n){"use strict";n.r(e);var a=n("b2ef"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"6e03":function(t,e,n){"use strict";var a=n("19ad"),i=n.n(a);i.a},"74ff":function(t,e,n){n("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"84b2":function(t,e,n){"use strict";var a=n("c94c"),i=n.n(a);i.a},"862f":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tn-custom-nav-bar-class tn-custom-nav-bar",style:[t.navBarStyle]},[n("v-uni-view",{staticClass:"tn-custom-nav-bar__bar",class:[t.barClass],style:[t.barStyle]},[t.isBack?n("v-uni-view",[t.customBack?n("v-uni-view",[n("v-uni-view",{style:{width:t.customBackStyleInfo.width+"px",height:t.customBackStyleInfo.height+"px",marginLeft:t.customBackStyleInfo.left+"px"}},[t._t("back")],2)],1):n("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlerBack.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back",class:["tn-icon-"+t.backIcon]}),t.backTitle?n("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back-text"},[t._v(t._s(t.backTitle))]):t._e()],1)],1):t._e(),n("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__content",style:[t.contentStyle]},[t._t("default")],2),n("v-uni-view",[t._t("right")],2)],1)],1)},i=[]},8721:function(t,e,n){var a=n("c86c");e=a(!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 */.tn-custom-nav-bar[data-v-312b16c3]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-312b16c3]{display:flex;position:relative;align-items:center;min-height:%?100?%;justify-content:space-between;min-height:0;box-shadow:%?0?% %?0?% %?0?%;z-index:9999}.tn-custom-nav-bar__bar--fixed[data-v-312b16c3]{position:fixed;width:100%;top:0}.tn-custom-nav-bar__bar--alpha[data-v-312b16c3]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-312b16c3]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-312b16c3]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-312b16c3]{\n /* position: absolute; */\n /* top: 50%; */\n /* left: 20rpx; */\n /* margin-top: -15rpx; */margin-left:%?20?%;font-size:%?38?%;line-height:100%}.tn-custom-nav-bar__bar__action--nav-back-text[data-v-312b16c3]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-312b16c3]{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:auto;font-size:%?32?%;cursor:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}',""]),t.exports=e},"90e2":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("9a0a"),o=a(n("277e")),r={data:function(){return{authCodeInfo:{},brandId:0,uid:0,currentCredit2:0,timer:null}},onLoad:function(t){t.brand_id&&(this.brandId=t.brand_id),this.getMyAuthcode()},methods:{getMyAuthcode:function(){var t=this;(0,i.myAuthcode)({brandId:this.brandId}).then((function(e){console.log("res",e),t.authCodeInfo=e;var n=new o.default;n.data=t.authCodeInfo.md5_data,n.size=250,n.make();var a=uni.createCanvasContext("qrcode",t);n.canvasContext=a,n.drawCanvas(),t.brandId&&(t.currentCredit2=t.authCodeInfo.credit2,t.currentCredit2Api())}))},currentCredit2Api:function(){var t=this;this.brandId&&!this.timer&&(this.timer=setInterval((function(){(0,i.currentCredit2Api)({brandId:t.brandId}).then((function(e){console.log("res",e),-1===e.data&&(clearInterval(t.timer),t.timer=null),console.log("this.currentCredit2",t.currentCredit2),console.log("res.data",e.data),e.data!=t.currentCredit2&&(t.currentCredit2=e.data,uni.showToast({title:"余额发生变动",icon:"none"}),t.authCodeInfo.credit2=t.currentCredit2)})).catch((function(e){console.log("err",e),clearInterval(t.timer),t.timer=null}))}),3e3))}}};e.default=r},"9a0a":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.wechatGetPhoneNumberApi=e.updateUserInfoApi=e.setContactApi=e.myAuthcode=e.getUserInfoApi=e.deleteAccountApi=e.currentCredit2Api=e.checkPwdSetApi=void 0;var i=a(n("7653"));e.getUserInfoApi=function(){return i.default.get("api/user.member.mine/index")};e.updateUserInfoApi=function(t){return i.default.post("api/user.member.account/completeInfo",t)};e.wechatGetPhoneNumberApi=function(t){return i.default.post("api/user.member.account/wechatGetPhoneNumber",t)};e.setContactApi=function(t){return i.default.post("api/user.member.mine/setContact",t)};e.deleteAccountApi=function(){return i.default.post("api/user.member.account/deleteAccount")};e.myAuthcode=function(t){return i.default.post("api/user.member.credit.credit_authcode/myAuthcode",t)};e.currentCredit2Api=function(t){return i.default.get("api/user.member.credit.credit_authcode/currentCredit2",t)};e.checkPwdSetApi=function(t){return i.default.post("api/user.member.account/checkPwdSet",t)}},a096:function(t,e,n){var a=n("c86c");e=a(!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 */.container[data-v-760cc50b]{display:flex;justify-content:center;align-items:center;min-height:100vh;width:%?750?%;overflow:auto;background:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/qr_back.jpg) no-repeat 50%;background-size:100% 100%}.content[data-v-760cc50b]{border-radius:%?10?%;padding:%?20?%;z-index:999;text-align:center;width:%?660?%;padding-bottom:%?30?%;position:relative;background:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/qrCode_back.png) no-repeat 50%;background-size:100% 100%;box-shadow:0 %?4?% %?10?% rgba(0,0,0,.1)}.qr-code[data-v-760cc50b]{width:250px;height:250px;border-radius:%?20?%;margin:%?60?% auto}.head-img[data-v-760cc50b]{width:%?140?%;height:%?140?%;border-radius:%?140?%}.info[data-v-760cc50b]{font-size:%?26?%;margin-top:%?10?%;font-weight:700;color:#555}.level[data-v-760cc50b]{padding:%?4?% %?12?%;border-radius:%?8?%;font-size:%?24?%;color:#fff;background:#fbe386}.details[data-v-760cc50b]{margin:%?30?% 0;display:flex}.details p[data-v-760cc50b]{text-align:center;flex:1;font-size:%?28?%;color:#333;font-weight:700}.details p uni-text[data-v-760cc50b]{display:block;font-size:%?24?%;color:#777;margin-top:%?10?%}.info-box[data-v-760cc50b]{display:flex;margin-top:%?30?%}.info-box uni-view[data-v-760cc50b]{text-align:center;flex:1}',""]),t.exports=e},a305:function(t,e,n){"use strict";n.r(e);var a=n("862f"),i=n("2d2d");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("84b2");var r=n("828b"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"312b16c3",null,!1,a["a"],void 0);e["default"]=c.exports},b2ef:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("2634")),o=a(n("2fdc"));n("64aa");var r=a(n("74ff")),c={name:"tn-nav-bar",mixins:[r.default],props:{zIndex:{type:Number,default:0},height:{type:Number,default:0},unit:{type:String,default:"px"},isBack:{type:Boolean,default:!0},backIcon:{type:String,default:"left"},backTitle:{type:String,default:"返回"},alpha:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},bottomShadow:{type:Boolean,default:!0},customBack:{type:Boolean,default:!1},beforeBack:{type:Function,default:null}},computed:{navBarStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.position="fixed"),t.zIndex=this.elZIndex,t},barClass:function(){var t="";return this.backgroundColorClass&&(t+=" ".concat(this.backgroundColorClass)),this.fontColorClass&&(t+="".concat(this.fontColorClass)),this.fixed&&(t+=" tn-custom-nav-bar__bar--fixed"),this.alpha&&(t+=" tn-custom-nav-bar__bar--alpha"),this.bottomShadow&&(t+=" tn-custom-nav-bar__bar--bottom-shadow"),t},barStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.paddingTop=this.statusBarHeight+"px"),this.backgroundColorClass||(t.backgroundColor=""!==this.backgroundColor?this.backgroundColor:"#FFFFFF"),!this.fontColorClass&&this.fontColor&&(t.color=this.fontColor),t.zIndex=this.elZIndex,t},contentStyle:function(){var t={};if(t.top=this.fixed?this.statusBarHeight+"px":"0px",t.height=0===this.height?this.customBarHeight-this.statusBarHeight+this.unit:this.height+this.unit,t.lineHeight=t.height,this.isBack)if(this.customBack){var e=2*(this.customBackStyleInfo.width+this.customBackStyleInfo.left);t.width="calc(100% - ".concat(e,"px)")}else t.width="calc(100% - 340rpx)";else t.width="100%";return t},elZIndex:function(){return this.zIndex?this.zIndex:this.$tn.zIndex.navbar}},data:function(){return{statusBarHeight:0,customBarHeight:0,customBackStyleInfo:{width:86,height:32,left:15}}},mounted:function(){this.updateNavBarInfo()},created:function(){},methods:{updateNavBarInfo:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var n,a,o;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.vuex_custom_bar_height,a=t.vuex_status_bar_height,n){e.next=15;break}return e.prev=3,e.next=6,t.$tn.updateCustomBar();case 6:o=e.sent,n=o.customBarHeight,a=o.statusBarHeight,e.next=15;break;case 11:return e.prev=11,e.t0=e["catch"](3),setTimeout((function(){t.updateNavBarInfo()}),10),e.abrupt("return");case 15:t&&t.$tn.vuex("vuex_status_bar_height",a),t&&t.$tn.vuex("vuex_custom_bar_height",n),t.customBarHeight=n,t.statusBarHeight=a;case 19:case"end":return e.stop()}}),e,null,[[3,11]])})))()},handlerBack:function(){var t=this;return(0,o.default)((0,i.default)().mark((function e(){var n;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.beforeBack||"function"!==typeof t.beforeBack){e.next=10;break}if(n=t.beforeBack.bind(t.$tn.$parent.call(t))(),!n||"function"!==typeof n.then){e.next=7;break}return e.next=5,n.then((function(e){t.navBack()})).catch((function(t){}));case 5:e.next=8;break;case 7:!0===n&&t.navBack();case 8:e.next=11;break;case 10:t.navBack();case 11:case"end":return e.stop()}}),e)})))()},navBack:function(){var t=getCurrentPages();if(t&&t.length>0){var e=t[0];1!=t.length||e.route&&"pages/index/index"==e.route?uni.navigateBack({delta:1}):uni.reLaunch({url:"/pages/index/index"})}else uni.reLaunch({url:"/pages/index/index"})}}};e.default=c},b707:function(t,e,n){"use strict";n.r(e);var a=n("90e2"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},c94c:function(t,e,n){var a=n("8721");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("41c5c44b",a,!0,{sourceMap:!1,shadowMode:!1})},cdb2: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(){return a}));var a={tnNavBar:n("a305").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("tn-nav-bar",{staticClass:"nav_bar",staticStyle:{color:"#333"},attrs:{fixed:!0,beforeBack:t.handleNavBack,backTitle:" ",alpha:!0}}),n("v-uni-view",{staticClass:"content",style:t.skin},[n("v-uni-image",{staticClass:"head-img",attrs:{src:t.authCodeInfo.avatar||t.userData.platform.logo}}),n("v-uni-view",{staticClass:"info-box"},[n("v-uni-view",[n("v-uni-text",{staticClass:"info"},[t._v(t._s(t.authCodeInfo.mobile))])],1),n("v-uni-view",[n("v-uni-text",{staticClass:"level"},[t._v("uid:"+t._s(t.authCodeInfo.uid))])],1)],1),n("v-uni-canvas",{staticClass:"qr-code",attrs:{id:"qrcode","canvas-id":"qrcode"}}),n("v-uni-view",{staticClass:"details"},[n("p",[t._v("余额"),n("v-uni-text",[t._v("RM"+t._s(t.authCodeInfo.credit2))])],1),n("p",[t._v("积分"),n("v-uni-text",[t._v(t._s(t.authCodeInfo.credit1))])],1),n("p",[t._v("红包"),n("v-uni-text",[t._v(t._s(t.authCodeInfo.redpacketTotal)+"张")])],1)])],1)],1)},o=[]}}]);
|