小程序适配

This commit is contained in:
duan
2024-10-29 15:46:53 +08:00
parent a747dba877
commit 764c9461ae
19 changed files with 478 additions and 275 deletions

View File

@@ -7,15 +7,15 @@
<view class="xian" v-if="v.value==selected "> </view>
</view>
</view>
<ul class="paymentSettlement">
<li :style="{color:datas.activeType==0?'#318AFE':''}" @tap="switchType(0)">全部</li>
<li :style="{color:datas.activeType==1?'#318AFE':''}" @tap="switchType(1)">进货</li>
<li :style="{color:datas.activeType==2?'#318AFE':''}" @tap="switchType(2)">退货</li>
<li :style="{color:datas.activeType==3?'#318AFE':''}" @tap="switchType(3)">未支付</li>
<li :style="{color:datas.activeType==4?'#318AFE':''}" @tap="switchType(4)">已付款</li>
</ul>
<ul class="supplier">
<li v-for="item in datas.list" :key="item.id">
<view class="paymentSettlement">
<view :style="{color:datas.activeType==0?'#318AFE':''}" @tap="switchType(0)">全部</view>
<view :style="{color:datas.activeType==1?'#318AFE':''}" @tap="switchType(1)">进货</view>
<view :style="{color:datas.activeType==2?'#318AFE':''}" @tap="switchType(2)">退货</view>
<view :style="{color:datas.activeType==3?'#318AFE':''}" @tap="switchType(3)">未支付</view>
<view :style="{color:datas.activeType==4?'#318AFE':''}" @tap="switchType(4)">已付款</view>
</view>
<view class="supplier">
<view v-for="item in datas.list" :key="item.id">
<view style="position: relative;">
<view>
@@ -60,13 +60,20 @@
<span>{{dayjs(item.updatedAt).format('YYYY-MM-DD HH:mm:ss')}}</span>
</view>
<view>
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="datas.PopUp=true;datas.form.id=item.id"
:plain="true" text="付款"></up-button>
<up-button type="primary" style="width: 200rpx;" @tap="toUrl(item.id)" :plain="true" text="账单付款记录">
<!-- <up-button shape="circle" type="primary" size="mini" color="#999" @tap="toUrl('PAGES_VIEWRECORDS',{item:JSON.stringify(item)})"
:plain="true" text="查看记录"></up-button>&nbsp;&nbsp;
<up-button type="primary" shape="circle" size="mini" @click="toggle(item)" :plain="true" text="更多操作"></up-button>
-->
<up-button type="primary" size="mini" shape="circle" style="background-color: #318AFE;color: #fff;" @tap="datas.PopUp=true;datas.form.id=item.id"
:plain="true" text="付款"></up-button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<up-button type="primary" size="mini" shape="circle" style="width: 200rpx;" @tap="toUrl(item.id)" :plain="true" text="账单付款记录">
</up-button>
</view>
</li>
</ul>
</view>
</view>
<!-- 取号遮罩层 -->
<up-popup :show="datas.PopUp" :round="18" mode="center" @close="close">
<view class="zhezhaopops">
@@ -263,18 +270,12 @@
}
}
</script>
<style scoped lang="less">
<style>
page {
background-color: #f9f9f9;
}
ul,
li {
list-style: none;
padding: 0;
}
}
</style>
<style scoped lang="less">
.time-wrapper {
display: flex;
justify-content: space-around;
@@ -306,7 +307,7 @@
}
.supplier {
>li {
>view {
width: 694rpx;
height: 550rpx;
background: #FFFFFF;