Browse Source

当前时间

xuqiaoying 2 years ago
parent
commit
0efb214657
3 changed files with 11 additions and 12 deletions
  1. 1 1
      common/request.js
  2. 1 1
      manifest.json
  3. 9 10
      pages/learn/index.vue

+ 1 - 1
common/request.js

@@ -38,7 +38,7 @@ hF6WiNlWfQTVoF1rhwIDAQAB
 -----END PUBLIC KEY-----`;
 
 export const version = '1.0.0' 
-export const tenantId = '867735392558919680'  // 祥粤云学堂:867735392558919680,祥粤学堂:667735392758919630
+export const tenantId = '867735392558919680'  // 祥粤云学堂:867735392558919680,祥粤学堂:667735392758919630, 中建云学堂-567735392758918520
 export const myRequest = (options) => {
 	if (store.state.allowLoading && !options.noLoading) {
 		uni.showLoading({

+ 1 - 1
manifest.json

@@ -75,7 +75,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wxd3c8ae80cf43a305", // 祥粤云学堂:wxd3c8ae80cf43a305, 祥粤学堂-wx871153afc95f55f4
+        "appid" : "wxd3c8ae80cf43a305", // 祥粤云学堂:wxd3c8ae80cf43a305, 祥粤学堂-wx871153afc95f55f4,中建云学堂-wx47d33eb64f9f2a0d
         "setting" : {
             "urlCheck" : false,
             "postcss" : true,

+ 9 - 10
pages/learn/index.vue

@@ -443,11 +443,11 @@ export default {
 	onLoad() {
 		// 1668873600 ,2022.11.20的时间戳
 		this.leftDays = 1668873600 - parseInt(curTime/1000)
-		// this.sysTime = +this.$method.timest()
+		this.sysTime = +this.$method.timest()
 	},
 	async onShow() {
 		this.getCourseLiveQues()
-		await this.commonSystemTime()
+		// await this.commonSystemTime()
 	},
 	 onPullDownRefresh() {
 		this.getCourseLiveQues()
@@ -497,7 +497,6 @@ export default {
 		// 查询直播课
 		getCourseLiveQues() {
 			this.allLoading = true
-			// this.$api.listUserFreeUnionBuyGoodsList(this.paramQ), // 查询用户拥有免费+自购题库商品 /bank/question/listUserFreeUnionBuyGoodsList
 			let arrs = [
 				this.$api.listUserVideoLive(this.paramC), // 查询用户拥有视频+直播商品 /goods/listUserVideoLive
 				this.$api.getgoodsLiveList({
@@ -528,13 +527,13 @@ export default {
 				this.allLoading = false
 			})
 		},
-		commonSystemTime() {
-			return new Promise(resolve => {
-				this.$api.commonSystemTime().then(res => {
-					this.sysTime = res.data.data;
-				})
-			})
-		},
+		// commonSystemTime() {
+		// 	return new Promise(resolve => {
+		// 		this.$api.commonSystemTime().then(res => {
+		// 			this.sysTime = res.data.data;
+		// 		})
+		// 	})
+		// },
 		// 看直播
 		toLiveLook(item) {
 			let moduleId = item.moduleId || 0