*/ | */ | ||||
wxRequest: function (url, params, callback, thisArg, methods, openid) { | wxRequest: function (url, params, callback, thisArg, methods, openid) { | ||||
let that = this; | let that = this; | ||||
var httpUrl = url; | var httpUrl = url; | ||||
var str = ""; | var str = ""; | ||||
var count = 0; | var count = 0; | ||||
method: methods, | method: methods, | ||||
header: { | header: { | ||||
"content-type": "application/x-www-form-urlencoded", | "content-type": "application/x-www-form-urlencoded", | ||||
"OPENID": this.globalData.openid, | |||||
"VERSION":100 | |||||
"VERSION": '100', | |||||
"OPENID": this.globalData.openid | |||||
}, | }, | ||||
success: function (re) { | success: function (re) { | ||||
// if (re.data.code == -1002) { | // if (re.data.code == -1002) { | ||||
method: methods, | method: methods, | ||||
header: { | header: { | ||||
"OPENID": this.globalData.openid, | "OPENID": this.globalData.openid, | ||||
"VERSION": '100' | |||||
}, | }, | ||||
success: function (re) { | success: function (re) { | ||||
if (re.data.code == -1002) { | if (re.data.code == -1002) { |
<view class="all" wx:if="{{mainShow}}"> | <view class="all" wx:if="{{mainShow}}"> | ||||
<view class="main" wx:if="{{isStartAdvertising==0 || !isStartAdvertisingShow}}"> | <view class="main" wx:if="{{isStartAdvertising==0 || !isStartAdvertisingShow}}"> | ||||
<view class="contentFrame"> | <view class="contentFrame"> | ||||
<image style="width:750rpx;" mode="widthFix" src="{{kvurl}}"></image> | |||||
<image style="width:750rpx;height:0rpx;" mode="widthFix" src="{{kvurl}}"></image> | |||||
<image style="width:750rpx;height:331rpx;" src="{{imgUrl+'/images/indexText.png'}}"></image> | <image style="width:750rpx;height:331rpx;" src="{{imgUrl+'/images/indexText.png'}}"></image> | ||||
<view class="swiperFrame"> | <view class="swiperFrame"> | ||||
<swiper class="swiperSty" autoplay current="{{swiperCurrent}}" bindchange="swiperChange"> | <swiper class="swiperSty" autoplay current="{{swiperCurrent}}" bindchange="swiperChange"> |
} | } | ||||
}, | }, | ||||
changeScroll:function(){ | changeScroll:function(){ | ||||
// this.data.setInt = setInterval(()=>{ | |||||
// this.setData({ | |||||
// scrollNum: this.data.scrollNum+=1 | |||||
// }) | |||||
// },30); | |||||
this.data.setInt = setInterval(()=>{ | |||||
this.setData({ | |||||
scrollNum: this.data.scrollNum+=1 | |||||
}) | |||||
},30); | |||||
}, | }, | ||||
getMore:function(){ | getMore:function(){ | ||||
if (!this.data.isMore){ | if (!this.data.isMore){ |
justify-content: center; | justify-content: center; | ||||
width: 161rpx; | width: 161rpx; | ||||
height: 161rpx; | height: 161rpx; | ||||
border-radius: 50%; | |||||
margin: 0 auto; | margin: 0 auto; | ||||
margin-bottom: 27rpx; | margin-bottom: 27rpx; | ||||
overflow: hidden; | overflow: hidden; | ||||
.defaultHead{ | .defaultHead{ | ||||
width: 100%; | width: 100%; | ||||
height: 100%; | height: 100%; | ||||
border-radius: 50%; | |||||
} | } | ||||
.loginBtn{ | .loginBtn{ | ||||
position: relative; | position: relative; |