52 changed files with 1043 additions and 145 deletions
Split View
Diff Options
-
12app.json
-
BINassets/image/icon-banner.png
-
105colorui/main.wxss
-
66pages/client/bank-add/index.js
-
5pages/client/bank-add/index.json
-
35pages/client/bank-add/index.wxml
-
1pages/client/bank-add/index.wxss
-
44pages/client/bank-list/index.js
-
6pages/client/bank-list/index.json
-
30pages/client/bank-list/index.wxml
-
40pages/client/bank-list/index.wxss
-
91pages/client/home/index.js
-
12pages/client/home/index.json
-
68pages/client/home/index.wxml
-
9pages/client/home/index.wxss
-
53pages/client/index/index.js
-
11pages/client/index/index.json
-
18pages/client/index/index.wxml
-
1pages/client/index/index.wxss
-
66pages/client/withdrawal/index.js
-
7pages/client/withdrawal/index.json
-
27pages/client/withdrawal/index.wxml
-
1pages/client/withdrawal/index.wxss
-
90pages/client/workbench/index.js
-
12pages/client/workbench/index.json
-
49pages/client/workbench/index.wxml
-
12pages/client/workbench/index.wxss
-
66pages/home/customer-info/index.js
-
7pages/home/customer-info/index.json
-
47pages/home/customer-info/index.wxml
-
1pages/home/customer-info/index.wxss
-
5pages/home/customer-list/index.js
-
0pages/home/customer-list/index.json
-
5pages/home/customer-list/index.wxml
-
0pages/home/customer-list/index.wxss
-
34pages/home/employee/index.js
-
3pages/home/employee/index.json
-
4pages/home/employee/index.wxml
-
3pages/home/index/index.js
-
32pages/home/index/index.wxml
-
2pages/home/mobile/index.js
-
20pages/home/qrcode/index.js
-
3pages/home/qrcode/index.json
-
4pages/home/qrcode/index.wxml
-
1pages/home/qrcode/index.wxss
-
27pages/htmls/auths/index.js
-
3pages/htmls/auths/index.json
-
9pages/htmls/auths/index.wxml
-
6pages/login/index.js
-
2pages/message/index/index.wxml
-
16pages/process/index/index.js
-
17pages/process/index/index.wxml
@ -0,0 +1,66 @@ |
|||
// pages/client/bank-add/index.js
|
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
} |
|||
}) |
|||
@ -0,0 +1,5 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"van-button": "/components/button/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
<!--pages/client/bank-add/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|||
<view slot="content">添加银行卡</view> |
|||
</cu-custom> |
|||
|
|||
<view class="flex flex-center" style="padding:32rpx"> |
|||
<text class="text-xxl">安全绑卡,快捷支付</text> |
|||
</view> |
|||
|
|||
<view class="cu-form-group margin-top"> |
|||
<view class="title">持卡人姓名:</view> |
|||
<input id="name" maxlength="16" style="width:65%" disabled="{{true}}" value="{{form.name}}" placeholder="请输入持卡人姓名" bindinput="bindForm"></input> |
|||
</view> |
|||
<view class="cu-form-group"> |
|||
<view class="title">银行卡卡号:</view> |
|||
<input id="cardNo" maxlength="24" style="width:65%" type="number" value="{{form.cardNo}}" bindinput="bindForm" placeholder="请输入银行卡卡号" bindinput="bindForm"></input> |
|||
</view> |
|||
<view class="cu-form-group" wx:if="{{form.cardName}}"> |
|||
<image class="cu-avatar sm round" src="{{'https://medou.oss-cn-shenzhen.aliyuncs.com/bank/' + form.cardName + '.png'}}"></image> |
|||
<view style="margin-left:24rpx">{{bankName}}</view> |
|||
<view class="text-gray" style="margin-left:24rpx">{{cardType}}</view> |
|||
</view> |
|||
|
|||
<view class="cu-form-group margin-top" wx:if="{{form.type == 4}}"> |
|||
<view class="title">手机号:</view> |
|||
<input id="phone" maxlength="11" type="number" placeholder="请输入银行预留手机号码" bindinput="bindForm"></input> |
|||
</view> |
|||
<view class="cu-form-group" wx:if="{{form.type == 4}}"> |
|||
<view class="title">验证码:</view> |
|||
<input id="verificationCode" maxlength="6" type="number" placeholder="请输入验证码" bindinput="bindForm"></input> |
|||
</view> |
|||
|
|||
<view style="margin-top:20rpx;padding:80rpx 32rpx"> |
|||
<van-button block type="info" bind:click="submitForm">{{form.type == 4 ? '提交' : '下一步'}}</van-button> |
|||
</view> |
|||
@ -0,0 +1 @@ |
|||
/* pages/client/bank-add/index.wxss */ |
|||
@ -0,0 +1,44 @@ |
|||
// pages/client/bank-list/index.js
|
|||
import Dialog from '../../../components/dialog/dialog' |
|||
import { getBankCardList, deleteBankCard, checkPayPassword, bankCardDefault } from "../../../api/saas" |
|||
const util = require('../../../utils/util') |
|||
const app = getApp() |
|||
|
|||
Page({ |
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
show: false, |
|||
actions: [ |
|||
{ id: 1, name: '设为默认' }, |
|||
{ id: 2, name: '解除绑定' } |
|||
], |
|||
}, |
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
}, |
|||
showActionSheet(e) { |
|||
this.data.nowIndex = e.currentTarget.dataset.index |
|||
if (this.data.nowIndex < 0) { |
|||
// if(!app.userInfo.isAuth){
|
|||
// Dialog.alert({ title: '温馨提示', message: '您还没有进行个人信息认证,无法绑定银行卡,现在去进行个人信息认证?' }).then(() => {
|
|||
// wx.navigateTo({ url: '/pages/home/authory/index' })
|
|||
// })
|
|||
// return
|
|||
// }
|
|||
wx.navigateTo({url: '/pages/client/bank-add/index'}) |
|||
return |
|||
} |
|||
this.setData({ show: true }) |
|||
}, |
|||
onClose: function() { |
|||
this.setData({ show: false }) |
|||
}, |
|||
onSelect: function({detail}) { |
|||
console.log(detail) |
|||
}, |
|||
}) |
|||
@ -0,0 +1,6 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"van-dialog": "/components/dialog/index", |
|||
"van-action-sheet": "/components/action-sheet/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
<!--pages/client/bank-list/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|||
<view slot="content">我的银行卡</view> |
|||
</cu-custom> |
|||
|
|||
<scroll-view scroll-y style="height: {{height}}rpx;padding:0rpx 32rpx"> |
|||
<view wx:for="{{bankList}}" wx:key="index" class="item-bank" data-index="{{index}}" bindtap="showActionSheet"> |
|||
<view class="flex"> |
|||
<view class="cu-avatar slg round" style="background-image:url({{item.bankIcon}});"></view> |
|||
<view style="margin-left: 12rpx;flex: 1"> |
|||
<view class="bank-name">{{item.bankName ? item.bankName : item.cardName}}</view> |
|||
<view class="bank-type">{{item.cardType=='PC'?'"预付费卡':(item.cardType=='SCC'?'准贷记卡':(item.cardType=='CC'?'信用卡':'储蓄卡'))}}</view> |
|||
</view> |
|||
<image style="width:32rpx;height:32rpx;" src="/assets/image/icon_bank.png" wx:if="{{item.isDefault==1}}"></image> |
|||
</view> |
|||
<view style="margin-left: 72rpx;margin-top:24rpx"> |
|||
<text class="bank-suffix" style="margin-right: 12rpx">****</text> |
|||
<text class="bank-suffix" style="margin-right: 12rpx">****</text> |
|||
<text class="bank-suffix" style="margin-right: 12rpx">****</text> |
|||
<text class="bank-suffix">{{item.cardNoSuffix}}</text> |
|||
</view> |
|||
</view> |
|||
<view class="flex flex-center add-bank" data-index="{{-1}}" bindtap="showActionSheet"> |
|||
<text class="cuIcon-add text-black" style="font-size:48rpx"></text> |
|||
<text class="text-black" style="font-size:28rpx;margin-left:12rpx">添加银行卡</text> |
|||
</view> |
|||
</scroll-view> |
|||
|
|||
<van-dialog id="van-dialog" /> |
|||
<van-action-sheet show="{{ show }}" actions="{{ actions }}" bind:close="onClose" bind:select="onSelect" z-index="22" /> |
|||
@ -0,0 +1,40 @@ |
|||
/* pages/client/bank-list/index.wxss */ |
|||
.add-bank { |
|||
height: 150rpx; |
|||
width: 100%; |
|||
margin-top: 32rpx; |
|||
margin-bottom: 32rpx; |
|||
background: rgba(255, 255, 255, 1); |
|||
box-shadow: 0px 0px 15px -6px rgba(0, 0, 0, 0.32); |
|||
border-radius: 6px; |
|||
} |
|||
|
|||
.item-bank { |
|||
margin-top: 32rpx; |
|||
padding: 32rpx; |
|||
background: rgba(198, 79, 85, 1); |
|||
border-radius: 4px; |
|||
} |
|||
|
|||
.bank-name { |
|||
font-size: 32rpx; |
|||
font-family: PingFang-SC-Medium, PingFang-SC; |
|||
font-weight: 500; |
|||
color: rgba(255, 255, 255, 1); |
|||
} |
|||
|
|||
.bank-type { |
|||
font-size: 24rpx; |
|||
font-family: PingFang-SC-Regular, PingFang-SC; |
|||
font-weight: 400; |
|||
color: rgba(255, 255, 255, 0.6); |
|||
} |
|||
|
|||
.bank-suffix { |
|||
font-size: 56rpx; |
|||
font-family: SFProDisplay-Regular, SFProDisplay; |
|||
font-weight: 400; |
|||
color: rgba(255, 255, 255, 1); |
|||
line-height: 34px; |
|||
letter-spacing: 1px; |
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
// pages/stock/index.js
|
|||
import Dialog from '../../../components/dialog/dialog' |
|||
import { finalizeToken } from "../../../api/user" |
|||
import { getBaseInfo } from "../../../api/saas" |
|||
const util = require('../../../utils/util') |
|||
const event = require('../../../utils/event') |
|||
const storage = require('../../../utils/storage') |
|||
const app = getApp() |
|||
|
|||
Component({ |
|||
options: { |
|||
addGlobalClass: true, |
|||
multipleSlots: true |
|||
}, |
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
height: app.globalData.safeFragmentHeight, |
|||
firstShow: false, |
|||
userInfo: null, |
|||
avatarUrl: '/assets/image/ygImg.png', |
|||
creditInfo: { availableCreditLine: 0, creditLine: 0, usedCreditLine: 0.00 } |
|||
}, |
|||
lifetimes: { |
|||
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
|
|||
attached: function () { |
|||
event.on('EventMessage', this, this.onEvent) |
|||
}, |
|||
detached: function () { |
|||
event.remove('EventMessage', this) |
|||
} |
|||
}, |
|||
methods: { |
|||
// resume的处理;
|
|||
onRestart: function () { |
|||
this.setUserInfo() |
|||
this.data.firstShow = true |
|||
}, |
|||
onEvent: function (message) { |
|||
if (message.what == 82) { |
|||
// 认证成功
|
|||
} |
|||
}, |
|||
setUserInfo: function(){ |
|||
if(!app.userInfo){ |
|||
return |
|||
} |
|||
|
|||
var nickname = '' |
|||
if(app.userInfo.isAuth) { |
|||
nickname = app.userInfo.realName.substring(0, 14) |
|||
} else if(!util.isEmpty(app.userInfo.nickname)){ |
|||
nickname = app.userInfo.nickname.substring(0, 14) |
|||
} else if(!util.isEmpty(app.userInfo.realName)){ |
|||
nickname = app.userInfo.realName.substring(0, 14) |
|||
} |
|||
this.setData({ |
|||
avatarUrl: util.isEmpty(app.userInfo.avatarUrl) ? '/assets/image/ygImg.png' : app.userInfo.avatarUrl, |
|||
userInfo: app.userInfo, |
|||
userName: nickname, |
|||
height: app.globalData.safeFragmentHeight- 100 |
|||
}) |
|||
}, |
|||
toUserInfo: function(){ |
|||
if(!app.userInfo){ |
|||
return |
|||
} |
|||
if(!app.userInfo.isAuth){ |
|||
wx.navigateTo({ url: '/pages/home/authory/index' }) |
|||
} |
|||
}, |
|||
orderList: function(){ |
|||
wx.navigateTo({ url: '/pages/mall/order-list/index' }) |
|||
}, |
|||
tipApply: function(){ |
|||
wx.navigateTo({ url: '/pages/htmls/auths/index' }) |
|||
}, |
|||
loginOut: function () { |
|||
Dialog.confirm({ title: '温馨提示', message: '确定退出纸通宝账号?' }).then(() => { |
|||
storage.remove('Authorization') |
|||
app.globalData.token = null |
|||
app.userInfo = null |
|||
this.setData({ userInfo: null, avatarUrl: '/assets/image/ygImg.png' }) |
|||
finalizeToken() |
|||
wx.redirectTo({ url: '/pages/login/index' }) |
|||
event.emit('EventMessage', { what: 888, desc: 'Logout' }) |
|||
}) |
|||
} |
|||
} |
|||
}) |
|||
@ -0,0 +1,12 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"van-image": "/components/image/index", |
|||
"van-grid": "/components/grid/index", |
|||
"van-grid-item": "/components/grid-item/index", |
|||
"van-cell": "/components/cell/index", |
|||
"van-cell-group": "/components/cell-group/index", |
|||
"van-info": "/components/info/index", |
|||
"van-icon": "/components/icon/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,68 @@ |
|||
<wxs module="formate" src="../../formate.wxs"></wxs> |
|||
<cu-custom bgColor="bg-white" isBack="{{false}}"> |
|||
<view slot="content" style="color:black;font-size:18px">我的</view> |
|||
</cu-custom> |
|||
|
|||
<scroll-view scroll-y style="height:{{height}}rpx;"> |
|||
<!-- 用户信息 --> |
|||
<view class="bg-white flex flex-justify" style="padding:32rpx" wx:if="{{userInfo}}" bindtap="toUserInfo"> |
|||
<view class="flex"> |
|||
<view style="position: relative"> |
|||
<van-image use-loading-slot width="60" height="60" lazy-load round src="{{avatarUrl}}"> |
|||
<image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image> |
|||
</van-image> |
|||
<view class="cu-tag badge cuIcon-vip bg-blue" style="font-size:24rpx" wx:if="{{userInfo.isVIP}}"></view> |
|||
</view> |
|||
<view class="flex flex-column flex-center" style="margin-left:24rpx;align-items:flex-start"> |
|||
<view class="flex flex-center"> |
|||
<text class="text-lg" style="white-space: nowrap">{{userName || ''}}</text> |
|||
<view class="flex flex-center" style="font-size:12px;margin-left:18rpx"> |
|||
<text class="{{userInfo.isAuth == 1 ? 'text-blue' : 'text-gray'}}">{{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}}</text> |
|||
<text class="text-yellow" style="font-size:14px;padding:4px;" wx:if="{{userInfo.isAuth != 1 && userInfo.userType == 1}}">去认证</text> |
|||
</view> |
|||
</view> |
|||
<view class="flex flex-center" style="font-size:12px;margin-top:12rpx"> |
|||
<text class="text-black" style="font-size:14px">{{userInfo.mobile || ''}}</text> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<text class="cuIcon-right text-gray" style="font-size:18px"></text> |
|||
</view> |
|||
<!-- 授信信息 --> |
|||
<view class="bg-white" wx:if="{{userInfo.position != 'ORDINARY'}}" style="margin-top: 16rpx"> |
|||
<view class="flex" style="padding: 20rpx 32rpx"> |
|||
<text class="text-lg text-bold">账户余额</text> |
|||
<text class="text-df text-gray" style="padding-top:6rpx;margin-left:8rpx"></text> |
|||
</view> |
|||
<view class="flex" style="padding:0rpx 32rpx 24rpx 32rpx"> |
|||
<view style="flex:1;border: 2rpx solid #eeeeee;padding:24rpx 32rpx;margin-right:12rpx"> |
|||
<view class="text-black">我的余额</view> |
|||
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{formate.formateAmount(creditInfo.availableCreditLine)}}</view> |
|||
<view class="text-blue text-sm" style=";text-decoration:underline" wx:if="{{!creditInfo.creditLine}}" |
|||
catchtap="tipApply">账单明细</view> |
|||
</view> |
|||
<view style="flex:1;border: 2rpx solid #eeeeee;padding:24rpx 32rpx;margin-left:12rpx" bindtap="orderList"> |
|||
<view class="text-black">待收款</view> |
|||
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{formate.formateAmount(creditInfo.usedCreditLine)}}</view> |
|||
<view class="text-gray text-sm">查看详情</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view style="height:16rpx"></view> |
|||
<van-cell-group> |
|||
<van-cell is-link link-type="navigateTo" url="/pages/client/withdrawal/index"> |
|||
<view class="flex" slot="title" style="align-items: center"> |
|||
<van-icon name="cash-back-record" size="20"/> |
|||
<text class="text-sg" style="margin-left:12rpx">提现</text> |
|||
</view> |
|||
</van-cell> |
|||
<van-cell is-link link-type="navigateTo" url="/pages/client/bank-list/index"> |
|||
<view class="flex" slot="title" style="align-items: center"> |
|||
<van-icon name="credit-pay" size="18"/> |
|||
<text class="text-sg" style="margin-left:12rpx">我的银行卡</text> |
|||
</view> |
|||
</van-cell> |
|||
</van-cell-group> |
|||
<view style="height:16rpx"></view> |
|||
|
|||
</scroll-view> |
|||
@ -0,0 +1,9 @@ |
|||
/* pages/home/index.wxss */ |
|||
.image-load { |
|||
width: 60px; |
|||
height: 60px; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
border-radius: 60rpx; |
|||
} |
|||
@ -0,0 +1,53 @@ |
|||
// pages/administ/index.js
|
|||
const event = require('../../../utils/event') |
|||
const app = getApp() |
|||
|
|||
Page({ |
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
safeBottom: app.globalData.safeBottom, |
|||
fragment: app.globalData.safeFragmentHeight, |
|||
tabList: [ |
|||
{ index: 0, value: 'message', badge: 0, name: '消息', blue: '/assets/image/tabbar/mall-blue.png', gray: '/assets/image/tabbar/mall-gray.png' }, |
|||
{ index: 1, value: 'work', badge: 0, name: '工作台', blue: '/assets/image/tabbar/process-blue.png', gray: '/assets/image/tabbar/process-gray.png' }, |
|||
{ index: 2, value: 'home', badge: 0, name: '我的', blue: '/assets/image/tabbar/home-blue.png', gray: '/assets/image/tabbar/home-gray.png' } |
|||
], |
|||
tabIndex: 1, |
|||
visiable: true |
|||
}, |
|||
/************************************** 初始化流程 ********************************************/ |
|||
onLoad: function (options) { |
|||
const updateManager = wx.getUpdateManager() |
|||
updateManager.onCheckForUpdate() |
|||
updateManager.onUpdateReady(function () { |
|||
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
|||
updateManager.applyUpdate() |
|||
}) |
|||
event.on('TabMessage', this, this.onEvent) |
|||
this.setData({fragment: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight), safeBottom: app.globalData.safeBottom }) |
|||
}, |
|||
/************************************** 生命周期函数--监听页面初次渲染完成 ********************************************/ |
|||
onShow: function () { |
|||
var pageView = this.selectComponent('#' + this.data.tabList[this.data.tabIndex].value) |
|||
if (pageView) { |
|||
pageView.onRestart() |
|||
} |
|||
}, |
|||
onChange: function ({detail}) { |
|||
this.setData({ tabIndex: detail }) |
|||
this.onShow() |
|||
}, |
|||
stopTouchMove: function(e){ |
|||
return false |
|||
}, |
|||
onEvent: function (message) { |
|||
if (message.what == 99) { |
|||
this.setData({ visiable: message.visiable }) |
|||
} |
|||
}, |
|||
onUnload: function(){ |
|||
event.remove('TabMessage', this) |
|||
} |
|||
}) |
|||
@ -0,0 +1,11 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"van-icon": "/components/icon/index", |
|||
"van-tabbar": "/components/tabbar/index", |
|||
"van-tabbar-item": "/components/tabbar-item/index", |
|||
"message": "/pages/message/index/index", |
|||
"workbench": "/pages/client/workbench/index", |
|||
"home": "/pages/client/home/index", |
|||
"van-dialog": "/components/dialog/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
<!--pages/administ/index.wxml--> |
|||
<swiper current="{{tabIndex}}" duration="0" style="height:{{fragment}}rpx"> |
|||
<swiper-item catchtouchmove="stopTouchMove"><message id="{{tabList[0].value}}"/></swiper-item> |
|||
<swiper-item catchtouchmove="stopTouchMove"><workbench id="{{tabList[1].value}}"/></swiper-item> |
|||
<swiper-item catchtouchmove="stopTouchMove"><home id="{{tabList[2].value}}"/></swiper-item> |
|||
</swiper> |
|||
|
|||
<view class="cu-bar bg-white foot" style="height:{{100 + safeBottom}}rpx;padding-bottom:{{safeBottom}}rpx;display:{{visiable? 'block' : 'none'}}"> |
|||
<van-tabbar active="{{ tabIndex }}" fixed="{{false}}" bind:change="onChange"> |
|||
<van-tabbar-item wx:for="{{tabList}}" wx:key="index" > |
|||
<van-icon slot="icon" name="{{item.gray}}" size="25"/> |
|||
<van-icon slot="icon-active" name="{{item.blue}}" size="25"/> |
|||
<text>{{item.name}}</text> |
|||
</van-tabbar-item> |
|||
</van-tabbar> |
|||
</view> |
|||
|
|||
<van-dialog id="van-dialog" /> |
|||
@ -0,0 +1 @@ |
|||
/* pages/administ/index.wxss */ |
|||
@ -0,0 +1,66 @@ |
|||
// pages/client/withdrawal/index.js
|
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
} |
|||
}) |
|||
@ -0,0 +1,7 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"van-cell": "/components/cell/index", |
|||
"van-cell-group": "/components/cell-group/index", |
|||
"van-button": "/components/button/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
<!--pages/client/withdrawal/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|||
<view slot="content">申请提现</view> |
|||
</cu-custom> |
|||
|
|||
<view class="bg-white" style="margin-top:24rpx;padding: 30rpx 0rpx 0rpx 40rpx"> |
|||
<text class="text-sg text-bold text-black" bindtap="banlanceDetails">提现金额</text> |
|||
<view class="cu-form-group" style="border-bottom: 1px solid #f3f3f3;margin-top:24rpx;padding: 2rpx 0rpx"> |
|||
<view><text style="font-size:50rpx;font-weight: 600; color:black">¥</text></view> |
|||
<input type="digit" style="font-size:45rpx;" value="{{expendMoney}}" bindinput="bindAndSet" placeholder="请输入金额"></input> |
|||
</view> |
|||
</view> |
|||
<van-cell link-type="navigateTo" url="/pages/home/mobile/index"> |
|||
<view class="flex" slot="title" style="align-items: center"> |
|||
<text class="text-sg" style="margin-left:12rpx">账户余额¥{{formate.numberFormat2(xsaccountMoney)}}</text> |
|||
<text class="text-sm text-blue" style="margin-left:30rpx" bindtap="allExpend">全部提现</text> |
|||
</view> |
|||
</van-cell> |
|||
<van-cell is-link bind:click="chooseCard"> |
|||
<view class="flex" slot="title" style="align-items: center"> |
|||
<text class="text-sg" style="margin-left:12rpx">到账银行卡</text> |
|||
</view> |
|||
</van-cell> |
|||
|
|||
<view style="margin-top:20rpx;padding:80rpx 32rpx"> |
|||
<van-button block type="info" bind:click="submitForm">提现</van-button> |
|||
</view> |
|||
@ -0,0 +1 @@ |
|||
/* pages/client/withdrawal/index.wxss */ |
|||
@ -0,0 +1,90 @@ |
|||
// pages/index/index.js
|
|||
import Dialog from '../../../components/dialog/dialog' |
|||
import { getStatisticsInfo } from "../../../api/saas" |
|||
const event = require('../../../utils/event') |
|||
const app = getApp() |
|||
|
|||
Component({ |
|||
options: { |
|||
addGlobalClass: true, |
|||
multipleSlots: true |
|||
}, |
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
userInfo: app.userInfo, |
|||
height: app.globalData.safeFragmentHeight, |
|||
tabList: [ |
|||
{ status: 1, badge: '', name: '打包站', icon: '/assets/image/icon_pricing.png' }, |
|||
{ status: 2, badge: '', name: '我的订单', icon: '/assets/image/icon_checking.png' } |
|||
], |
|||
show: false, |
|||
actions: [ |
|||
{ name: '选项1' }, |
|||
{ name: '选项2' }, |
|||
{ name: '选项3' }, |
|||
], |
|||
form: {}, |
|||
totalInfo: { |
|||
totalMoney: 0, |
|||
totalWeight: 0, |
|||
} |
|||
}, |
|||
lifetimes: { |
|||
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
|
|||
attached: function () { |
|||
this.setData({userInfo: app.userInfo, height: app.globalData.safeFragmentHeight - 100 }) |
|||
event.on('EventMessage', this, this.onEvent) |
|||
}, |
|||
detached: function () { |
|||
event.remove('EventMessage', this) |
|||
} |
|||
}, |
|||
methods: { |
|||
onRestart: function () { |
|||
this.fetchStatisticsInfo() |
|||
}, |
|||
onEvent: function (message) { |
|||
if (message.what == 888) { |
|||
} |
|||
}, |
|||
orderList: function (e) { |
|||
if(e.currentTarget.dataset.status == 3){ |
|||
wx.navigateTo({ url: '/pages/process/payment-list/index?status=' + e.currentTarget.dataset.status }) |
|||
} else { |
|||
wx.navigateTo({ url: '/pages/process/order-list/index?status=' + e.currentTarget.dataset.status }) |
|||
} |
|||
}, |
|||
fetchStatisticsInfo: function(){ |
|||
getStatisticsInfo(this.data.form).then(result => { |
|||
if(Number(result.data.priceOrderNum) > 0){ |
|||
this.data.tabList[0].badge = Number(result.data.priceOrderNum) |
|||
} else { |
|||
this.data.tabList[0].badge = '' |
|||
} |
|||
if(Number(result.data.waitAuditOrderNum) > 0){ |
|||
this.data.tabList[1].badge = Number(result.data.waitAuditOrderNum) |
|||
} else { |
|||
this.data.tabList[1].badge = '' |
|||
} |
|||
this.setData({ tabList: this.data.tabList, totalInfo: result.data }) |
|||
}).catch(err => { |
|||
console.log(err) |
|||
}) |
|||
}, |
|||
showSheet: function(){ |
|||
// this.setData({ show: true })
|
|||
// event.emit('TabMessage', { what: 99, visiable: false })
|
|||
}, |
|||
onClose: function() { |
|||
this.setData({ show: false }) |
|||
setTimeout(function(){ |
|||
event.emit('TabMessage', { what: 99, visiable: true }) |
|||
}, 100) |
|||
}, |
|||
onSelect: function({detail}) { |
|||
console.log(detail) |
|||
} |
|||
} |
|||
}) |
|||
@ -0,0 +1,12 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"van-grid": "/components/grid/index", |
|||
"van-grid-item": "/components/grid-item/index", |
|||
"van-cell": "/components/cell/index", |
|||
"van-cell-group": "/components/cell-group/index", |
|||
"van-info": "/components/info/index", |
|||
"van-icon": "/components/icon/index", |
|||
"van-action-sheet": "/components/action-sheet/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
<!--pages/process/index.wxml--> |
|||
<wxs module="formate" src="../../formate.wxs"></wxs> |
|||
<cu-custom bgColor="bg-white"> |
|||
<view slot="content" style="color:black;font-size:36rpx">工作台</view> |
|||
</cu-custom> |
|||
|
|||
<view style="padding: 0rpx 28rpx;margin-top:24rpx"> |
|||
<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 class="flex flex-center" bindtap="showSheet"> |
|||
<view class="text-black text-sm" style="margin-right:8rpx">今日</view> |
|||
<van-icon name="arrow-down" /> |
|||
</view> |
|||
</view> |
|||
<view class="flex" style="padding:0rpx 0rpx 24rpx 0rpx"> |
|||
<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" style="margin:12rpx 0rpx">{{formate.formateWeight(totalInfo.totalWeight)}}吨 |
|||
</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"> |
|||
{{formate.formateAmount(totalInfo.totalMoney)}}</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view style="padding: 0rpx 28rpx;margin-top:24rpx"> |
|||
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx"> |
|||
<view class="text-black text-sg text-bold" style="padding: 0rpx 28rpx 12rpx 28rpx">收货订单</view> |
|||
<van-grid column-num="4" border="{{fasle}}"> |
|||
<van-grid-item wx:for="{{ tabList }}" wx:key="index" data-status="{{item.status}}" bind:click="orderList" |
|||
text="{{item.name}}"> |
|||
<van-icon slot="icon" name="{{ item.icon }}" size="68rpx" info="{{item.badge}}" /> |
|||
</van-grid-item> |
|||
</van-grid> |
|||
</view> |
|||
</view> |
|||
<view style="height:24rpx;"></view> |
|||
|
|||
<van-action-sheet show="{{ show }}" actions="{{ actions }}" bind:close="onClose" bind:select="onSelect" z-index="22" /> |
|||
@ -0,0 +1,12 @@ |
|||
/* pages/index/index.wxss */ |
|||
.menu:active { |
|||
opacity: .5 |
|||
} |
|||
|
|||
.name{ |
|||
overflow: hidden; |
|||
text-overflow:ellipsis; |
|||
white-space: nowrap; |
|||
color:white; |
|||
margin-left:32rpx; |
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
// pages/home/customer-info/index.js
|
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom: function () { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage: function () { |
|||
|
|||
} |
|||
}) |
|||
@ -0,0 +1,7 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"van-button": "/components/button/index", |
|||
"van-cell": "/components/cell/index", |
|||
"van-notice-bar": "/components/notice-bar/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
<!--pages/home/customer-info/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|||
<view slot="content">客户资料</view> |
|||
</cu-custom> |
|||
<van-notice-bar color="#1989fa" background="#008AFF" left-icon="info-o" text="点击可以修改用户信息" /> |
|||
|
|||
<view wx:if="{{form}}"> |
|||
<view style="height:16rpx"></view> |
|||
<van-cell> |
|||
<view slot="title" class="flex flex-justify"> |
|||
<view class="text-black">客户姓名</view> |
|||
<view class="text-gray">{{form.factoryCustomerName}}</view> |
|||
</view> |
|||
</van-cell> |
|||
<van-cell> |
|||
<view slot="title" class="flex flex-justify"> |
|||
<view class="text-black">手机号码</view> |
|||
<view class="text-gray">{{form.factoryCustomerName}}</view> |
|||
</view> |
|||
</van-cell> |
|||
<van-cell> |
|||
<view slot="title" class="flex flex-justify"> |
|||
<view class="text-black">付款方式</view> |
|||
<view class="text-gray">{{form.factoryCustomerName}}</view> |
|||
</view> |
|||
</van-cell> |
|||
<van-cell> |
|||
<view slot="title" class="flex flex-justify"> |
|||
<view class="text-black">银行名称</view> |
|||
<view class="text-gray">{{form.factoryCustomerName}}</view> |
|||
</view> |
|||
</van-cell> |
|||
<van-cell> |
|||
<view slot="title" class="flex flex-justify"> |
|||
<view class="text-black">银行卡号</view> |
|||
<view class="text-gray">{{form.factoryCustomerName}}</view> |
|||
</view> |
|||
</van-cell> |
|||
|
|||
<view style="height:32rpx"></view> |
|||
<view style="margin-top:20rpx;padding:40rpx 80rpx"> |
|||
<van-button block type="default" bind:click="submitForm">邀请注册纸通宝</van-button> |
|||
<view style="height:32rpx"></view> |
|||
<van-button block type="info" bind:click="submitForm">保存</van-button> |
|||
</view> |
|||
|
|||
</view> |
|||
@ -0,0 +1 @@ |
|||
/* pages/home/customer-info/index.wxss */ |
|||
@ -0,0 +1,20 @@ |
|||
// pages/home/qrcode/index.js
|
|||
import { getCustomerList } from "../../../api/saas" |
|||
const util = require('../../../utils/util') |
|||
const app = getApp() |
|||
|
|||
Page({ |
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
|
|||
}, |
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad: function (options) { |
|||
|
|||
} |
|||
|
|||
}) |
|||
@ -0,0 +1,3 @@ |
|||
{ |
|||
"usingComponents": {} |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
<!--pages/home/qrcode/index.wxml--> |
|||
<cu-custom bgColor="bg-white" isBack="{{true}}"> |
|||
<view slot="content">二维码名片</view> |
|||
</cu-custom> |
|||
@ -0,0 +1 @@ |
|||
/* pages/home/qrcode/index.wxss */ |
|||
@ -1,17 +1,36 @@ |
|||
// pages/home/agreement/index.js
|
|||
import { getCustomerList } from "../../../api/saas" |
|||
const util = require('../../../utils/util') |
|||
|
|||
Page({ |
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
|
|||
show: false, |
|||
form: { |
|||
amount: 0 |
|||
} |
|||
}, |
|||
onImageLoad: function(e){ |
|||
console.log(e) |
|||
}, |
|||
tellPhone: function(){ |
|||
wx.makePhoneCall({ |
|||
phoneNumber: '020-82516486', |
|||
}) |
|||
// wx.makePhoneCall({
|
|||
// phoneNumber: '020-82516486',
|
|||
// })
|
|||
this.setData({ show: true }) |
|||
}, |
|||
onClose: function(){ |
|||
this.setData({ show: false }) |
|||
}, |
|||
bindInput: function (e) { |
|||
this.data.form[e.target.id] = e.detail.value |
|||
}, |
|||
onConfirm: function(){ |
|||
if(util.isEmpty(this.data.form.amount) || Number(this.data.form.amount) <= 0){ |
|||
util.showToast('请输入额度') |
|||
return |
|||
} |
|||
} |
|||
}) |
|||
Write
Preview
Loading…
Cancel
Save