Ver código fonte

功能优化

guessPrice
sui 5 anos atrás
pai
commit
324933cbf0
4 arquivos alterados com 13 adições e 9 exclusões
  1. +1
    -1
      496_dongfengqichen/app.js
  2. +1
    -1
      496_dongfengqichen/pages/component/tabBar/index.wxss
  3. +10
    -6
      496_dongfengqichen/pages/index/index.js
  4. +1
    -1
      496_dongfengqichen/pages/myCenter/myCenter.wxml

+ 1
- 1
496_dongfengqichen/app.js Ver arquivo

@@ -28,7 +28,7 @@ App({
openid: "",//OPENID
session_key: "",//session_key
openidSuccessFuc: null,//方法回调
nowPage:'4',//当前tabBar
nowPage:'1',//当前tabBar
isRegister:false,//是否已注册
userMobile:null,//用户手机号
isFirstLogin:true,//是否为第一次登录

+ 1
- 1
496_dongfengqichen/pages/component/tabBar/index.wxss Ver arquivo

@@ -7,7 +7,7 @@
width:750rpx;
height:150rpx;
box-sizing: border-box;
border-top: 3rpx solid #B8B6B9;
border-top: 4rpx solid #B8B6B9;
display: flex;
align-items: center;
justify-content: center;

+ 10
- 6
496_dongfengqichen/pages/index/index.js Ver arquivo

@@ -32,18 +32,14 @@ Page({
mainShow:false,
},
onLoad: function () {
if (app.globalData.openid) {
this.loadFun();
} else {
app.globalData.openidSuccessFuc = this.loadFun;
if (app.globalData.isFirstLogin) {
this.getStartAdvertising();
}
},
loadFun: function () {
if (app.globalData.isFirstLogin) {
this.getStartAdvertising();
this.getHomeBanner();//获取banner
this.getHomeVideo();//获取视频
this.getUserLocation();//获取用户当前位置
this.getOrderInfo();
} else {
this.setData({
@@ -83,6 +79,7 @@ Page({
this.setData({
phoneInputShow: true
})
this.getUserLocation();//获取用户当前位置
if (e.detail.errMsg=='getPhoneNumber:ok'){
this.setData({
siteSelect: true,
@@ -271,6 +268,13 @@ Page({
getStartAdvertising: function () {//获取开屏广告
app.wxRequest(app.globalData.urlRoot +"home/getStartAdvertising",{},res=>{
if(res.code==200){
if (app.globalData.openid) {
this.loadFun();
} else {
app.globalData.openidSuccessFuc = this.loadFun;
}

this.setData({
startAdvertisingUrl: res.data.picurl,
mainShow:true

+ 1
- 1
496_dongfengqichen/pages/myCenter/myCenter.wxml Ver arquivo

@@ -122,7 +122,7 @@
<view class="detachmentGroup" wx:for="{{shareFriendList}}" wx:key="index">
<view class="detachmentGroupLeft">
<view class="recordHeadGroup">
<image class="recordUserImg" src="{{item.avatarUrl}}"></image>
<image class="recordUserImg" src="{{item.avatarUrl || imgUrl+'/images/defaultHead.png'}}"></image>
</view>
<view class="ranksName">{{item.nickName}}</view>
</view>

Carregando…
Cancelar
Salvar