张含笑
2025-11-14 1808ac7a969f032d68b50c123b886e9999392594
feat:筛选翻页调整
2 files modified
12 ■■■■ changed files
src/pages/work/index.vue 10 ●●●● patch | view | raw | blame | history
src/subPackages/workDetail/index.vue 2 ●●● patch | view | raw | blame | history
src/pages/work/index.vue
@@ -18,10 +18,12 @@
    // const viewUrl = getWebViewUrl('/work', {})
const updateKey = ref(0)
const viewUrl = computed(() => {
  return getWebViewUrl(  '/work', { updateKey: updateKey.value })
        return getWebViewUrl('/work', {
            updateKey: updateKey.value
})
    function onPostMessage(data) {
    })
    function onPostMessage(data) {
        if (data.type === 'jumpMapNav') {
            uni.navigateTo({
                url: `/subPackages/workDetail/mapWork/index?currentItem=${data.eventNum}`
@@ -29,7 +31,7 @@
        } else if (data.type === 'workid') {
            uni.navigateTo({
                url: `/subPackages/workDetail/index?eventNum=${data.eventNum}`
                url: `/subPackages/workDetail/index?eventNum=${data.eventNum}&totalNum=${data.totalNum}&keyword=${data.keyword}&aiType=${data.aiType}`
            });
        } else if (data.type === 'bigImage') {
            uni.navigateTo({
@@ -43,8 +45,6 @@
    onShow(() => {
          const joinParams = uni.getStorageSync('joinParams');
          if (joinParams) {
            // 使用后清除
            console.log('是否打印', updateKey.value)
            updateKey.value = updateKey.value + 1
            uni.removeStorageSync('joinParams');
          }
src/subPackages/workDetail/index.vue
@@ -15,7 +15,7 @@
    const viewUrl = ref('')
    onLoad( (options) => {
        const eventNum= options.eventNum;
        viewUrl.value = getWebViewUrl('/workDetail', {eventNum:eventNum})
        viewUrl.value = getWebViewUrl('/workDetail', {eventNum:eventNum,totalNum:options.totalNum,keyword:options.keyword,aiType:options.aiType})
    });
    function onPostMessage(data) {