|
@@ -55,6 +55,7 @@ export default {
|
|
|
detail: {},
|
|
|
mid: '',
|
|
|
pageSource: '',
|
|
|
+ img_url: '',
|
|
|
};
|
|
|
},
|
|
|
head() {
|
|
@@ -129,6 +130,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ if (this.detail.postBizData.linkImagePath.indexOf('default') > 0) {
|
|
|
+ this.img_url = '/img/img-default.png';
|
|
|
+ } else {
|
|
|
+ this.img_url = this.detail.postBizData.linkImagePath;
|
|
|
+ }
|
|
|
+
|
|
|
this.pageSource = Report.pageSource.newUserLandingPage;
|
|
|
this.setCookieMid();
|
|
|
Report.reportLog({
|
|
@@ -180,6 +187,13 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ guid() {
|
|
|
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
|
+ var r = (Math.random() * 16) | 0,
|
|
|
+ v = c == 'x' ? r : (r & 0x3) | 0x8;
|
|
|
+ return v.toString(16);
|
|
|
+ });
|
|
|
+ },
|
|
|
setCookieMid() {
|
|
|
let _cookie_mid_arr = Cookies.get('mid') || [];
|
|
|
if (_cookie_mid_arr.length > 0) {
|