|
|
|
@ -12,6 +12,8 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
// register 自定义登录字段 |
|
|
|
register: -1, |
|
|
|
typee: '', |
|
|
|
mycurrent: 0, |
|
|
|
isScrollShow: false, |
|
|
|
@ -580,8 +582,15 @@ |
|
|
|
} |
|
|
|
if (item.zone_code == 'HOMEAD') { |
|
|
|
item.blocks.map(item1 => { |
|
|
|
console.log(item1); |
|
|
|
console.log(res); |
|
|
|
console.log('HOMEAD=================================='); |
|
|
|
// console.log(this.Swiper_H) |
|
|
|
if (res.error != 0) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../login/index' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
if (item.zone_code == 'BANNER1') { |
|
|
|
@ -608,7 +617,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
if (item.zone_code == 'LIST1') { |
|
|
|
console.log(item.zone_more_link) |
|
|
|
// console.log(item.zone_more_link) |
|
|
|
const i = item.zone_more_link.indexOf('gid=') |
|
|
|
// console.log(i) |
|
|
|
const ids = item.zone_more_link.substring(i + 4, item |
|
|
|
@ -1007,13 +1016,32 @@ |
|
|
|
let data = { |
|
|
|
_action: 'getinfo' |
|
|
|
} |
|
|
|
let that = this |
|
|
|
defaultRequest(data).then(res => { |
|
|
|
////console.log(res,'用户信息') |
|
|
|
console.log(res,'用户信息') |
|
|
|
if (res.error == -1) { |
|
|
|
uni.setStorageSync('isLogin', 0) |
|
|
|
} else if (res.error == 0) { |
|
|
|
uni.setStorageSync('isLogin', 1) |
|
|
|
} |
|
|
|
that.register = res.error |
|
|
|
console.log(that.register); |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 小广告判断登录 |
|
|
|
registers() { |
|
|
|
let data = { |
|
|
|
_action: 'getinfo' |
|
|
|
} |
|
|
|
defaultRequest(data).then(res => { |
|
|
|
console.log(res,'用户信息') |
|
|
|
if (res.error == -1) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../login/index' |
|
|
|
}) |
|
|
|
} else if (res.error == 0) { |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1326,9 +1354,13 @@ |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
<!-- HOMEAD --> |
|
|
|
<view v-if="register == -1"> |
|
|
|
<view class="HOMEAD" v-if="item.zone_code=='HOMEAD' && item.zone_status=='NORMAL'"> |
|
|
|
<image :src="item.blocks[0].block_pic":style="{height:(item.zone_code=='HOMEAD')?item.zone_column+'rpx':''}" mode="" |
|
|
|
@click="imgTo(item.blocks[0])"></image> |
|
|
|
<!-- class="discount page_padding" --> |
|
|
|
<image :src="item.blocks[0].block_pic" style="width: 92%;display: flex;justify-content: center;align-items: center;margin: 0 auto;object-fit: cover;" |
|
|
|
:style="{height:(item.zone_code=='HOMEAD')?item.zone_column+'rpx':''}" mode="" |
|
|
|
@click="registers"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- TWOPIC --> |
|
|
|
<view class="TWOPIC" v-if="item.zone_code=='TWOPIC' && item.zone_status=='NORMAL'"> |
|
|
|
|