1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-system-agreement"],{"12c1":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")),r=a(n("2fdc"));n("64aa");var o=a(n("c158")),u={name:"tn-nav-bar",mixins:[o.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.$t.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,r.default)((0,i.default)().mark((function e(){var n,a,r;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.$t.updateCustomBar();case 6:r=e.sent,n=r.customBarHeight,a=r.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.$t.vuex("vuex_status_bar_height",a),t&&t.$t.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,r.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.$t.$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"})}else uni.reLaunch({url:"/pages/index"})}}};e.default=u},1605:function(t,e,n){"use strict";n.r(e);var a=n("dd1e"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},1719:function(t,e,n){var a=n("455d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("729ea030",a,!0,{sourceMap:!1,shadowMode:!1})},"317d":function(t,e,n){"use strict";var a=n("1719"),i=n.n(a);i.a},"455d":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 */.custom-nav[data-v-69e35118]{font-size:%?32?%;font-weight:500;color:#333}uni-rich-text[data-v-69e35118]{padding:%?30?%;font-size:%?28?%;line-height:1.8;color:#333}',""]),t.exports=e},"4df5":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-0c6fe6ee]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-0c6fe6ee]{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-0c6fe6ee]{position:fixed;width:100%;top:0;left:0}.tn-custom-nav-bar__bar--alpha[data-v-0c6fe6ee]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-0c6fe6ee]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-0c6fe6ee]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-0c6fe6ee]{\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-0c6fe6ee]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-0c6fe6ee]{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},"5c4b":function(t,e,n){"use strict";n.r(e);var a=n("12c1"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},"5dae":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={tnNavBar:n("7a95").default},i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[e("tn-nav-bar",{attrs:{fixed:!0,bottomShadow:!0,backgroundColor:"#FFFFFF"}},[e("v-uni-view",{staticClass:"custom-nav",attrs:{id:"navbar"}},[this._v("服务协议")])],1),e("v-uni-view",{style:{paddingTop:this.vuex_custom_bar_height+20+"px"}},[this.agreementContent?e("v-uni-rich-text",{attrs:{nodes:this.agreementContent}}):e("v-uni-view",[this._v("加载中...")])],1)],1)},r=[]},7389:function(t,e,n){"use strict";n.r(e);var a=n("5dae"),i=n("1605");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("317d");var o=n("828b"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"69e35118",null,!1,a["a"],void 0);e["default"]=u.exports},"7a95":function(t,e,n){"use strict";n.r(e);var a=n("9d12"),i=n("5c4b");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("7fa2");var o=n("828b"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"0c6fe6ee",null,!1,a["a"],void 0);e["default"]=u.exports},"7d1c":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.resetMobileApi=e.registerApi=e.openidLoginApi=e.ocrIdCardApi=e.loginApi=e.isRegisterOpenApi=e.isFillInApi=e.getWechatOpenId=e.getSettingApi=e.getRegisterAgreement=e.getPlatformList=e.getJsConfigApi=e.getDeliveryJsConfigApi=e.getCodeApi=e.getAgreement=e.getAgentListApi=e.authOpenidApi=void 0;var i=a(n("0ae0"));e.loginApi=function(t){return i.default.post("api/delivery.auth/login",t)};e.getPlatformList=function(t){return i.default.get("api/delivery.system.platform/list",{data:t})};e.getAgreement=function(t){return i.default.get("api/delivery.system.platform/getAgreement",{data:t})};e.getRegisterAgreement=function(t){return i.default.get("api/delivery.system.platform/getRegisterAgreement",{data:t})};e.openidLoginApi=function(t){return i.default.post("api/delivery.auth/openidLogin",t)};e.getAgentListApi=function(t){return i.default.get("api/delivery.system.agent/list",{data:t})};e.registerApi=function(t){return i.default.post("api/delivery.auth/register",t)};e.authOpenidApi=function(t){return i.default.get("api/delivery.auth/wechatOpenidAuth",{data:t})};e.getJsConfigApi=function(){return i.default.get("api/delivery.auth/getJsConfig")};e.getDeliveryJsConfigApi=function(){return i.default.get("api/delivery.auth/getDeliveryJsConfig")};e.getWechatOpenId=function(t){return i.default.get("api/delivery.auth/wechatLogin",{data:t})};e.isFillInApi=function(t){return i.default.get("api/delivery.auth/isFillIn",{data:t})};e.getCodeApi=function(t){return i.default.post("api/delivery.auth/getCode",t)};e.getSettingApi=function(t){return i.default.get("api/delivery.auth/getSetting",{data:t})};e.ocrIdCardApi=function(t){return i.default.post("api/delivery.auth/ocrIdCard",t)};e.resetMobileApi=function(t){return i.default.post("api/delivery.auth/resetMobile",t)};e.isRegisterOpenApi=function(t){return i.default.get("api/delivery.auth/isRegisterOpen",{data:t})}},"7fa2":function(t,e,n){"use strict";var a=n("91cb"),i=n.n(a);i.a},"91cb":function(t,e,n){var a=n("4df5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("e3174358",a,!0,{sourceMap:!1,shadowMode:!1})},"9d12":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=[]},c158: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.$t.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$t.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$t.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$t.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$t.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},dd1e:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("7d1c"),i={data:function(){return{agreementContent:null}},computed:{vuex_custom_bar_height:function(){return uni.getStorageSync("custom_bar_height")}},onLoad:function(){this.getAgreement()},methods:{getAgreement:function(){var t,e,n=this,i=(null===(t=uni.getStorageSync("sp_deliveryer_info"))||void 0===t||null===(e=t.data)||void 0===e?void 0:e.uniacid)||1;(0,a.getAgreement)({uniacid:i}).then((function(t){console.log("res",t),n.agreementContent=t.data.data}))}}};e.default=i}}]);
|