活动管理完成列表页面简单联调
parent
fc6726a74b
commit
a3e4c7aa7f
|
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
||||||
// 查询活动详情列表
|
// 查询活动详情列表
|
||||||
export function listInfo(query) {
|
export function listInfo(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/activityInfo/info/list',
|
url: '/activityInfo/info/app/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
|
|
@ -114,7 +114,9 @@
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "活动",
|
"navigationBarTitleText": "活动",
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white",
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
|
"onReachBottomDistance": 100
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,10 +50,11 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/activityInfo/info";
|
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/activityInfo/info";
|
||||||
import ActiInfoList from '../common/activityList/index.vue'
|
import ActiInfoList from '../common/activityList/index.vue'
|
||||||
import { onShow, onLoad } from '@dcloudio/uni-app'
|
import { onShow, onLoad ,onPullDownRefresh} from '@dcloudio/uni-app'
|
||||||
import { getDicts } from "@/api/system/dict/data"
|
import { getDicts } from "@/api/system/dict/data"
|
||||||
import { ref, reactive, getCurrentInstance, toRefs } from 'vue'
|
import { ref, reactive, getCurrentInstance, toRefs } from 'vue'
|
||||||
import { useStore } from 'vuex';
|
import { useStore } from 'vuex';
|
||||||
|
import { func } from "uview-plus/libs/function/test";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const iconConfig = proxy.iconConfig;
|
const iconConfig = proxy.iconConfig;
|
||||||
const tu21 = iconConfig.tu21;
|
const tu21 = iconConfig.tu21;
|
||||||
|
@ -152,10 +153,16 @@ function reset() {
|
||||||
};
|
};
|
||||||
proxy.resetForm("infoRef");
|
proxy.resetForm("infoRef");
|
||||||
}
|
}
|
||||||
|
// 下拉刷新
|
||||||
|
onPullDownRefresh((options) => {
|
||||||
|
console.log("下拉刷新,",options);
|
||||||
|
getList();
|
||||||
|
})
|
||||||
/** 查询活动详情列表 */
|
/** 查询活动详情列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
queryParams.value.params = {};
|
queryParams.value.params = {};
|
||||||
|
queryParams.value.pageNum = 1
|
||||||
|
queryParams.value.pageSize = 5
|
||||||
listInfo(queryParams.value).then(response => {
|
listInfo(queryParams.value).then(response => {
|
||||||
actiInfoList.value = response.rows;
|
actiInfoList.value = response.rows;
|
||||||
response.rows.forEach(item => {
|
response.rows.forEach(item => {
|
||||||
|
@ -208,7 +215,9 @@ function toESearch() {
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.fixed-header {}
|
.fixed-header {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.leftinfo {
|
.leftinfo {
|
||||||
|
|
Loading…
Reference in New Issue