|
@@ -27,6 +27,7 @@ import {
|
|
} from '~/utils/util'
|
|
} from '~/utils/util'
|
|
import share from '~/mixins/share'
|
|
import share from '~/mixins/share'
|
|
import event from '~/mixins/event'
|
|
import event from '~/mixins/event'
|
|
|
|
+const app = getApp()
|
|
let aiengine = require('~/utils/ChivoxAiEngine')
|
|
let aiengine = require('~/utils/ChivoxAiEngine')
|
|
let sha1 = require('~/utils/sha1');
|
|
let sha1 = require('~/utils/sha1');
|
|
// 文章行高
|
|
// 文章行高
|
|
@@ -77,6 +78,7 @@ Page({
|
|
activityId: '',
|
|
activityId: '',
|
|
// 0免费1收费
|
|
// 0免费1收费
|
|
free: 1,
|
|
free: 1,
|
|
|
|
+ isIos: app.globalData.isIOS,
|
|
isVip: false,
|
|
isVip: false,
|
|
tempFilePath: ""
|
|
tempFilePath: ""
|
|
},
|
|
},
|
|
@@ -87,13 +89,23 @@ Page({
|
|
wx.setNavigationBarTitle({
|
|
wx.setNavigationBarTitle({
|
|
title: options.navBarTitle
|
|
title: options.navBarTitle
|
|
})
|
|
})
|
|
- this.setData({
|
|
|
|
- readingReset: options.reset || false,
|
|
|
|
- readingType: options.readingType || 'public',
|
|
|
|
- uploadHide: options.uploadHide,
|
|
|
|
- activityId: options.activityId || '',
|
|
|
|
- free: options.free ? Number(options.free) : 1
|
|
|
|
- })
|
|
|
|
|
|
+ if (this.data.isIos) {
|
|
|
|
+ this.setData({
|
|
|
|
+ readingReset: options.reset || false,
|
|
|
|
+ readingType: options.readingType || 'public',
|
|
|
|
+ uploadHide: options.uploadHide,
|
|
|
|
+ activityId: options.activityId || '',
|
|
|
|
+ free: 0
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.setData({
|
|
|
|
+ readingReset: options.reset || false,
|
|
|
|
+ readingType: options.readingType || 'public',
|
|
|
|
+ uploadHide: options.uploadHide,
|
|
|
|
+ activityId: options.activityId || '',
|
|
|
|
+ free: options.free ? Number(options.free) : 1
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.getreadInfo(videoId, options.reset).then(res => {
|
|
this.getreadInfo(videoId, options.reset).then(res => {
|
|
wx.nextTick(() => {
|
|
wx.nextTick(() => {
|
|
if (options.voluntarily && this.data.isVip) {
|
|
if (options.voluntarily && this.data.isVip) {
|
|
@@ -205,9 +217,15 @@ Page({
|
|
// 获取是否vip
|
|
// 获取是否vip
|
|
async getVipInfo() {
|
|
async getVipInfo() {
|
|
let vipTime = await getVipInfo()
|
|
let vipTime = await getVipInfo()
|
|
|
|
+ // if (this.data.isIos) {
|
|
|
|
+ // this.setData({
|
|
|
|
+ // isVip: '183760000000'
|
|
|
|
+ // })
|
|
|
|
+ // }else{
|
|
this.setData({
|
|
this.setData({
|
|
isVip: vipTime != ''
|
|
isVip: vipTime != ''
|
|
})
|
|
})
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
// 获取阅读内容
|
|
// 获取阅读内容
|
|
getreadInfo(videoId, reset = false) {
|
|
getreadInfo(videoId, reset = false) {
|