zhengshuiqi 3 years ago
parent
commit
54a4be7c11
  1. 2
      pages/account/settings.vue
  2. 19
      pages/index/index.vue

2
pages/account/settings.vue

@ -34,7 +34,7 @@
<view> <view>
{{titleDow}} {{titleDow}}
</view> </view>
<a style="position: absolute;right: 0px;bottom: 0%;width: 50%;height: 44px;z-index: 111;"></a> <!-- <view style="position: absolute;right: 0px;bottom: 0%;width: 50%;height: 44px;z-index: 111;"></view> -->
</uni-popup-dialog> </uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>

19
pages/index/index.vue

@ -68,7 +68,7 @@
page_size: 100 page_size: 100
}, },
Swiper_H: 826, Swiper_H: 826,
Swiper_Hb: 0, Swiper_Hb: 375,
open_img: [], open_img: [],
indicatorDots: true, indicatorDots: true,
autoplay: true, autoplay: true,
@ -155,7 +155,7 @@
this.getList() this.getList()
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, 2000) }, 100)
}, },
// onReady() { // onReady() {
// //
@ -204,7 +204,7 @@
onLoad() { onLoad() {
let that = this; let that = this;
let s = 0; let s = 0;
let time = setInterval(() => { // let time = setInterval(() => {
uni.getNetworkType({ uni.getNetworkType({
success: (res) => { success: (res) => {
console.log(res.networkType, s); console.log(res.networkType, s);
@ -216,7 +216,7 @@
}) })
} else if (res.networkType !== 'none') { } else if (res.networkType !== 'none') {
that.typee = 2; that.typee = 2;
clearInterval(time); // clearInterval(time);
let home = 'HOME' let home = 'HOME'
this.getIndex(home) this.getIndex(home)
this.isLogin = uni.getStorageSync('isLogin') this.isLogin = uni.getStorageSync('isLogin')
@ -240,8 +240,8 @@
} }
} }
}) })
s++; // s++;
}, 4000); // }, 10);
}, },
mounted() { mounted() {
@ -253,7 +253,7 @@
if (this.open_img) { if (this.open_img) {
setTimeout(() => { setTimeout(() => {
this.getCountdownTime() this.getCountdownTime()
}, 2000) }, 100)
} else if (!this.open_img) { } else if (!this.open_img) {
this.countdownTime2 = 0 this.countdownTime2 = 0
} }
@ -536,14 +536,12 @@
// //
getIndex(code) { getIndex(code) {
let data = { let data = {
_action: 'getpagedata', _action: 'getpagedata',
pagecode: '' pagecode: ''
} }
data.pagecode = code data.pagecode = code
defaultRequest(data).then(res => { defaultRequest(data).then(res => {
if (res.error == 0) { if (res.error == 0) {
this.indexDate = res.data this.indexDate = res.data
console.log(this.indexDate, '首页配置') console.log(this.indexDate, '首页配置')
@ -1258,6 +1256,7 @@
</scroll-view> </scroll-view>
</view> --> </view> -->
</view> </view>
<!-- 首页标题 -->
<view class="navigation_scroll " :class="isScrollShow?'isScrollShow2':'' "> <view class="navigation_scroll " :class="isScrollShow?'isScrollShow2':'' ">
<scroll-view class="scroll-view_H" scroll-x="true" :show-scrollbar="true"> <scroll-view class="scroll-view_H" scroll-x="true" :show-scrollbar="true">
<view :class="scroll_active==index?'scroll_active':''" v-for="(item,index) in scrollList" <view :class="scroll_active==index?'scroll_active':''" v-for="(item,index) in scrollList"
@ -1310,7 +1309,7 @@
style="display: block !important;" :style="{ height:Swiper_Hb +'rpx'}"> style="display: block !important;" :style="{ height:Swiper_Hb +'rpx'}">
<swiper-item v-for="(item1,index1) in item.blocks" :key="item1.block_id"> <swiper-item v-for="(item1,index1) in item.blocks" :key="item1.block_id">
<view class="swiper-item " v-if="item1.block_status=='NORMAL'" <view class="swiper-item " v-if="item1.block_status=='NORMAL'"
:style="{width:(item.zone_code=='BANNER1')?item.zone_colum+'rpx':'',heigth:'auto'}"> :style="{width:(item.zone_code=='BANNER1')?item.zone_colum+'rpx':'',height:Swiper_Hb +'rpx'}">
<image :src="item1.block_pic" mode="" @click="imgTo(item1)"></image> <image :src="item1.block_pic" mode="" @click="imgTo(item1)"></image>
</view> </view>
</swiper-item> </swiper-item>

Loading…
Cancel
Save