Browse Source

-----

featrue/v4.2
huziyuan 5 years ago
parent
commit
b285937ac3
5 changed files with 25 additions and 18 deletions
  1. 4
      pages/home/index/index.js
  2. 10
      pages/index/index.js
  3. 5
      pages/withdrawal/balance/index.js
  4. 21
      pages/withdrawal/balance/index.wxml
  5. 3
      pages/withdrawal/balance/index.wxss

4
pages/home/index/index.js

@ -137,9 +137,7 @@ Component({
} else if (e.currentTarget.id == 'toMyMoney') { } else if (e.currentTarget.id == 'toMyMoney') {
util.navigateTo('/pages/bank/bill/index') util.navigateTo('/pages/bank/bill/index')
} else if (e.currentTarget.id == 'agent50') { } else if (e.currentTarget.id == 'agent50') {
wx.navigateTo({
url: '/pages/agent/order/index?status=50&tabIndex=1'
})
util.navigateTo('/pages/agent/order/index?status=50&tabIndex=1')
} else if (e.currentTarget.id == 'agent51') { } else if (e.currentTarget.id == 'agent51') {
wx.navigateTo({ wx.navigateTo({
url: '/pages/agent/order/index?status=51&tabIndex=2' url: '/pages/agent/order/index?status=51&tabIndex=2'

10
pages/index/index.js

@ -45,7 +45,7 @@ Page({
name: '我的' name: '我的'
} }
], ],
pageIndex: 2,
pageIndex: 1,
safeBottom: app.globalData.safeBottom, safeBottom: app.globalData.safeBottom,
inited: false, inited: false,
path: null, path: null,
@ -170,16 +170,14 @@ Page({
pconfig.header = { 'Authorization': 'QNT ' + result.data.token } pconfig.header = { 'Authorization': 'QNT ' + result.data.token }
mconfig.header = { 'Authorization': 'QNT ' + result.data.token } mconfig.header = { 'Authorization': 'QNT ' + result.data.token }
storage.put('isTokenHaveStatus', true) storage.put('isTokenHaveStatus', true)
this.dataset({
isTokenHaveStatus:true
})
// 登录流程完成; // 登录流程完成;
if(!util.isEmpty(result.data.userToken)){ if(!util.isEmpty(result.data.userToken)){
this.handleUserToken(result.data.userToken) this.handleUserToken(result.data.userToken)
return return
}
}
getBaseInfo().then(result => { getBaseInfo().then(result => {
app.globalData.userInfo = result.data
app.globalData.userInfo = result.data
console.log(app.globalData.userInfo)
wx.hideLoading() wx.hideLoading()
this.defaultIndex() this.defaultIndex()
}).catch(err => { }).catch(err => {

5
pages/withdrawal/balance/index.js

@ -2,6 +2,7 @@
import { getBalanceInfo } from "../../api/payment" import { getBalanceInfo } from "../../api/payment"
const math = require('../../../utils/math') const math = require('../../../utils/math')
const util = require('../../../utils/util') const util = require('../../../utils/util')
const app = getApp()
Page({ Page({
/** /**
@ -18,7 +19,9 @@ Page({
this.setData({ this.setData({
accountMoney: result.data.accountMoney, accountMoney: result.data.accountMoney,
frozenMoney: math.minus(result.data.accountMoney, result.data.frozenMoney), frozenMoney: math.minus(result.data.accountMoney, result.data.frozenMoney),
CustomBar:app.globalData.CustomBar
StatusBar: app.globalData.StatusBar || 40,
CustomBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 80),
Custom: app.globalData.Custom
}) })
}).catch(err => { }).catch(err => {
wx.hideLoading() wx.hideLoading()

21
pages/withdrawal/balance/index.wxml

@ -1,16 +1,12 @@
<!--pages/withdrawal/balance/index.wxml--> <!--pages/withdrawal/balance/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs> <wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<view class="topArea"> <view class="topArea">
<view class="topHeadArea" style="top:{{CustomBar-32}}rpx">
<view class="topHeadAreaLeft" id="toRt" bindtap="toPage">
<image class="dhImg" src="/assets/myinfo/rtWhite.png"></image>
</view>
<view class="topText">我的钱包</view>
</view>
<view class="topHeadArea"></view>
<view> <view>
<image class="vipBjImg2" src="/assets/myinfo/vipTopBj.png"></image> <image class="vipBjImg2" src="/assets/myinfo/vipTopBj.png"></image>
</view> </view>
<view class="midArea">
<view class="midArea" style="top:{{CustomBar + 10}}px">
<view class="view1">我的余额(元)</view> <view class="view1">我的余额(元)</view>
<view class="view2">{{formate.numberFormat(accountMoney)}}</view> <view class="view2">{{formate.numberFormat(accountMoney)}}</view>
<view class="view3">提现中的金额:{{formate.numberFormat(frozenMoney)||0.00}}</view> <view class="view3">提现中的金额:{{formate.numberFormat(frozenMoney)||0.00}}</view>
@ -27,6 +23,17 @@
</view> </view>
<view class="cu-custom" style="height:{{CustomBar}}px;z-index: 99;">
<view class="cu-bar fixed" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}rpx;border-bottom:none">
<view id="toRt" class="action" bindtap="toPage">
<text class="weui_goback" style="color:white"></text>
</view>
<view class="content" style="top:{{StatusBar}}rpx;color:black;font-size:36rpx">
<view slot="content" class="text-white">我的钱包</view>
</view>
</view>
</view>
<!-- <view class="bg-white" style="padding: 48rpx;border-bottom:2rpx solid #eee"> <!-- <view class="bg-white" style="padding: 48rpx;border-bottom:2rpx solid #eee">
<view class="text-black text-sg">我的余额(元)</view> <view class="text-black text-sg">我的余额(元)</view>
<view class="text-black text-sl text-price" style="margin-top:12rpx">{{formate.numberFormat(accountMoney)}}</view> <view class="text-black text-sl text-price" style="margin-top:12rpx">{{formate.numberFormat(accountMoney)}}</view>

3
pages/withdrawal/balance/index.wxss

@ -20,13 +20,14 @@
} }
.topHeadAreaLeft { .topHeadAreaLeft {
width: 48rpx;
width: 100rpx;
height: 100%; height: 100%;
position: absolute; position: absolute;
top: 0rpx; top: 0rpx;
left: 0rpx; left: 0rpx;
padding-left: 20rpx; padding-left: 20rpx;
padding-top: 60rpx; padding-top: 60rpx;
z-index: 103;
} }
.topText { .topText {

Loading…
Cancel
Save