|
@@ -35,9 +35,11 @@
|
|
|
:footer-hide="true"
|
|
|
width="300px"
|
|
|
>
|
|
|
- <!-- <div id="code"></div>-->
|
|
|
- <!-- <canvas id="canvas"></canvas> -->
|
|
|
- <vue-qr id="vx-qrcode" :text="'http://aseanweb.info666.com/content/'+id" :size="200" :data-bd-imgshare-binded="0"></vue-qr>
|
|
|
+ <!-- <div id="code"></div>
|
|
|
+ <canvas id="canvas"></canvas> -->
|
|
|
+ <!-- <vue-qr id="vx-qrcode" :text="'http://aseanweb.info666.com/content/'+id" :size="200" :data-bd-imgshare-binded="0"></vue-qr> -->
|
|
|
+ <!-- <qrcode :value="'http://aseanweb.info666.com/content/'+id" :options="{ size: 170 }"></qrcode> -->
|
|
|
+ <qriously style="text-align: center;" :value="'http://aseanweb.info666.com/content/?id='+id" :size="200"/>
|
|
|
<p>打开微信,点击底部的“发现”,使用“扫一扫”即可将网页分享至朋友圈。</p>
|
|
|
</Modal>
|
|
|
</a>
|
|
@@ -153,14 +155,10 @@ import { getInfoDetail } from '~/api/content'
|
|
|
import { getColumnAd } from '~/api/lists'
|
|
|
import { mapMutations, mapState, mapGetters, mapActions } from 'vuex'
|
|
|
import Bus from '~/common/bus'
|
|
|
-// import VueQr from 'vue-qr'
|
|
|
-// import QRCode from 'qrcode'
|
|
|
import { formatTime } from '~/common/publicFun'
|
|
|
export default {
|
|
|
- // components: {
|
|
|
- // VueQr: VueQr
|
|
|
- // },
|
|
|
data() {
|
|
|
+
|
|
|
return {
|
|
|
vxCodeShow: false,
|
|
|
picPath: 'http://pic-asean2.oss-cn-hongkong.aliyuncs.com/',
|
|
@@ -199,7 +197,7 @@ export default {
|
|
|
nextEl: '.swiper-button-next',
|
|
|
prevEl: '.swiper-button-prev'
|
|
|
},
|
|
|
- codes: ''
|
|
|
+ codes: '',
|
|
|
// autoplay: {
|
|
|
// delay: 2500,
|
|
|
// disableOnInteraction: false
|
|
@@ -217,9 +215,6 @@ export default {
|
|
|
getInfoDetail({ reqdata: { infoId: query.id } }),
|
|
|
getColumnAd({ reqdata: { adPosition: 'column' } })
|
|
|
])
|
|
|
- if (process.browser) {
|
|
|
- require('vue-qr')
|
|
|
- }
|
|
|
|
|
|
conData.object.relateList.map((item, index) => {
|
|
|
if (index < 12) {
|
|
@@ -242,7 +237,6 @@ export default {
|
|
|
} else {
|
|
|
columnName = conData.object.columnName
|
|
|
}
|
|
|
-
|
|
|
return {
|
|
|
type: conData.object.infoType,
|
|
|
content: conData.object.articleContent,
|
|
@@ -271,7 +265,6 @@ export default {
|
|
|
Bus.$emit('columnId', this.columnId)
|
|
|
window._bd_share_main = ''
|
|
|
this.shareArt()
|
|
|
- // this.useqrcode()
|
|
|
// this.getData(this.id);
|
|
|
},
|
|
|
// computed: {
|
|
@@ -293,6 +286,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ head() {
|
|
|
+ return {
|
|
|
+ title: this.title,
|
|
|
+ meta: [{
|
|
|
+ hid: 'keywords',
|
|
|
+ name: 'keywords',
|
|
|
+ content: `东盟头条,aseantop,${this.keywords.replace(' ',',')}`
|
|
|
+ },{
|
|
|
+ hid: 'description',
|
|
|
+ name: 'description',
|
|
|
+ content: this.summary
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
// ...mapMutations(["setColumnId"]),
|
|
|
getData(id) {
|
|
@@ -388,7 +395,7 @@ export default {
|
|
|
bdMini: '2',
|
|
|
bdMiniList: false,
|
|
|
bdPic: '',
|
|
|
- bdUrl: 'http://aseanweb.info666.com/content/' + this.id,
|
|
|
+ bdUrl: 'http://aseanweb.info666.com/content/?id=' + this.id,
|
|
|
bdStyle: '0',
|
|
|
bdSize: '16'
|
|
|
},
|
|
@@ -433,20 +440,8 @@ export default {
|
|
|
// // },500);
|
|
|
// // }
|
|
|
// },
|
|
|
- // useqrcode() {
|
|
|
- // console.log(QRCode, 'QRCodeQRCode')
|
|
|
- // var canvas = document.getElementById('canvas')
|
|
|
- // let er = 'http://aseanweb.info666.com/content/' + this.id
|
|
|
- // QRCode.toCanvas(canvas, er, function(error) {
|
|
|
- // console.log(error, 'error')
|
|
|
- // if (error) console.error(error)
|
|
|
- // console.log('success!')
|
|
|
- // })
|
|
|
- // console.log(canvas, '1325412345234')
|
|
|
- // },
|
|
|
|
|
|
showVxCode() {
|
|
|
- // this.useqrcode();
|
|
|
this.vxCodeShow = !this.vxCodeShow
|
|
|
}
|
|
|
}
|
|
@@ -470,12 +465,9 @@ export default {
|
|
|
border-bottom: 1px dashed #ddd;
|
|
|
width: 100%;
|
|
|
line-height: 29px;
|
|
|
- // #canvas {
|
|
|
- // width: 200px !important;
|
|
|
- // height: 200px !important;
|
|
|
- // }
|
|
|
.ivu-col-span-8 {
|
|
|
height: 29px;
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
.con-img-box {
|