tplus-member 3.54.3 → 3.55.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/controllers/MemberOrderController.js +0 -30
- package/dist/controllers/MemberOrderController.js.map +1 -1
- package/dist/controllers/defaultConfig.js +1 -2
- package/dist/controllers/defaultConfig.js.map +1 -1
- package/dist/member/api.js +71 -99
- package/dist/member/api.js.map +1 -1
- package/dist/member/memberMenu/changeMemberCard/index.js +1 -1
- package/dist/member/memberMenu/changeMemberCard/index.js.map +1 -1
- package/dist/member/memberMenu/index.js +8 -2
- package/dist/member/memberMenu/index.js.map +1 -1
- package/dist/member/memberMenu/modifyPass/index.js +392 -0
- package/dist/member/memberMenu/modifyPass/index.js.map +1 -0
- package/dist/member/memberMenu/modifyPass/store.js +271 -0
- package/dist/member/memberMenu/modifyPass/store.js.map +1 -0
- package/dist/member/memberMenu/modifyPass/style.less +96 -0
- package/dist/member/memberMenuStorage/changeMemberCard/index.js +1 -1
- package/dist/member/memberMenuStorage/changeMemberCard/index.js.map +1 -1
- package/dist/member/memberMenuStorage/index.js +6 -2
- package/dist/member/memberMenuStorage/index.js.map +1 -1
- package/dist/member/memberMenuStorage/modifyPass/index.js +423 -0
- package/dist/member/memberMenuStorage/modifyPass/index.js.map +1 -0
- package/dist/member/memberMenuStorage/modifyPass/store.js +358 -0
- package/dist/member/memberMenuStorage/modifyPass/store.js.map +1 -0
- package/dist/member/memberMenuStorage/modifyPass/style.less +96 -0
- package/dist/stores/MemberStore.js +11 -2
- package/dist/stores/MemberStore.js.map +1 -1
- package/dist/views/MemberOrderView.js +48 -27
- package/dist/views/MemberOrderView.js.map +1 -1
- package/package.json +6 -6
- package/dist/member/store.js +0 -195
- package/dist/member/store.js.map +0 -1
@@ -0,0 +1,271 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = undefined;
|
7
|
+
|
8
|
+
var _defineProperty = require('babel-runtime/core-js/object/define-property');
|
9
|
+
|
10
|
+
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
11
|
+
|
12
|
+
var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor');
|
13
|
+
|
14
|
+
var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);
|
15
|
+
|
16
|
+
var _regenerator = require('babel-runtime/regenerator');
|
17
|
+
|
18
|
+
var _regenerator2 = _interopRequireDefault(_regenerator);
|
19
|
+
|
20
|
+
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
|
21
|
+
|
22
|
+
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
23
|
+
|
24
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
25
|
+
|
26
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
27
|
+
|
28
|
+
var _createClass2 = require('babel-runtime/helpers/createClass');
|
29
|
+
|
30
|
+
var _createClass3 = _interopRequireDefault(_createClass2);
|
31
|
+
|
32
|
+
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
33
|
+
|
34
|
+
var _mobx = require('mobx');
|
35
|
+
|
36
|
+
var _tplusComponentsTouch = require('tplus-components-touch');
|
37
|
+
|
38
|
+
var _api = require('../../api');
|
39
|
+
|
40
|
+
var _api2 = _interopRequireDefault(_api);
|
41
|
+
|
42
|
+
var _mutantsUtil = require('mutants-util');
|
43
|
+
|
44
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
45
|
+
|
46
|
+
function _initDefineProp(target, property, descriptor, context) {
|
47
|
+
if (!descriptor) return;
|
48
|
+
(0, _defineProperty2.default)(target, property, {
|
49
|
+
enumerable: descriptor.enumerable,
|
50
|
+
configurable: descriptor.configurable,
|
51
|
+
writable: descriptor.writable,
|
52
|
+
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
|
53
|
+
});
|
54
|
+
}
|
55
|
+
|
56
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
57
|
+
var desc = {};
|
58
|
+
Object['ke' + 'ys'](descriptor).forEach(function (key) {
|
59
|
+
desc[key] = descriptor[key];
|
60
|
+
});
|
61
|
+
desc.enumerable = !!desc.enumerable;
|
62
|
+
desc.configurable = !!desc.configurable;
|
63
|
+
|
64
|
+
if ('value' in desc || desc.initializer) {
|
65
|
+
desc.writable = true;
|
66
|
+
}
|
67
|
+
|
68
|
+
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
69
|
+
return decorator(target, property, desc) || desc;
|
70
|
+
}, desc);
|
71
|
+
|
72
|
+
if (context && desc.initializer !== void 0) {
|
73
|
+
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
74
|
+
desc.initializer = undefined;
|
75
|
+
}
|
76
|
+
|
77
|
+
if (desc.initializer === void 0) {
|
78
|
+
Object['define' + 'Property'](target, property, desc);
|
79
|
+
desc = null;
|
80
|
+
}
|
81
|
+
|
82
|
+
return desc;
|
83
|
+
}
|
84
|
+
|
85
|
+
function _initializerWarningHelper(descriptor, context) {
|
86
|
+
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
|
87
|
+
}
|
88
|
+
|
89
|
+
(0, _mobx.useStrict)(true);
|
90
|
+
var ModifyPassStore = (_class = function () {
|
91
|
+
function ModifyPassStore() {
|
92
|
+
(0, _classCallCheck3.default)(this, ModifyPassStore);
|
93
|
+
|
94
|
+
_initDefineProp(this, 'oldPass', _descriptor, this);
|
95
|
+
|
96
|
+
_initDefineProp(this, 'newPass', _descriptor2, this);
|
97
|
+
|
98
|
+
_initDefineProp(this, 'newPassConfirm', _descriptor3, this);
|
99
|
+
|
100
|
+
_initDefineProp(this, 'watchChange', _descriptor4, this);
|
101
|
+
|
102
|
+
_initDefineProp(this, 'updateValue', _descriptor5, this);
|
103
|
+
|
104
|
+
this.api = _api2.default;
|
105
|
+
}
|
106
|
+
|
107
|
+
(0, _createClass3.default)(ModifyPassStore, [{
|
108
|
+
key: 'resetPassWord',
|
109
|
+
value: function () {
|
110
|
+
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(member, callback) {
|
111
|
+
var _ref2, newPass;
|
112
|
+
|
113
|
+
return _regenerator2.default.wrap(function _callee$(_context) {
|
114
|
+
while (1) {
|
115
|
+
switch (_context.prev = _context.next) {
|
116
|
+
case 0:
|
117
|
+
_ref2 = this || {}, newPass = _ref2.newPass;
|
118
|
+
|
119
|
+
try {
|
120
|
+
this.api.resetMemberPass({ member: member, newPass: newPass }).then(function (ret) {
|
121
|
+
var successful = ret.successful,
|
122
|
+
msg = ret.msg;
|
123
|
+
|
124
|
+
if (successful === true) {
|
125
|
+
_tplusComponentsTouch.Message.success('重置成功');
|
126
|
+
_tplusComponentsTouch.Keyboard.close();
|
127
|
+
callback && callback();
|
128
|
+
} else {
|
129
|
+
_tplusComponentsTouch.Message.error(msg);
|
130
|
+
}
|
131
|
+
}).catch(function (e) {
|
132
|
+
console.log('err', e);
|
133
|
+
});
|
134
|
+
} catch (err) {
|
135
|
+
console.log('err======' + err);
|
136
|
+
}
|
137
|
+
|
138
|
+
case 2:
|
139
|
+
case 'end':
|
140
|
+
return _context.stop();
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}, _callee, this);
|
144
|
+
}));
|
145
|
+
|
146
|
+
function resetPassWord(_x, _x2) {
|
147
|
+
return _ref.apply(this, arguments);
|
148
|
+
}
|
149
|
+
|
150
|
+
return resetPassWord;
|
151
|
+
}()
|
152
|
+
}, {
|
153
|
+
key: 'modifyPassWord',
|
154
|
+
value: function () {
|
155
|
+
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(member, callback) {
|
156
|
+
var _ref4, oldPass, newPass;
|
157
|
+
|
158
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
159
|
+
while (1) {
|
160
|
+
switch (_context2.prev = _context2.next) {
|
161
|
+
case 0:
|
162
|
+
_ref4 = this || {}, oldPass = _ref4.oldPass, newPass = _ref4.newPass;
|
163
|
+
|
164
|
+
try {
|
165
|
+
member.Password = newPass;
|
166
|
+
this.api.modifyMemberPass({ member: member, oldPass: oldPass }).then(function (ret) {
|
167
|
+
var successful = ret.successful,
|
168
|
+
msg = ret.msg;
|
169
|
+
|
170
|
+
if (successful === true) {
|
171
|
+
_tplusComponentsTouch.Message.success('修改成功');
|
172
|
+
_tplusComponentsTouch.Keyboard.close();
|
173
|
+
callback && callback();
|
174
|
+
} else {
|
175
|
+
_tplusComponentsTouch.Message.error(msg);
|
176
|
+
}
|
177
|
+
}).catch(function (e) {
|
178
|
+
console.log('err', e);
|
179
|
+
});
|
180
|
+
} catch (err) {
|
181
|
+
console.log('err======' + err);
|
182
|
+
}
|
183
|
+
|
184
|
+
case 2:
|
185
|
+
case 'end':
|
186
|
+
return _context2.stop();
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}, _callee2, this);
|
190
|
+
}));
|
191
|
+
|
192
|
+
function modifyPassWord(_x3, _x4) {
|
193
|
+
return _ref3.apply(this, arguments);
|
194
|
+
}
|
195
|
+
|
196
|
+
return modifyPassWord;
|
197
|
+
}()
|
198
|
+
}, {
|
199
|
+
key: 'setPwd',
|
200
|
+
value: function setPwd(member, callback) {
|
201
|
+
var _ref5 = this || {},
|
202
|
+
oldPass = _ref5.oldPass,
|
203
|
+
newPass = _ref5.newPass;
|
204
|
+
|
205
|
+
try {
|
206
|
+
member.Password = newPass;
|
207
|
+
this.api.setPwd({ member: member, oldPass: oldPass }).then(function (ret) {
|
208
|
+
var successful = ret.successful,
|
209
|
+
msg = ret.msg;
|
210
|
+
|
211
|
+
if (successful === true) {
|
212
|
+
_tplusComponentsTouch.Message.success('设置成功');
|
213
|
+
_tplusComponentsTouch.Keyboard.close();
|
214
|
+
callback && callback();
|
215
|
+
} else {
|
216
|
+
_tplusComponentsTouch.Message.error(msg);
|
217
|
+
}
|
218
|
+
//Loading.hide();
|
219
|
+
}).catch(function (e) {
|
220
|
+
console.log('err', e);
|
221
|
+
});
|
222
|
+
} catch (err) {
|
223
|
+
//Loading.hide();
|
224
|
+
console.log('err======' + err);
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}, {
|
228
|
+
key: 'cleanStores',
|
229
|
+
value: function cleanStores() {
|
230
|
+
this.oldPass = '';
|
231
|
+
this.newPass = '';
|
232
|
+
this.newPassConfirm = '';
|
233
|
+
}
|
234
|
+
}]);
|
235
|
+
return ModifyPassStore;
|
236
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'oldPass', [_mobx.observable], {
|
237
|
+
enumerable: true,
|
238
|
+
initializer: function initializer() {
|
239
|
+
return '';
|
240
|
+
}
|
241
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'newPass', [_mobx.observable], {
|
242
|
+
enumerable: true,
|
243
|
+
initializer: function initializer() {
|
244
|
+
return '';
|
245
|
+
}
|
246
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'newPassConfirm', [_mobx.observable], {
|
247
|
+
enumerable: true,
|
248
|
+
initializer: function initializer() {
|
249
|
+
return '';
|
250
|
+
}
|
251
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'watchChange', [_mobx.action], {
|
252
|
+
enumerable: true,
|
253
|
+
initializer: function initializer() {
|
254
|
+
var _this = this;
|
255
|
+
|
256
|
+
return function (key, value) {
|
257
|
+
_this[key] = value;
|
258
|
+
};
|
259
|
+
}
|
260
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'updateValue', [_mobx.action], {
|
261
|
+
enumerable: true,
|
262
|
+
initializer: function initializer() {
|
263
|
+
var _this2 = this;
|
264
|
+
|
265
|
+
return function (field, value) {
|
266
|
+
_this2[field] = value;
|
267
|
+
};
|
268
|
+
}
|
269
|
+
}), _applyDecoratedDescriptor(_class.prototype, 'resetPassWord', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'resetPassWord'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'modifyPassWord', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'modifyPassWord'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setPwd', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setPwd'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'cleanStores', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'cleanStores'), _class.prototype)), _class);
|
270
|
+
exports.default = ModifyPassStore;
|
271
|
+
//# sourceMappingURL=store.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["tplus-member/member/memberMenu/modifyPass/store.js"],"names":["ModifyPassStore","api","MemberStore","member","callback","newPass","resetMemberPass","then","successful","ret","msg","Message","success","Keyboard","close","error","catch","console","log","e","err","oldPass","Password","modifyMemberPass","setPwd","newPassConfirm","observable","action","key","value","field"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qBAAU,IAAV;IACqBA,e;AACnB,6BAAc;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AACZ,SAAKC,GAAL,GAAWC,aAAX;AACD;;;;;2GAc2BC,M,EAAQC,Q;;;;;;;wBACd,QAAQ,E,EAApBC,O,SAAAA,O;;AACR,oBAAI;AACF,uBAAKJ,GAAL,CAASK,eAAT,CAAyB,EAAEH,cAAF,EAAUE,gBAAV,EAAzB,EAA8CE,IAA9C,CAAmD,eAAO;AAAA,wBAChDC,UADgD,GAC5BC,GAD4B,CAChDD,UADgD;AAAA,wBACpCE,GADoC,GAC5BD,GAD4B,CACpCC,GADoC;;AAExD,wBAAIF,eAAe,IAAnB,EAAyB;AACvBG,oDAAQC,OAAR,CAAgB,MAAhB;AACAC,qDAASC,KAAT;AACA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d,IAArC,CAA0C,eAAO;AAAA,cACvCC,UADuC,GACnBC,GADmB,CACvCD,UADuC;AAAA,cAC3BE,GAD2B,GACnBD,GADmB,CAC3BC,GAD2B;;AAE/C,cAAIF,eAAe,IAAnB,EAAyB;AACvBG,0CAAQC,OAAR,CAAgB,MAAhB;AACAC,2CAASC,KAAT;AACAV,wBAAYA,UAAZ;AACD,WAJD,MAIO;AACLO,0CAAQI,KAAR,CAAcL,GAAd;AACD;AACD;AACD,SAVD,EAUGM,KAVH,CAUS,aAAK;AACZC,kBAAQC,GAAR,CAAY,KAAZ,EAAmBC,CAAnB;AACD,SAZD;AAaD,OAfD,CAeE,OAAOC,GAAP,EAAY;AACZ;AACAH,gBAAQC,GAAR,eAAwBE,GAAxB;AACD;AACF;;;kCAEqB;AACpB,WAAKC,OAAL,GAAe,EAAf;AACA,WAAKhB,OAAL,GAAe,EAAf;AACA,WAAKoB,cAAL,GAAsB,EAAtB;AACD;;;4EAhFAC,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;;+EAEAF,Y;;;;;WAAqB,UAACG,KAAD,EAAQD,KAAR,EAAkB;AACtC,aAAKC,KAAL,IAAcD,KAAd;AACD,K;;kEAEAF,Y,iKAoBAA,Y,0JAqBAA,Y,uJAuBAA,Y;kBAjFkB3B,e","file":"store.js","sourcesContent":["import {observable, action, useStrict} from 'mobx';\nimport { Message, Loading, Keyboard } from 'tplus-components-touch';\nimport MemberStore from '../../api';\nimport { platform } from 'mutants-util';\n\nuseStrict(true);\nexport default class ModifyPassStore {\n constructor() {\n this.api = MemberStore;\n }\n\n @observable oldPass = '';\n @observable newPass = '';\n @observable newPassConfirm = '';\n\n @action watchChange = (key, value) => {\n this[key] = value;\n }\n\n @action updateValue = (field, value) => {\n this[field] = value;\n }\n\n @action async resetPassWord(member, callback) {\n const { newPass } = this || {};\n try {\n this.api.resetMemberPass({ member, newPass }).then(ret => {\n const { successful, msg } = ret;\n if (successful === true) {\n Message.success('重置成功');\n Keyboard.close();\n callback && callback();\n } else {\n Message.error(msg);\n }\n }).catch(e => {\n console.log('err', e);\n })\n } catch (err) {\n console.log(`err======${err}`);\n }\n }\n\n @action async modifyPassWord(member, callback) {\n const { oldPass, newPass } = this || {};\n try {\n member.Password = newPass;\n this.api.modifyMemberPass({ member, oldPass }).then(ret => {\n const { successful, msg } = ret;\n if (successful === true) {\n Message.success('修改成功');\n Keyboard.close();\n callback && callback();\n } else {\n Message.error(msg);\n }\n }).catch(e => {\n console.log('err', e);\n })\n } catch (err) {\n console.log(`err======${err}`);\n }\n }\n\n @action setPwd(member, callback) {\n const { oldPass, newPass } = this || {};\n try {\n member.Password = newPass;\n this.api.setPwd({ member, oldPass }).then(ret => {\n const { successful, msg } = ret;\n if (successful === true) {\n Message.success('设置成功');\n Keyboard.close();\n callback && callback();\n } else {\n Message.error(msg);\n }\n //Loading.hide();\n }).catch(e => {\n console.log('err', e);\n })\n } catch (err) {\n //Loading.hide();\n console.log(`err======${err}`);\n }\n }\n\n @action cleanStores() {\n this.oldPass = '';\n this.newPass = '';\n this.newPassConfirm = '';\n }\n}\n"]}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
.u-modal {
|
2
|
+
.u-close{
|
3
|
+
opacity: 1 !important;//统一覆盖
|
4
|
+
}
|
5
|
+
&.in {
|
6
|
+
.modify-password{
|
7
|
+
top: 50% !important;
|
8
|
+
transform: translateY(-50%) !important;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
&.fade {
|
12
|
+
.modify-password{
|
13
|
+
top: 50%;
|
14
|
+
transform: translateY(-65%);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
.modify-password{
|
19
|
+
margin: 0 auto !important;
|
20
|
+
.u-modal-header{
|
21
|
+
font-size: 18px;
|
22
|
+
color: #333333;
|
23
|
+
line-height: 18px;
|
24
|
+
border-bottom: 1px solid #E6E6EB;
|
25
|
+
padding: 10px 16px;
|
26
|
+
.u-modal-title{
|
27
|
+
font-weight: 500;
|
28
|
+
}
|
29
|
+
.u-close{
|
30
|
+
outline: none;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
.u-modal-body{
|
34
|
+
padding: 28px 30px;
|
35
|
+
}
|
36
|
+
.u-modal-footer{
|
37
|
+
padding: 8px 16px;
|
38
|
+
border-top: 1px solid #E6E6EB;
|
39
|
+
}
|
40
|
+
.modifypass-cancal-button{
|
41
|
+
border-radius: 4px;
|
42
|
+
min-width: 76px;
|
43
|
+
box-sizing: border-box;
|
44
|
+
}
|
45
|
+
.modifypass-ok-button{
|
46
|
+
border-radius: 4px;
|
47
|
+
font-size: 16px;
|
48
|
+
text-align: center;
|
49
|
+
border: 0;
|
50
|
+
margin-left: 16px;
|
51
|
+
min-width: 76px;
|
52
|
+
box-sizing: border-box;
|
53
|
+
}
|
54
|
+
.modify-password-container2 {
|
55
|
+
display: flex;
|
56
|
+
justify-content: center;
|
57
|
+
align-items: center;
|
58
|
+
height: 100%;
|
59
|
+
|
60
|
+
.tplus-container {
|
61
|
+
|
62
|
+
width: 100%;
|
63
|
+
padding: 20px;
|
64
|
+
|
65
|
+
.tplus-input-container {
|
66
|
+
margin-bottom: 24px;
|
67
|
+
width : 100%;
|
68
|
+
|
69
|
+
&:last-child {
|
70
|
+
margin-bottom: 10px;
|
71
|
+
}
|
72
|
+
|
73
|
+
&:first-child {
|
74
|
+
margin-top: 24px;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.tplus-input-title {
|
79
|
+
width: 80px;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
.passContainer {
|
84
|
+
display: flex;
|
85
|
+
padding: 10px 0;
|
86
|
+
.one {
|
87
|
+
width: 120px;
|
88
|
+
text-align: right;
|
89
|
+
padding-right: 10px;
|
90
|
+
}
|
91
|
+
.two {
|
92
|
+
width: 266px;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-member/member/memberMenuStorage/changeMemberCard/index.js"],"names":["ChangeMemberCard","observer","props","focusInputName","inputTarget","inputKeyboard","e","target","className","tagName","includes","Keyboard","close","handleOk","member","cancelModal","modifyMember","store","changeMemberCard","keyboardOnClose","blur","watchChange","key","value","keyboardOpen","inputName","open","getNewValue","v","splitUser","regEmail","RegExp","isEmail","test","split","document","body","addEventListener","removeEventListener","cleanStores","newCardCode","memo","CardCode","Name","Mobilephone","userName","marginRight","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;;;AACA;;;;AACA;;AACA;;AACA;;;;IAGqBA,gB,OADpBC,mB;;;AAMC,4BAAYC,KAAZ,EAAmB;AAAA;;AAAA,0JACXA,KADW;;AAAA,UAHnBC,cAGmB,GAHF,IAGE;AAAA,UAFnBC,WAEmB,GAFL,IAEK;;AAAA,UAenBC,aAfmB,GAeH,UAACC,CAAD,EAAO;AAAA,iBAC2BA,KAAK,EADhC;AAAA,6BACbC,MADa;;AAAA,gDACoB,EADpB;AAAA,UACHC,SADG,eACHA,SADG;AAAA,UACQC,OADR,eACQA,OADR;;AAErB,UAAID,UAAUE,QAAV,CAAmB,KAAnB,KAA6BD,YAAY,KAA7C,EAAoD;AACpD,UAAIA,YAAY,OAAhB,EAAyBE,+BAASC,KAAT;AAC1B,KAnBkB;;AAAA,UAqBnBC,QArBmB,GAqBR,YAAM;AAAA,wBAC+B,MAAKX,KADpC;AAAA,UACPY,MADO,eACPA,MADO;AAAA,UACCC,WADD,eACCA,WADD;AAAA,UACcC,YADd,eACcA,YADd;;AAEf,YAAKC,KAAL,CAAWC,gBAAX,CAA4BJ,MAA5B,EAAoCE,YAApC,EAAkD,YAAM;AACpDD,uBAAeA,aAAf;AACH,OAFD;AAGD,KA1BkB;;AAAA,UA4BnB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AAC,2BAAD;AACE,kCADF;AAEE,8BAFF;AAGE,qBAAO,EAAEC,aAAa,MAAf,EAHT;AAIE,oBAAK,QAJP;AAKE,2BAAY,kDALd;AAME,qBAAM,sCANR;AAOE,qBAAON,WAPT;AAQE,wBAAU;AAAA,oBAAajB,KAAb,SAAGhB,MAAH,CAAagB,KAAb;AAAA,uBAA2B,OAAKF,WAAL,CAAiB,aAAjB,EAAgCE,KAAhC,CAA3B;AAAA,eARZ;AASE,uBAAS;AAAA,oBAAGhB,MAAH,SAAGA,MAAH;AAAA,uBAAgB,OAAKiB,YAAL,CAAkBjB,MAAlB,EAA0B,aAA1B,CAAhB;AAAA;AATX;AADJ,WAjBA;AA8BA;AAAA;AAAA,cAAK,WAAU,kBAAf;AACE,0CAAC,2BAAD;AACE,kCADF;AAEE,8BAFF;AAGE,qBAAO,EAAEuC,aAAa,MAAf,EAHT;AAIE,oBAAK,QAJP;AAKE,2BAAY,gCALd;AAME,qBAAM,oBANR;AAOE,qBAAOL,IAPT;AAQE,wBAAU;AAAA,oBAAalB,KAAb,SAAGhB,MAAH,CAAagB,KAAb;AAAA,uBAA2B,OAAKF,WAAL,CAAiB,MAAjB,EAAyBE,KAAzB,CAA3B;AAAA,eARZ;AASE,uBAAS;AAAA,oBAAGhB,MAAH,SAAGA,MAAH;AAAA,uBAAgB,OAAKiB,YAAL,CAAkBjB,MAAlB,EAA0B,MAA1B,CAAhB;AAAA;AATX;AADF;AA9BA;AADF,OADF;AAgDD;;;EAnH2CwC,gB;;kBAAzB/C,gB","file":"index.js","sourcesContent":["import React, { Component } from 'react';\nimport { observer } from 'mobx-react';\nimport PropTypes from 'prop-types';\nimport store from '
|
1
|
+
{"version":3,"sources":["tplus-member/member/memberMenuStorage/changeMemberCard/index.js"],"names":["ChangeMemberCard","observer","props","focusInputName","inputTarget","inputKeyboard","e","target","className","tagName","includes","Keyboard","close","handleOk","member","cancelModal","modifyMember","store","changeMemberCard","keyboardOnClose","blur","watchChange","key","value","keyboardOpen","inputName","open","getNewValue","v","splitUser","regEmail","RegExp","isEmail","test","split","document","body","addEventListener","removeEventListener","cleanStores","newCardCode","memo","CardCode","Name","Mobilephone","userName","marginRight","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AACA;;;;AACA;;;;AACA;;AACA;;AACA;;;;IAGqBA,gB,OADpBC,mB;;;AAMC,4BAAYC,KAAZ,EAAmB;AAAA;;AAAA,0JACXA,KADW;;AAAA,UAHnBC,cAGmB,GAHF,IAGE;AAAA,UAFnBC,WAEmB,GAFL,IAEK;;AAAA,UAenBC,aAfmB,GAeH,UAACC,CAAD,EAAO;AAAA,iBAC2BA,KAAK,EADhC;AAAA,6BACbC,MADa;;AAAA,gDACoB,EADpB;AAAA,UACHC,SADG,eACHA,SADG;AAAA,UACQC,OADR,eACQA,OADR;;AAErB,UAAID,UAAUE,QAAV,CAAmB,KAAnB,KAA6BD,YAAY,KAA7C,EAAoD;AACpD,UAAIA,YAAY,OAAhB,EAAyBE,+BAASC,KAAT;AAC1B,KAnBkB;;AAAA,UAqBnBC,QArBmB,GAqBR,YAAM;AAAA,wBAC+B,MAAKX,KADpC;AAAA,UACPY,MADO,eACPA,MADO;AAAA,UACCC,WADD,eACCA,WADD;AAAA,UACcC,YADd,eACcA,YADd;;AAEf,YAAKC,KAAL,CAAWC,gBAAX,CAA4BJ,MAA5B,EAAoCE,YAApC,EAAkD,YAAM;AACpDD,uBAAeA,aAAf;AACH,OAFD;AAGD,KA1BkB;;AAAA,UA4BnBI,eA5BmB,GA4BD,YAAM;AACtB,YAAKf,WAAL,CAAiBgB,IAAjB;AACAT,qCAASC,KAAT;AACD,KA/BkB;;AAAA,UAiCnBS,WAjCmB,GAiCL,UAACC,GAAD,EAAMC,KAAN,EAAgB;AAC5B,YAAKN,KAAL,CAAWI,WAAX,CAAuBC,GAAvB,EAA4BC,KAA5B;AACD,KAnCkB;;AAAA,UAqCnBC,YArCmB,GAqCJ,UAACjB,MAAD,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,eARZ;AASE,uBAAS;AAAA,oBAAGhB,MAAH,SAAGA,MAAH;AAAA,uBAAgB,OAAKiB,YAAL,CAAkBjB,MAAlB,EAA0B,aAA1B,CAAhB;AAAA;AATX;AADJ,WAjBA;AA8BA;AAAA;AAAA,cAAK,WAAU,kBAAf;AACE,0CAAC,2BAAD;AACE,kCADF;AAEE,8BAFF;AAGE,qBAAO,EAAEuC,aAAa,MAAf,EAHT;AAIE,oBAAK,QAJP;AAKE,2BAAY,gCALd;AAME,qBAAM,oBANR;AAOE,qBAAOL,IAPT;AAQE,wBAAU;AAAA,oBAAalB,KAAb,SAAGhB,MAAH,CAAagB,KAAb;AAAA,uBAA2B,OAAKF,WAAL,CAAiB,MAAjB,EAAyBE,KAAzB,CAA3B;AAAA,eARZ;AASE,uBAAS;AAAA,oBAAGhB,MAAH,SAAGA,MAAH;AAAA,uBAAgB,OAAKiB,YAAL,CAAkBjB,MAAlB,EAA0B,MAA1B,CAAhB;AAAA;AATX;AADF;AA9BA;AADF,OADF;AAgDD;;;EAnH2CwC,gB;;kBAAzB/C,gB","file":"index.js","sourcesContent":["import React, { Component } from 'react';\nimport { observer } from 'mobx-react';\nimport PropTypes from 'prop-types';\nimport store from '../modifyPass/store';\nimport {PosInitData} from 'tplus-poslogin';\nimport { Keyboard, Message, Input, ModalWraper } from 'tplus-components-touch';\nimport './style.less';\n\n@observer\nexport default class ChangeMemberCard extends Component {\n\n focusInputName = null;\n inputTarget = null;\n\n constructor(props) {\n super(props);\n this.store = new store();\n }\n\n componentDidMount() {\n document.body.addEventListener('click', this.inputKeyboard, false);\n }\n\n componentWillUnmount() {\n document.body.removeEventListener('click', this.inputKeyboard, false);\n this.store.cleanStores();\n Keyboard.close();\n }\n\n inputKeyboard = (e) => {\n const { target: { className, tagName } = {} } = e || {};\n if (className.includes('key') && tagName === 'DIV') return;\n if (tagName !== 'INPUT') Keyboard.close();\n }\n\n handleOk = () => {\n const { member, cancelModal, modifyMember } = this.props;\n this.store.changeMemberCard(member, modifyMember, () => {\n cancelModal && cancelModal()\n })\n }\n\n keyboardOnClose = () => {\n this.inputTarget.blur();\n Keyboard.close();\n }\n\n watchChange = (key, value) => {\n this.store.watchChange(key, value);\n }\n\n keyboardOpen = (target, inputName) => {\n this.inputTarget = target;\n this.focusInputName = inputName;\n Keyboard.open(v => {\n const key = this.focusInputName\n const value = Keyboard.getNewValue(this.inputTarget, this.inputTarget.value, v);\n this.watchChange(key, value);\n }, this.handleOk, this.keyboardOnClose)();\n }\n\n splitUser = (value) => {\n const regEmail = new RegExp('^[A-Za-zd0-9]+([-_.][A-Za-zd0-9]+)*@([A-Za-zd0-9]+[-.])+[A-Za-zd]{2,5}$');\n const isEmail = regEmail.test(value);\n\n if (isEmail) {\n return value.split('@')[0];\n }\n return value;\n }\n\n render() {\n const { newCardCode = '', memo = '' } = this.store || {};\n const { member } = this.props;\n const { CardCode, Name, Mobilephone } = member;\n const userName = PosInitData('UserName');\n return (\n <div className='modify-password-container'>\n <div className='change-tplus-container'>\n <div className='content-container'>\n <div className='one'>原会员卡号:</div>\n <div className='two'>{CardCode}</div>\n </div>\n <div className='content-container'>\n <div className='one'>会员姓名:</div>\n <div className='two'>{Name}</div>\n </div>\n <div className='content-container'>\n <div className='one'>手机号:</div>\n <div className='two'>{Mobilephone}</div>\n </div>\n <div className='content-container operator'>\n <div className='one'>经手人:</div>\n <div className='two'>{this.splitUser(userName)}</div>\n </div>\n <div className='newCardClass'>\n <Input\n noAutocomplete\n tplusInput\n style={{ marginRight: '10px' }}\n type='native'\n placeholder='请输入新会员卡号'\n title='新会员卡号:'\n value={newCardCode}\n onChange={({ target: { value } }) => this.watchChange('newCardCode', value)}\n onFocus={({ target }) => this.keyboardOpen(target, 'newCardCode')}\n />\n </div>\n <div className='newCardClassMemo'>\n <Input\n noAutocomplete\n tplusInput\n style={{ marginRight: '10px' }}\n type='native'\n placeholder='请输入备注'\n title='备注:'\n value={memo}\n onChange={({ target: { value } }) => this.watchChange('memo', value)}\n onFocus={({ target }) => this.keyboardOpen(target, 'memo')}\n />\n </div>\n </div>\n </div>\n );\n }\n}\n"]}
|
@@ -69,6 +69,10 @@ var _mutantsUtil = require('mutants-util');
|
|
69
69
|
|
70
70
|
var _utils = require('../../utils');
|
71
71
|
|
72
|
+
var _modifyPass = require('./modifyPass');
|
73
|
+
|
74
|
+
var _modifyPass2 = _interopRequireDefault(_modifyPass);
|
75
|
+
|
72
76
|
var _changeMemberCard = require('./changeMemberCard');
|
73
77
|
|
74
78
|
var _changeMemberCard2 = _interopRequireDefault(_changeMemberCard);
|
@@ -1034,7 +1038,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
|
|
1034
1038
|
},
|
1035
1039
|
passwordTitle === '换卡' ? _react2.default.createElement(_changeMemberCard2.default, { cardList: cardList && cardList.length && cardList[selected], modifyMember: modifyMember, member: member, ref: function ref(_ref24) {
|
1036
1040
|
return _this5.modifyPass = _ref24;
|
1037
|
-
}, cancelModal: this.changePasswordCancel }) : _react2.default.createElement(
|
1041
|
+
}, cancelModal: this.changePasswordCancel }) : _react2.default.createElement(_modifyPass2.default, { menuKey: menuKey, cardListCopy: cardList, cardList: cardList && cardList.length && cardList[selected], changeBtnDisabled: this.changeBtnDisabled, getCardList: getCardList, selected: selected, storageInit: this.storageInit, passwordTitle: CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled ? '设置密码' : passwordTitle, modifyMember: modifyMember, ref: function ref(_ref25) {
|
1038
1042
|
return _this5.modifyPass = _ref25;
|
1039
1043
|
}, member: member, cancelModal: this.changePasswordCancel })
|
1040
1044
|
),
|
@@ -1235,7 +1239,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
|
|
1235
1239
|
while (1) {
|
1236
1240
|
switch (_context9.prev = _context9.next) {
|
1237
1241
|
case 0:
|
1238
|
-
_this6.api.
|
1242
|
+
_this6.api.RecordLoss(member).then(function (ret) {
|
1239
1243
|
var Success = ret.Success,
|
1240
1244
|
Msg = ret.Msg,
|
1241
1245
|
Data = ret.Data;
|