纸通宝商家版本的小程序,原生微信开发。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

58 lines
3.2 KiB

<wxs module="formate" src="../../formate.wxs"></wxs>
<view class="flex flex-column" style="height:{{height}}rpx;width:750rpx;">
<view style="height:80rpx;width: 750rpx;background-color:#1E7ADE;"></view>
<view class="flex flex-center flex-column text-white" style="background-color:#1E7ADE;">
<view class="flex flex-center">
<text style="margin-right: 12rpx;">本月交易额(元)</text>
<van-icon name="/assets/image/toggle-icon.png" size="32rpx" />
</view>
<view class="text-xxxl text-bold">128,0393.00</view>
<view class="flex" style="width: 750rpx;padding: 24rpx 0rpx 32rpx 0rpx;">
<view class="flex flex-center flex-column" style="width: 50%;">
<view class="text-df">本月订单</view>
<view class="text-xl text-bold">3笔</view>
</view>
<view class="flex flex-center flex-column" style="width: 50%;">
<view class="text-df">应收账款(元)</view>
<view class="text-xl text-bold">8,0393.00</view>
</view>
</view>
</view>
<view class="bg-white flex text-sg text-bold" style="height: 80rpx;line-height: 80rpx;text-align: center;padding-left: 32rpx;">常用功能</view>
<view class="bg-white van-hairline--top">
<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 style="height:20rpx;"></view>
<view class="bg-white flex text-sg text-bold" style="height: 80rpx;line-height: 80rpx;text-align: center;padding-left: 32rpx;">我的店铺</view>
<view class="bg-white flex flex-justify van-hairline--top-bottom" style="padding: 32rpx;">
<view class="flex flex-center">
<van-image width="100rpx" height="100rpx" radius="8rpx" src="{{userInfo.avatarUrl}}"></van-image>
<view class="text-lg text-bold" style="margin-left: 24rpx;">废纸君的废纸店铺</view>
</view>
<van-button plain round type="info" open-type="share" size="small">去分享</van-button>
</view>
<scroll-view scroll-y style="flex: 1;width:750rpx;height: 1px;" bind:scrolltolower="fetchChainList">
<view class="list-empty" style="height:100%" wx:if="{{!dataList.length}}">
<view style="margin-bottom:24px" wx:if="{{loading}}">
<van-loading type="spinner" size="32" />
</view>
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
</view>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{dataList}}" wx:key="pageIndex">
<block wx:for="{{pageItem}}" wx:key="index">
<chain-item item="{{item}}" frist="{{pageIndex == 0 && index == 0}}"></chain-item>
</block>
</view>
<!--加载更多的UI-->
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">
<van-loading type="spinner" size="16" wx:if="{{!finished}}" />
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
</van-divider>
</scroll-view>
</view>