|
@@ -56,7 +56,7 @@
|
|
|
<view class="grade">服务:<text>{{shop.grade||'5.00'}}</text></view>
|
|
|
</view>
|
|
|
<view class="four_2">
|
|
|
- <view class="btn">进入店铺</view>
|
|
|
+ <view class="btn" @tap="toCommon('pagesHome/shop/index')">进入店铺</view>
|
|
|
<view class="btn">关注</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -161,6 +161,7 @@
|
|
|
options: [{
|
|
|
icon: 'shop',
|
|
|
text: '店铺',
|
|
|
+ route: 'pagesHome/shop/index',
|
|
|
},
|
|
|
{
|
|
|
icon: 'cart',
|
|
@@ -217,9 +218,16 @@
|
|
|
onShow: function() {},
|
|
|
methods: {
|
|
|
onClick(e) {
|
|
|
- uni.showToast({
|
|
|
- title: `点击${e.content.text}`,
|
|
|
- icon: 'none'
|
|
|
+ if (e && e.content.route){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/${e.content.route}`
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 公共跳转
|
|
|
+ toCommon(e) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/${e}`
|
|
|
})
|
|
|
},
|
|
|
toPath(e) {
|