(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-settled-index"],{"0798":function(t,e,i){var n=i("0b22");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("007973e9",n,!0,{sourceMap:!1,shadowMode:!1})},"0b22":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@-webkit-keyframes show-data-v-21ba0998{0%{opacity:0}100%{opacity:1}}@keyframes show-data-v-21ba0998{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},"111c":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return o.default.post("store/product/increase_take",t)},e.bagExplain=function(){return o.default.get("store/product/bag/explain")},e.bagRecommend=function(){return o.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return o.default.post("user/relation/create",t)},e.collectAll=function(t){return o.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return o.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return o.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return o.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return o.default.post("intention/create",t)},e.discountsCartAdd=function(t){return o.default.post("user/cart/batchCreate",t)},e.express=function(t){return o.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return o.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return o.default.get("intention/lst",t)},e.getBrandlist=function(t){return o.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return o.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return o.default.get("captcha")},e.getCategoryList=function(){return o.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return o.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,a.default)({},t),t.brand_id=t.brand_id.toString());return o.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return o.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return o.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return o.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return o.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return o.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getLiveList=function(t){return o.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return o.default.get("product/spu/recommend",{page:void 0===e.page?1:e.page,limit:void 0===e.limit?10:e.limit,mer_id:t||""},{noAuth:!0})},e.getMerchantLst=function(t){return o.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return o.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return o.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return o.default.get("store/product/qrcode/"+t,e)},e.getProductDetail=function(t){return o.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return o.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,a.default)({},t),t.brand_id=t.brand_id.toString());return o.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return o.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return o.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return o.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t){return o.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getStoreCategory=function(t,e){return o.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return o.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return o.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return o.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreTypeApi=function(){return o.default.get("intention/type",{},{noAuth:!0})},e.merClassifly=function(){return o.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,a.default)({},e),e.brand_id=e.brand_id.toString());return o.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return o.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return o.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return o.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return o.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return o.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return o.default.post("store/certificate/".concat(t.merId),t)},e.storeListApi=function(t){return o.default.get("store_list",t,{noAuth:!0})},e.storeMerchantList=function(t){return o.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return o.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return o.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return o.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return o.default.post("user/relation/batch/delete",t)},e.verify=function(t){return o.default.post("auth/verify",t)},i("d401"),i("d3b7"),i("25f0"),i("99af");var a=n(i("5530")),o=n(i("b5ef"))},"122b":function(t,e,i){"use strict";i.r(e);var n=i("b38a"),a=i("cefa");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("c288");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"ce683694",null,!1,n["a"],void 0);e["default"]=s.exports},"1c6c":function(t,e,i){"use strict";var n=i("d630"),a=i.n(n);a.a},"1de5":function(t,e,i){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"357f":function(t,e,i){"use strict";i.r(e);var n=i("9276"),a=i("e702");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("bdcd");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"21ba0998",null,!1,n["a"],void 0);e["default"]=s.exports},"493d":function(t,e,i){"use strict";i.r(e);var n=i("e933"),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},"5cfa":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-ce683694] uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked,[data-v-ce683694] uni-checkbox .wx-checkbox-input.wx-checkbox-input-checked{border:1px solid var(--view-theme)!important;background-color:var(--view-theme)!important;color:#fff!important}.uni-input-placeholder[data-v-ce683694]{color:#b2b2b2}.item-name[data-v-ce683694]{width:%?190?%}.uni-list-cell[data-v-ce683694]{position:relative}.uni-list-cell .iconfont[data-v-ce683694]{font-size:14px;color:#7a7a7a;position:absolute;right:15px;top:%?7?%}.uni-list-cell .icon-guanbi2[data-v-ce683694]{right:35px}.merchantBgCount[data-v-ce683694]{line-height:0}.merchantsSettled[data-v-ce683694]{background-image:linear-gradient(var(--view-bntColor21),var(--view-bntColor22));height:140vh}.merchantsSettled .merchantBg[data-v-ce683694]{width:%?750?%;width:100%}.merchantsSettled .list[data-v-ce683694]{background-color:#fff;border-radius:12px;padding:22px 0;margin:0 15px;position:absolute;top:%?300?%;width:calc(100% - 30px)}.application-record[data-v-ce683694]{position:absolute;display:flex;align-items:center;top:%?240?%;right:0;color:#fff;font-size:%?22?%;background-color:rgba(0,0,0,.3);padding:%?8?% %?18?%;border-radius:20px 0 0 20px}.merchantsSettled .list .item[data-v-ce683694]{padding:%?50?% 0 %?20?%;border-bottom:1px solid #eee;position:relative;margin:0 20px}.merchantsSettled .list .item.no-border[data-v-ce683694]{border-bottom:none;padding-left:0;padding-right:0}.merchantsSettled .list .item .item-title[data-v-ce683694]{color:#666;font-size:%?28?%;display:block}.merchantsSettled .list .item .item-desc[data-v-ce683694]{color:#b2b2b2;font-size:%?22?%;display:block;margin-top:%?9?%;line-height:%?36?%}.acea-row[data-v-ce683694], .upload[data-v-ce683694]{display:-webkit-box;display:-moz-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-lines:multiple;-moz-box-lines:multiple;-o-box-lines:multiple;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.upload[data-v-ce683694]{margin-top:%?20?%}.acea-row.row-middle[data-v-ce683694]{-webkit-box-align:center;-moz-box-align:center;-o-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;padding-left:2px}.acea-row.row-column[data-v-ce683694]{-webkit-box-orient:vertical;-moz-box-orient:vertical;-o-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.acea-row.row-center-wrapper[data-v-ce683694]{-webkit-box-align:center;-moz-box-align:center;-o-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-moz-box-pack:center;-o-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.merchantsSettled .list .item .pictrue[data-v-ce683694]{width:%?130?%;height:%?130?%;margin:%?24?% %?22?% 0 0;position:relative;font-size:11px;color:#bbb}.merchantsSettled .list .item .pictrue[data-v-ce683694]:nth-child(4n){margin-right:0}.merchantsSettled .list .item .pictrue[data-v-ce683694]:nth-last-child(1){border:.5px solid #ddd;box-sizing:border-box}.merchantsSettled .list .item .pictrue uni-image[data-v-ce683694],\n.merchantsSettled .list .item .pictrue uni-image[data-v-ce683694]{width:100%;height:100%;border-radius:1px}.merchantsSettled .list .item .pictrue uni-image img[data-v-ce683694],\n.merchantsSettled .list .item .pictrue uni-image img[data-v-ce683694]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;display:block;position:absolute;top:0;left:0;opacity:0;width:100%;height:100%}.merchantsSettled .list .item .pictrue .icon-guanbi1[data-v-ce683694]{font-size:%?33?%;position:absolute;top:-10px;right:-10px}.uni-list-cell-db[data-v-ce683694]{position:relative}.wenhao[data-v-ce683694]{width:%?34?%;height:%?34?%;display:flex;align-items:center;justify-content:center;font-size:%?28?%;border-radius:50%;background:#e3e3e3;color:#fff!important;margin-left:%?4?%;position:absolute;left:%?122?%}.merchantsSettled .list .item .imageCode[data-v-ce683694]{position:absolute;top:7px;right:0}.merchantsSettled .list .item .icon[data-v-ce683694]{font-size:%?40?%;color:#b4b1b4}.merchantsSettled .list .item uni-input[data-v-ce683694]{width:%?400?%;font-size:%?30?%}.merchantsSettled .list .item .placeholder[data-v-ce683694]{color:#b2b2b2}.merchantsSettled .default[data-v-ce683694]{padding:0 %?30?%;height:%?90?%;background-color:#fff;margin-top:%?23?%}.merchantsSettled .default uni-checkbox[data-v-ce683694]{margin-right:%?15?%}.merchantsSettled .acea-row uni-image[data-v-ce683694]{width:20px;height:20px;display:block}.merchantsSettled .list .item .codeIput[data-v-ce683694]{width:125px}.uni-input-input[data-v-ce683694]{display:block;height:100%;background:none;color:inherit;opacity:1;-webkit-text-fill-color:currentcolor;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.merchantsSettled .list .item .code[data-v-ce683694]{position:absolute;width:93px;line-height:27px;border:1px solid var(--view-theme);border-radius:15px;color:var(--view-theme);text-align:center;bottom:8px;right:0;font-size:12px}.merchantsSettled .list .item .code.on[data-v-ce683694]{background-color:#bbb;color:#fff;border-color:#bbb}.merchantsSettled .submitBtn[data-v-ce683694]{width:%?588?%;margin:0 auto;height:%?86?%;border-radius:25px;text-align:center;line-height:%?86?%;font-size:15px;color:#fff;background:#e3e3e3;margin-top:25px;pointer-events:none}.merchantsSettled .submitBtn.on[data-v-ce683694]{background:var(--view-theme);pointer-events:all}uni-checkbox-group[data-v-ce683694],\n.settleAgree[data-v-ce683694]{display:inline-block;font-size:%?24?%}uni-checkbox-group[data-v-ce683694]{color:#b2b2b2}.settleAgree[data-v-ce683694]{color:var(--view-theme);position:relative;top:2px;left:8px}.merchantsSettled uni-checkbox .uni-checkbox-wrapper[data-v-ce683694]{width:%?30?%;height:%?30?%;border:%?2?% solid #c3c3c3;border-radius:15px}.settlementAgreement[data-v-ce683694]{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:10}.settlementAgreement .setAgCount[data-v-ce683694]{background:#fff;width:%?656?%;height:458px;position:absolute;top:50%;left:50%;border-radius:%?12?%;-webkit-border-radius:%?12?%;padding:%?52?%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);transform:translate(-50%,-50%);overflow:hidden}.settlementAgreement .setAgCount .content[data-v-ce683694]{height:%?900?%;overflow-y:scroll}.settlementAgreement .setAgCount .content[data-v-ce683694] p{font-size:13px;line-height:22px}.settlementAgreement .setAgCount .content[data-v-ce683694] img{max-width:100%}.settlementAgreement .setAgCount .icon[data-v-ce683694]{font-size:%?42?%;color:#b4b1b4;position:absolute;top:%?15?%;right:%?15?%}.settlementAgreement .setAgCount .title[data-v-ce683694]{color:#333;font-size:%?32?%;text-align:center;font-weight:700}.settlementAgreement .setAgCount .content[data-v-ce683694]{margin-top:%?32?%;color:#333;font-size:%?26?%;line-height:22px;text-align:justify;text-justify:distribute-all-lines;height:%?756?%;overflow-y:scroll}.settledSuccessMain[data-v-ce683694]{height:100vh;display:flex;flex-direction:column;background:#fff}.settledSuccessful[data-v-ce683694]{flex:1;width:100%;padding:0 56px;height:auto;background:#fff;text-align:center}.settledSuccessful .image[data-v-ce683694]{width:189px;height:157px;margin-top:66px}.settledSuccessful .title[data-v-ce683694]{color:#333;font-size:16px;font-weight:700;margin-top:35px}.settledSuccessful .info[data-v-ce683694]{color:#a0a0a0;font-size:13px;margin-top:12px}.settledSuccessful .goHome[data-v-ce683694]{margin:60px auto 0;line-height:43px;color:#282828;font-size:15px;border:1px solid #b4b4b4;border-radius:60px}[data-v-ce683694] uni-checkbox .uni-checkbox-input{width:15px;height:15px;position:relative}[data-v-ce683694] uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before{font-size:14px}.loadingicon[data-v-ce683694]{height:100vh;overflow:hidden;position:absolute;top:0;left:0}.icon-xiangyou[data-v-ce683694]{font-size:%?22?%}.setAgCount[data-v-ce683694] table{border:1px solid #ddd;border-bottom:none;border-right:none}.setAgCount[data-v-ce683694] td, .setAgCount th[data-v-ce683694]{padding:%?5?% %?10?%;border-bottom:1px solid #ddd;border-right:1px solid #ddd}',""]),t.exports=e},6723:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("c7eb")),o=n(i("1da1"));i("b64b"),i("d81d"),i("14d9"),i("a434"),i("ac1f"),i("00b4");var r=i("111c"),s=i("c6c3"),c=i("26cb"),l=i("4f1b"),u=n(i("357f")),d=n(i("f272")),h=n(i("025b")),p=i("8342"),f=(getApp(),{components:{"jyf-parser":u.default,authorize:d.default,Verify:h.default},data:function(){return{domain:p.HTTP_REQUEST_URL,cartId:"",pinkId:0,couponId:0,isAuto:!1,isShowAuth:!1,text:"获取验证码",codeUrl:"",disabled:!1,isAgree:!1,showProtocol:!1,isShowCode:!1,loading:!1,merchantData:{enterprise_name:"",user_name:"",phone:"",classification:""},validate:!1,successful:!1,keyCode:"",codeVal:"",protocol:this.sys_intention_agree,timer:"",index:0,index1:0,mer_classification:"",array:[{category_name:"",merchant_category_id:""}],storeTypeArr:[{type_name:"",mer_type_id:""}],mer_storeType:"",pics:[],tagStyle:{img:"width:100%;display:block;"},mer_i_id:null,isType:!1}},beforeDestroy:function(){clearTimeout(this.timer)},computed:(0,l.configMap)({sys_intention_agree:""},(0,c.mapGetters)(["isLogin","viewColor","keyColor"])),onLoad:function(t){this.isLogin?(this.getClassfication(),this.getStoreType()):(this.isAuto=!0,this.isShowAuth=!0),t.mer_i_id&&(this.mer_i_id=t.mer_i_id,uni.showLoading({title:"获取数据中"}),this.$nextTick((function(){this.getGoodsDetails(t.mer_i_id)})))},onShow:function(){},onReady:function(){},methods:{getConfig:function(){this.isType=!1,this.showProtocol=!0,this.protocol=this.sys_intention_agree},getAgreement:function(){var t=this;t.showProtocol=!0,t.isType=!0,(0,s.getAgreementApi)("sys_merchant_type").then((function(e){t.protocol=e.data.sys_merchant_type}))},getGoodsDetails:function(t){var e=this;(0,r.getGoodsDetails)(t).then((function(t){var i=Object.keys(e.merchantData),n=t.data;i.map((function(t){e.merchantData.enterprise_name=n.mer_name,e.merchantData.user_name=n.name,e.merchantData.phone=n.phone,e.merchantData.classification=n.merchant_category_id,e.merchantData.mer_type=n.mer_type_id})),e.pics=n.images,e.mer_classification=e.getCategoryName(n.merchant_category_id,e.array),e.mer_storeType=e.getStoreTypeName(n.mer_type_id,e.storeTypeArr),uni.hideLoading()}))},getCategoryName:function(t,e){for(var i=0;i0&&uni.previewImage({current:t[e],urls:t})},onLoadFun:function(){this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},toggleTab:function(t){this.$refs[t].show()},goHome:function(){uni.switchTab({url:"/pages/index/index"})},again:function(){this.getcaptcha()},uploadpic:function(){var t=this;t.$util.uploadImageOne("upload/image",(function(e){t.pics.push(e.data.path),t.$set(t,"pics",t.pics)}))},DelPic:function(t){this.pics[t];this.pics.splice(t,1),this.$set(this,"pics",this.pics)},getCode:function(){var t=this;getCodeApi().then((function(e){t.keyCode=e.data.key})).catch((function(e){t.$util.Tips({title:e})}))},code:function(t){var e=this;return(0,o.default)((0,a.default)().mark((function i(){var n;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e,n.merchantData.phone){i.next=3;break}return i.abrupt("return",n.$util.Tips({title:"请填写手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.merchantData.phone)){i.next=5;break}return i.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码"}));case 5:return i.next=7,(0,r.verify)({phone:n.merchantData.phone,type:"intention",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){n.$util.Tips({title:t.msg}),n.sendCode()})).catch((function(t){n.$util.Tips({title:t}),t.status}));case 7:case"end":return i.stop()}}),i)})))()},getcaptcha:function(){var t=this;(0,s.getCaptcha)().then((function(e){t.codeUrl=e.data.captcha,t.codeVal=e.data.code,t.codeKey=e.data.key})),t.isShowCode=!0},sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var i=setInterval((function(){e-=1,e<0&&clearInterval(i),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}},onConfirm:function(t){this.region=t.checkArr[0]+"-"+t.checkArr[1]+"-"+t.checkArr[2]},ChangeIsAgree:function(t){this.isAgree=!this.isAgree,this.validateBtn()},formSubmit:function(t){var e=this,i=this;if(i.validateForm()&&i.validate){var n={phone:i.merchantData.phone,mer_name:i.merchantData.enterprise_name,name:i.merchantData.user_name,code:i.merchantData.yanzhengma,merchant_category_id:i.merchantData.classification,mer_type_id:i.merchantData.mer_type,images:i.pics};i.validate=!1,i.mer_i_id?(0,r.updateGoodsRecord)(i.mer_i_id,n).then((function(t){200==t.status&&(i.loading=!0,i.timer=setTimeout((function(){i.successful=!0,i.validate=!0}),1e3))})).catch((function(t){i.validate=!0,i.$util.Tips({title:t})})):(0,r.create)(n).then((function(t){200==t.status&&(i.loading=!0,e.timer=setTimeout((function(){i.successful=!0,i.validate=!0}),1e3))})).catch((function(t){i.validate=!0,i.$util.Tips({title:t})}))}},validateBtn:function(){var t=this.merchantData;t.enterprise_name&&t.user_name&&t.phone&&/^1(3|4|5|7|8|9|6)\d{9}$/i.test(t.phone)&&t.yanzhengma&&this.isAgree&&t.classification?this.isShowCode?this.codeVal?this.validate=!0:this.validate=!1:this.validate=!0:this.validate=!1},validateForm:function(){var t=this.merchantData;return t.enterprise_name?t.user_name?t.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(t.phone)?t.yanzhengma?t.classification?this.isAgree?this.isShowCode&&!this.codeVal?this.$util.Tips({title:"请填写图片验证码"}):(this.validate=!0,!0):this.$util.Tips({title:"请勾选并同意入驻协议"}):this.$util.Tips({title:"请选择商户分类"}):this.$util.Tips({title:"请填写验证码"}):this.$util.Tips({title:"请输入正确的手机号码"}):this.$util.Tips({title:"请输入手机号"}):this.$util.Tips({title:"请输入姓名"}):this.$util.Tips({title:"请输入企业名称"})},jumpToList:function(){uni.navigateTo({url:"/pages/store/applicationRecord/index"})},success:function(t){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){return this.merchantData.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.merchantData.phone)?this.isAgree?void this.$refs.verify.show():this.$util.Tips({title:"请勾选并同意入驻协议"}):this.$util.Tips({title:"请输入正确的手机号码"}):this.$util.Tips({title:"请输入手机号"})}}});e.default=f},7204:function(t,e){function i(t){for(var e={},i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports={filter:null,highlight:null,onText:null,blankChar:i(" , ,\t,\r,\n,\f"),blockTags:i("address,article,aside,body,caption,center,cite,footer,header,html,nav,section,pre"),ignoreTags:i("area,base,basefont,canvas,command,frame,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr,embed,iframe"),richOnlyTags:i("a,colgroup,fieldset,legend,picture,table"),selfClosingTags:i("area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustAttrs:i("align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"),boolAttrs:i("autoplay,controls,ignore,loop,muted"),trustTags:i("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",img:"max-width:100%",mark:"background-color:yellow",picture:"max-width:100%",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}}},"8c48":function(t,e,i){var n=i("5cfa");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("4e89d4ff",n,!0,{sourceMap:!1,shadowMode:!1})},9276: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("v-uni-view",[t.nodes.length?t._e():t._t("default"),i("v-uni-view",{style:t.showAm+(t.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"top",animation:t.scaleAm},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t._touchstart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t._touchmove.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t._tap.apply(void 0,arguments)}}},[i("div",{attrs:{id:"rtf"+t.uid}})])],2)},a=[]},a296:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.Popup[data-v-ac292046]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000}.Popup .logo-auth[data-v-ac292046]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-ac292046]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-ac292046]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-ac292046]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-ac292046]{width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-ac292046]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-ac292046]{width:%?500?%}.flex[data-v-ac292046]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-ac292046]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-ac292046]{font-size:%?28?%;color:#fff}.mask[data-v-ac292046]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},b38a:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={jyfParser:i("357f").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.successful?n("v-uni-view",{staticClass:"settledSuccessMain",style:t.viewColor},[n("v-uni-view",{staticClass:"settledSuccessful"},[n("v-uni-image",{staticClass:"image",attrs:{src:i("f4b1"),alt:""}}),n("v-uni-view",{staticClass:"title"},[t._v("恭喜,您的资料提交成功!")]),n("v-uni-view",{staticClass:"info"},[t._v("预计15个工作日内审核完毕,平台客服会及时与您联系!")]),n("v-uni-view",{staticClass:"goHome",attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goHome.apply(void 0,arguments)}}},[t._v("返回首页")])],1)],1):n("v-uni-view",{style:t.viewColor},[n("v-uni-form",{attrs:{"report-submit":"true"}},[n("v-uni-view",{staticClass:"merchantsSettled"},[n("v-uni-view",{staticClass:"merchantBgCount"},[n("v-uni-image",{staticClass:"merchantBg",attrs:{mode:"widthFix",src:t.domain+"/static/diy/merchantBg"+t.keyColor+".jpg",alt:""}})],1),n("v-uni-view",{staticClass:"application-record",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.jumpToList.apply(void 0,arguments)}}},[t._v("申请记录"),n("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1),n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-text",{staticClass:"item-name"},[t._v("商户名称")]),n("v-uni-input",{attrs:{type:"text",maxlength:"30",placeholder:"请输入商户名称","placeholder-class":"placeholder"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.validateBtn.apply(void 0,arguments)}},model:{value:t.merchantData.enterprise_name,callback:function(e){t.$set(t.merchantData,"enterprise_name",e)},expression:"merchantData.enterprise_name"}})],1)],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-text",{staticClass:"item-name"},[t._v("用户姓名")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请输入姓名","placeholder-class":"placeholder"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.validateBtn.apply(void 0,arguments)}},model:{value:t.merchantData.user_name,callback:function(e){t.$set(t.merchantData,"user_name",e)},expression:"merchantData.user_name"}})],1)],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-text",{staticClass:"item-name"},[t._v("联系电话")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号","placeholder-class":"placeholder"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.validateBtn.apply(void 0,arguments)}},model:{value:t.merchantData.phone,callback:function(e){t.$set(t.merchantData,"phone",e)},expression:"merchantData.phone"}})],1)],1),n("v-uni-view",{staticClass:"item rel"},[n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-text",{staticClass:"item-name"},[t._v("验证码")]),n("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码","placeholder-class":"placeholder"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.validateBtn.apply(void 0,arguments)}},model:{value:t.merchantData.yanzhengma,callback:function(e){t.$set(t.merchantData,"yanzhengma",e)},expression:"merchantData.yanzhengma"}}),n("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)],1),t.isShowCode?n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-text",{staticClass:"item-name"},[t._v("验证码")]),n("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"请输入验证码","placeholder-class":"placeholder"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.validateBtn.apply(void 0,arguments)}},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),n("v-uni-view",{staticClass:"imageCode",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.again.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:t.codeUrl}})],1)],1)],1):t._e(),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"uni-list"},[n("v-uni-view",{staticClass:"uni-list-cell"},[n("v-uni-view",{staticClass:"uni-list-cell-db acea-row row-middle"},[n("v-uni-text",{staticClass:"item-name"},[t._v("商户分类")]),n("v-uni-picker",{attrs:{value:t.index,range:t.array,"range-key":"category_name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange.apply(void 0,arguments)}}},[n("v-uni-input",{attrs:{placeholder:"请选择商户分类",type:"text",readonly:!0,disabled:!0},model:{value:t.mer_classification,callback:function(e){t.mer_classification=e},expression:"mer_classification"}}),n("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1)],1)],1)],1)],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"uni-list"},[n("v-uni-view",{staticClass:"uni-list-cell"},[n("v-uni-view",{staticClass:"uni-list-cell-db acea-row row-middle"},[n("v-uni-text",{staticClass:"item-name"},[t._v("店铺类型")]),n("v-uni-text",{staticClass:"iconfont wenhao",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getAgreement.apply(void 0,arguments)}}},[t._v("?")]),n("v-uni-picker",{attrs:{value:t.index1,range:t.storeTypeArr,"range-key":"type_name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange1.apply(void 0,arguments)}}},[n("v-uni-input",{attrs:{placeholder:"请选择店铺类型",type:"text",disabled:!0,readonly:!0},model:{value:t.mer_storeType,callback:function(e){t.mer_storeType=e},expression:"mer_storeType"}}),t.mer_storeType?n("v-uni-view",{staticClass:"iconfont icon-guanbi2",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.mer_storeType=""}}}):t._e(),n("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1)],1)],1)],1)],1),n("v-uni-view",{staticClass:"item no-border"},[n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-text",{staticClass:"item-title"},[t._v("请上传营业执照及行业相关资质证明图片")]),n("v-uni-text",{staticClass:"item-desc"},[t._v("(图片最多可上传10张,图片格式支持JPG、PNG、JPEG)")]),n("v-uni-view",{staticClass:"upload"},[t._l(t.pics,(function(e,i){return n("v-uni-view",{key:i,staticClass:"pictrue",attrs:{"data-index":i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getPhotoClickIdx.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:e}}),n("v-uni-text",{staticClass:"iconfont icon-guanbi1",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.DelPic(i)}}})],1)})),t.pics.length<10?n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-icon25201"}),n("v-uni-view",[t._v("上传图片")])],1):t._e()],2)],1)],1),n("v-uni-view",{staticClass:"item no-border"},[n("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangeIsAgree.apply(void 0,arguments)}}},[n("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}}),t._v("已阅读并同意")],1),n("v-uni-button",{staticClass:"settleAgree",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getConfig.apply(void 0,arguments)}}},[t._v("《入驻协议》")])],1),n("v-uni-button",{staticClass:"submitBtn",class:!0===t.validate?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[t._v("提交申请")])],1)],1)],1),t.showProtocol?n("v-uni-view",{staticClass:"settlementAgreement"},[n("v-uni-view",{staticClass:"setAgCount"},[n("i",{staticClass:"icon iconfont icon-cha",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showProtocol=!1}}}),n("div",{staticClass:"title"},[t._v(t._s(t.isType?"店铺类型说明":"商户入驻协议"))]),n("v-uni-view",{staticClass:"content"},[n("jyf-parser",{ref:"article",attrs:{html:t.protocol,"tag-style":t.tagStyle}})],1)],1)],1):t._e(),t.loading?n("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[n("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}})],1):t._e(),n("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}}),n("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.success.apply(void 0,arguments)}}})],1)},o=[]},b7b0:function(module,exports,__webpack_require__){"use strict";__webpack_require__("7a82");var _interopRequireDefault=__webpack_require__("4ea4").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _createForOfIteratorHelper2=_interopRequireDefault(__webpack_require__("b85c"));__webpack_require__("c975"),__webpack_require__("caad"),__webpack_require__("2532"),__webpack_require__("ac1f"),__webpack_require__("466d"),__webpack_require__("5319"),__webpack_require__("acd8"),__webpack_require__("99af"),__webpack_require__("14d9");var rpx=uni.getSystemInfoSync().screenWidth/750,cfg=__webpack_require__("7204"),_default={name:"parser",data:function(){return{uid:this._uid,scaleAm:"",showAm:"",imgs:[],nodes:[]}},props:{html:null,autopause:{type:Boolean,default:!0},autosetTitle:{type:Boolean,default:!0},domain:String,gestureZoom:Boolean,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},mounted:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e.5?i.toUpperCase():i}return n+=e.substr(a),this[t]=n}if(this[t]=e,e.includes("data:image")){var o=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!o)return}}},this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{_Dom2Str:function(t){var e,i="",n=(0,_createForOfIteratorHelper2.default)(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;if("text"==a.type)i+=a.text;else{for(var o in i+="<"+a.name,a.attrs||{})i+=" "+o+'="'+a.attrs[o]+'"';a.children&&a.children.length?i+=">"+this._Dom2Str(a.children)+"":i+=">"}}}catch(r){n.e(r)}finally{n.f()}return i},_handleHtml:function(t,e){if("string"!=typeof t&&(t=this._Dom2Str(t.nodes||t)),t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*rpx+"px"}))),!e){var i="",t=i+t}return t},setContent:function(t,e){var i=this;if(t){var n=document.createElement("div");e?this.rtf?this.rtf.appendChild(n):this.rtf=n:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=n),n.innerHTML=this._handleHtml(t,e);for(var a,o=this.rtf.getElementsByTagName("style"),r=0;a=o[r++];)a.innerHTML=a.innerHTML.replace(/body/g,"#rtf"+this._uid),a.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,n=0;e=t[n++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"900px 0px 900px 0px"}));var s=this,c=this.rtf.getElementsByTagName("title");c.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:c[0].innerText}),this.imgList.length=0;for(var l,u=this.rtf.getElementsByTagName("img"),d=0,h=0;l=u[d];d++){l.style.maxWidth="100%";var p=l.getAttribute("src");this.domain&&p&&("/"==p[0]?"/"==p[1]?l.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+p:l.src=this.domain+p:p.includes("://")||(l.src=this.domain+"/"+p)),l.hasAttribute("ignore")||"A"==l.parentElement.nodeName||(l.i=h++,s.imgList.push(l.src||l.getAttribute("data-src")),l.onclick=function(){var t=!0;this.ignore=function(){return t=!1},s.$emit("imgtap",this),t&&uni.previewImage({current:this.i,urls:s.imgList})}),l.onerror=function(){s.$emit("error",{source:"img",target:this})},s.lazyLoad&&this._observer&&l.src&&0!=l.i&&(l.setAttribute("data-src",l.src),l.removeAttribute("src"),this._observer.observe(l))}var f,m=this.rtf.getElementsByTagName("a"),g=(0,_createForOfIteratorHelper2.default)(m);try{for(g.s();!(f=g.n()).done;){var v=f.value;v.onclick=function(){var t=!0,e=this.getAttribute("href");if(s.$emit("linkpress",{href:e,ignore:function(){return t=!1}}),t&&e)if("#"==e[0])s.useAnchor&&s.navigateTo({id:e.substr(1)});else{if(0==e.indexOf("http")||0==e.indexOf("//"))return!0;uni.navigateTo({url:e})}return!1}}}catch(S){g.e(S)}finally{g.f()}var b=this.rtf.getElementsByTagName("video");s.videoContexts=b;for(var _,x=0;_=b[x++];)_.style.maxWidth="100%",_.onerror=function(){s.$emit("error",{source:"video",target:this})},_.onplay=function(){if(s.autopause)for(var t,e=0;t=s.videoContexts[e++];)t!=this&&t.pause()};var y,w,k=this.rtf.getElementsByTagName("audios"),A=(0,_createForOfIteratorHelper2.default)(k);try{for(A.s();!(y=A.n()).done;){var C=y.value;C.onerror=function(){s.$emit("error",{source:"audio",target:this})}}}catch(S){A.e(S)}finally{A.f()}this.document=this.rtf,e||document.getElementById("rtf"+this._uid).appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){var t=[i.rtf.getBoundingClientRect()];i.width=t[0].width,t[0].height==w&&(i.$emit("ready",t[0]),clearInterval(i._timer)),w=t[0].height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;return this.rtf.innerText},navigateTo:function(t){if(!this.useAnchor)return t.fail&&t.fail({errMsg:"Anchor is disabled"});if(!t.id)return window.scrollTo(0,this.rtf.offsetTop),t.success&&t.success({errMsg:"pageScrollTo:ok"});var e=document.getElementById(t.id);if(!e)return t.fail&&t.fail({errMsg:"Label not found"});t.scrollTop=this.rtf.offsetTop+e.offsetTop,uni.pageScrollTo(t)},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},preLoad:function preLoad(html,num){html.constructor==Array&&(html=this._Dom2Str(html));var script="var contain=document.createElement('div');contain.innerHTML='"+html.replace(/'/g,"\\'")+"';for(var imgs=contain.querySelectorAll('img'),i=imgs.length-1;i>="+num+";i--)imgs[i].removeAttribute('src');";eval(script)},_tap:function(t){if(this.gestureZoom&&t.timeStamp-this._lastT<300){var e=t.touches[0].pageY-t.currentTarget.offsetTop;if(this._zoom)this._scaleAm.translateX(0).scale(1).step(),uni.pageScrollTo({scrollTop:(e+this._initY)/2-t.touches[0].clientY,duration:400});else{var i=t.touches[0].pageX-t.currentTarget.offsetLeft;this._initY=e,this._scaleAm=uni.createAnimation({transformOrigin:"".concat(i,"px ").concat(this._initY,"px 0"),timingFunction:"ease-in-out"}),this._scaleAm.scale(2).step(),this._tMax=i/2,this._tMin=(i-this.width)/2,this._tX=0}this._zoom=!this._zoom,this.scaleAm=this._scaleAm.export()}this._lastT=t.timeStamp},_touchstart:function(t){1==t.touches.length&&(this._initX=this._lastX=t.touches[0].pageX)},_touchmove:function(t){var e=t.touches[0].pageX-this._lastX;if(this._zoom&&1==t.touches.length&&Math.abs(e)>20){if(this._lastX=t.touches[0].pageX,this._tX<=this._tMin&&e<0||this._tX>=this._tMax&&e>0)return;this._tX+=e*Math.abs(this._lastX-this._initX)*.05,this._tXthis._tMax&&(this._tX=this._tMax),this._scaleAm.translateX(this._tX).step(),this.scaleAm=this._scaleAm.export()}}}};exports.default=_default},b85c:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=(0,n.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){c=!0,r=t},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(c)throw r}}}},i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("d9e2"),i("d401");var n=function(t){return t&&t.__esModule?t:{default:t}}(i("06c5"))},bdcd:function(t,e,i){"use strict";var n=i("0798"),a=i.n(n);a.a},c15c: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("v-uni-view",[t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[i("v-uni-view",{staticClass:"logo-auth"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?i("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?i("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),i("v-uni-view",{staticClass:"bottom flex"},[i("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),i("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?i("v-uni-text",{staticClass:"text"},[t._v("去授权")]):i("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},a=[]},c288:function(t,e,i){"use strict";var n=i("8c48"),a=i.n(n);a.a},cefa:function(t,e,i){"use strict";i.r(e);var n=i("6723"),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},d630:function(t,e,i){var n=i("a296");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("8f383f98",n,!0,{sourceMap:!1,shadowMode:!1})},e702:function(t,e,i){"use strict";i.r(e);var n=i("b7b0"),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},e933:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530")),o=n(i("ff56")),r=i("31bd"),s=i("5cac"),c=i("26cb"),l=n(i("dae1")),u=i("4f1b"),d=(n(i("8b6a")),i("713c")),h=getApp(),p={name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1}},computed:(0,a.default)((0,a.default)({},(0,c.mapGetters)(["isLogin","userInfo","viewColor"])),(0,u.configMap)(["routine_logo"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,d.toLogin)(!0)},getUserProfile:function(){var t=this,e=this;l.default.getUserProfile().then((function(i){var n=i.userInfo;n.code=t.code,n.spread=h.globalData.spid,n.spread_code=h.globalData.code,(0,r.commonAuth)({auth:{type:"routine",auth:n}}).then((function(i){if(200!=i.data.status)return uni.setStorageSync("auth_token",i.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var n=i.data.result.expires_time-o.default.time();e.$store.commit("UPDATE_USERINFO",i.data.result.user),e.$store.commit("LOGIN",{token:i.data.result.token,time:n}),e.$store.commit("SETUID",i.data.result.user.uid),o.default.set(s.EXPIRES_TIME,i.data.result.expires_time,n),o.default.set(s.USER_INFO,i.data.result.user,n),t.$emit("onLoadFun",i.data.result.user),i.data.result.user.isNew&&t.mp_is_new&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1)}}};e.default=p},f272:function(t,e,i){"use strict";i.r(e);var n=i("c15c"),a=i("493d");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("1c6c");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"ac292046",null,!1,n["a"],void 0);e["default"]=s.exports},f4b1:function(t,e,i){t.exports=i.p+"static/img/settledSuccessful.bff968cd.svg"}}]);