Commit 835b7b8d authored by Damon's avatar Damon

Merge branch 'dev-v1.1.0' into test

parents 0b45c468 2f353bf6
;(function() { ;(function() {
let NODE_ENV = 'prod' // dev:开发环境 | test:测试环境 | prod:生产环境 let NODE_ENV = 'prod' // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null let ENV_VAR = null
let VERSION = 'v1.0.3' let VERSION = 'v1.1.0'
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
if (NODE_ENV === 'dev') { if (NODE_ENV === 'dev') {
ENV_VAR = require('./.env.dev.js') ENV_VAR = require('./.env.dev.js')
......
...@@ -225,15 +225,15 @@ export default { ...@@ -225,15 +225,15 @@ export default {
}, },
onShow() { onShow() {
// 从后台进入重新计算倒计时 // 从后台进入重新计算倒计时
if (this.source === 3 && this.beginTime) { // if (this.source === 3 && this.beginTime) {
const timestamp = Utils.diffTime(this.beginTime, new Date()) // const timestamp = Utils.diffTime(this.beginTime, new Date())
this.timestamp = this.currentTime - timestamp // this.timestamp = this.currentTime - timestamp
this.$u.vuex('beginTime', '') // this.$u.vuex('beginTime', '')
} // }
}, },
onHide() { onHide() {
// 记录进入后台时间 // 记录进入后台时间
if (this.source === 3) this.$u.vuex('beginTime', new Date()) // if (this.source === 3) this.$u.vuex('beginTime', new Date())
}, },
onLoad(e) { onLoad(e) {
if (e?.experience) this.experience = JSON.parse(e.experience) // 体验资格 if (e?.experience) this.experience = JSON.parse(e.experience) // 体验资格
......
...@@ -102,7 +102,6 @@ export default { ...@@ -102,7 +102,6 @@ export default {
getApp().track('scanCode-boundQuestionsPage', trackParams) getApp().track('scanCode-boundQuestionsPage', trackParams)
wx.scanCode({ wx.scanCode({
onlyFromCamera: true,
success: (res) => { success: (res) => {
console.log(res) console.log(res)
if (res.result && res.result.length == 14 + 6) { if (res.result && res.result.length == 14 + 6) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment