fix
This commit is contained in:
parent
4ada5e0015
commit
9a5cf76ac5
@ -6,7 +6,7 @@
|
||||
已扫画筒号:{{state.pid }}
|
||||
</span>
|
||||
<view style="display: flex; align-items: center;">
|
||||
<up-input class="login-input" placeholder="画家姓名/编号/画作编号/画作名称" v-model="state.searchValue" style="flex: 1; margin-right: 10rpx;" clearable>
|
||||
<up-input class="login-input" placeholder="画家姓名/画作名称" v-model="state.searchValue" style="flex: 1; margin-right: 10rpx;" clearable>
|
||||
</up-input>
|
||||
|
||||
<up-button style="width: 120rpx;
|
||||
@ -18,7 +18,8 @@
|
||||
:loading="loading"
|
||||
@click="paintingList">搜索</up-button>
|
||||
</view>
|
||||
<view class="painting-box" v-for="(painting,index) in state.tableData" :key="index">
|
||||
<up-list @scrolltolower="scrolltolower">
|
||||
<up-list-item class="painting-box" v-for="(painting,index) in state.tableData" :key="index">
|
||||
<span style="display: flex; align-items: center;position: relative;" >
|
||||
<up-image :show-loading="true" :src="painting.HdPic" width="100px" height="100px" @click="click"></up-image>
|
||||
<span style="display: flex; flex-direction: column; margin-left: 10px;">
|
||||
@ -40,7 +41,8 @@
|
||||
<up-radio :name="painting.ArtworkUuid"></up-radio>
|
||||
</up-radio-group>
|
||||
</span>
|
||||
</view>
|
||||
</up-list-item>
|
||||
</up-list>
|
||||
</view>
|
||||
</view>
|
||||
<view class="button-container">
|
||||
@ -103,7 +105,7 @@ const paintingList = async (param) => {
|
||||
ArtistName: "",
|
||||
page:state.page,
|
||||
pageSize:state.pageSize,
|
||||
searchValue:state.searchValue,
|
||||
keywords:state.searchValue,
|
||||
...param,
|
||||
});
|
||||
if (res.status === 0) {
|
||||
@ -113,7 +115,8 @@ const paintingList = async (param) => {
|
||||
...item,
|
||||
checked:''
|
||||
}
|
||||
})||[]
|
||||
})||[];
|
||||
|
||||
console.log(1111,state.tableData)
|
||||
} else {
|
||||
showMessage({ type: "error", message: res.msg });
|
||||
@ -151,12 +154,32 @@ const doneSet = async () => {
|
||||
}
|
||||
loading.value = false;
|
||||
};
|
||||
const lower=() =>{
|
||||
console.log(888888)
|
||||
}
|
||||
const scroll =(e) =>{
|
||||
console.log(e)
|
||||
}
|
||||
//下拉刷新数据
|
||||
const scrolltolower = async () => {
|
||||
const newPage = state.page++;
|
||||
const res = await creChangepainting({
|
||||
Tfnum: "",
|
||||
ArtworkName: "",
|
||||
Tnum: "",
|
||||
ArtistName: "",
|
||||
page: newPage,
|
||||
pageSize: state.pageSize,
|
||||
searchValue: state.searchValue
|
||||
});
|
||||
if (res.status === 0) {
|
||||
const newData = res.data.Data.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
checked: ''
|
||||
}
|
||||
});
|
||||
state.tableData = state.tableData.concat(newData);
|
||||
} else {
|
||||
showMessage({ type: "error", message: res.msg });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@ -173,9 +196,9 @@ page {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
|
||||
.container-box {
|
||||
height: 100%;
|
||||
height: auto;
|
||||
width: 95%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -213,7 +236,7 @@ page {
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 20rpx;
|
||||
bottom: 1rpx;
|
||||
left: 0;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
|
Loading…
Reference in New Issue
Block a user