提交 0f9c7c8b 编写于 作者: 刘英杰's avatar 刘英杰

20241206 优化保存

上级 32520372
流水线 #31613 已通过 ,包含阶段
in 43 second
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>museum-reservation</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>museum-reservation</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.ed8eaf9d.js></script><script src=./static/js/index.cbcc77dc.js></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.ed8eaf9d.js></script><script src=./static/js/index.69ed2d6b.js></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-index"],{2696:function(e,n,t){"use strict";t.r(n);var i=t("3c82"),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);n["default"]=o.a},"2ec5":function(e,n,t){"use strict";e.exports=function(e,n){return n||(n={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"3c82":function(e,n,t){"use strict";t("6a54");var i=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(t("1992")),a=i(t("39e0")),c={name:"u--input",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvInput:o.default}};n.default=c},"4d27":function(e,n,t){var i=t("ef20");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=t("967d").default;o("20deda0e",i,!0,{sourceMap:!1,shadowMode:!1})},8639:function(e,n,t){"use strict";t.r(n);var i=t("98d4"),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);n["default"]=o.a},"98d4":function(e,n,t){"use strict";(function(e){t("6a54");var i=t("3639").default,o=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t("2634")),c=o(t("2fdc"));t("5c47"),t("a1c1"),t("23f4"),t("7d2f"),t("9c4e"),t("ab80");var u=i(t("0f18")),r={data:function(){return{checkbox:[],init:{phone:"",verification_code:"",openid:this.getUrlKey("openid")},tips:"",seconds:60}},watch:{checkbox:function(n,t){e.log("🚀🚀newValue🚀,",n)}},mounted:function(){},methods:{strategicObject:function(e,n){var t=this,i={true:function(e){window.localStorage.setItem("museum-token",e.response.complex_token_view_model.access_token.token_content),uni.navigateTo({url:"/pages/index/index"})},false:function(e){t.$u.toast(e.msg_detail)}};i[String(e)](n)},checkboxChange:function(n){e.log("🚀🚀🚀,",n)},GenerateCode:function(){var e=this;u.GenerateCode({phone:this.init.phone}).then((function(n){return e.$u.toast(n.msg)}))},getUrlKey:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},login:function(){var n=this;return(0,c.default)((0,a.default)().mark((function t(){return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.log(n.init),n.checkbox.length&&n.init.phone&&n.init.openid&&u.WxGzhLogin(n.init).then((function(e){n.strategicObject(e.response.login,e)}));case 2:case"end":return t.stop()}}),t)})))()},codeChange:function(e){this.tips=e},getCode:function(){var e=this;this.$refs.uCode.canGetCode?(uni.showLoading({title:"正在获取验证码"}),setTimeout((function(){uni.hideLoading(),e.GenerateCode(),e.$refs.uCode.start()}),2e3)):uni.$u.toast("倒计时结束后再发送")},end:function(){},start:function(){}}};n.default=r}).call(this,t("ba7c")["default"])},"9e5e":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return i}));var i={"u-Input":t("abae").default,uCheckboxGroup:t("0ff5").default,uCheckbox:t("98f6").default,uButton:t("7435").default},o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",{staticClass:"container"},[t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"loginImage"}),t("v-uni-view",{staticClass:"login"},[t("u--input",{staticStyle:{"background-color":"white"},attrs:{placeholder:"请输入手机号",border:"surround"},model:{value:e.init.phone,callback:function(n){e.$set(e.init,"phone",n)},expression:"init.phone"}}),t("v-uni-view",{staticClass:"userAgreement"},[t("u-checkbox-group",{attrs:{placement:"column"},on:{change:function(n){arguments[0]=n=e.$handleEvent(n),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkbox,callback:function(n){e.checkbox=n},expression:"checkbox"}},[t("u-checkbox",{attrs:{name:1,size:"30",labelSize:"30",label:"已阅读并同意《隐私权政策》《用户协议》"}})],1)],1),t("u-button",{staticStyle:{"margin-top":"3vw"},attrs:{shape:"circle",color:"#D59171"},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.login.apply(void 0,arguments)}}},[e._v("登录")])],1)],1)],1)},a=[]},abae:function(e,n,t){"use strict";t.r(n);var i=t("e83a"),o=t("2696");for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);var c=t("828b"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},ca07:function(e,n,t){"use strict";var i=t("4d27"),o=t.n(i);o.a},d5c7:function(e,n,t){e.exports=t.p+"static/images/redLogo.png"},d689:function(e,n,t){"use strict";t.r(n);var i=t("9e5e"),o=t("8639");for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t("ca07");var c=t("828b"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"efa05a7e",null,!1,i["a"],void 0);n["default"]=u.exports},e83a:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){}));var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("uvInput",{attrs:{value:e.value,type:e.type,fixed:e.fixed,disabled:e.disabled,disabledColor:e.disabledColor,clearable:e.clearable,password:e.password,maxlength:e.maxlength,placeholder:e.placeholder,placeholderClass:e.placeholderClass,placeholderStyle:e.placeholderStyle,showWordLimit:e.showWordLimit,confirmType:e.confirmType,confirmHold:e.confirmHold,holdKeyboard:e.holdKeyboard,focus:e.focus,autoBlur:e.autoBlur,disableDefaultPadding:e.disableDefaultPadding,cursor:e.cursor,cursorSpacing:e.cursorSpacing,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,inputAlign:e.inputAlign,fontSize:e.fontSize,color:e.color,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,suffixIconStyle:e.suffixIconStyle,prefixIconStyle:e.prefixIconStyle,border:e.border,readonly:e.readonly,shape:e.shape,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("focus")},blur:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("blur",n)}.apply(void 0,arguments)},keyboardheightchange:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("keyboardheightchange")},change:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("change",n)}.apply(void 0,arguments)},input:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("input",n)}.apply(void 0,arguments)},confirm:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("confirm",n)}.apply(void 0,arguments)},clear:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("clear")},click:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("click")}}},[e._t("prefix",null,{slot:"prefix"}),e._t("suffix",null,{slot:"suffix"})],2)},o=[]},ef20:function(e,n,t){var i=t("c86c"),o=t("2ec5"),a=t("d5c7");n=i(!1);var c=o(a);n.push([e.i,".container[data-v-efa05a7e]{width:100vw;height:100vh;\n /*background: #F1EDE8;*/background:#fffbf7}.content[data-v-efa05a7e]{width:100%;height:60%;display:flex;justify-content:center;flex-wrap:wrap;align-content:center;padding-top:20vw}.loginImage[data-v-efa05a7e]{width:80%;height:35%;background:url("+c+");background-size:100% 100%}.login[data-v-efa05a7e]{width:100%;padding:10vw}.validate[data-v-efa05a7e]{margin-top:3vw;display:flex;justify-content:center}.userAgreement[data-v-efa05a7e]{display:flex;align-content:center;padding-top:3vw}",""]),e.exports=n}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-index"],{2696:function(e,n,t){"use strict";t.r(n);var o=t("3c82"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},"2a22":function(e,n,t){var o=t("784b");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=t("967d").default;i("88998052",o,!0,{sourceMap:!1,shadowMode:!1})},"2ec5":function(e,n,t){"use strict";e.exports=function(e,n){return n||(n={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"3c82":function(e,n,t){"use strict";t("6a54");var o=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("1992")),a=o(t("39e0")),c={name:"u--input",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvInput:i.default}};n.default=c},"4bd7":function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var o={"u-Input":t("abae").default,uCheckboxGroup:t("0ff5").default,uCheckbox:t("98f6").default,uButton:t("7435").default},i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",{staticClass:"container"},[t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"loginImage"}),t("v-uni-view",{staticClass:"login"},[t("u--input",{staticStyle:{"background-color":"white"},attrs:{placeholder:"请输入手机号",border:"surround"},model:{value:e.init.phone,callback:function(n){e.$set(e.init,"phone",n)},expression:"init.phone"}}),t("v-uni-view",{staticClass:"userAgreement"},[t("u-checkbox-group",{attrs:{placement:"column"},on:{change:function(n){arguments[0]=n=e.$handleEvent(n),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkbox,callback:function(n){e.checkbox=n},expression:"checkbox"}},[t("u-checkbox",{attrs:{name:1,size:"30",labelSize:"30",label:"已阅读并同意《隐私权政策》《用户协议》"}})],1)],1),t("u-button",{staticStyle:{"margin-top":"3vw"},attrs:{shape:"circle",color:"#D59171"},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.login.apply(void 0,arguments)}}},[e._v("登录")])],1)],1)],1)},a=[]},"784b":function(e,n,t){var o=t("c86c"),i=t("2ec5"),a=t("d5c7");n=o(!1);var c=i(a);n.push([e.i,".container[data-v-34f127d4]{width:100vw;height:100vh;\n /*background: #F1EDE8;*/background:#fffbf7}.content[data-v-34f127d4]{width:100%;height:60%;display:flex;justify-content:center;flex-wrap:wrap;align-content:center;padding-top:20vw}.loginImage[data-v-34f127d4]{width:80%;height:35%;background:url("+c+");background-size:100% 100%}.login[data-v-34f127d4]{width:100%;padding:10vw}.validate[data-v-34f127d4]{margin-top:3vw;display:flex;justify-content:center}.userAgreement[data-v-34f127d4]{display:flex;align-content:center;padding-top:3vw}",""]),e.exports=n},8639:function(e,n,t){"use strict";t.r(n);var o=t("98d4"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},"98d4":function(e,n,t){"use strict";(function(e){t("6a54");var o=t("3639").default,i=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("2634")),c=i(t("2fdc"));t("d4b5"),t("5c47"),t("a1c1"),t("23f4"),t("7d2f"),t("9c4e"),t("ab80");var u=o(t("0f18")),r={data:function(){return{checkbox:[],init:{phone:"",verification_code:"",openid:this.getUrlKey("openid")},tips:"",seconds:60}},watch:{checkbox:function(n,t){e.log("🚀🚀newValue🚀,",n)}},mounted:function(){},methods:{strategicObject:function(e,n){var t=this,o={true:function(e){window.localStorage.setItem("museum-token",e.response.complex_token_view_model.access_token.token_content),u.GetTokenInfo().then((function(e){window.localStorage.setItem("museumManagementUserInfo-reservedTerminal",JSON.stringify(e.response)),uni.navigateTo({url:"/pages/index/index"})}))},false:function(e){t.$u.toast(e.msg_detail)}};o[String(e)](n)},checkboxChange:function(n){e.log("🚀🚀🚀,",n)},GenerateCode:function(){var e=this;u.GenerateCode({phone:this.init.phone}).then((function(n){return e.$u.toast(n.msg)}))},getUrlKey:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},login:function(){var n=this;return(0,c.default)((0,a.default)().mark((function t(){return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.log(n.init),n.checkbox.length&&n.init.phone&&n.init.openid&&u.WxGzhLogin(n.init).then((function(e){n.strategicObject(e.response.login,e)}));case 2:case"end":return t.stop()}}),t)})))()},codeChange:function(e){this.tips=e},getCode:function(){var e=this;this.$refs.uCode.canGetCode?(uni.showLoading({title:"正在获取验证码"}),setTimeout((function(){uni.hideLoading(),e.GenerateCode(),e.$refs.uCode.start()}),2e3)):uni.$u.toast("倒计时结束后再发送")},end:function(){},start:function(){}}};n.default=r}).call(this,t("ba7c")["default"])},"9dad":function(e,n,t){"use strict";var o=t("2a22"),i=t.n(o);i.a},abae:function(e,n,t){"use strict";t.r(n);var o=t("e83a"),i=t("2696");for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);var c=t("828b"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports},d5c7:function(e,n,t){e.exports=t.p+"static/images/redLogo.png"},d689:function(e,n,t){"use strict";t.r(n);var o=t("4bd7"),i=t("8639");for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("9dad");var c=t("828b"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"34f127d4",null,!1,o["a"],void 0);n["default"]=u.exports},e83a:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("uvInput",{attrs:{value:e.value,type:e.type,fixed:e.fixed,disabled:e.disabled,disabledColor:e.disabledColor,clearable:e.clearable,password:e.password,maxlength:e.maxlength,placeholder:e.placeholder,placeholderClass:e.placeholderClass,placeholderStyle:e.placeholderStyle,showWordLimit:e.showWordLimit,confirmType:e.confirmType,confirmHold:e.confirmHold,holdKeyboard:e.holdKeyboard,focus:e.focus,autoBlur:e.autoBlur,disableDefaultPadding:e.disableDefaultPadding,cursor:e.cursor,cursorSpacing:e.cursorSpacing,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,inputAlign:e.inputAlign,fontSize:e.fontSize,color:e.color,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,suffixIconStyle:e.suffixIconStyle,prefixIconStyle:e.prefixIconStyle,border:e.border,readonly:e.readonly,shape:e.shape,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("focus")},blur:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("blur",n)}.apply(void 0,arguments)},keyboardheightchange:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("keyboardheightchange")},change:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("change",n)}.apply(void 0,arguments)},input:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("input",n)}.apply(void 0,arguments)},confirm:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("confirm",n)}.apply(void 0,arguments)},clear:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("clear")},click:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("click")}}},[e._t("prefix",null,{slot:"prefix"}),e._t("suffix",null,{slot:"suffix"})],2)},i=[]}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-loginPC-index"],{1471:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var o={"u-Input":t("abae").default,uCheckboxGroup:t("0ff5").default,uCheckbox:t("98f6").default,uButton:t("7435").default},i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",{staticClass:"container"},[t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"loginImage"}),t("v-uni-view",{staticClass:"login"},[t("u--input",{staticStyle:{"background-color":"white"},attrs:{placeholder:"请输入手机号",border:"surround"},model:{value:e.init.phone,callback:function(n){e.$set(e.init,"phone",n)},expression:"init.phone"}}),t("v-uni-view",{staticClass:"userAgreement"},[t("u-checkbox-group",{attrs:{placement:"column"},on:{change:function(n){arguments[0]=n=e.$handleEvent(n),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkbox,callback:function(n){e.checkbox=n},expression:"checkbox"}},[t("u-checkbox",{attrs:{name:1,size:"30",labelSize:"30",label:"已阅读并同意《隐私权政策》《用户协议》"}})],1)],1),t("u-button",{staticStyle:{"margin-top":"15px"},attrs:{shape:"circle",color:"#D59171"},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.login.apply(void 0,arguments)}}},[e._v("登录")])],1)],1)],1)},a=[]},2696:function(e,n,t){"use strict";t.r(n);var o=t("3c82"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},"2e87":function(e,n,t){"use strict";(function(e){t("6a54");var o=t("3639").default,i=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("2634")),c=i(t("2fdc"));t("d4b5"),t("5c47"),t("a1c1"),t("23f4"),t("7d2f"),t("9c4e"),t("ab80");var u=o(t("0f18")),r={data:function(){return{checkbox:[],init:{phone:"",verification_code:"",openid:this.getUrlKey("openid")},tips:"",seconds:60}},watch:{checkbox:function(n,t){e.log("🚀🚀newValue🚀,",n)}},mounted:function(){},methods:{strategicObject:function(e,n){var t=this,o={true:function(e){window.localStorage.setItem("museum-token",e.response.complex_token_view_model.access_token.token_content),u.GetTokenInfo().then((function(e){window.localStorage.setItem("museumManagementUserInfo-reservedTerminal",JSON.stringify(e.response)),uni.navigateTo({url:"/pages/index/index"})}))},false:function(e){t.$u.toast(e.msg_detail)}};o[String(e)](n)},checkboxChange:function(n){e.log("🚀🚀🚀,",n)},GenerateCode:function(){var e=this;u.GenerateCode({phone:this.init.phone}).then((function(n){return e.$u.toast(n.msg)}))},getUrlKey:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},login:function(){var e=this;return(0,c.default)((0,a.default)().mark((function n(){return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.checkbox.length&&e.init.phone?u.PCLogin({phone:e.init.phone}).then((function(n){e.strategicObject(n.response.login,n)})):uni.$u.toast("请完善信息");case 1:case"end":return n.stop()}}),n)})))()},codeChange:function(e){this.tips=e},getCode:function(){var e=this;this.$refs.uCode.canGetCode?(uni.showLoading({title:"正在获取验证码"}),setTimeout((function(){uni.hideLoading(),e.GenerateCode(),e.$refs.uCode.start()}),2e3)):uni.$u.toast("倒计时结束后再发送")},end:function(){},start:function(){}}};n.default=r}).call(this,t("ba7c")["default"])},"2ec5":function(e,n,t){"use strict";e.exports=function(e,n){return n||(n={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"3c82":function(e,n,t){"use strict";t("6a54");var o=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("1992")),a=o(t("39e0")),c={name:"u--input",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvInput:i.default}};n.default=c},abae:function(e,n,t){"use strict";t.r(n);var o=t("e83a"),i=t("2696");for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);var c=t("828b"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports},ba94:function(e,n,t){"use strict";var o=t("bf16"),i=t.n(o);i.a},bf16:function(e,n,t){var o=t("c7ed");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=t("967d").default;i("2bce9d05",o,!0,{sourceMap:!1,shadowMode:!1})},c7ed:function(e,n,t){var o=t("c86c"),i=t("2ec5"),a=t("d5c7");n=o(!1);var c=i(a);n.push([e.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/* uni.scss */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-73c1a5dc]{width:100vw;height:100vh;background:#fffbf7;max-width:430px;max-height:1000px;margin-left:auto;margin-right:auto}.content[data-v-73c1a5dc]{width:100%;height:60%;display:flex;justify-content:center;flex-wrap:wrap;align-content:center;padding-top:100px}.loginImage[data-v-73c1a5dc]{width:80%;height:35%;background:url('+c+");background-size:100% 100%}.login[data-v-73c1a5dc]{width:100%;padding:50px}.validate[data-v-73c1a5dc]{margin-top:15px;display:flex;justify-content:center}.userAgreement[data-v-73c1a5dc]{display:flex;align-content:center;padding-top:15px}",""]),e.exports=n},cf72:function(e,n,t){"use strict";t.r(n);var o=t("1471"),i=t("dc79");for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("ba94");var c=t("828b"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"73c1a5dc",null,!1,o["a"],void 0);n["default"]=u.exports},d5c7:function(e,n,t){e.exports=t.p+"static/images/redLogo.png"},dc79:function(e,n,t){"use strict";t.r(n);var o=t("2e87"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},e83a:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("uvInput",{attrs:{value:e.value,type:e.type,fixed:e.fixed,disabled:e.disabled,disabledColor:e.disabledColor,clearable:e.clearable,password:e.password,maxlength:e.maxlength,placeholder:e.placeholder,placeholderClass:e.placeholderClass,placeholderStyle:e.placeholderStyle,showWordLimit:e.showWordLimit,confirmType:e.confirmType,confirmHold:e.confirmHold,holdKeyboard:e.holdKeyboard,focus:e.focus,autoBlur:e.autoBlur,disableDefaultPadding:e.disableDefaultPadding,cursor:e.cursor,cursorSpacing:e.cursorSpacing,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,inputAlign:e.inputAlign,fontSize:e.fontSize,color:e.color,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,suffixIconStyle:e.suffixIconStyle,prefixIconStyle:e.prefixIconStyle,border:e.border,readonly:e.readonly,shape:e.shape,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("focus")},blur:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("blur",n)}.apply(void 0,arguments)},keyboardheightchange:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("keyboardheightchange")},change:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("change",n)}.apply(void 0,arguments)},input:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("input",n)}.apply(void 0,arguments)},confirm:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("confirm",n)}.apply(void 0,arguments)},clear:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("clear")},click:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("click")}}},[e._t("prefix",null,{slot:"prefix"}),e._t("suffix",null,{slot:"suffix"})],2)},i=[]}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-loginPC-index"],{"0ac7":function(e,n,t){var i=t("c86c"),o=t("2ec5"),a=t("d5c7");n=i(!1);var c=o(a);n.push([e.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/* uni.scss */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-4225d054]{width:100vw;height:100vh;background:#fffbf7;max-width:430px;max-height:1000px;margin-left:auto;margin-right:auto}.content[data-v-4225d054]{width:100%;height:60%;display:flex;justify-content:center;flex-wrap:wrap;align-content:center;padding-top:100px}.loginImage[data-v-4225d054]{width:80%;height:35%;background:url('+c+");background-size:100% 100%}.login[data-v-4225d054]{width:100%;padding:50px}.validate[data-v-4225d054]{margin-top:15px;display:flex;justify-content:center}.userAgreement[data-v-4225d054]{display:flex;align-content:center;padding-top:15px}",""]),e.exports=n},2696:function(e,n,t){"use strict";t.r(n);var i=t("3c82"),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);n["default"]=o.a},"2e87":function(e,n,t){"use strict";(function(e){t("6a54");var i=t("3639").default,o=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(t("2634")),c=o(t("2fdc"));t("5c47"),t("a1c1"),t("23f4"),t("7d2f"),t("9c4e"),t("ab80");var u=i(t("0f18")),r={data:function(){return{checkbox:[],init:{phone:"",verification_code:"",openid:this.getUrlKey("openid")},tips:"",seconds:60}},watch:{checkbox:function(n,t){e.log("🚀🚀newValue🚀,",n)}},mounted:function(){},methods:{strategicObject:function(e,n){var t=this,i={true:function(e){window.localStorage.setItem("museum-token",e.response.complex_token_view_model.access_token.token_content),uni.navigateTo({url:"/pages/index/index"})},false:function(e){t.$u.toast(e.msg_detail)}};i[String(e)](n)},checkboxChange:function(n){e.log("🚀🚀🚀,",n)},GenerateCode:function(){var e=this;u.GenerateCode({phone:this.init.phone}).then((function(n){return e.$u.toast(n.msg)}))},getUrlKey:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},login:function(){var e=this;return(0,c.default)((0,a.default)().mark((function n(){return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.checkbox.length&&e.init.phone?u.PCLogin({phone:e.init.phone}).then((function(n){e.strategicObject(n.response.login,n)})):uni.$u.toast("请完善信息");case 1:case"end":return n.stop()}}),n)})))()},codeChange:function(e){this.tips=e},getCode:function(){var e=this;this.$refs.uCode.canGetCode?(uni.showLoading({title:"正在获取验证码"}),setTimeout((function(){uni.hideLoading(),e.GenerateCode(),e.$refs.uCode.start()}),2e3)):uni.$u.toast("倒计时结束后再发送")},end:function(){},start:function(){}}};n.default=r}).call(this,t("ba7c")["default"])},"2ec5":function(e,n,t){"use strict";e.exports=function(e,n){return n||(n={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"3c82":function(e,n,t){"use strict";t("6a54");var i=t("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(t("1992")),a=i(t("39e0")),c={name:"u--input",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvInput:o.default}};n.default=c},a944:function(e,n,t){"use strict";var i=t("c61e"),o=t.n(i);o.a},abae:function(e,n,t){"use strict";t.r(n);var i=t("e83a"),o=t("2696");for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);var c=t("828b"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},bfca:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return i}));var i={"u-Input":t("abae").default,uCheckboxGroup:t("0ff5").default,uCheckbox:t("98f6").default,uButton:t("7435").default},o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",{staticClass:"container"},[t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"loginImage"}),t("v-uni-view",{staticClass:"login"},[t("u--input",{staticStyle:{"background-color":"white"},attrs:{placeholder:"请输入手机号",border:"surround"},model:{value:e.init.phone,callback:function(n){e.$set(e.init,"phone",n)},expression:"init.phone"}}),t("v-uni-view",{staticClass:"userAgreement"},[t("u-checkbox-group",{attrs:{placement:"column"},on:{change:function(n){arguments[0]=n=e.$handleEvent(n),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkbox,callback:function(n){e.checkbox=n},expression:"checkbox"}},[t("u-checkbox",{attrs:{name:1,size:"30",labelSize:"30",label:"已阅读并同意《隐私权政策》《用户协议》"}})],1)],1),t("u-button",{staticStyle:{"margin-top":"15px"},attrs:{shape:"circle",color:"#D59171"},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.login.apply(void 0,arguments)}}},[e._v("登录")])],1)],1)],1)},a=[]},c61e:function(e,n,t){var i=t("0ac7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=t("967d").default;o("0c5f1018",i,!0,{sourceMap:!1,shadowMode:!1})},cf72:function(e,n,t){"use strict";t.r(n);var i=t("bfca"),o=t("dc79");for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t("a944");var c=t("828b"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"4225d054",null,!1,i["a"],void 0);n["default"]=u.exports},d5c7:function(e,n,t){e.exports=t.p+"static/images/redLogo.png"},dc79:function(e,n,t){"use strict";t.r(n);var i=t("2e87"),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);n["default"]=o.a},e83a:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){}));var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("uvInput",{attrs:{value:e.value,type:e.type,fixed:e.fixed,disabled:e.disabled,disabledColor:e.disabledColor,clearable:e.clearable,password:e.password,maxlength:e.maxlength,placeholder:e.placeholder,placeholderClass:e.placeholderClass,placeholderStyle:e.placeholderStyle,showWordLimit:e.showWordLimit,confirmType:e.confirmType,confirmHold:e.confirmHold,holdKeyboard:e.holdKeyboard,focus:e.focus,autoBlur:e.autoBlur,disableDefaultPadding:e.disableDefaultPadding,cursor:e.cursor,cursorSpacing:e.cursorSpacing,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,inputAlign:e.inputAlign,fontSize:e.fontSize,color:e.color,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,suffixIconStyle:e.suffixIconStyle,prefixIconStyle:e.prefixIconStyle,border:e.border,readonly:e.readonly,shape:e.shape,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},on:{focus:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("focus")},blur:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("blur",n)}.apply(void 0,arguments)},keyboardheightchange:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("keyboardheightchange")},change:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("change",n)}.apply(void 0,arguments)},input:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("input",n)}.apply(void 0,arguments)},confirm:function(n){arguments[0]=n=e.$handleEvent(n),function(n){return e.$emit("confirm",n)}.apply(void 0,arguments)},clear:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("clear")},click:function(n){arguments[0]=n=e.$handleEvent(n),e.$emit("click")}}},[e._t("prefix",null,{slot:"prefix"}),e._t("suffix",null,{slot:"suffix"})],2)},o=[]}}]);
\ No newline at end of file
此差异已折叠。
...@@ -29,8 +29,6 @@ export function request (config){ ...@@ -29,8 +29,6 @@ export function request (config){
duration: 2000 //持续时间为 2秒 duration: 2000 //持续时间为 2秒
}); });
} }
}) })
}) })
} }
...@@ -10,7 +10,13 @@ export function test (data){ ...@@ -10,7 +10,13 @@ export function test (data){
data, data,
}) })
} }
export function GetTokenInfo (data){
return request({
url:'/api/Login/api/Login/GetTokenInfo',
methods:'get',
data,
})
}
/** /**
* backGround * backGround
......
{ {
"pages": [ "pages": [
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{ // {
"path" : "pages/getWxCode/InitInfo", // "path" : "pages/getWxCode/InitInfo",
"style" : // "style" :
{ // {
"navigationStyle":"custom",// 去除顶部 导航栏 // "navigationStyle":"custom",// 去除顶部 导航栏
"navigationBarTitleText": "博物馆预约" // "navigationBarTitleText": "博物馆预约"
} // }
}, // },
//
{ // {
"path" : "pages/getWxCode/teamCode", // "path" : "pages/getWxCode/teamCode",
"style" : // "style" :
{ // {
"navigationStyle":"custom"// 去除顶部 导航栏 // "navigationStyle":"custom"// 去除顶部 导航栏
} // }
}, // },
{ {
"path" : "pages/SSO/index", "path" : "pages/SSO/index",
"style" : "style" :
......
...@@ -22,16 +22,20 @@ import * as api from '../../network/utils' ...@@ -22,16 +22,20 @@ import * as api from '../../network/utils'
let strategicObject = { let strategicObject = {
'true':(value)=>{ 'true':(value)=>{
// 为真(首次登录) 直接赋值token // 为真(首次登录) 直接赋值token
window.localStorage.setItem('museum-token',value.complex_token_view_model.access_token.token_content) window.localStorage.setItem('museum-token',value.complex_token_view_model.access_token.token_content)
uni.navigateTo({
url:'/pages/index/index' api.GetTokenInfo().then(res=>{
window.localStorage.setItem('museumManagementUserInfo-reservedTerminal',JSON.stringify(res.response))
uni.navigateTo({
url:'/pages/index/index'
})
}) })
}, },
'false':(value)=>{ 'false':(value)=>{
// 为假(非首次登录) 跳转到登录页 手机验证码登录 // 为假(非首次登录) 跳转到登录页 手机验证码登录
uni.navigateTo({ uni.navigateTo({
url:`/pages/login/index?openid=${value.openid}` url:`/pages/login/index?openid=${value.openid}`
}) })
}, },
} }
strategicObject[String(name)](value) strategicObject[String(name)](value)
......
...@@ -75,8 +75,11 @@ ...@@ -75,8 +75,11 @@
'true':(value)=>{ 'true':(value)=>{
// 为真(首次登录) 直接赋值token // 为真(首次登录) 直接赋值token
window.localStorage.setItem('museum-token',value.response.complex_token_view_model.access_token.token_content) window.localStorage.setItem('museum-token',value.response.complex_token_view_model.access_token.token_content)
uni.navigateTo({ api.GetTokenInfo().then(res=>{
url:'/pages/index/index' window.localStorage.setItem('museumManagementUserInfo-reservedTerminal',JSON.stringify(res.response))
uni.navigateTo({
url:'/pages/index/index'
})
}) })
}, },
'false':(value)=>{ 'false':(value)=>{
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<script> <script>
import * as api from "../../network/utils"; import * as api from "../../network/utils";
import {GenerateCode, GetUseCarouselList, PCLogin} from "../../network/utils"; import {GenerateCode, GetTokenInfo, GetUseCarouselList, PCLogin} from "../../network/utils";
export default { export default {
data() { data() {
...@@ -53,14 +53,16 @@ ...@@ -53,14 +53,16 @@
}, },
methods: { methods: {
strategicObject(name,value){ strategicObject(name,value){
let strategicObject = { let strategicObject = {
'true':(value)=>{ 'true':(value)=>{
// 为真(首次登录) 直接赋值token // 为真(首次登录) 直接赋值token
window.localStorage.setItem('museum-token',value.response.complex_token_view_model.access_token.token_content) window.localStorage.setItem('museum-token',value.response.complex_token_view_model.access_token.token_content)
uni.navigateTo({ api.GetTokenInfo().then(res=>{
url:'/pages/index/index' window.localStorage.setItem('museumManagementUserInfo-reservedTerminal',JSON.stringify(res.response))
uni.navigateTo({
url:'/pages/index/index'
})
}) })
}, },
'false':(value)=>{ 'false':(value)=>{
...@@ -86,7 +88,6 @@ ...@@ -86,7 +88,6 @@
); );
}, },
async login() { async login() {
if(!!this.checkbox.length && this.init.phone) api.PCLogin({phone:this.init.phone}).then((res)=>{ if(!!this.checkbox.length && this.init.phone) api.PCLogin({phone:this.init.phone}).then((res)=>{
this.strategicObject(res.response.login,res) this.strategicObject(res.response.login,res)
}) })
......
...@@ -145,9 +145,9 @@ ...@@ -145,9 +145,9 @@
<span v-if="zzName" style="color: red">*{{ zzName }}</span> <span v-if="zzName" style="color: red">*{{ zzName }}</span>
</view> </view>
<view class="c-f-f-i"> <view class="c-f-f-i">
<!-- <view class="c-f-f-i-t"> <!--<view class="c-f-f-i-t">
<span style="color:red">*</span>领队身份证号/护照号码 <span style="color:red">*</span>领队身份证号/护照号码
</view> </view>
<view class="c-f-f-i-f"> <view class="c-f-f-i-f">
<u-input v-model="formDateValidate.identity_num" class="input" <u-input v-model="formDateValidate.identity_num" class="input"
@blur="leaderInformation('zzIdentity_num')"></u-input> @blur="leaderInformation('zzIdentity_num')"></u-input>
...@@ -159,7 +159,6 @@ ...@@ -159,7 +159,6 @@
<view class="c-f-f-i-f"> <view class="c-f-f-i-f">
<u-input v-model="formDateValidate.identity_num" class="input"></u-input> <u-input v-model="formDateValidate.identity_num" class="input"></u-input>
</view> </view>
</view> </view>
<view class="c-f-f-i"> <view class="c-f-f-i">
<view class="c-f-f-i-t"> <view class="c-f-f-i-t">
...@@ -187,12 +186,12 @@ ...@@ -187,12 +186,12 @@
人数<span style="font-size: 13px;">(不少于10人)</span> 人数<span style="font-size: 13px;">(不少于10人)</span>
</view> </view>
<view class="c-f-f-i-f"> <view class="c-f-f-i-f">
<u-number-box disabledInput="false" v-model="formDateValidate.num" :buttonSize="80" <u-number-box :disabledInput="false" v-model="formDateValidate.num" :buttonSize="80"
:min="1" bgColor="#fff" integer @change="valChange"> :min="1" bgColor="#fff" integer @change="valChange">
<view slot="input"> <view slot="input">
<u-input class="input" <u-input type="number" class="input"
style="width: 50px;height:30px; text-align: center; margin: 0 2vw 0 2vw;display: flex;align-items: center;justify-content: center" style="width: 50px;height:30px; text-align: center; margin: 0 2vw 0 2vw;display: flex;align-items: center;justify-content: center"
v-model="formDateValidate.num" :type="type" :border="border" /> v-model="formDateValidate.num" />
</view> </view>
</u-number-box> </u-number-box>
</view> </view>
...@@ -311,8 +310,8 @@ ...@@ -311,8 +310,8 @@
unit: '', unit: '',
name: '', name: '',
identity_num: '', identity_num: '',
mobile: '', mobile:JSON.parse(localStorage.getItem('museumManagementUserInfo-reservedTerminal')).mobile?JSON.parse(localStorage.getItem('museumManagementUserInfo')).mobile:'',
plate_number: '', plate_number: '',
num: 10, num: 10,
reason: '', reason: '',
}, },
...@@ -337,8 +336,14 @@ ...@@ -337,8 +336,14 @@
peopleList: [] peopleList: []
} }
}, },
watch: {
watch: {
'formDateValidate.num'(newValue, oldValue){
if (newValue>300){
this.formDateValidate.num = 10
this.$u.toast('输入数量过多,最大填300人!')
}
},
lastAndAfternoonStatus(newValue, oldValue) { lastAndAfternoonStatus(newValue, oldValue) {
console.log(newValue); console.log(newValue);
}, },
...@@ -542,7 +547,6 @@ ...@@ -542,7 +547,6 @@
valChange(e) { valChange(e) {
this.formDateValidate.num = e this.formDateValidate.num = e
console.log('当前值为: ' + e.formDateValidate.name6)
}, },
formatter(day) { formatter(day) {
this.dateList.forEach((cur, index) => { this.dateList.forEach((cur, index) => {
......
...@@ -108,8 +108,7 @@ ...@@ -108,8 +108,7 @@
</view> </view>
</view> </view>
<!-- 暂时隐藏身份证号。 不可删除-->
<!-- 暂时隐藏身份证号-->
<!-- <view class="c-f-f-i" :key="aaa"> <!-- <view class="c-f-f-i" :key="aaa">
<view class="c-f-f-i-t"> <view class="c-f-f-i-t">
身份证号/护照号码 身份证号/护照号码
...@@ -219,9 +218,8 @@ ...@@ -219,9 +218,8 @@
peopleList:[ peopleList:[
{ {
name:'', name:'',
mobile:'', mobile:JSON.parse(localStorage.getItem('museumManagementUserInfo-reservedTerminal')).mobile?JSON.parse(localStorage.getItem('museumManagementUserInfo-reservedTerminal')).mobile:'',
identity_num:'', identity_num:'',
} }
] ]
} }
...@@ -398,8 +396,6 @@ ...@@ -398,8 +396,6 @@
} }
}, },
async mounted() { async mounted() {
console.log("🚀🚀localStorage.getItem('museumManagementUserInfo')🚀,",JSON.parse(localStorage.getItem('museumManagementUserInfo')).userInfo)
console.log("🚀🚀🚀,",localStorage.getItem('museumManagementUserInfo'))
//获取日期 //获取日期
await api.getDate({type: 0}) await api.getDate({type: 0})
.then(res => { .then(res => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或