From 51cd6f82618daeec4a6230b0cd47037c29d54612 Mon Sep 17 00:00:00 2001
From: Gdpao <1341331954@qq.com>
Date: Mon, 3 Aug 2020 14:37:02 +0800
Subject: [PATCH] gdpaoup
---
pages/index/index.vue | 56 +++++++++++++++++++++++++++----------------
1 file changed, 35 insertions(+), 21 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 803b53e..d85d7a1 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -34,22 +34,23 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -293,20 +294,33 @@
clickFImage(index) {
const item = this.indexImageSwiper[index];
console.log(item);
- this.activityLink({ type: item.url_type, id: item.info_id });
+ this.activityLink({
+ type: item.url_type,
+ id: item.info_id
+ });
},
clickSImage(index) {
const item = this.zhiboImageSwiper[index];
console.log(item);
- this.activityLink({ type: item.url_type, id: item.info_id });
+ this.activityLink({
+ type: item.url_type,
+ id: item.info_id
+ });
},
- activityLink({ type, id }) {
- if(type == 0) return false;
+ activityLink({
+ type,
+ id
+ }) {
+ if (type == 0) return false;
// type 1 商品详情页, 2 店铺详情页
const url = type == 1 ? 'pageB/sdetails/index' : 'pageC/merchant/index';
- let params = { id: id };
+ let params = {
+ id: id
+ };
// type: 1 // 商品详情 1普通 2拼团 3秒杀 4优惠券
- if(type == 1) Object.assign(params, { type: 1 });
+ if (type == 1) Object.assign(params, {
+ type: 1
+ });
this.$u.route({
url: url,
params: params
@@ -314,4 +328,4 @@
},
},
}
-
+