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

Merge branch 'dev-urgent-0725' into dev-autoplay-0801

* dev-urgent-0725:
  到播放时长后,设置播放重0秒开始
  弹框等,文案“去试看”
  弹框内容弹框内容
  样式调整
  自动播放打开了
  特殊处理下返回
  新增 试看事件限制

# Conflicts:
#	src/utils/fetch.js
#	src/views/merge-detail.vue
...@@ -276,6 +276,9 @@ export default { ...@@ -276,6 +276,9 @@ export default {
if(!actionText) { if(!actionText) {
actionText = type == 1 ? '去考试' : '去学习'; actionText = type == 1 ? '去考试' : '去学习';
} }
if(!this.hasBindCard && type == 2) {
actionText = '去试看'
}
return actionText; return actionText;
}, },
// showDialog(introduce) { // showDialog(introduce) {
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<div class="dialog-content">{{content}}</div> <div class="dialog-content">{{content}}</div>
<div v-show="needSubContent" class="dialog-sub-content" v-html="subContent"></div> <div v-show="needSubContent" class="dialog-sub-content" v-html="subContent"></div>
<div class="dialog-footer v-hairline-top"> <div class="dialog-footer v-hairline-top">
<span :class="{'single-btn': isSingle}" @click.stop.prevent="handlerAction(1)">{{cancleBtnText}}</span> <span :class="{'single-btn': isSingle}" @click="handlerAction(1)">{{cancleBtnText}}</span>
<span v-show="!isSingle" class="confirm-btn v-hairline-left" @click.stop.prevent="handlerAction(2)">{{confirmBtnText}}</span> <span v-show="!isSingle" class="confirm-btn v-hairline-left" @click="handlerAction(2)">{{confirmBtnText}}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -151,5 +151,11 @@ export default { ...@@ -151,5 +151,11 @@ export default {
border: 0 solid #f0f1f2; border: 0 solid #f0f1f2;
} }
} }
&.shikan {
.dialog-sub-content {
text-align: center;
font-size: px2rem(16px);
}
}
} }
</style> </style>
...@@ -62,8 +62,20 @@ export default { ...@@ -62,8 +62,20 @@ export default {
listener: this.listener, listener: this.listener,
...this.options ...this.options
}; };
options.width = htmlWidth options.width = htmlWidth;
this.tcPlayer = new TcPlayer(this.id, options);
const tcPlayer = new TcPlayer(this.id, options);
tcPlayer.video.on('timeupdate', (event) => {
let ct = tcPlayer.currentTime();
console.log('视频播放时长S => ', ct);
if (options.trySeeTime && ct >= options.trySeeTime) {
tcPlayer.currentTime(0);
tcPlayer.pause();
this.$emit('sk-tip');
}
});
this.tcPlayer = tcPlayer;
}, },
reset() { reset() {
if (this.tcPlayer) { if (this.tcPlayer) {
......
...@@ -17,7 +17,7 @@ service.interceptors.request.use(config => { ...@@ -17,7 +17,7 @@ service.interceptors.request.use(config => {
if(config.data.token){ if(config.data.token){
config.headers['token'] = config.data.token || 'CAF8336E76514F07BF195EFCEBE60775' config.headers['token'] = config.data.token || 'CAF8336E76514F07BF195EFCEBE60775'
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境 if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
config.headers['token'] = config.data.token || 'CAF8336E76514F07BF195EFCEBE60775'; config.headers['token'] = config.data.token || '14587B3BBD77434EAFE8755FB1856008';
} }
delete config.data.setEntry; delete config.data.setEntry;
delete config.data.token; delete config.data.token;
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册