瀏覽代碼

我的图库增加上一张下一张切换功能

jwyu 2 年之前
父節點
當前提交
cc6f0bb19d
共有 3 個文件被更改,包括 4 次插入3 次删除
  1. 2 1
      pages-myChart/detail.vue
  2. 1 1
      pages-myChart/list.vue
  3. 1 1
      pages/myChart/index.vue

+ 2 - 1
pages-myChart/detail.vue

@@ -13,9 +13,10 @@ export default {
     onLoad(options){
         const queryObj={
             ChartInfoId:options.chartInfoId,
-				chartSource: options.chartSource,
+			chartSource: options.chartSource,
             chartCode:options.chartCode,
             source:'ybxcx_my_chart',
+            classifyId:options.classifyId||'',
             token:this.$store.state.user.token||uni.getStorageSync("token"),
             timestamp:new Date().getTime(),//防止缓存
         }

+ 1 - 1
pages-myChart/list.vue

@@ -94,7 +94,7 @@ export default {
 
         goDetail({chart_info_id,chart_info_source,unique_code}){
             uni.navigateTo({
-                url: `/pages-myChart/detail?chartInfoId=${chart_info_id}&chartSource=${chart_info_source}&chartCode=${unique_code}`,
+                url: `/pages-myChart/detail?chartInfoId=${chart_info_id}&chartSource=${chart_info_source}&chartCode=${unique_code}&classifyId=${this.classify_id}`,
             });
         },
 

+ 1 - 1
pages/myChart/index.vue

@@ -161,7 +161,7 @@ export default {
 
         goDetail({chart_info_id,chart_info_source,unique_code}){
             uni.navigateTo({
-                url: `/pages-myChart/detail?chartInfoId=${chart_info_id}&chartSource=${chart_info_source}&chartCode=${unique_code}`, 
+                url: `/pages-myChart/detail?chartInfoId=${chart_info_id}&chartSource=${chart_info_source}&chartCode=${unique_code}&classifyId=${this.classify_id}`, 
             });
         }
     },