diff --git a/pages/index/index.vue b/pages/index/index.vue
index c495dba..9062aa8 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -221,6 +221,7 @@
diff --git a/pages/shop/index.vue b/pages/shop/index.vue
index ce506a1..0058543 100644
--- a/pages/shop/index.vue
+++ b/pages/shop/index.vue
@@ -46,7 +46,7 @@
-
+
@@ -61,6 +61,7 @@
diff --git a/static/js/common.js b/static/js/common.js
index 9f036ed..49a9f48 100644
--- a/static/js/common.js
+++ b/static/js/common.js
@@ -67,5 +67,29 @@ const common = {
else result = hours + ':' + minutes + ':' + seconds;
return result;
},
+ /**
+ * 广告位跳转
+ * @param { String } type 跳转类型
+ * @param { String | Number } id 跳转id 商品id/商家id...
+ * @return { undefined } undefined
+ */
+ jumpPage({ type, id }) {
+ let url;
+ switch (type) {
+ case 1:
+ url = '/pageB/sdetails/index?id=' + id;
+ break;
+ case 2:
+ url = '/pageC/merchant/index?id=' + id;
+ break;
+ case 3:
+ url = '/pageE/tool/MineCoupon'
+ break;
+ default:
+ break;
+ }
+ // console.log(url);
+ uni.navigateTo({ url: url });
+ },
}
-export default common
\ No newline at end of file
+export default common;
\ No newline at end of file