| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <template>
- <view class="content">
- <view class="set-padding">
- <view class="header">
- <view class="title">{{ model.title }}</view>
- <view class="way-time">
- <view class="way" v-if="model.way">{{ model.way }}</view>
- <view class="time">{{ model.time }}</view>
- </view>
- </view>
- <view class="artical">
- <!-- <view v-html="model.artical"></view> -->
- <u-parse :content="model.artical" @navigate="navigateUrl" />
- </view>
- </view>
-
- <view style="margin-bottom: 12%;">
- <view class="closure-font" v-if="enClosureList.length">附件:</view>
- <view class="enClosure-box" v-for="(item,index) in enClosureList" :key="item.id">
- <view @click="showEnclosure(item.url)">{{index + 1}}.{{item.name}}</view>
- </view>
- </view>
-
-
- <view class="footer">
- <view style="width: 100%">
- <footer-share
- style="width: 100%"
- :isCollection="false"
- @collectionPages="collectionPage"
- @sharePages="sharePage"
- ></footer-share>
- </view>
- </view>
- </view>
- </template>
- <script>
- import md5 from "@/common/md5.js";
- import FooterShare from "../footer-share/footer-share.vue";
- import uParse from '@/components/gaoyia-parse/parse.vue'
- export default {
- props: {
- model: {
- type: Object,
- default: () => {},
- },
- field: {
- type: String,
- default: "",
- },
- enclosureIds: {
- type: String,
- default: "",
- },
- },
- components: {
- FooterShare,
- uParse
- },
- watch:{
- enclosureIds:function(val){
- if(val){
- this.getEnclosure(val)
- }
- },
- },
- data() {
- return {
- enClosureList:[],
- shareUrl:getApp().globalData.shareUrl
- // model: {
- // title: " 线上直播课程 | 《精准识人 - 人才面试评估分享会》",
- // // way: "区人力资源局",
- // time: "2021-08-16 16:10:27",
- // artical:
- // "<p><strong> </strong>2021QQ名人赛第二季全明星王牌赛从开战至今便火爆出圈、收获超高关注度,明星嘉宾与主播联袂征战,激烈对抗燃爆整个电竞赛场;豪华的阵容加上新奇玩法,缔造全场高能的视觉盛宴!生而为战,精彩不断,如今第五期比赛余热未散,9月25日下午13:00的第六期比赛即将高能来袭!</p><p><br></p><p><strong> 此外,在直播期间,还有Airpods pro、西伯利亚耳机、QQ年费黄钻、会员、绿钻以及白鹤梁神女,乞巧织情,战令币等多款礼品在直播间在线放送,一定不要错过咯~</strong></p><p> </p><p><strong> “奶味甜豆”张星特遇上“水系男孩”俞更寅!</strong></p><p> 本次全明星王牌赛王者专场第六期到场的明星嘉宾是张星特与俞更寅,两位实力vocal男神将在峡谷相遇,开启实力峡谷对决!</p><p> 本期红方阵营出战的是被称为“奶味甜豆”的张星特,舞台上的他用自己迷人的声音和灿烂的微笑收获了不少观众的青睐,这个像星星一样闪闪发光的男孩,在生活中也是一个爱撒娇的“小甜豆”哦,期待他这次可以在展示自己电竞实力的同时也能“萌翻峡谷”~</p><p> 本期蓝方阵营出战的是被称为“水系男孩”的俞更寅,他凭着自己对音乐的热爱,坚定地踏上了追梦之旅,用自己天籁般的嗓音治愈着观众,创造着一个又一个奇迹,当这个无畏逐梦的男孩来到峡谷,势必会给我们创造无限惊喜!</p><p> 两位实力vocal男神降临峡谷,不仅能欣赏他们精彩的游戏技术还能看到他们“彪歌”“彪高音”,一起期待吧!</p><p><br></p><p><br></p><p><strong> 打野天花板清清vs 8国服主播菜咪,实力与人气之争!</strong></p><p> 本期我们还邀请到了两位技术流主播清清和菜咪。其中清清搭档张星特作为红方阵营,而菜咪搭档俞更寅作为蓝方阵营。</p><p> 作为拥有着国服最高战力曜的清清,一直是打野天花板的存在,这位教学殿堂级主播,素有“虎牙清清曜无敌”的美誉,其操作绝对值得一看;而拥有着双系统8国服的菜咪,一直凭借着自己超高的颜值和高超的辅助技术深受玩家喜爱,是人气爆火的实力派,其粉丝美称“菜咪不菜,峡谷打怪”!</p><p><br></p><p><br></p><p> 除此之外,我们还邀请到了仙染、名辞、 汤汤、耀宇、乔妹等6位虎牙人气主播作为线上嘉宾,精兵强将在峡谷一决高下!</p><p> 强强对决,到底红蓝双方谁能脱颖而出?记得关注9月25日下午13:00的2021QQ名人赛第二季全明星王牌赛第六期,届时将会为大家揭晓答案。</p><p> 2021QQ名人赛-虎牙直播全明星联赛,作为一档王牌明星电竞对抗赛事,由腾讯QQ主办,QQ游戏中心、QQ空间、QQicon联合主办,由虎牙直播独家直播呈现,携手战略合作伙伴先知电竞打造的全明星电竞赛事。赛事以王者荣耀、和平精英等热门游戏为比赛项目,聚合众多人气明星及游戏KOL进行游戏竞技。青春热血,生而为战,王牌聚集,开战无敌!</p><p> 明星嘉宾携手知名主播在峡谷相约对战,精彩刺激的红蓝对决,现场互动玩法升级,请持续关注2021QQ名人赛第二季全明星王牌赛!</p><p> </p>",
- // },
- };
- },
- methods: {
- navigateUrl(href, e) {
- uni.setClipboardData({
- data:href,//要被复制的内容
- success:()=>{//复制成功的回调函数
- uni.showToast({//提示
- title:'复制成功'
- })
- }
- });
- },
- showEnclosure(url){
- uni.showLoading({
- title:'加载中...'
- })
- let urls = this.shareUrl + url;
- uni.downloadFile({
- url: urls,
- success: function (res) {
- var filePath = res.tempFilePath;
- uni.openDocument({
- filePath: filePath,
- showMenu: true,
- success: function (res) {
- uni.hideLoading();
- }
- });
- }
- });
- },
- getEnclosure(athId){
- let md5Sign = md5(
- "method=" +"common" +"×tamp=" + getApp().globalData.globalTimestamp +"&secret=" +getApp().globalData.secret
- );
- let url =
- getApp().globalData.shareUrl + "api/api.php" +"?method=common&action=attach_ids×tamp=" +
- getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
- let postData = {
- attach_ids: athId,
- };
- //获取文章
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: postData,
- success: (res) => {
- if (res.data.code === 200) {
- this.enClosureList = res.data.data;
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- sharePage() {
- let that = this;
- console.log('点击分享');
- uni.showShareMenu({
- title: this.model.title,
- path:
- "pages/" +
- this.field +
- "/" +
- this.field +
- "_detail?id=" +
- this.model.id,
- success(res) {
- that.shareRequest();
- },
- });
- },
- shareRequest() {
- let md5Sign = md5(
- "method=" +
- "user" +
- "×tamp=" +
- getApp().globalData.globalTimestamp +
- "&secret=" +
- getApp().globalData.secret
- );
- let url =
- getApp().globalData.shareUrl +
- "api/api.php" +
- "?method=user&source=" +
- this.field +
- "&action=repost×tamp=" +
- getApp().globalData.globalTimestamp +
- "&sign=" +
- md5Sign;
- uni.request({
- url: url,
- method: "POST",
- header: {
- "content-type": "application/x-www-form-urlencoded",
- },
- data: {
- openId: getApp().globalData.open_id,
- source_id: this.model.id,
- source: this.field,
- },
- success: (res) => {
- if (res.data.code === 200) {
- console.log(res);
- }
- },
- fail: () => {
- console.log("连接失败");
- },
- });
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .content {
- display: flex;
- flex-direction: column;
- .set-padding {
- padding: 40rpx;
- margin-bottom: 50rpx;
- .header {
- display: flex;
- flex-direction: column;
- .title {
- letter-spacing: 5rpx;
- font-size: 36rpx;
- font-weight: 600;
- }
- .way-time {
- margin: 20rpx 0;
- font-size: 26rpx;
- color: $uni-text-color-grey;
- display: flex;
- justify-content: space-between;
-
- }
- }
- .artical {
- font-size: 32rpx;
- box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
- border-radius: 32rpx;
- padding: 30rpx;
- }
- }
- .closure-font {
- font-size: 28rpx;
- padding-left: 40rpx;
- margin-bottom: 20rpx;
- }
- .enClosure-box {
- width: 100%;
- display: flex;
- flex-direction: column;
- font-size: 28rpx;
- color: cornflowerblue;
- cursor: pointer;
- margin-bottom: 20rpx;
- text-indent: 50rpx;
- }
- }
- </style>
|