tplus-portaltouch 3.24.1 → 3.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/header/headContent.js +3 -3
- package/dist/components/header/headContent.js.map +1 -1
- package/dist/containers/Main/index.js +1 -5
- package/dist/containers/Main/index.js.map +1 -1
- package/dist/pages/Portalbc/index.js +50 -47
- package/dist/pages/Portalbc/index.js.map +1 -1
- package/dist/pages/Portalbc/onframe.js +9 -12
- package/dist/pages/Portalbc/onframe.js.map +1 -1
- package/dist/stores/ModifyPassStore.js +5 -4
- package/dist/stores/ModifyPassStore.js.map +1 -1
- package/dist/stores/PosLoginStore.js +3 -6
- package/dist/stores/PosLoginStore.js.map +1 -1
- package/package.json +37 -37
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/pages/Portalbc/onframe.js"],"names":["observer","props","initHash","params","content_only","bar_bg","bar_active_bg","menu","secondRouter","activePrompt","closePrompt","closeable","leavePrompt","lock","pageId","pageParams","path","tabId","tabLabel","pageType","_k","filter","IdWarehouse","WarehouseName","user","loginInfo","IdStore","PosId","store","storeName","defaultValue","storeId","id","warehouseId","name","requireWarehouseId","filterValue","value","encodeURIComponent","randomWord","domain","User","getWebEntry","commonArgs","actionUrl","cc_url","replace","console","log","only","digits","str","number","letter","arr","i","pos","Math","round","random","length","initIframeHeight","iframe","document","getElementById","bHeight","ownerDocument","body","scrollHeight","dHeight","documentElement","height","max","ex","state","loading","preLoad","s","getQueryString","location","search","p","style","JSON","parse","decodeURIComponent","localStore","get","type","reg","RegExp","r","substr","match","rx$","changeHsy","next","back","fn","setState","setTimeout","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;mBAECA,mB;;;AAEG,sBAAYC,KAAZ,EAAmB;AAAA;;AAAA,8IACTA,KADS;;AAAA,cAcnBC,QAd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V;AACA,gBAAIG,IAAIX,OAAOY,MAAP,CAAc,CAAd,EAAiBC,KAAjB,CAAuBJ,GAAvB,CAAR;AACA,gBAAIE,KAAK,IAAT,EAAe,OAAQA,EAAE,CAAF,CAAR,CAAe,OAAO,IAAP;AACjC;;;6CAYoB;AACjBG,gBAAIC,SAAJ,CAAcC,IAAd,CAAmB,EAAEC,MAAM,IAAR,EAAcC,IAAI,IAAlB,EAAnB;AACA,iBAAKC,QAAL,CAAc,EAAExB,SAAS,IAAX,EAAiBC,SAAS,IAA1B,EAAd;AACH;;;4CAEmB;AAAA;;AAChBwB,uBAAW,YAAM;AAAE,uBAAKD,QAAL,CAAc,EAAExB,SAAS,KAAX,EAAd;AAAoC,aAAvD,EAAyD,IAAzD;AACAyB,uBAAW,YAAM;AAAE,uBAAKD,QAAL,CAAc,EAAEvB,SAAS,KAAX,EAAd,EAAmC,OAAKf,gBAAL;AAA0B,aAAhF,EAAkF,IAAlF;AACH;;;+CAEsB;AACnBiC,gBAAIC,SAAJ,CAAcC,IAAd;AACH;;;iCAEQ;AAAA,yBACwB,KAAKtB,KAD7B;AAAA,gBACGC,OADH,UACGA,OADH;AAAA,gBACYC,OADZ,UACYA,OADZ;;AAEL,mBAAQ;AAAA;AAAA,kBAAK,WAAU,cAAf;AACJ;AAAA;AAAA,sBAAK,WAAWA,UAAU,mBAAV,GAAgC,WAAhD;AACI,8DAAQ,KAAK,KAAK/B,MAAlB,EAA0B,aAAY,GAAtC,EAA0C,WAAU,IAApD,EAAyD,IAAG,gBAA5D,EAA6E,OAAM,MAAnF,EAA0F,QAAO,uBAAjG;AADJ,iBADI;AAIJ,8CAAC,UAAD;AACI,0BAAM8B;AADV;AAJI,aAAR;AAQH;;;EA9JwB0B,gB","file":"onframe.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { observer } from 'mobx-react';\r\nimport { Spin } from 'antd';\r\nimport { User } from 'tplus-api';\r\nimport { localStore } from 'mutants-microfx';\r\nimport { PosInitData } from 'tplus-poslogin';\r\nimport './onframe.less';\r\n\r\n@observer\r\nexport default class extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n loading: false,\r\n preLoad: false\r\n }\r\n const s = this.getQueryString(props.location.search, 's');\r\n const p = this.getQueryString(props.location.search, 'p');\r\n const style = JSON.parse(decodeURIComponent(s));\r\n const search = JSON.parse(decodeURIComponent(p));\r\n this.user = localStore && localStore.get('user') || {};\r\n this.initHash({ ...style, ...search });\r\n }\r\n\r\n initHash = (params) => {\r\n let {\r\n content_only, //只加载内容区域\r\n bar_bg, //页签栏颜色\r\n bar_active_bg, //激活态的标签背景颜色\r\n menu,\r\n secondRouter,\r\n activePrompt,\r\n closePrompt,\r\n closeable,\r\n leavePrompt,\r\n lock,\r\n pageId,\r\n pageParams,\r\n path,\r\n tabId,\r\n tabLabel,\r\n pageType,\r\n _k\r\n } = params;\r\n\r\n let filter = {};\r\n //对仓库参数的处理\r\n const IdWarehouse = PosInitData('IdWarehouse') || '';\r\n const WarehouseName = PosInitData('WarehouseName') || '';\r\n const { loginInfo: { IdStore = '', PosId = '' }, store: { storeName = '' } = {} } = this.user || {};\r\n switch (pageType) {\r\n case 'voucher':\r\n filter = {\r\n defaultValue: {\r\n storeId: {\r\n id: IdStore,\r\n storeName\r\n },\r\n warehouseId: {\r\n id: IdWarehouse,\r\n name: WarehouseName\r\n }\r\n }\r\n }\r\n //要货单特殊处理\r\n if (menu == 'require-goods-new') {\r\n filter = {\r\n defaultValue: {\r\n storeId: {\r\n id: IdStore,\r\n storeName\r\n },\r\n requireWarehouseId: {\r\n id: IdWarehouse,\r\n name: WarehouseName\r\n }\r\n }\r\n }\r\n }\r\n break;\r\n case 'report':\r\n filter = {\r\n filterValue: {\r\n storeId: {\r\n value: {\r\n id: IdStore,\r\n storeName\r\n }\r\n },\r\n warehouseId: {\r\n value: [{\r\n id: IdWarehouse,\r\n name: WarehouseName\r\n }]\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n bar_bg = encodeURIComponent(bar_bg);\r\n bar_active_bg = encodeURIComponent(bar_active_bg);\r\n menu = secondRouter ? `${menu}/${this.randomWord(true, 13)}` : menu;\r\n pageId = menu;\r\n pageParams = Object.assign(pageParams, filter);\r\n pageParams = encodeURIComponent(JSON.stringify(pageParams));\r\n path = encodeURIComponent(path);\r\n tabLabel = encodeURIComponent(tabLabel);\r\n _k = this.randomWord(false, 6);\r\n const domain = User.getWebEntry();\r\n const commonArgs = `?posid=${PosId}&content_only=${content_only}&bar_bg=${bar_bg}&bar_active_bg=${bar_active_bg}`;\r\n const actionUrl = `#/${menu}?activePrompt=${activePrompt}&closePrompt=${closePrompt}&closeable=${closeable}&leavePrompt=${leavePrompt}&lock=${lock}&pageId=${pageId}&pageParams=${pageParams}&path=${path}&tabId=${tabId}&tabLabel=${tabLabel}&_k=${_k}`;\r\n this.cc_url = domain.replace('#/', '') + commonArgs + actionUrl;\r\n console.log('webEntry==============', this.cc_url);\r\n }\r\n\r\n randomWord = (only, digits) => {\r\n let str = \"\";\r\n const number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];\r\n const letter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']\r\n let arr = only ? [...number] : [...number, ...letter];\r\n for (let i = 0; i < digits; i++) {\r\n let pos = Math.round(Math.random() * (arr.length - 1));\r\n str += arr[pos];\r\n }\r\n return str;\r\n }\r\n\r\n getQueryString(search, type) {\r\n let reg = new RegExp(\"(^|&)\" + type + \"=([^&]*)(&|$)\", \"i\");\r\n let r = search.substr(1).match(reg);\r\n if (r != null) return (r[2]); return null;\r\n }\r\n\r\n initIframeHeight = () => {\r\n let iframe = document.getElementById(\"external-frame\");\r\n try {\r\n let bHeight = iframe.ownerDocument.body.scrollHeight;\r\n let dHeight = iframe.ownerDocument.documentElement.scrollHeight;\r\n let height = Math.max(bHeight, dHeight);\r\n iframe.height = height - 65;\r\n } catch (ex) { }\r\n }\r\n\r\n componentWillMount() {\r\n rx$.changeHsy.next({ back: true, fn: null })\r\n this.setState({ loading: true, preLoad: true })\r\n }\r\n\r\n componentDidMount() {\r\n setTimeout(() => { this.setState({ loading: false }); }, 1800);\r\n setTimeout(() => { this.setState({ preLoad: false }); this.initIframeHeight(); }, 2000);\r\n }\r\n\r\n componentWillUnmount() {\r\n rx$.changeHsy.next();\r\n }\r\n\r\n render() {\r\n const { loading, preLoad } = this.state;\r\n return (<div className=\"outerWebview\">\r\n <div className={preLoad ? 'outerbody preLoad' : 'outerbody'}>\r\n <iframe src={this.cc_url} frameborder=\"0\" scrolling=\"no\" id=\"external-frame\" width=\"100%\" onload=\"setIframeHeight(this)\"></iframe>\r\n </div>\r\n <Spin\r\n show={loading}\r\n />\r\n </div>)\r\n }\r\n}"]}
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/pages/Portalbc/onframe.js"],"names":["observer","props","initHash","params","content_only","bar_bg","bar_active_bg","menu","secondRouter","activePrompt","closePrompt","closeable","leavePrompt","lock","pageId","pageParams","path","tabId","tabLabel","pageType","_k","filter","IdWarehouse","WarehouseName","stores","user","options","get","IdStore","PosId","storeName","defaultValue","storeId","id","warehouseId","name","requireWarehouseId","filterValue","value","encodeURIComponent","randomWord","domain","User","getWebEntry","commonArgs","actionUrl","cc_url","replace","console","log","only","digits","str","number","letter","arr","i","pos","Math","round","random","length","initIframeHeight","iframe","document","getElementById","bHeight","ownerDocument","body","scrollHeight","dHeight","documentElement","height","max","ex","state","loading","preLoad","s","getQueryString","location","search","p","style","JSON","parse","decodeURIComponent","type","reg","RegExp","r","substr","match","rx$","changeHsy","next","back","fn","setState","setTimeout","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;mBAECA,mB;;;AAEG,sBAAYC,KAAZ,EAAmB;AAAA;;AAAA,8IACTA,KADS;;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,IAAIT,OAAOU,MAAP,CAAc,CAAd,EAAiBC,KAAjB,CAAuBJ,GAAvB,CAAR;AACA,gBAAIE,KAAK,IAAT,EAAe,OAAQA,EAAE,CAAF,CAAR,CAAe,OAAO,IAAP;AACjC;;;6CAYoB;AACjBG,gBAAIC,SAAJ,CAAcC,IAAd,CAAmB,EAAEC,MAAM,IAAR,EAAcC,IAAI,IAAlB,EAAnB;AACA,iBAAKC,QAAL,CAAc,EAAEtB,SAAS,IAAX,EAAiBC,SAAS,IAA1B,EAAd;AACH;;;4CAEmB;AAAA;;AAChBsB,uBAAW,YAAM;AAAE,uBAAKD,QAAL,CAAc,EAAEtB,SAAS,KAAX,EAAd;AAAoC,aAAvD,EAAyD,IAAzD;AACAuB,uBAAW,YAAM;AAAE,uBAAKD,QAAL,CAAc,EAAErB,SAAS,KAAX,EAAd,EAAmC,OAAKf,gBAAL;AAA0B,aAAhF,EAAkF,IAAlF;AACH;;;+CAEsB;AACnB+B,gBAAIC,SAAJ,CAAcC,IAAd;AACH;;;iCAEQ;AAAA,yBACwB,KAAKpB,KAD7B;AAAA,gBACGC,OADH,UACGA,OADH;AAAA,gBACYC,OADZ,UACYA,OADZ;;AAEL,mBAAQ;AAAA;AAAA,kBAAK,WAAU,cAAf;AACJ;AAAA;AAAA,sBAAK,WAAWA,UAAU,mBAAV,GAAgC,WAAhD;AACI,8DAAQ,KAAK,KAAK/B,MAAlB,EAA0B,aAAY,GAAtC,EAA0C,WAAU,IAApD,EAAyD,IAAG,gBAA5D,EAA6E,OAAM,MAAnF,EAA0F,QAAO,uBAAjG;AADJ,iBADI;AAIJ,8CAAC,UAAD;AACI,0BAAM8B;AADV;AAJI,aAAR;AAQH;;;EA9JwBwB,gB","file":"onframe.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { observer } from 'mobx-react';\r\nimport { Spin } from 'antd';\r\nimport { User } from 'tplus-api';\r\nimport { stores, localStore } from 'mutants-microfx';\r\nimport { PosInitData } from 'tplus-poslogin';\r\nimport './onframe.less';\r\n\r\n@observer\r\nexport default class extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n loading: false,\r\n preLoad: false\r\n }\r\n const s = this.getQueryString(props.location.search, 's');\r\n const p = this.getQueryString(props.location.search, 'p');\r\n const style = JSON.parse(decodeURIComponent(s));\r\n const search = JSON.parse(decodeURIComponent(p));\r\n this.initHash({ ...style, ...search });\r\n }\r\n\r\n initHash = (params) => {\r\n let {\r\n content_only, //只加载内容区域\r\n bar_bg, //页签栏颜色\r\n bar_active_bg, //激活态的标签背景颜色\r\n menu,\r\n secondRouter,\r\n activePrompt,\r\n closePrompt,\r\n closeable,\r\n leavePrompt,\r\n lock,\r\n pageId,\r\n pageParams,\r\n path,\r\n tabId,\r\n tabLabel,\r\n pageType,\r\n _k\r\n } = params;\r\n\r\n let filter = {};\r\n //对仓库参数的处理\r\n const IdWarehouse = PosInitData('IdWarehouse') || '';\r\n const WarehouseName = PosInitData('WarehouseName') || '';\r\n const { IdStore = '', PosId = '' } = stores.user.options.get('loginInfo') || {};\r\n const { storeName = '' } = stores.user.options.get('store') || {};\r\n switch (pageType) {\r\n case 'voucher':\r\n filter = {\r\n defaultValue: {\r\n storeId: {\r\n id: IdStore,\r\n storeName\r\n },\r\n warehouseId: {\r\n id: IdWarehouse,\r\n name: WarehouseName\r\n }\r\n }\r\n }\r\n //要货单特殊处理\r\n if (menu == 'require-goods-new') {\r\n filter = {\r\n defaultValue: {\r\n storeId: {\r\n id: IdStore,\r\n storeName\r\n },\r\n requireWarehouseId: {\r\n id: IdWarehouse,\r\n name: WarehouseName\r\n }\r\n }\r\n }\r\n }\r\n break;\r\n case 'report':\r\n filter = {\r\n filterValue: {\r\n storeId: {\r\n value: {\r\n id: IdStore,\r\n storeName\r\n }\r\n },\r\n warehouseId: {\r\n value: [{\r\n id: IdWarehouse,\r\n name: WarehouseName\r\n }]\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n bar_bg = encodeURIComponent(bar_bg);\r\n bar_active_bg = encodeURIComponent(bar_active_bg);\r\n menu = secondRouter ? `${menu}/${this.randomWord(true, 13)}` : menu;\r\n pageId = menu;\r\n pageParams = Object.assign(pageParams, filter);\r\n pageParams = encodeURIComponent(JSON.stringify(pageParams));\r\n path = encodeURIComponent(path);\r\n tabLabel = encodeURIComponent(tabLabel);\r\n _k = this.randomWord(false, 6);\r\n const domain = User.getWebEntry();\r\n const commonArgs = `?posid=${PosId}&content_only=${content_only}&bar_bg=${bar_bg}&bar_active_bg=${bar_active_bg}`;\r\n const actionUrl = `#/${menu}?activePrompt=${activePrompt}&closePrompt=${closePrompt}&closeable=${closeable}&leavePrompt=${leavePrompt}&lock=${lock}&pageId=${pageId}&pageParams=${pageParams}&path=${path}&tabId=${tabId}&tabLabel=${tabLabel}&_k=${_k}`;\r\n this.cc_url = domain.replace('#/', '') + commonArgs + actionUrl;\r\n console.log('webEntry==============', this.cc_url);\r\n }\r\n\r\n randomWord = (only, digits) => {\r\n let str = \"\";\r\n const number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];\r\n const letter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']\r\n let arr = only ? [...number] : [...number, ...letter];\r\n for (let i = 0; i < digits; i++) {\r\n let pos = Math.round(Math.random() * (arr.length - 1));\r\n str += arr[pos];\r\n }\r\n return str;\r\n }\r\n\r\n getQueryString(search, type) {\r\n let reg = new RegExp(\"(^|&)\" + type + \"=([^&]*)(&|$)\", \"i\");\r\n let r = search.substr(1).match(reg);\r\n if (r != null) return (r[2]); return null;\r\n }\r\n\r\n initIframeHeight = () => {\r\n let iframe = document.getElementById(\"external-frame\");\r\n try {\r\n let bHeight = iframe.ownerDocument.body.scrollHeight;\r\n let dHeight = iframe.ownerDocument.documentElement.scrollHeight;\r\n let height = Math.max(bHeight, dHeight);\r\n iframe.height = height - 65;\r\n } catch (ex) { }\r\n }\r\n\r\n componentWillMount() {\r\n rx$.changeHsy.next({ back: true, fn: null })\r\n this.setState({ loading: true, preLoad: true })\r\n }\r\n\r\n componentDidMount() {\r\n setTimeout(() => { this.setState({ loading: false }); }, 1800);\r\n setTimeout(() => { this.setState({ preLoad: false }); this.initIframeHeight(); }, 2000);\r\n }\r\n\r\n componentWillUnmount() {\r\n rx$.changeHsy.next();\r\n }\r\n\r\n render() {\r\n const { loading, preLoad } = this.state;\r\n return (<div className=\"outerWebview\">\r\n <div className={preLoad ? 'outerbody preLoad' : 'outerbody'}>\r\n <iframe src={this.cc_url} frameborder=\"0\" scrolling=\"no\" id=\"external-frame\" width=\"100%\" onload=\"setIframeHeight(this)\"></iframe>\r\n </div>\r\n <Spin\r\n show={loading}\r\n />\r\n </div>)\r\n }\r\n}"]}
|
|
@@ -126,8 +126,9 @@ var ModifyPassStore = (_class = function () {
|
|
|
126
126
|
return _context.abrupt('return', _tplusComponentsTouch.Message.warn('您两次输入的密码不一致', { top: 30 }));
|
|
127
127
|
|
|
128
128
|
case 5:
|
|
129
|
+
_context.prev = 5;
|
|
130
|
+
|
|
129
131
|
_tplusComponentsTouch.Loading.show({ target: 'modify-password', text: '请稍后...' });
|
|
130
|
-
_context.prev = 6;
|
|
131
132
|
_context.next = 9;
|
|
132
133
|
return _tplusApi.User.updatePwd(oldPass, newPass);
|
|
133
134
|
|
|
@@ -150,17 +151,17 @@ var ModifyPassStore = (_class = function () {
|
|
|
150
151
|
|
|
151
152
|
case 15:
|
|
152
153
|
_context.prev = 15;
|
|
153
|
-
_context.t0 = _context['catch'](
|
|
154
|
+
_context.t0 = _context['catch'](5);
|
|
154
155
|
|
|
155
156
|
_tplusComponentsTouch.Loading.hide();
|
|
156
|
-
console.log('err
|
|
157
|
+
console.log('err======modifyPassWord>>>>>>', _context.t0);
|
|
157
158
|
|
|
158
159
|
case 19:
|
|
159
160
|
case 'end':
|
|
160
161
|
return _context.stop();
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
|
-
}, _callee, this, [[
|
|
164
|
+
}, _callee, this, [[5, 15]]);
|
|
164
165
|
}));
|
|
165
166
|
|
|
166
167
|
function modifyPassWord() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/stores/ModifyPassStore.js"],"names":["ModifyPassStore","oldPass","newPass","newPassConfirm","Message","warn","top","Loading","show","target","text","User","updatePwd","data","result","success","stores","modalRouter","hide","logout","errorCode","Keyboard","close","console","log","observable","action","key","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qBAAU,IAAV;IACqBA,e;;;;;;;;;;;;;;;;;;;;;;;wBAW0B,QAAQ,E,EAA5CC,O,SAAAA,O,EAASC,O,SAAAA,O,EAASC,c,SAAAA,c;;sBACrB,CAACF,OAAD,IAAY,CAACC,OAAb,IAAwB,CAACC,c;;;;;iDACpBC,8BAAQC,IAAR,CAAa,SAAb,EAAwB,EAACC,KAAK,EAAN,EAAxB,C;;;sBAELJ,YAAYC,c;;;;;iDACPC,8BAAQC,IAAR,CAAa,aAAb,EAA4B,EAACC,KAAK,EAAN,EAA5B,C
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/stores/ModifyPassStore.js"],"names":["ModifyPassStore","oldPass","newPass","newPassConfirm","Message","warn","top","Loading","show","target","text","User","updatePwd","data","result","success","stores","modalRouter","hide","logout","errorCode","Keyboard","close","console","log","observable","action","key","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qBAAU,IAAV;IACqBA,e;;;;;;;;;;;;;;;;;;;;;;;wBAW0B,QAAQ,E,EAA5CC,O,SAAAA,O,EAASC,O,SAAAA,O,EAASC,c,SAAAA,c;;s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';\r\nimport { Message, Loading, Keyboard } from 'tplus-components-touch';\r\nimport { stores, runInAction } from 'mutants-microfx';\r\nimport { User } from 'tplus-api';\r\n\r\nuseStrict(true);\r\nexport default class ModifyPassStore {\r\n\r\n @observable oldPass = '';\r\n @observable newPass = '';\r\n @observable newPassConfirm = '';\r\n\r\n @action watchChange = (key, value) => {\r\n this[key] = value;\r\n }\r\n\r\n @action async modifyPassWord() {\r\n const {oldPass, newPass, newPassConfirm} = this || {};\r\n if (!oldPass || !newPass || !newPassConfirm) {\r\n return Message.warn('您还有未填写项', {top: 30});\r\n }\r\n if (newPass !== newPassConfirm) {\r\n return Message.warn('您两次输入的密码不一致', {top: 30});\r\n }\r\n try {\r\n Loading.show({ target: 'modify-password', text: '请稍后...' })\r\n const data = await User.updatePwd(oldPass, newPass);\r\n if (data.result) {\r\n Message.success('您的密码修改成功', { top: 30 });\r\n stores.modalRouter.hide('/modifypass');\r\n User.logout();\r\n } else if (!!data.errorCode) {\r\n if (data.errorCode === '20109') {\r\n Message.warn('旧密码录入有误!', { top: 30 });\r\n }\r\n }\r\n Loading.hide();\r\n Keyboard.close();\r\n } catch (err) {\r\n Loading.hide();\r\n console.log('err======modifyPassWord>>>>>>', err);\r\n }\r\n }\r\n\r\n @action cleanStores() {\r\n this.oldPass = '';\r\n this.newPass = '';\r\n this.newPassConfirm = '';\r\n }\r\n\r\n}\r\n"]}
|
|
@@ -83,12 +83,9 @@ var LoginStore = (_class = function () {
|
|
|
83
83
|
value: function savePosCode(codeParam) {
|
|
84
84
|
var code = void 0;
|
|
85
85
|
if (typeof codeParam === 'undefined') {
|
|
86
|
-
var _ref = _mutantsMicrofx.
|
|
87
|
-
_ref$
|
|
88
|
-
|
|
89
|
-
_ref$store = _ref$store === undefined ? {} : _ref$store;
|
|
90
|
-
var _ref$store$posCode = _ref$store.posCode,
|
|
91
|
-
localPosCode = _ref$store$posCode === undefined ? '' : _ref$store$posCode;
|
|
86
|
+
var _ref = _mutantsMicrofx.stores.user.options.get('store') || {},
|
|
87
|
+
_ref$posCode = _ref.posCode,
|
|
88
|
+
localPosCode = _ref$posCode === undefined ? '' : _ref$posCode;
|
|
92
89
|
|
|
93
90
|
code = localPosCode;
|
|
94
91
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/stores/PosLoginStore.js"],"names":["LoginStore","codeParam","code","
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/stores/PosLoginStore.js"],"names":["LoginStore","codeParam","code","stores","user","options","get","posCode","localPosCode","observable","computed","action"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEMA,U;;;;;;;;;gCAQgBC,S,EAAW;AAC7B,UAAIC,aAAJ;AACA,UAAI,OAAOD,SAAP,KAAqB,WAAzB,EAAsC;AAAA,mBACGE,uBAAOC,IAAP,CAAYC,OAAZ,CAAoBC,GAApB,CAAwB,OAAxB,KAAoC,EADvC;AAAA,gCAC5BC,OAD4B;AAAA,YACnBC,YADmB,gCACJ,EADI;;AAEpCN,eAAOM,YAAP;AACD,OAHD,MAGO;AACLN,eAAOD,SAAP;AACD;AACD,WAAKM,OAAL,GAAeL,IAAf;AACD;;;wBAb0B;AACzB,aAAO,CAAC,CAAC,KAAKK,OAAd;AACD;;;4EAJAE,gB;;;+DAEAC,c,2JAIAC,Y;kBAYYX,U","file":"PosLoginStore.js","sourcesContent":["import { action, observable, computed } from 'mobx';\r\nimport { stores, localStore } from 'mutants-microfx';\r\n\r\nclass LoginStore {\r\n\r\n @observable posCode;\r\n\r\n @computed get posIsLogin() {\r\n return !!this.posCode;\r\n }\r\n\r\n @action savePosCode(codeParam) {\r\n let code;\r\n if (typeof codeParam === 'undefined') {\r\n const { posCode: localPosCode = '' } = stores.user.options.get('store') || {};\r\n code = localPosCode;\r\n } else {\r\n code = codeParam;\r\n }\r\n this.posCode = code;\r\n }\r\n}\r\n\r\nexport default LoginStore;\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tplus-portaltouch",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "touch protal",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "node node_modules/mutants-devtools/bin/start",
|
|
8
|
-
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
|
9
|
-
"dev": "node node_modules/mutants-devtools/bin/dev ../touch",
|
|
10
|
-
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-portaltouch",
|
|
11
|
-
"test": "set DEBUG=tplus:*,-not_this && mocha"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"tplus",
|
|
15
|
-
"pos"
|
|
16
|
-
],
|
|
17
|
-
"author": "tplus",
|
|
18
|
-
"license": "ISC",
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"antd": "4.10.3",
|
|
21
|
-
"react": "^16.8.6",
|
|
22
|
-
"rxjs": "^6.5.4"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"babel-eslint": "^8.0.3",
|
|
26
|
-
"babel-plugin-import-bee": "^1.1.0",
|
|
27
|
-
"eslint": "^4.13.1",
|
|
28
|
-
"eslint-plugin-react": "^7.12.4",
|
|
29
|
-
"mocha": "^5.2.0",
|
|
30
|
-
"mutants-devtools": "^1.0.0",
|
|
31
|
-
"mutants-microfx": "^1.0.0",
|
|
32
|
-
"tplus-api": "~
|
|
33
|
-
"tplus-components": "~3.
|
|
34
|
-
"tplus-components-touch": "~3.
|
|
35
|
-
"tplus-poslogin": "~3.
|
|
36
|
-
}
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tplus-portaltouch",
|
|
3
|
+
"version": "3.25.4",
|
|
4
|
+
"description": "touch protal",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node node_modules/mutants-devtools/bin/start",
|
|
8
|
+
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
|
9
|
+
"dev": "node node_modules/mutants-devtools/bin/dev ../touch",
|
|
10
|
+
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-portaltouch",
|
|
11
|
+
"test": "set DEBUG=tplus:*,-not_this && mocha"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"tplus",
|
|
15
|
+
"pos"
|
|
16
|
+
],
|
|
17
|
+
"author": "tplus",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"antd": "4.10.3",
|
|
21
|
+
"react": "^16.8.6",
|
|
22
|
+
"rxjs": "^6.5.4"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"babel-eslint": "^8.0.3",
|
|
26
|
+
"babel-plugin-import-bee": "^1.1.0",
|
|
27
|
+
"eslint": "^4.13.1",
|
|
28
|
+
"eslint-plugin-react": "^7.12.4",
|
|
29
|
+
"mocha": "^5.2.0",
|
|
30
|
+
"mutants-devtools": "^1.0.0",
|
|
31
|
+
"mutants-microfx": "^1.0.0",
|
|
32
|
+
"tplus-api": "~5.0.1",
|
|
33
|
+
"tplus-components": "~3.25.1",
|
|
34
|
+
"tplus-components-touch": "~3.25.1",
|
|
35
|
+
"tplus-poslogin": "~3.25.1"
|
|
36
|
+
}
|
|
37
|
+
}
|