1 line
37 KiB
JavaScript
1 line
37 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-settled-unit"],{2358:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.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/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */[data-v-628696b8] uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked,[data-v-628696b8] 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}.conten-top[data-v-628696b8]{width:100%;text-align:center;background-color:#fff;position:absolute;top:0;position:fixed;z-index:10}.uni-input-placeholder[data-v-628696b8]{color:#b2b2b2}.item-name[data-v-628696b8]{width:%?190?%}.uni-list-cell[data-v-628696b8]{position:relative}.uni-list-cell .iconfont[data-v-628696b8]{font-size:14px;color:#7a7a7a;position:absolute;right:15px;top:%?7?%}.uni-list-cell .icon-guanbi2[data-v-628696b8]{right:35px}.merchantBgCount[data-v-628696b8]{line-height:0}.merchantsSettled[data-v-628696b8]{background-image:linear-gradient(#ff5a32 %?644?%,var(--view-bntColor22));min-height:%?1800?%;position:relative}.merchantsSettled .merchantBg[data-v-628696b8]{width:%?750?%;width:100%}.merchantsSettled .list[data-v-628696b8]{background-color:#fff;border-radius:12px;padding:22px 0;margin:0 15px;position:absolute;top:%?300?%;width:calc(100% - 30px)}.application-record[data-v-628696b8]{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-628696b8]{padding:%?50?% 0 %?20?%;border-bottom:1px solid #eee;position:relative;margin:0 20px}.merchantsSettled .list .item.no-border[data-v-628696b8]{border-bottom:none;padding-left:0;padding-right:0}.merchantsSettled .list .item .item-title[data-v-628696b8]{color:#666;font-size:%?28?%;display:block}.merchantsSettled .list .item .item-desc[data-v-628696b8]{color:#b2b2b2;font-size:%?22?%;display:block;margin-top:%?9?%;line-height:%?36?%}.acea-row[data-v-628696b8],\r\n.upload[data-v-628696b8]{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-628696b8]{margin-top:%?20?%}.acea-row.row-middle[data-v-628696b8]{-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-628696b8]{-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-628696b8]{-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-628696b8]{width:%?130?%;height:%?130?%;margin:%?24?% %?22?% 0 0;position:relative;font-size:11px;color:#bbb}.merchantsSettled .list .item .pictrue[data-v-628696b8]:nth-child(4n){margin-right:0}.merchantsSettled .list .item .pictrue[data-v-628696b8]:nth-last-child(1){border:.5px solid #ddd;box-sizing:border-box}.merchantsSettled .list .item .pictrue uni-image[data-v-628696b8],\r\n.merchantsSettled .list .item .pictrue uni-image[data-v-628696b8]{width:100%;height:100%;border-radius:1px}.merchantsSettled .list .item .pictrue uni-image img[data-v-628696b8],\r\n.merchantsSettled .list .item .pictrue uni-image img[data-v-628696b8]{-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-628696b8]{font-size:%?33?%;position:absolute;top:-10px;right:-10px}.uni-list-cell-db[data-v-628696b8]{position:relative}.wenhao[data-v-628696b8]{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-628696b8]{position:absolute;top:7px;right:0}.merchantsSettled .list .item .icon[data-v-628696b8]{font-size:%?40?%;color:#b4b1b4}.merchantsSettled .list .item uni-input[data-v-628696b8]{width:%?400?%;font-size:%?30?%}.merchantsSettled .list .item .placeholder[data-v-628696b8]{color:#b2b2b2}.merchantsSettled .default[data-v-628696b8]{padding:0 %?30?%;height:%?90?%;background-color:#fff;margin-top:%?23?%}.merchantsSettled .default uni-checkbox[data-v-628696b8]{margin-right:%?15?%}.merchantsSettled .acea-row uni-image[data-v-628696b8]{width:20px;height:20px;display:block}.merchantsSettled .list .item .codeIput[data-v-628696b8]{width:125px}.uni-input-input[data-v-628696b8]{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-628696b8]{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-628696b8]{background-color:#bbb;color:#fff;border-color:#bbb}.merchantsSettled .submitBtn[data-v-628696b8]{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-628696b8]{background:var(--view-theme);pointer-events:all}uni-checkbox-group[data-v-628696b8],\r\n.settleAgree[data-v-628696b8]{display:inline-block;font-size:%?24?%}uni-checkbox-group[data-v-628696b8]{color:#b2b2b2}.settleAgree[data-v-628696b8]{color:var(--view-theme);position:relative;top:2px;left:8px}.merchantsSettled uni-checkbox .uni-checkbox-wrapper[data-v-628696b8]{width:%?30?%;height:%?30?%;border:%?2?% solid #c3c3c3;border-radius:15px}.settlementAgreement[data-v-628696b8]{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:10}.settlementAgreement .setAgCount[data-v-628696b8]{background:#fff;width:%?694?%;position:absolute;top:50%;left:50%;padding:%?28?%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);transform:translate(-50%,-50%);overflow:hidden}.settlementAgreement .setAgCount .content[data-v-628696b8]{height:%?740?%;overflow-y:scroll}.settlementAgreement .setAgCount .content[data-v-628696b8] p{font-size:13px;line-height:22px}.settlementAgreement .setAgCount .content[data-v-628696b8] img{max-width:100%}.settlementAgreement .setAgCount .icon[data-v-628696b8]{font-size:%?42?%;color:#b4b1b4;position:absolute;top:%?15?%;right:%?15?%}.settlementAgreement .setAgCount .title[data-v-628696b8]{color:#333;font-size:%?32?%;text-align:center;font-weight:700}.settlementAgreement .setAgCount .content[data-v-628696b8]{color:#333;font-size:%?26?%;line-height:22px;text-align:justify;text-justify:distribute-all-lines;overflow-y:scroll}.settlementAgreement .setAgCount .contenta[data-v-628696b8]{color:#333;font-size:%?26?%;line-height:22px;text-align:justify;text-justify:distribute-all-lines;height:75%;overflow-y:scroll}.setAgCountbtn[data-v-628696b8]{display:flex;justify-content:space-around;position:relative}.setAgCountbtn .setAgCountbtna[data-v-628696b8]{margin-top:%?40?%;height:%?74?%;text-align:center;line-height:%?74?%;border-radius:%?46?% %?46?%;opacity:1;border:%?2?% solid #b3b3b3;font-size:%?25?%;font-family:PingFang SC-Medium,PingFang SC;font-weight:500;color:#737373}.setAgCountbtn .setAgCountbtnb[data-v-628696b8]{margin-top:%?40?%;padding-left:%?20?%;padding-right:%?20?%;height:%?74?%;text-align:center;line-height:%?74?%;background:#cecece;border-radius:%?46?% %?46?%;opacity:1;font-size:%?25?%;font-family:PingFang SC-Medium,PingFang SC;font-weight:500;color:#fff}.setAgCountbtn .setAgCountbtnc[data-v-628696b8]{margin-top:%?40?%;height:%?74?%;text-align:center;line-height:%?74?%;background:linear-gradient(270deg,#ff6d20,#f84221);border-radius:%?46?% %?46?%;opacity:1;font-size:%?25?%;font-family:PingFang SC-Medium,PingFang SC;font-weight:500;color:#fff}.setAgCountbtn .border[data-v-628696b8]{position:absolute;top:0;left:%?-28?%;width:100vw;height:100%;border-radius:%?40?% %?40?% 0 0;box-shadow:0 -5px 5px -2px rgba(0,0,0,.2)\r\n /* 在上边框添加阴影 */}.setAgCountbtn .btn[data-v-628696b8]{width:%?694?%;font-weight:700;font-size:%?34?%}.settledSuccessMain[data-v-628696b8]{height:100vh;display:flex;flex-direction:column;background:#fff}.settledSuccessful[data-v-628696b8]{flex:1;width:100%;padding:0 56px;height:auto;background:#fff;text-align:center}.settledSuccessful .image[data-v-628696b8]{width:189px;height:157px;margin-top:66px}.settledSuccessful .title[data-v-628696b8]{color:#333;font-size:16px;font-weight:700;margin-top:35px}.settledSuccessful .info[data-v-628696b8]{color:#a0a0a0;font-size:13px;margin-top:12px}.settledSuccessful .goHome[data-v-628696b8]{margin:60px auto 0;line-height:43px;color:#282828;font-size:15px;border:1px solid #b4b4b4;border-radius:60px}[data-v-628696b8] uni-checkbox .uni-checkbox-input{width:15px;height:15px;position:relative}[data-v-628696b8] uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before{font-size:14px}.loadingicon[data-v-628696b8]{height:100vh;overflow:hidden;position:absolute;top:0;left:0}.icon-xiangyou[data-v-628696b8]{font-size:%?22?%}.setAgCount[data-v-628696b8] table{border:1px solid #ddd;border-bottom:none;border-right:none}.setAgCount[data-v-628696b8] td,\r\n.setAgCount th[data-v-628696b8]{padding:%?5?% %?10?%;border-bottom:1px solid #ddd;border-right:1px solid #ddd}.merchantsSettled .list .items[data-v-628696b8]{padding:%?50?% 0 %?20?%;border-bottom:1px solid #eee;position:relative;margin:0 20px}.merchantsSettled .list .items .uni-list-area[data-v-628696b8]{height:50px;display:flex;justify-content:flex-start;align-items:center}.merchantsSettled .list .items .uni-list-area .uni-list-stree[data-v-628696b8]{width:30%;margin-left:10px}.merchantsSettled .list .items .uni-list-area .uni-list-stree .mer-area[data-v-628696b8]{width:100%;border:1px solid #c3c3c3}.merchantsSettled .list .items .uni-list-area .uni-list-stree .mer-area uni-picker[data-v-628696b8]{display:flex}.merchantsSettled .list .items .uni-list-area .uni-list-stree .mer-area uni-input[data-v-628696b8]{width:100%;font-size:%?30?%}',""]),t.exports=e},"61c4":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("2909")),s=n(i("c7eb")),o=n(i("1da1"));i("7db0"),i("d3b7"),i("99af"),i("ac1f"),i("5319"),i("b64b"),i("d81d"),i("14d9"),i("a434"),i("00b4");var r=i("a126"),c=i("33b4"),l=i("7a69"),u=i("26cb"),d=i("5315"),h=i("fe63"),p=n(i("9b71")),g=n(i("104c")),m=n(i("4b41")),v=i("3093"),f=(i("f89e"),i("95ca")),b=(getApp(),{components:{"jyf-parser":p.default,authorize:g.default,Verify:m.default},data:function(){return{titFlag:!0,company:"",organization_code:"",domain:v.HTTP_REQUEST_URL,cartId:"",pinkId:0,couponId:0,isAuto:!1,isShowAuth:!1,text:"获取验证码",codeUrl:"",disabled:!1,isAgree:!1,showProtocol:!1,isShowCode:!1,loading:!1,isshow:!1,merchantData:{enterprise_name:"",user_name:"",phone:"",classification:"",social_credit_code:"",company_name:"",address:"",invitation_code:""},business_license:"",validate:!1,successful:!1,keyCode:"",codeVal:"",protocol:this.sys_intention_agree,timer:"",index:0,index1:0,index2:[0,0,0],mer_classification:"",nature_business:0,array:[{category_name:"",merchant_category_id:""}],companyTypeList:["对公户","个体户"],bindPickerChangeidx:[],storeTypeArr:[{type_name:"",mer_type_id:""}],StreetTyoeArr:[{area_id:"",street_id:"",village_id:""}],mer_storeType:"",area_id:"",street_id:"",village_id:"",isnm:!1,isnum:0,code1:"",code2:"",business_name:"",business:[],pics:[],tagStyle:{img:"width:100%;display:block;"},mer_i_id:null,isType:!1,num:10,detail:{},statusBarHeight:0,where:{type:1,page:1,limit:10},codenote:[]}},beforeDestroy:function(){clearTimeout(this.timer)},computed:(0,d.configMap)({sys_intention_agree:""},(0,u.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)}))):this.getArea(),this.statusBarHeight=uni.getSystemInfoSync().statusBarHeight+45},onShow:function(){},onReady:function(){},methods:{codelist:function(){var t=this;(0,h.intention)(this.where).then((function(e){t.codenote=e.data.list}))},logout:function(){uni.switchTab({url:"/pages/user/index"})},recuo:function(){this.num,this.num=10,this.isshow=!1},refuse:function(){uni.switchTab({url:"/pages/user/index"})},countDown:function(){var t=this,e=this.num;e=e>0?e-1:"0",setTimeout((function(){t.num=e,"0"!=e&&(0==t.isshow&&t.num>0?t.num=10:t.countDown())}),1e3)},shoplist:function(t){var e=this;(0,r.agreeiness)({type:t}).then((function(t){e.detail=t.data}))},getVillage:function(t){var e=this,i=this;(0,l.getVillage)({street_code:t}).then((function(t){if(i.$set(i.business,2,t.data),i.mer_i_id&&!e.business_name){var n,a,s,o=null===(n=i.business[0].find((function(t){return t.code==i.area_id})))||void 0===n?void 0:n.name,r=null===(a=i.business[1].find((function(t){return t.code==i.street_id})))||void 0===a?void 0:a.name,c=null===(s=i.business[2].find((function(t){return t.id==i.village_id})))||void 0===s?void 0:s.name;e.business_name="".concat(o," ").concat(r," ").concat(c),e.getArea()}}))},getStreet:function(t,e){var i=this;(0,l.getStreet)({area_code:t}).then((function(t){i.$set(i.business,1,t.data),i.getVillage(e||i.business[1][0].code)}))},getArea:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,l.getArea)({city_code:510500}).then((function(n){t.business[0]=n.data,t.code1=e||t.business[0][0].code,t.getStreet(t.code1,i)}))},pickerColumnchange:function(t){0===t.detail.column?(this.getStreet(this.business[0][t.detail.value].code),this.index2[0]=t.detail.value,this.index2[1]=0,this.index2[2]=0):1===t.detail.column?(this.getVillage(this.business[1][t.detail.value].code),this.index2[1]=t.detail.value,this.index2[2]=0):1===t.detail.column&&(this.index2[2]=t.detail.value)},getConfig:function(t){var e=this;this.isType=!1,this.showProtocol=!0,0==t?(this.titFlag=!0,this.protocol=this.sys_intention_agree.replace(/\*\*甲方公司\*\*/g,this.company)):(this.titFlag=!1,(0,f.mer_services_agree)().then((function(t){e.protocol=t.data.mer_services_agree.replace(/\*\*甲方公司\*\*/g,e.company)})))},getAgreement:function(){var t=this;t.showProtocol=!0,t.titFlag=!0,t.isType=!0,(0,c.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.social_credit_code=n.social_credit_code,e.merchantData.company_name=n.company_name,e.merchantData.address=n.address,e.merchantData.invitation_code=n.invitation_code,e.merchantData.classification=n.merchant_category_id,e.merchantData.mer_type=n.mer_type_id,e.area_id=n.area_id,e.street_id=n.street_id,e.mer_storeType=n.mer_storeType,e.village_id=n.village_id})),e.business_license=n.images[0],n.images.shift(),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),e.business_name="",e.getArea(e.area_id,e.street_id),12!=n.mer_type_id?e.shoplist("mer_services_agree"):e.shoplist("mer_supply_agree"),uni.hideLoading()}))},getCategoryName:function(t,e){for(var i=0;i<e.length;i++)if(e[i].merchant_category_id===t)return e[i]["category_name"]},getStoreTypeName:function(t,e){for(var i=0;i<e.length;i++)if(e[i].mer_type_id===t)return e[i]["type_name"]},natureBusinessChange:function(t){this.nature_business="个体户"==this.companyTypeList[t.detail.value]?2:1},bindPickerChange:function(t){var e=t.target.value;this.merchantData.classification=this.array[e]["merchant_category_id"],this.mer_classification=this.array[e]["category_name"],this.validateBtn()},columnchange:function(t){0==t.detail.column&&(this.bindPickerChangeidx=this.array[t.detail.value].children)},bindPickerChange1:function(t){this.index1=t.target.value;var e=t.target.value;this.merchantData.mer_type=this.storeTypeArr[e]["mer_type_id"],this.mer_storeType=this.storeTypeArr[e]["type_name"],"TypeStore"==this.storeTypeArr[e]["type_code"]&&this.merchantData.mer_type?this.shoplist("mer_services_agree"):this.shoplist("mer_supply_agree"),this.validateBtn()},bindPickerChange2:function(t){var e=this;this.index2=t.detail.value,this.business_name="".concat(this.business[0][this.index2[0]].name," ").concat(this.business[1][this.index2[1]].name," ").concat(this.business[2][this.index2[2]].name),this.area_id=this.business[0][this.index2[0]].code,this.street_id=this.business[1][this.index2[1]].code,this.village_id=this.business[2][this.index2[2]].id,12!=this.merchantData.mer_type&&(0,c.merstreet)({area_code:this.area_id}).then((function(t){if(0==t.code)return e.company="",e.organization_code="",!1;e.company=t.data.title,e.organization_code=t.data.organization_code})).catch((function(t){}))},getClassfication:function(){var t=this;(0,r.merClassifly)().then((function(e){t.array=e.data})).catch((function(e){t.$util.Tips({title:e})}))},getStoreType:function(){var t=this;(0,r.getStoreTypeApi)().then((function(e){t.storeTypeArr=e.data})).catch((function(e){t.$util.Tips({title:e})}))},getPhotoClickIdx:function(t){var e=t.currentTarget.dataset.index;this.imgPreview(this.pics,e)},imgPreview:function(t,e){t&&t.length>0&&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)}))},uploadpicText:function(){var t=this;t.$util.uploadImageOne("upload/image",(function(e){t.business_license=e.data.path}))},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,s.default)().mark((function i(){var n;return(0,s.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,c.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()},showxy:function(){this.isshow=!0},agree:function(){var t=this,e=this,i={phone:e.merchantData.phone,mer_name:e.merchantData.user_name+"的个人店铺",name:e.merchantData.user_name,code:e.merchantData.yanzhengma,address:e.merchantData.address,area_id:this.area_id,street_id:this.street_id,village_id:this.village_id,images:[this.business_license].concat((0,a.default)(e.pics))};e.validate=!1,e.mer_i_id?(0,r.updateGoodsRecord)(e.mer_i_id,i).then((function(t){200==t.status&&(e.loading=!0,e.timer=setTimeout((function(){e.successful=!0,e.validate=!0}),1e3))})).catch((function(i){t.isshow=!1,e.validate=!0,e.$util.Tips({title:i})})):(0,r.personalStore)(i).then((function(i){200==i.status&&(e.loading=!0,t.timer=setTimeout((function(){e.successful=!0,e.validate=!0}),1e3))})).catch((function(i){t.isshow=!1,e.validate=!0,e.$util.Tips({title:i})}))},formSubmit:function(){if(this.validateForm()&&this.validate)return this.agree()},validateBtn:function(){var t=this.merchantData;t.user_name&&t.phone&&/^1(3|4|5|7|8|9|6)\d{9}$/i.test(t.phone)&&t.yanzhengma?this.isShowCode?this.codeVal?this.validate=!0:this.validate=!1:this.validate=!0:this.validate=!1},validateForm:function(){var t=this.merchantData;return t.user_name?t.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(t.phone)?t.yanzhengma?this.business_name?t.address?this.isAgree?this.business_license?(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:"请输入手机号"}):this.$util.Tips({title:"请输入姓名"})},jumpToList:function(){uni.navigateTo({url:"/pages/store/applicationRecord/unit"})},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=b},"95ca":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return a.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return a.default.get("store/product/assist/count",{},{noAuth:!0})},e.chooseConsumption=function(t){return a.default.post("storeActivity/choose",t)},e.consumption=function(t){return a.default.get("storeActivity/consumption",t,{noAuth:!0})},e.getActivitycategory=function(t){return a.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return a.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return a.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return a.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return a.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return a.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return a.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return a.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return a.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return a.default.post("combination/poster",t)},e.getCombinationUser=function(t){return a.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return a.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return a.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return a.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return a.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return a.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return a.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return a.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return a.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return a.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return a.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return a.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return a.default.post("store/product/assist/create/"+t)},e.mer_services_agree=function(){return a.default.get("agreement/mer_services_agree")},e.merchantRecord=function(t){return a.default.get("merchantRecord",t)},e.postAssistHelp=function(t){return a.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return a.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return a.default.get("store/product/presell/agree")},e.qrcode=function(t){return a.default.get("qrcode",t)},e.scombinationCode=function(t){return a.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return a.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return a.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return a.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.storeActivityDistrict=function(t){return a.default.get("storeActivity/district",t)},e.storeActivityProduct=function(t){return a.default.get("storeActivity/product",t,{noAuth:!0})},e.storeActivityReceive=function(t){return a.default.post("storeActivity/receive",t)},e.storeActivityRecord=function(t){return a.default.get("storeActivity/record",t)},e.storeActivityStatus=function(t){return a.default.get("storeActivity/status",t)},e.storeActivityTotal=function(t){return a.default.get("storeActivity/total",t)};var a=n(i("6860"))},a110:function(t,e,i){var n=i("2358");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("681c5134",n,!0,{sourceMap:!1,shadowMode:!1})},a664:function(t,e,i){"use strict";var n=i("a110"),a=i.n(n);a.a},a68c:function(t,e,i){"use strict";i.r(e);var n=i("e2d5"),a=i("e5c4");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("a664");var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"628696b8",null,!1,n["a"],void 0);e["default"]=r.exports},e2d5:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={jyfParser:i("9b71").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[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("31d9"),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:"https://lihai001.oss-cn-chengdu.aliyuncs.com/def/50c52202402231430498637.png",alt:""}})],1),t.mer_i_id?t._e():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.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:"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 businessBox"},[t._v("所在地")]),n("v-uni-picker",{attrs:{mode:"multiSelector",value:t.index2,range:t.business,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange2.apply(void 0,arguments)},columnchange:function(e){arguments[0]=e=t.$handleEvent(e),t.pickerColumnchange.apply(void 0,arguments)}}},[n("v-uni-input",{staticClass:"businessBox",attrs:{placeholder:"请选择商圈",type:"text",readonly:!0,disabled:!0},model:{value:t.business_name,callback:function(e){t.business_name=e},expression:"business_name"}}),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 businessBox"},[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.address,callback:function(e){t.$set(t.merchantData,"address",e)},expression:"merchantData.address"}})],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",staticStyle:{"margin-right":"20rpx"}},[t._v("请上传营业执照")]),n("v-uni-text",{staticClass:"item-desc"},[t._v("(图片格式支持JPG、PNG、JPEG)")]),n("v-uni-view",{staticClass:"upload"},[t.business_license?n("v-uni-view",{staticClass:"pictrue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpicText.apply(void 0,arguments)}}},[n("v-uni-image",{attrs:{src:t.business_license}})],1):n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpicText.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-icon25201"}),n("v-uni-view",[t._v("上传图片")])],1)],1)],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 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(0)}}},[t._v("《入驻协议》")]),n("v-uni-button",{staticClass:"settleAgree",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getConfig(1)}}},[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",staticStyle:{width:"656rpx",height:"800rpx"}},[n("i",{staticClass:"icon iconfont icon-cha",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showProtocol=!1}}}),t.titFlag?n("div",{staticClass:"title"},[t._v(t._s(t.isType?"店铺类型说明":"商户入驻协议"))]):n("div",{staticClass:"title"}),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.isshow?n("v-uni-view",{staticClass:"settlementAgreement"},[n("v-uni-view",{staticClass:"setAgCount",staticStyle:{width:"100%",height:"100%","padding-top":"180rpx"}},[n("v-uni-view",{staticStyle:{width:"60rpx",height:"60rpx",position:"absolute",left:"30rpx",top:"90rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.recuo.apply(void 0,arguments)}}},[n("i",{staticClass:"iconfont icon-xiangzuo",staticStyle:{width:"60rpx",height:"60rpx","font-size":"40rpx"}})]),n("div",{staticClass:"title"},[t._v(t._s(t.detail.title))]),n("v-uni-view",{staticStyle:{margin:"20rpx 0"}},[t._v("甲方公司:"+t._s(t.company?t.company:"暂无公司信息"))]),n("v-uni-view",{staticStyle:{margin:"20rpx 0"}},[t._v("机构代码:"+t._s(t.organization_code?t.organization_code:"暂无公司信息"))]),t.detail.mer_services_agree?n("v-uni-view",{staticClass:"contenta"},[n("jyf-parser",{ref:"article",attrs:{html:t.detail.mer_services_agree,"tag-style":t.tagStyle}})],1):n("v-uni-view",{staticClass:"contenta"},[n("jyf-parser",{ref:"article",attrs:{html:t.detail.mer_supply_agree,"tag-style":t.tagStyle}})],1),n("v-uni-view",{staticClass:"setAgCountbtn"},[n("v-uni-view",{staticClass:"border"}),n("v-uni-button",{staticClass:"btn",class:t.num>0?"setAgCountbtnb":"setAgCountbtnc",attrs:{disabled:0!=t.num},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.agree.apply(void 0,arguments)}}},[t.num>0?n("v-uni-text",[t._v("请仔细阅读协议 "+t._s(t.num)+"秒后可提交")]):n("v-uni-text",[t._v("同意本协议")])],1)],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)],1)},s=[]},e5c4:function(t,e,i){"use strict";i.r(e);var n=i("61c4"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a}}]); |