Browse Source

no message

feature/v1.1
xpz2018 5 years ago
parent
commit
843a1b1faf
4 changed files with 31 additions and 7 deletions
  1. 4
      pages/home/index/index.js
  2. 4
      pages/home/index/index.wxml
  3. 4
      pages/process/index/index.js
  4. 26
      pages/process/index/index.wxml

4
pages/home/index/index.js

@ -1,7 +1,6 @@
// pages/stock/index.js // pages/stock/index.js
import Dialog from '../../../components/dialog/dialog' import Dialog from '../../../components/dialog/dialog'
import { finalizeToken } from "../../../api/user" import { finalizeToken } from "../../../api/user"
import { getBaseInfo } from "../../../api/saas"
const util = require('../../../utils/util') const util = require('../../../utils/util')
const event = require('../../../utils/event') const event = require('../../../utils/event')
const storage = require('../../../utils/storage') const storage = require('../../../utils/storage')
@ -36,9 +35,6 @@ Component({
onRestart: function () { onRestart: function () {
this.setUserInfo() this.setUserInfo()
this.data.firstShow = true this.data.firstShow = true
getBaseInfo().then(result => {
}).catch(err => {
})
}, },
onEvent: function (message) { onEvent: function (message) {
if (message.what == 82) { if (message.what == 82) {

4
pages/home/index/index.wxml

@ -27,7 +27,7 @@
</view> </view>
</van-cell> </van-cell>
<!-- 授信信息 --> <!-- 授信信息 -->
<view class="bg-white" style="margin-top: 16rpx">
<!-- <view class="bg-white" style="margin-top: 16rpx">
<view class="flex" style="padding: 20rpx 32rpx"> <view class="flex" style="padding: 20rpx 32rpx">
<text class="text-lg text-bold">千鸟代付额度</text> <text class="text-lg text-bold">千鸟代付额度</text>
<text class="text-df text-gray" style="padding-top:6rpx;margin-left:8rpx"></text> <text class="text-df text-gray" style="padding-top:6rpx;margin-left:8rpx"></text>
@ -45,7 +45,7 @@
<view class="text-gray text-sm">查看订单明细</view> <view class="text-gray text-sm">查看订单明细</view>
</view> </view>
</view> </view>
</view>
</view> -->
<!-- 企业信息 --> <!-- 企业信息 -->
<view style="height:16rpx"></view> <view style="height:16rpx"></view>
<van-cell-group> <van-cell-group>

4
pages/process/index/index.js

@ -61,6 +61,9 @@ Component({
orderList: function (e) { orderList: function (e) {
wx.navigateTo({ url: '/pages/process/order-list/index' }) wx.navigateTo({ url: '/pages/process/order-list/index' })
}, },
agentList: function (e) {
wx.navigateTo({ url: '/pages/process/agent-list/index' })
},
checkList: function (e) { checkList: function (e) {
// if(!app.userInfo.isSaasPerssion){ // if(!app.userInfo.isSaasPerssion){
// Dialog.alert({ title: '温馨提示', message: '您还不是纸通宝SAAS的授权客户,无法使用,如有疑问请联系相关客服人员。' }).then(() => { // Dialog.alert({ title: '温馨提示', message: '您还不是纸通宝SAAS的授权客户,无法使用,如有疑问请联系相关客服人员。' }).then(() => {
@ -102,6 +105,7 @@ Component({
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
}, },
showSheet: function(){ showSheet: function(){
// this.setData({ show: true }) // this.setData({ show: true })

26
pages/process/index/index.wxml

@ -98,9 +98,33 @@
</view> </view>
</view> --> </view> -->
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view style="padding: 0rpx 28rpx;margin-top:24rpx" wx:if="{{!userInfo.creditLine}}">
<image style="width:694rpx;height:200rpx" src="/assets/image/icon-banner.png" bindtap="toAuths"></image> <image style="width:694rpx;height:200rpx" src="/assets/image/icon-banner.png" bindtap="toAuths"></image>
</view> </view>
<view style="padding: 0rpx 28rpx;margin-top:24rpx" wx:else>
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 8rpx 0rpx">
<view class="flex flex-justify" style="padding: 0rpx 28rpx 24rpx 28rpx">
<view class="text-black text-sg text-bold">千鸟代付额度</view>
</view>
<view class="flex" style="padding:0rpx 0rpx 24rpx 0rpx" bindtap="agentList">
<view style="flex:1;padding:0rpx 32rpx;margin-right:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">剩余代付额度</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{userInfo.availableCreditLine}}</view>
<view class="text-gray text-sm">查看代付详情</view>
</view>
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">待付款订单</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{userInfo.usedCreditLine}}</view>
</view>
</view>
</view>
</view>
<view style="height:24rpx;"></view> <view style="height:24rpx;"></view>

Loading…
Cancel
Save