diff --git a/src/App.vue b/src/App.vue
index c0c0cc257..6fafbaddb 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,8 +2,8 @@
-
-
+
+
-
+
-
+
+
![]()
+
查看
+
一键转发
-
-
-
-
-
+
+
{{ item.sectionName }}
+
+
+
+ {{ menu.name }}
@@ -25,7 +26,8 @@ export default {
},
data() {
return {
- list: [] //商品商城列表
+ // 商品商城列表
+ list: []
}
},
mounted() {
@@ -33,25 +35,26 @@ export default {
},
methods: {
//获取商品商城列表
- getShopList() {
- getShopList({}).then(res => {
- this.$toast.clear()
- if (res.result == '0') {
- this.list = res.content
- } else {
- this.$toast(res.resultMessage)
+ async getShopList() {
+ let result = await getShopList({})
+ if (result.result === '0') {
+ if (result.content) {
+ this.list = result.content
}
- })
+ }
},
- //查看详情
- goDetail(v) {
+ // 查看详情
+ goDetail(v, item) {
+ if (!v.available) {
+ return this.$toast('功能暂未开发')
+ }
this.$jump({
flag: 'h5',
extra: {
- url: location.origin + `/#/productStore/storeDetail?mallId=${v.id}`
+ url: location.origin + `/#/productStore/storeDetail/${v.id}/${item.sectionName}`
},
routerInfo: {
- path: `/productStore/storeDetail?mallId=${v.id}`
+ path: `/productStore/storeDetail/${v.id}/${item.sectionName}`
}
})
}
@@ -60,4 +63,15 @@ export default {
\ No newline at end of file
+/deep/ [class*='van-hairline']::after {
+ border: none;
+}
+
+/deep/ .van-grid {
+ align-items: flex-start;
+}
+
+/deep/ .van-image {
+ width: 60%;
+}
+