|
|
@@ -98,8 +98,7 @@ var app = new Vue({
|
|
|
var total = sessionStorage.getItem('total');
|
|
|
var dataList = sessionStorage.getItem('dataList')
|
|
|
dataList = typeof (dataList) != 'undefined' && dataList != null? JSON.parse(dataList) : []
|
|
|
- var showSign = sessionStorage.getItem('showSign');
|
|
|
- this.showSign = typeof(showSign) != 'undefined' && showSign !== null? showSign : 1;
|
|
|
+
|
|
|
if(dataList && dataList.length>0 && !reset){
|
|
|
this.slideIndex = typeof (slideIndex) != 'undefined' && slideIndex>0? slideIndex : 0
|
|
|
this.slideIndex = this.slideIndex <= dataList.length? this.slideIndex : 0
|
|
|
@@ -153,9 +152,8 @@ var app = new Vue({
|
|
|
// 隐藏签到
|
|
|
hideSign: function(type){
|
|
|
this.showSign = 0;
|
|
|
- if(type == 1){
|
|
|
- sessionStorage.setItem('showSign', 0)
|
|
|
- }
|
|
|
+ $.post('/api/member/setSign', {}, function (res) {
|
|
|
+ }, "json");
|
|
|
},
|
|
|
// 获取用户信息
|
|
|
getInfo: function () {
|
|
|
@@ -164,7 +162,7 @@ var app = new Vue({
|
|
|
if (res.code == 'success') {
|
|
|
_this.memberInfo = res.data
|
|
|
_this.hasFollow = typeof(_this.memberInfo.is_follow) != 'undefined'? _this.memberInfo.is_follow : 0;
|
|
|
-
|
|
|
+ _this.showSign = typeof(_this.memberInfo.showSign) != 'undefined'? _this.memberInfo.showSign : 1;
|
|
|
/*if (_this.memberInfo.user_status != 1) {
|
|
|
_this.matchList = [];
|
|
|
$.showLoading('账号已被冻结,请联系客服', 'text');
|