tplus-portaltouch 3.55.3 → 3.55.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -157,7 +157,7 @@ var ModifyPassStore = (_class = function () {
157
157
  _context.t0 = _context['catch'](5);
158
158
 
159
159
  _tplusComponentsTouch.Loading.hide();
160
- console.log('err======modifyPassWord>>>>>>', _context.t0);
160
+ console.log('err======modifyPassWord>>>>>>' + _context.t0);
161
161
 
162
162
  case 19:
163
163
  case 'end':
@@ -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;;;;;AAGPC,8CAAQC,IAAR,CAAa;AACXC,0BAAQ,iBADG;AAEXC,wBAAM;AAFK,iBAAb;;uBAImBC,eAAKC,SAAL,CAAeX,OAAf,EAAwBC,OAAxB,C;;;AAAbW,oB;;AACN,oBAAIA,KAAKC,MAAT,EAAiB;AACfV,gDAAQW,OAAR,CAAgB,UAAhB,EAA4B,EAAET,KAAK,EAAP,EAA5B;AACAU,yCAAOC,WAAP,CAAmBC,IAAnB,CAAwB,aAAxB;AACAP,iCAAKQ,MAAL;AACD,iBAJD,MAIO,IAAI,CAAC,CAACN,KAAKO,SAAX,EAAsB;AAC3B,sBAAIP,KAAKO,SAAL,KAAmB,OAAvB,EAAgC;AAC9BhB,kDAAQC,IAAR,CAAa,UAAb,EAAyB,EAAEC,KAAK,EAAP,EAAzB;AACD;AACF;AACDC,8CAAQW,IAAR;AACAG,+CAASC,KAAT;;;;;;;;AAEAf,8CAAQW,IAAR;AACAK,wBAAQC,GAAR,CAAY,+BAAZ;;;;;;;;;;;;;;;;;;kCAIkB;AACpB,WAAKvB,OAAL,GAAe,EAAf;AACA,WAAKC,OAAL,GAAe,EAAf;AACA,WAAKC,cAAL,GAAsB,EAAtB;AACD;;;4EA3CAsB,gB;;;WAAqB,E;;2EACrBA,gB;;;WAAqB,E;;kFACrBA,gB;;;WAA4B,E;;+EAE5BC,Y;;;;;WAAqB,UAACC,GAAD,EAAMC,KAAN,EAAgB;AACpC,YAAKD,GAAL,IAAYC,KAAZ;AACD,K;;mEAEAF,Y,+JA+BAA,Y;kBAzCkB1B,e","file":"ModifyPassStore.js","sourcesContent":["import { observable, action, useStrict } from 'mobx';\nimport { Message, Loading, Keyboard } from 'tplus-components-touch';\nimport { stores, runInAction } from 'mutants-microfx';\nimport { User } from 'tplus-api';\n\nuseStrict(true);\nexport default class ModifyPassStore {\n\n @observable oldPass = '';\n @observable newPass = '';\n @observable newPassConfirm = '';\n\n @action watchChange = (key, value) => {\n this[key] = value;\n }\n\n @action async modifyPassWord() {\n const {oldPass, newPass, newPassConfirm} = this || {};\n if (!oldPass || !newPass || !newPassConfirm) {\n return Message.warn('您还有未填写项', {top: 30});\n }\n if (newPass !== newPassConfirm) {\n return Message.warn('您两次输入的密码不一致', {top: 30});\n }\n try {\n Loading.show({\n target: 'modify-password',\n text: '信息提交中,请稍等...'\n })\n const data = await User.updatePwd(oldPass, newPass);\n if (data.result) {\n Message.success('您的密码修改成功', { top: 30 });\n stores.modalRouter.hide('/modifypass');\n User.logout();\n } else if (!!data.errorCode) {\n if (data.errorCode === '20109') {\n Message.warn('旧密码录入有误!', { top: 30 });\n }\n }\n Loading.hide();\n Keyboard.close();\n } catch (err) {\n Loading.hide();\n console.log('err======modifyPassWord>>>>>>', err);\n }\n }\n\n @action cleanStores() {\n this.oldPass = '';\n this.newPass = '';\n this.newPassConfirm = '';\n }\n\n}\n"]}
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;;;;;AAGPC,8CAAQC,IAAR,CAAa;AACXC,0BAAQ,iBADG;AAEXC,wBAAM;AAFK,iBAAb;;uBAImBC,eAAKC,SAAL,CAAeX,OAAf,EAAwBC,OAAxB,C;;;AAAbW,oB;;AACN,oBAAIA,KAAKC,MAAT,EAAiB;AACfV,gDAAQW,OAAR,CAAgB,UAAhB,EAA4B,EAAET,KAAK,EAAP,EAA5B;AACAU,yCAAOC,WAAP,CAAmBC,IAAnB,CAAwB,aAAxB;AACAP,iCAAKQ,MAAL;AACD,iBAJD,MAIO,IAAI,CAAC,CAACN,KAAKO,SAAX,EAAsB;AAC3B,sBAAIP,KAAKO,SAAL,KAAmB,OAAvB,EAAgC;AAC9BhB,kDAAQC,IAAR,CAAa,UAAb,EAAyB,EAAEC,KAAK,EAAP,EAAzB;AACD;AACF;AACDC,8CAAQW,IAAR;AACAG,+CAASC,KAAT;;;;;;;;AAEAf,8CAAQW,IAAR;AACAK,wBAAQC,GAAR;;;;;;;;;;;;;;;;;;kCAIkB;AACpB,WAAKvB,OAAL,GAAe,EAAf;AACA,WAAKC,OAAL,GAAe,EAAf;AACA,WAAKC,cAAL,GAAsB,EAAtB;AACD;;;4EA3CAsB,gB;;;WAAqB,E;;2EACrBA,gB;;;WAAqB,E;;kFACrBA,gB;;;WAA4B,E;;+EAE5BC,Y;;;;;WAAqB,UAACC,GAAD,EAAMC,KAAN,EAAgB;AACpC,YAAKD,GAAL,IAAYC,KAAZ;AACD,K;;mEAEAF,Y,+JA+BAA,Y;kBAzCkB1B,e","file":"ModifyPassStore.js","sourcesContent":["import { observable, action, useStrict } from 'mobx';\nimport { Message, Loading, Keyboard } from 'tplus-components-touch';\nimport { stores, runInAction } from 'mutants-microfx';\nimport { User } from 'tplus-api';\n\nuseStrict(true);\nexport default class ModifyPassStore {\n\n @observable oldPass = '';\n @observable newPass = '';\n @observable newPassConfirm = '';\n\n @action watchChange = (key, value) => {\n this[key] = value;\n }\n\n @action async modifyPassWord() {\n const {oldPass, newPass, newPassConfirm} = this || {};\n if (!oldPass || !newPass || !newPassConfirm) {\n return Message.warn('您还有未填写项', {top: 30});\n }\n if (newPass !== newPassConfirm) {\n return Message.warn('您两次输入的密码不一致', {top: 30});\n }\n try {\n Loading.show({\n target: 'modify-password',\n text: '信息提交中,请稍等...'\n })\n const data = await User.updatePwd(oldPass, newPass);\n if (data.result) {\n Message.success('您的密码修改成功', { top: 30 });\n stores.modalRouter.hide('/modifypass');\n User.logout();\n } else if (!!data.errorCode) {\n if (data.errorCode === '20109') {\n Message.warn('旧密码录入有误!', { top: 30 });\n }\n }\n Loading.hide();\n Keyboard.close();\n } catch (err) {\n Loading.hide();\n console.log(`err======modifyPassWord>>>>>>${err}`);\n }\n }\n\n @action cleanStores() {\n this.oldPass = '';\n this.newPass = '';\n this.newPassConfirm = '';\n }\n\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tplus-portaltouch",
3
- "version": "3.55.3",
3
+ "version": "3.55.4",
4
4
  "description": "touch protal",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {