小程序适配

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

@@ -3,40 +3,40 @@
耗材信息
</view>
<view class="addConsumables">
<ul>
<li>
<view>
<view>
<view>
单位
</view>
<view>
<input type="text" placeholder="请输入单位" v-model="datas.form.conUnit" name="" id="">
</view>
</li>
<li>
</view>
<view>
<view>
耗材名称
</view>
<view>
<input type="text" placeholder="请输入耗材名称" v-model="datas.form.conName" name="" id="">
</view>
</li>
<li>
</view>
<view>
<view>
耗材价格
</view>
<view>
<input placeholder="请输入耗材价格" type="number" v-model="datas.form.price" name="" id="">
</view>
</li>
<li>
</view>
<view>
<view>
预警值
</view>
<view>
<input type="text" placeholder="请输入预警值" v-model="datas.form.conWarning" name="" id="">
</view>
</li>
<li style="justify-content: space-between;">
</view>
<view style="justify-content: space-between;">
<view>
耗材类型
</view>
@@ -44,8 +44,8 @@
{{datas.typelist[datas.nowStatusIndex]}}
</view>
<uni-icons type="bottom" size="16"></uni-icons>
</li>
</ul>
</view>
</view>
</view>
<view :style="{height:datas.showStatus?statusHeight:0}" class="tranistion status overflow-hide">
<view @tap="changeNowStatusIndex(index)" class="u-flex u-p-l-30 lh30 u-p-r-30 u-row-between"
@@ -126,8 +126,8 @@
})
return
}
console.log(datas.list,'tiaoshi1')
console.log(datas.list[datas.nowStatusIndex],'tiaoshi1')
console.log(datas.list, 'tiaoshi1')
console.log(datas.list[datas.nowStatusIndex], 'tiaoshi1')
tbConsInfoAddlist([{
...datas.form,
shopId: uni.getStorageSync("shopId"),
@@ -146,18 +146,15 @@
datas.showStatus = false
}
</script>
<style scoped lang="less">
<style>
page {
background-color: #f9f9f9;
}
ul,
li {
list-style: none;
padding: 0;
}
</style>
<style scoped lang="less">
.topTitle {
font-weight: 400;
font-size: 32rpx;
@@ -174,8 +171,8 @@
padding: 1rpx 24rpx;
box-sizing: border-box;
>ul {
>li {
>view {
>view {
width: 646rpx;
height: 84rpx;
background: #fcfcfc;
@@ -203,7 +200,7 @@
.bottombutton {
margin-top: 84rpx;
padding: 0 24rpx;
>button {
width: 530rpx;
height: 80rpx;