Przeglądaj źródła

Merge branch 'dev_1.1.7_lint' into pre

zhangwei 2 lat temu
rodzic
commit
7e12146cd1
1 zmienionych plików z 14 dodań i 0 usunięć
  1. 14 0
      pages/toolbox/index.vue

+ 14 - 0
pages/toolbox/index.vue

@@ -55,6 +55,7 @@ export default {
 			detail: {},
 			detail: {},
 			mid: '',
 			mid: '',
 			pageSource: '',
 			pageSource: '',
+			img_url: '',
 		};
 		};
 	},
 	},
 	head() {
 	head() {
@@ -129,6 +130,12 @@ export default {
 		}
 		}
 	},
 	},
 	mounted() {
 	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.pageSource = Report.pageSource.newUserLandingPage;
 		this.setCookieMid();
 		this.setCookieMid();
 		Report.reportLog({
 		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() {
 		setCookieMid() {
 			let _cookie_mid_arr = Cookies.get('mid') || [];
 			let _cookie_mid_arr = Cookies.get('mid') || [];
 			if (_cookie_mid_arr.length > 0) {
 			if (_cookie_mid_arr.length > 0) {