浏览代码

题库详情加分享码

xuqiaoying 2 年之前
父节点
当前提交
0a390131c0
共有 4 个文件被更改,包括 4 次插入1 次删除
  1. 1 0
      pages2/bank/detail.vue
  2. 1 1
      pages2/dailyPractice/index.vue
  3. 1 0
      pages3/course/detail.vue
  4. 1 0
      pages4/login/login.vue

+ 1 - 0
pages2/bank/detail.vue

@@ -237,6 +237,7 @@ export default {
 				optObj[arrs[i].split('=')[0]] = arrs[i].split('=')[1]
 			}
 			this.id = optObj.id
+			uni.setStorageSync('newUser_sc', optObj.sc)
 		} else {
 			// 小程序正常跳转的
 			// this.id => goodsId

+ 1 - 1
pages2/dailyPractice/index.vue

@@ -99,7 +99,7 @@ export default {
                 }
             })
         },
-        // 获取每日一练试卷打卡记录
+        // 获取每日一练试卷日历打卡记录
         getDailyRecord() {
             this.$http({
                 url: '/bank/question/get/special/record',

+ 1 - 0
pages3/course/detail.vue

@@ -282,6 +282,7 @@ export default {
 			// console.log('optObj:', optObj);
 			this.id = optObj.id
 			this.goodsType = optObj.goodsType
+			console.log('optObj.sc:', optObj.sc);
 			uni.setStorageSync('newUser_sc', optObj.sc)
 		} else {
 			// 小程序正常跳转的

+ 1 - 0
pages4/login/login.vue

@@ -133,6 +133,7 @@ export default {
 		if (uni.getStorageSync('newUser_sc')) {
 			this.newUser_sc = uni.getStorageSync('newUser_sc')
 		}
+		console.log('---this.newUser_sc:', this.newUser_sc);
 	},
 	onShow() {
 		// 获取code