|
|
const loading = require('plugin/loading'),
|
|
|
tip = require('plugin/tip'),
|
|
|
lazyLoad = require('yoho-jquery-lazyload');
|
|
|
const tip = require('plugin/tip');
|
|
|
|
|
|
require('common');
|
|
|
|
...
|
...
|
@@ -67,7 +65,7 @@ LeaveMSGView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
|
|
|
api.leaveMsg(content)
|
|
|
.done(function() {
|
|
|
self.trigger('save.LeaveMSGView', '留言成功,');
|
|
|
self.trigger('save.LeaveMSGView', '留言成功');
|
|
|
self.$input.val('');
|
|
|
})
|
|
|
.fail(function() {
|
...
|
...
|
@@ -196,6 +194,8 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
},
|
|
|
|
|
|
post(data) {
|
|
|
var params;
|
|
|
|
|
|
if (this.isSending) {
|
|
|
tip.show('正在发送..');
|
|
|
return;
|
...
|
...
|
@@ -204,7 +204,8 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
|
|
|
const self = this,
|
|
|
elem = this.elem;
|
|
|
var params = {
|
|
|
|
|
|
params = {
|
|
|
stars: ++this.rank,
|
|
|
promoter: 1,
|
|
|
reasonIds: '',
|
...
|
...
|
|