浏览代码

二维码扫码进来

xuqiaoying 3 年之前
父节点
当前提交
0b0c105575
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      pages4/courseTopic/goodsTopic.vue

+ 7 - 1
pages4/courseTopic/goodsTopic.vue

@@ -141,7 +141,13 @@ export default {
         }
     },
     onLoad(option) {
-        this.topicId = option.topicId
+        if (option.scene) {
+            let tid = decodeURIComponent(option.scene)
+            this.topicId = tid.split('=')[1]
+            console.log('topicId: ', this.topicId)
+        } else {
+            this.topicId = option.topicId
+        }
         this.getgoodsInfo()
     },
     methods: {