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