16.js
5.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
webpackJsonp([16],{
/***/ 325:
/* no static exports found */
/* all exports used */
/*!**************************************!*\
!*** ./src/pages/NameCardRemark.vue ***!
\**************************************/
/***/ (function(module, exports, __webpack_require__) {
var Component = __webpack_require__(/*! ../../~/vue-loader/lib/component-normalizer */ 2)(
/* script */
__webpack_require__(/*! !babel-loader!../../~/vux-loader/src/script-loader.js!../../~/vue-loader/lib/selector?type=script&index=0!./NameCardRemark.vue */ 413),
/* template */
__webpack_require__(/*! !../../~/vue-loader/lib/template-compiler/index?{"id":"data-v-23721aed"}!../../~/vux-loader/src/before-template-compiler-loader.js!../../~/vux-loader/src/template-loader.js!../../~/vue-loader/lib/selector?type=template&index=0!./NameCardRemark.vue */ 451),
/* scopeId */
null,
/* cssModules */
null
)
Component.options.__file = "D:\\Cassie-project\\netease-h5-demo\\src\\pages\\NameCardRemark.vue"
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
if (Component.options.functional) {console.error("[vue-loader] NameCardRemark.vue: functional components are not supported with templates, they should use render functions.")}
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-23721aed", Component.options)
} else {
hotAPI.reload("data-v-23721aed", Component.options)
}
})()}
module.exports = Component.exports
/***/ }),
/***/ 413:
/* no static exports found */
/* all exports used */
/*!**************************************************************************************************************************************************!*\
!*** ./~/babel-loader/lib!./~/vux-loader/src/script-loader.js!./~/vue-loader/lib/selector.js?type=script&index=0!./src/pages/NameCardRemark.vue ***!
\**************************************************************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _utils = __webpack_require__(/*! ../utils */ 16);
var _utils2 = _interopRequireDefault(_utils);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = {
data: function data() {
return {
alias: ''
};
},
mounted: function mounted() {
var info = this.$store.state.userInfos[this.account] || {};
this.alias = info.alias;
},
computed: {
account: function account() {
return this.$route.params.userId;
}
},
methods: {
setAlias: function setAlias() {
this.alias = this.alias.replace(/\n/g, ' ').replace(/\r/g, '');
if (/^\s*$/.test(this.alias)) {} else if (this.alias.length > 16) {
this.$vux.alert.show({
title: '备注不能超过16个字符'
});
return;
}
this.$store.dispatch('updateFriend', {
account: this.account,
alias: this.alias
});
window.history.go(-1);
}
}
};
module.exports = exports['default'];
/***/ }),
/***/ 451:
/* no static exports found */
/* all exports used */
/*!*****************************************************************************************************************************************************************************************************************************************************!*\
!*** ./~/vue-loader/lib/template-compiler?{"id":"data-v-23721aed"}!./~/vux-loader/src/before-template-compiler-loader.js!./~/vux-loader/src/template-loader.js!./~/vue-loader/lib/selector.js?type=template&index=0!./src/pages/NameCardRemark.vue ***!
\*****************************************************************************************************************************************************************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', {
staticClass: "g-inherit m-article"
}, [_c('x-header', {
staticClass: "m-tab",
attrs: {
"left-options": {
backText: ' '
}
}
}, [_c('h1', {
staticClass: "m-tab-top"
}, [_vm._v("[ 备注名 ]")]), _vm._v(" "), _c('a', {
attrs: {
"slot": "left"
},
slot: "left"
})]), _vm._v(" "), _c('group', {
staticClass: "u-card"
}, [_c('x-input', {
staticClass: "u-ipt-default",
attrs: {
"type": "text",
"required": false,
"max": 16,
"placeholder": "请输入备注名"
},
model: {
value: (_vm.alias),
callback: function($$v) {
_vm.alias = $$v
},
expression: "alias"
}
}, [_c('span', {
attrs: {
"slot": "label"
},
slot: "label"
}, [_vm._v("备注:")])])], 1), _vm._v(" "), _c('div', [_c('x-button', {
attrs: {
"type": "primary",
"action-type": "button"
},
nativeOn: {
"click": function($event) {
_vm.setAlias($event)
}
}
}, [_vm._v("设置备注名")])], 1)], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api").rerender("data-v-23721aed", module.exports)
}
}
/***/ })
});
//# sourceMappingURL=16.js.map