|
@@ -70,8 +70,8 @@ Page({
|
|
},
|
|
},
|
|
|
|
|
|
activityId: '',
|
|
activityId: '',
|
|
-
|
|
+
|
|
- free: false,
|
|
+ free: 1,
|
|
isVip: false
|
|
isVip: false
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -95,7 +95,7 @@ Page({
|
|
readingType: options.readingType || 'public',
|
|
readingType: options.readingType || 'public',
|
|
uploadHide: options.uploadHide,
|
|
uploadHide: options.uploadHide,
|
|
activityId: options.activityId || '',
|
|
activityId: options.activityId || '',
|
|
- free: options.free || false
|
|
+ free: Number(options.free)
|
|
})
|
|
})
|
|
|
|
|
|
this.storeBindings = createStoreBindings(this, {
|
|
this.storeBindings = createStoreBindings(this, {
|
|
@@ -237,7 +237,7 @@ Page({
|
|
},
|
|
},
|
|
|
|
|
|
setCountDown() {
|
|
setCountDown() {
|
|
- if (!this.data.isVip && !this.data.free) {
|
|
+ if (!this.data.isVip && !!this.data.free) {
|
|
this.resetReading()
|
|
this.resetReading()
|
|
return this.selectComponent('#buyVip').open({
|
|
return this.selectComponent('#buyVip').open({
|
|
isVip: this.data.isVip
|
|
isVip: this.data.isVip
|