This commit is contained in:
@QQNZX 2024-01-19 17:08:34 +08:00
parent 060236f6ce
commit 87b369c62b

View File

@ -44,6 +44,7 @@
<!-- 底部 -->
</view>
<view class="bottom-box">
<view class="anniu" @click="addValueCarRecords()">
<text>立即充值</text>
@ -84,6 +85,8 @@
{{index+1}}.{{item || "" }}
</view>
</view>
<view class="box-gang">
<view class="">推荐员工</view>
<view class=""></view>
@ -92,6 +95,7 @@
</view>
</view>
<!-- 底部 -->
<view class="bottom-box">
<view class="anniu" @click="addFuleCarRecords()">
@ -136,7 +140,17 @@
</view>
</view>
<u-picker :show="show" :columns="columns" keyName="realName" @confirm="confirm" @cancel="cancel"></u-picker>
<!-- <u-picker :show="show" :columns="columns" keyName="realName" @confirm="confirm" @cancel="cancel"></u-picker> -->
<u-popup :show="show" :round="10" mode="bottom" @close="close" @open="open">
<view class="bottom-bb">
<view class="" v-for="(item,index) in columns" :key="index" style="margin-bottom: 10px;">
<u-button @click="confirm(item)" type="primary" :plain="true" :text="item.realName"></u-button>
</view>
<!-- <view class="" v-for="(item,index) in columns" :key="index">
{{item.realName}}
</view> -->
</view>
</u-popup>
<u-modal :show="shows" :title="message" :content='money' @confirm="confirms()"></u-modal>
</view>
</view>
@ -224,6 +238,12 @@
this.getStaffList()
},
methods: {
open() {
console.log();
},
close() {
this.show = false
},
//
addFuleCarRecords() {
if (this.staffId == '') {
@ -369,8 +389,8 @@
},
confirm(e) {
console.log(e);
this.staffId = e.value[0].id
this.yname = e.value[0].realName
this.staffId = e.id
this.yname = e.realName
this.show = false
},
cancel() {
@ -506,7 +526,8 @@
storeId: uni.getStorageSync("storeId")
}
}).then(res => {
this.columns.push(res.data.records)
this.columns = res.data.records
// this.columns.push(res.data.records)
console.log("columns", this.columns);
})
@ -696,4 +717,13 @@
width: 20%;
}
.bottom-bb {
width: 100%;
height: 200px;
box-sizing: border-box;
padding: 10px;
background: white;
overflow: scroll;
}
</style>