|
|
<!-- +---------------------------------------------------------------------- -->
|
|
|
<!-- | 天诚科技 [ 刘海东 17600099397赋能开发者,助力企业发展 ] -->
|
|
|
<!-- +---------------------------------------------------------------------- -->
|
|
|
<!-- | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. -->
|
|
|
<!-- +---------------------------------------------------------------------- -->
|
|
|
<!-- | Licensed 该系统并不是自由软件,未经许可不能去掉相关版权 -->
|
|
|
<!-- +---------------------------------------------------------------------- -->
|
|
|
<!-- | Author:甘肃天诚志信电子商务有限公司 刘海东 联系电话维系17600099397 -->
|
|
|
<!-- +---------------------------------------------------------------------- -->
|
|
|
{extend name="public/container"}
|
|
|
{block name="title"}练习详情{/block}
|
|
|
{block name="head_top"}
|
|
|
<style>
|
|
|
body {
|
|
|
background-color: #f5f5f5;
|
|
|
}
|
|
|
</style>
|
|
|
{/block}
|
|
|
{block name="content"}
|
|
|
<div v-cloak id="app">
|
|
|
<div class="problem-index-page">
|
|
|
<div class="wrapper">
|
|
|
<div class="title">{{ problem.title }}</div>
|
|
|
<div class="group">{{ problem.answer }}人已答题<div>试题数量:<span>{{ problem.item_number }}题</span></div></div>
|
|
|
<ul>
|
|
|
<li>
|
|
|
<div><span>{{ problem.single_number }}</span>题</div>
|
|
|
单选题
|
|
|
</li>
|
|
|
<li>
|
|
|
<div><span>{{ problem.many_number }}</span>题</div>
|
|
|
多选题
|
|
|
</li>
|
|
|
<li>
|
|
|
<div><span>{{ problem.judge_number }}</span>题</div>
|
|
|
判断题
|
|
|
</li>
|
|
|
</ul>
|
|
|
<div>
|
|
|
<a :href="'{:url('topic/problem_detail')}?type=1&test_id=' + problem.id">开始练习</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<div>题型介绍:</div>
|
|
|
<ol>
|
|
|
<li>单选题(选项中只有1个正确答案);</li>
|
|
|
<li>多选题(选项中至少有2个正确答案);</li>
|
|
|
<li>判断题(选项中只有1个正确答案)。</li>
|
|
|
</ol>
|
|
|
</div>
|
|
|
</div>
|
|
|
<quick-menu></quick-menu>
|
|
|
</div>
|
|
|
{/block}
|
|
|
{block name='foot'}
|
|
|
<script>
|
|
|
var uid = '{$uid}',id="{$id}";
|
|
|
var titles = '{$titles}';
|
|
|
var wechat_share=<?php echo isset($overallShareWechat) ? $overallShareWechat : '{}'; ?>;
|
|
|
window.overallShare = false;
|
|
|
require(['vue', 'helper', 'store','{__WAP_PATH}zsff/js/quick.js'], function (Vue, $h, $http) {
|
|
|
var vm = new Vue({
|
|
|
el: '#app',
|
|
|
filters: {
|
|
|
m: function (n,d){
|
|
|
x=(''+n).length,p=Math.pow,d=p(10,d);
|
|
|
x-=x%3;
|
|
|
return Math.round(n*d/p(10,x))/d+" kMGTPE"[x/3]
|
|
|
}
|
|
|
},
|
|
|
data: {
|
|
|
problem: {}
|
|
|
},
|
|
|
created: function () {
|
|
|
this.init();
|
|
|
},
|
|
|
mounted: function () {
|
|
|
var that = this;
|
|
|
this.$nextTick(function () {
|
|
|
mapleWx($jssdk(), function () {
|
|
|
this.onMenuShareAll({
|
|
|
title: titles,
|
|
|
desc: titles,
|
|
|
imgUrl: wechat_share.wechat_share_img,
|
|
|
link: location.origin + "{:url('topic/problem_index')}?spread_uid=" + uid + "&id=" + $h.getParmas('id')
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
init: function () {
|
|
|
$h.loadFFF();
|
|
|
$http.baseGet($h.U({
|
|
|
c: 'topic',
|
|
|
a: 'testPaperDetails',
|
|
|
q: {
|
|
|
id: id
|
|
|
}
|
|
|
}), function (res) {
|
|
|
$h.loadClear();
|
|
|
vm.problem = res.data.data;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
</script>
|
|
|
{/block}
|
|
|
|