|
@@ -67,8 +67,8 @@ var app = new Vue({
|
|
|
slideIndex: 0,
|
|
slideIndex: 0,
|
|
|
tipsArr: [],
|
|
tipsArr: [],
|
|
|
tips: {
|
|
tips: {
|
|
|
- content: '测试用户1已被举报信息作假,点击查看详情',
|
|
|
|
|
- left: -90,
|
|
|
|
|
|
|
+ content: '',
|
|
|
|
|
+ left: -95,
|
|
|
},
|
|
},
|
|
|
tipParams: {
|
|
tipParams: {
|
|
|
page: 1,
|
|
page: 1,
|
|
@@ -178,8 +178,7 @@ var app = new Vue({
|
|
|
$.post('/api/member/complainList', _this.tipParams, function (res) {
|
|
$.post('/api/member/complainList', _this.tipParams, function (res) {
|
|
|
if (res.code == 'success'){
|
|
if (res.code == 'success'){
|
|
|
var dataList = typeof(res.data.data) != 'undefined'? res.data.data : [];
|
|
var dataList = typeof(res.data.data) != 'undefined'? res.data.data : [];
|
|
|
- console.log(dataList)
|
|
|
|
|
- if(res.data.total>0 && _this.tipsArr.length<res.data.total){
|
|
|
|
|
|
|
+ if(dataList.length>0 && res.data.total>0 && _this.tipsArr.length<res.data.total){
|
|
|
if(dataList.length<_this.tipParams.pageSize){
|
|
if(dataList.length<_this.tipParams.pageSize){
|
|
|
_this.tipsArr = _this.tipsArr.concat(dataList)
|
|
_this.tipsArr = _this.tipsArr.concat(dataList)
|
|
|
}else{
|
|
}else{
|
|
@@ -207,6 +206,7 @@ var app = new Vue({
|
|
|
initTips: function(index){
|
|
initTips: function(index){
|
|
|
var _this = this
|
|
var _this = this
|
|
|
var num = _this.tipsArr.length
|
|
var num = _this.tipsArr.length
|
|
|
|
|
+
|
|
|
if(num>0){
|
|
if(num>0){
|
|
|
var data = typeof(_this.tipsArr[index]) != 'undefined'? _this.tipsArr[index] : {};
|
|
var data = typeof(_this.tipsArr[index]) != 'undefined'? _this.tipsArr[index] : {};
|
|
|
if(!data){
|
|
if(!data){
|
|
@@ -215,6 +215,12 @@ var app = new Vue({
|
|
|
|
|
|
|
|
clearInterval(_this.tipsTimerId)
|
|
clearInterval(_this.tipsTimerId)
|
|
|
_this.tips.content = '提示:用户<em>'+data.user_nickname+'</em>因被举报核实已拉黑,点击查看'
|
|
_this.tips.content = '提示:用户<em>'+data.user_nickname+'</em>因被举报核实已拉黑,点击查看'
|
|
|
|
|
+ var strs = _this.tips.content? _this.tips.content.split('') : [];
|
|
|
|
|
+ if(strs.length>9){
|
|
|
|
|
+ _this.tips.width = (strs.length-9)*13
|
|
|
|
|
+ }else{
|
|
|
|
|
+ _this.tips.width = 280
|
|
|
|
|
+ }
|
|
|
_this.tipsTimerId = setInterval(function(){
|
|
_this.tipsTimerId = setInterval(function(){
|
|
|
if(_this.tips.left>=100){
|
|
if(_this.tips.left>=100){
|
|
|
_this.tips.left = -100;
|
|
_this.tips.left = -100;
|
|
@@ -225,7 +231,7 @@ var app = new Vue({
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
_this.tips.left += 0.25;
|
|
_this.tips.left += 0.25;
|
|
|
- }, 20);
|
|
|
|
|
|
|
+ }, 50);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|