提交 8bdc3280 编写于 作者: guangjun.yang's avatar guangjun.yang

二次分享问题

上级 5484598b
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
"vue": "^2.1.0", "vue": "^2.1.0",
"vue-router": "^2.1.1", "vue-router": "^2.1.1",
"vuex": "^2.0.0", "vuex": "^2.0.0",
"web-buried-point": "^2.1.0" "web-buried-point": "^2.1.0",
"weixin-js-sdk": "^1.4.0-test"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^6.4.0", "autoprefixer": "^6.4.0",
......
<template> <template>
<section :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight"> <section v-if="!isWeb" :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight">
<div <div
class="nav-part" class="nav-part"
:style="'background:' + bgColor + ';' :style="'background:' + bgColor + ';'
......
...@@ -67,8 +67,7 @@ export default { ...@@ -67,8 +67,7 @@ export default {
const tcPlayer = new TcPlayer(this.id, options); const tcPlayer = new TcPlayer(this.id, options);
tcPlayer.video.on('timeupdate', (event) => { tcPlayer.video.on('timeupdate', (event) => {
let ct = tcPlayer.currentTime(); let ct = tcPlayer.currentTime();
// console.log('视频播放时长S => ', ct);
console.log('视频播放时长S => ', ct);
if (options.trySeeTime && ct >= options.trySeeTime) { if (options.trySeeTime && ct >= options.trySeeTime) {
tcPlayer.currentTime(0); tcPlayer.currentTime(0);
tcPlayer.pause(); tcPlayer.pause();
......
...@@ -6,6 +6,7 @@ import store from './store/' ...@@ -6,6 +6,7 @@ import store from './store/'
const mixins = require('@/utils/mixins'); const mixins = require('@/utils/mixins');
import '@/utils/rem' // 引入自适应 import '@/utils/rem' // 引入自适应
import '@/utils/yqy-bridge' // 移动端服务 import '@/utils/yqy-bridge' // 移动端服务
import '@/utils/wxShare';
// import FastClick from 'fastclick' // import FastClick from 'fastclick'
import vueFilters from '@/utils/filter'; import vueFilters from '@/utils/filter';
import BuriedPoint, { sendBuriedData } from 'web-buried-point'; import BuriedPoint, { sendBuriedData } from 'web-buried-point';
......
/* eslint-disable */ /* eslint-disable */
import Vue from 'vue' import Vue from 'vue'
import request from '@/service/api'; import request from '@/utils/fetch';
import wx from 'weixin-js-sdk' import wx from 'weixin-js-sdk'
import { getBaseUrl } from "@/utils/index"; import { getBaseUrl } from "@/utils/index";
/** 注入配置信息 */ /** 注入配置信息 */
export const wxConfig = (link) => { export const wxConfig = (link) => {
// const params = { resetURI: true, url: encodeURIComponent(location.href) }; // const params = { resetURI: true, url: encodeURIComponent(location.href) };
// 上线前是需要把域名改为线上的sc // 上线前是需要把域名改为线上的sc
let baseUrl = getBaseUrl(); let baseUrl = getBaseUrl("");
// request({ url: `https://sc.yunqueyi.com/wechats/signs?url=${encodeURIComponent(link)}` }).then(res => { // request({ url: `https://sc.yunqueyi.com/wechats/signs?url=${encodeURIComponent(link)}` }).then(res => {
request({ url: `${baseUrl}/wechats/signs?url=${encodeURIComponent(link)}` }).then(res => { request({ url: `${baseUrl}/wechats/signs?url=${encodeURIComponent(link)}` }).then(res => {
let configs = res.data.signMap; let configs = res.data.signMap;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册