Kaynağa Gözat

bug修复

guessPrice
suizhijia 5 yıl önce
ebeveyn
işleme
87638c186b
7 değiştirilmiş dosya ile 43 ekleme ve 18 silme
  1. +1
    -0
      496_dongfengqichen/pages/myCenter/myCenter.js
  2. +1
    -1
      496_dongfengqichen/pages/poster/poster.js
  3. +9
    -6
      496_dongfengqichen/pages/scout/scout.js
  4. +4
    -2
      496_dongfengqichen/pages/scout/scout.wxml
  5. +7
    -5
      496_dongfengqichen/pages/scout/scout.wxss
  6. +18
    -1
      496_dongfengqichen/pages/yuyue/yuyue.js
  7. +3
    -3
      496_dongfengqichen/pages/yuyue/yuyue.wxml

+ 1
- 0
496_dongfengqichen/pages/myCenter/myCenter.js Dosyayı Görüntüle

// if (!app.globalData.isRegister) { // if (!app.globalData.isRegister) {
// this.getOrderInfo(); // this.getOrderInfo();
// } // }
console.log(app.globalData.userInfoData);
if (app.globalData.userInfoData) { if (app.globalData.userInfoData) {
this.data.userData.avatarUrl = app.globalData.userInfoData.avatarUrl; this.data.userData.avatarUrl = app.globalData.userInfoData.avatarUrl;
this.data.userData.nickName = app.globalData.userInfoData.nickName; this.data.userData.nickName = app.globalData.userInfoData.nickName;

+ 1
- 1
496_dongfengqichen/pages/poster/poster.js Dosyayı Görüntüle

if(res.code==200){ if(res.code==200){
if(res.data){ if(res.data){
if (res.data.certificationNum){ if (res.data.certificationNum){
res.data.certificationNum = 9990;
// res.data.certificationNum = 9990;
this.data.rankNum = res.data.certificationNum.toString().split(""); this.data.rankNum = res.data.certificationNum.toString().split("");
// console.log(this.data.rankNum); // console.log(this.data.rankNum);
// } // }

+ 9
- 6
496_dongfengqichen/pages/scout/scout.js Dosyayı Görüntüle

userData:{ userData:{
avatarUrl: null, avatarUrl: null,
nickName: null, nickName: null,
userLevel: 0
userLevel: 1
}, },
isbtn:true,//防重复点击 isbtn:true,//防重复点击
maskid:0,//现实的弹窗 maskid:0,//现实的弹窗
} }
this.data.userData.avatarUrl = e.detail.userInfo.avatarUrl; this.data.userData.avatarUrl = e.detail.userInfo.avatarUrl;
this.data.userData.nickName = e.detail.userInfo.nickName; this.data.userData.nickName = e.detail.userInfo.nickName;
this.data.userData.userLevel = 0;
this.data.userData.userLevel = 1;
this.setData({ this.setData({
userData: this.data.userData
userData: this.data.userData,
iconShow:false
}) })
app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName);
wx.navigateTo({
url:'../poster/poster'
})
// wx.navigateTo({
// url:'../poster/poster'
// })
} }
}, },
getUserInfo:function(e){//获取个人信息 getUserInfo:function(e){//获取个人信息
* 海报页 * 海报页
*/ */
getPoster:function(){ getPoster:function(){
console.log(this.data.authenticationStatus);
// return;
if (this.data.authenticationStatus) { if (this.data.authenticationStatus) {
wx.navigateTo({ wx.navigateTo({
url: '../poster/poster' url: '../poster/poster'

+ 4
- 2
496_dongfengqichen/pages/scout/scout.wxml Dosyayı Görüntüle

<image class="bg" src="{{imgUrl+'/newImages/scoutbg.jpg?v=004'}}"></image> <image class="bg" src="{{imgUrl+'/newImages/scoutbg.jpg?v=004'}}"></image>
<image class="reward" wx:if="{{maskid<4}}" src="{{imgUrl+'/newImages2/6.png?v=003'}}"></image> <image class="reward" wx:if="{{maskid<4}}" src="{{imgUrl+'/newImages2/6.png?v=003'}}"></image>
<image class="reward" wx:if="{{maskid>3}}" src="{{imgUrl+'/newImages2/7.png?v=002'}}"></image> <image class="reward" wx:if="{{maskid>3}}" src="{{imgUrl+'/newImages2/7.png?v=002'}}"></image>
<image class="scoutbtn1" bindtap="getPoster" src="{{imgUrl+'/newImages3/7.png'}}"></image>
<view style="position:relative;">
<image class="scoutbtn1" bindtap="getPoster" src="{{imgUrl+'/newImages3/7.png'}}"></image>
<button class="btn2" style="min-height:0rpx;width:100%;height:100%;" wx:if="{{iconShow}}" open-type="getUserInfo" bindgetuserinfo="getUserWxMsg"></button>
</view>
<!-- <image class="scoutbtn1" wx:if="{{maskid>3}}" bindtap="getPoster" src="{{imgUrl+'/newImages2/8.png'}}"></image> --> <!-- <image class="scoutbtn1" wx:if="{{maskid>3}}" bindtap="getPoster" src="{{imgUrl+'/newImages2/8.png'}}"></image> -->
<!-- <image class="scoutbtn1" wx:if="{{maskid<4}}" bindtap="getPoster" src="{{imgUrl+'/newImages2/8.png'}}"></image> --> <!-- <image class="scoutbtn1" wx:if="{{maskid<4}}" bindtap="getPoster" src="{{imgUrl+'/newImages2/8.png'}}"></image> -->
<button class="btn2" wx:if="{{iconShow}}" open-type="getUserInfo" bindgetuserinfo="getUserWxMsg"></button>
</view> </view>
<view class="mask" wx:if="{{maskShow}}"> <view class="mask" wx:if="{{maskShow}}">
<view class="tipContent" wx:if="{{tipShow}}"> <view class="tipContent" wx:if="{{tipShow}}">

+ 7
- 5
496_dongfengqichen/pages/scout/scout.wxss Dosyayı Görüntüle

margin: 20rpx auto 40rpx auto; margin: 20rpx auto 40rpx auto;
} }
.btn2{ .btn2{
text-align: center;
width: 654rpx;
height: 58rpx;
background-color: #2a558d;
margin: -110rpx auto 35rpx auto;
width: 100%;
height: 100%;
position: absolute;
top:0;
left: 0;
margin: 0;
padding: 0;
opacity:0; opacity:0;
} }
.mask { .mask {

+ 18
- 1
496_dongfengqichen/pages/yuyue/yuyue.js Dosyayı Görüntüle

parentOpenid: app.globalData.parentOpenid,//好友openid parentOpenid: app.globalData.parentOpenid,//好友openid
scene: app.globalData.sceneSource scene: app.globalData.sceneSource
}, },
mobileType:2
mobileType:2,
userData:null
}, },
ready:function(){ ready:function(){
if (app.globalData.openid) { if (app.globalData.openid) {
subscribeData: this.data.subscribeData subscribeData: this.data.subscribeData
}) })
} }
if (app.globalData.userInfoData) {
this.setData({
userData: app.globalData.userInfoData
})
}
this.getUserLocation();//获取用户当前位置 this.getUserLocation();//获取用户当前位置
}, },
getDistributorList: function (longitude, latitude) {//获取经销商列表 getDistributorList: function (longitude, latitude) {//获取经销商列表
this.setData({ this.setData({
mobileType: this.data.mobileType==1?2:1 mobileType: this.data.mobileType==1?2:1
}) })
},
getUserWxMsg:function(e){//通过微信获取用户信息
if (e.detail.errMsg == "getUserInfo:ok") {
this.data.userData = {};
this.data.userData.avatarUrl = e.detail.userInfo.avatarUrl;
this.data.userData.nickName = e.detail.userInfo.nickName;
this.setData({
userData: this.data.userData
})
app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName);
}
} }
} }
}) })

+ 3
- 3
496_dongfengqichen/pages/yuyue/yuyue.wxml Dosyayı Görüntüle

</view> </view>
</view> </view>
</view> </view>
<view class="subscribeBtn" bindtap="subscribeFun" style="margin-top:34rpx;">
<image style="width:100%;height:100%;" src="{{imgUrl+'/newImages3/21.png'}}"></image>
<button wx:if="{{userData}}" class="getUserMsgBtn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="getUserWxMsg" style="width:100%;height:100%;min-height:0;padding:0;margin:0;"></button>
<view class="subscribeBtn" style="margin-top:34rpx;">
<image style="width:100%;height:100%;" bindtap="subscribeFun" src="{{imgUrl+'/newImages3/21.png'}}"></image>
<button wx:if="{{!userData}}" class="getUserMsgBtn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="getUserWxMsg" style="width:100%;height:100%;min-height:0;padding:0;margin:0;"></button>
</view> </view>
<view class="subscribeBtn" bindtap="lookMore"> <view class="subscribeBtn" bindtap="lookMore">
<image style="width:100%;height:100%;" src="{{imgUrl+'/newImages3/22.png'}}"></image> <image style="width:100%;height:100%;" src="{{imgUrl+'/newImages3/22.png'}}"></image>

Yükleniyor…
İptal
Kaydet