5 changed files with 138 additions and 1 deletions
Split View
Diff Options
-
66pages/fragments/chant-station/index.js
-
14pages/fragments/chant-station/index.json
-
45pages/fragments/chant-station/index.wxml
-
12pages/fragments/chant-station/index.wxss
-
2pages/merchant/index.json
@ -0,0 +1,66 @@ |
|||
const math = require('../../../utils/math') |
|||
const event = require('../../../utils/event') |
|||
const app = getApp() |
|||
|
|||
Component({ |
|||
options: { |
|||
addGlobalClass: true, |
|||
multipleSlots: true |
|||
}, |
|||
/** 页面的初始数据 */ |
|||
data: { |
|||
firstShow: false, |
|||
userInfo: null, |
|||
menuList: [ |
|||
{url: '/pages/home/factory-list/index', text: '客户管理', icon: '/assets/image/reconciliation-icon.png'}, |
|||
{url: '/pages/home/factory-list/index', text: '电子合同', icon: '/assets/image/reconciliation-icon.png'} |
|||
], |
|||
tabIndex: 0, |
|||
tabList: [ |
|||
{id: 1, name: '待预约', badge: 0, status: 1 , icon: '/assets/image/reconciliation-icon.png'}, |
|||
{id: 2, name: '待上传', badge: 0, status: 2 , icon: '/assets/image/reconciliation-icon.png'}, |
|||
{id: 3, name: '待审核', badge: 0, status: 3 , icon: '/assets/image/reconciliation-icon.png'}, |
|||
{id: 3, name: '待结算', badge: 0, status: 3 , icon: '/assets/image/reconciliation-icon.png'}, |
|||
{id: 3, name: '已完成', badge: 0, status: 3 , icon: '/assets/image/reconciliation-icon.png'} |
|||
] |
|||
}, |
|||
lifetimes: { |
|||
attached: function () { |
|||
event.on('EventMessage', this, this.onEvent) |
|||
}, |
|||
detached: function () { |
|||
event.remove('EventMessage', this) |
|||
} |
|||
}, |
|||
methods: { |
|||
onRestart: function () { |
|||
if(!this.data.firstShow) { |
|||
this.setData({height: app.globalData.windowHeight - app.globalData.safeBottom - 100, userInfo: app.userInfo }) |
|||
} |
|||
// this.fetchStatisticsInfo()
|
|||
this.data.firstShow = true |
|||
}, |
|||
onEvent: function (message) { |
|||
if (message.what == 888) { |
|||
} |
|||
}, |
|||
fetchStatisticsInfo: function(loading){ |
|||
getBalanceInfo().then(result => { |
|||
if(result.data){ |
|||
result.data.accountMoney = math.minus(result.data.accountMoney, result.data.frozenMoney) |
|||
this.setData({ banlanceInfo: result.data }) |
|||
} |
|||
if(loading){ |
|||
wx.hideLoading() |
|||
} |
|||
}).catch(err => { |
|||
if(loading){ |
|||
wx.hideLoading() |
|||
} |
|||
}) |
|||
}, |
|||
menuClick: function(e){ |
|||
|
|||
} |
|||
} |
|||
}) |
|||
@ -0,0 +1,14 @@ |
|||
{ |
|||
"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-tabs": "/components/tabs/index", |
|||
"van-tab": "/components/tab/index", |
|||
"van-icon": "/components/icon/index" |
|||
} |
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
<wxs module="formate" src="../../formate.wxs"></wxs> |
|||
<view class="flex flex-column" style="height:{{height}}rpx;width:750rpx;"> |
|||
<view style="height:50rpx;width: 750rpx;background-color:#1E7ADE;"></view> |
|||
<view class="flex" style="align-items: center;background-color:#1E7ADE;height: 200rpx;padding-left: 32rpx;"> |
|||
<van-image use-loading-slot width="160rpx" height="160rpx" lazy-load round src="{{userInfo.avatarUrl}}"></van-image> |
|||
<view class="flex flex-column flex-center" style="margin-left:24rpx;align-items:flex-start"> |
|||
<view class="flex flex-center text-white"> |
|||
<text class="text-xl text-bold" style="white-space: nowrap;margin-right:12rpx">{{userInfo.storeBaseInfo.name || ''}}</text> |
|||
</view> |
|||
<view class="text-white"> |
|||
<text class="text-white text-df">{{userInfo.nickname || userInfo.realName}}</text> |
|||
<text class="text-white text-df" style="margin-left: 12rpx;">{{userInfo.mobile}}</text> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<!-- <van-tabs active="{{tabIndex}}" color="#008AFF" bind:change="onTabChange" line-height="2px" swipe-threshold="6"> |
|||
<van-tab wx:for="{{tabList}}" wx:key="index" title="{{item.name}}" title-style="color:{{tabIndex==index?'#008AFF':'#333333'}}"></van-tab> |
|||
</van-tabs> --> |
|||
<view class="bg-white flex flex-justify van-hairline--bottom" style="padding: 18rpx 32rpx;"> |
|||
<view class="text-sg text-bold">代卖订单</view> |
|||
<view class="flex flex-center"> |
|||
<view class="text-gray text-sm" style="margin-right:8rpx">查看全部订单</view> |
|||
<van-icon name="arrow" color="#aaa"/> |
|||
</view> |
|||
</view> |
|||
<view class="bg-white"> |
|||
<van-grid column-num="5" border="{{fasle}}"> |
|||
<van-grid-item wx:for="{{tabList}}" wx:key="index" text="{{item.name}}" data-url="{{item.url}}" bind:click="menuClick"> |
|||
<van-icon slot="icon" name="{{item.icon}}" size="76rpx" /> |
|||
</van-grid-item> |
|||
</van-grid> |
|||
</view> |
|||
<view style="height:20rpx;"></view> |
|||
<view class="bg-white flex flex-justify van-hairline--bottom" style="padding: 18rpx 32rpx;"> |
|||
<view class="text-sg text-bold">其他工具</view> |
|||
</view> |
|||
<view class="bg-white"> |
|||
<van-grid column-num="4" border="{{fasle}}"> |
|||
<van-grid-item wx:for="{{menuList}}" wx:key="index" text="{{item.text}}" data-url="{{item.url}}" bind:click="menuClick"> |
|||
<van-icon slot="icon" name="{{item.icon}}" size="76rpx" /> |
|||
</van-grid-item> |
|||
</van-grid> |
|||
</view> |
|||
|
|||
</view> |
|||
@ -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; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save