|
|
@ -26,7 +26,8 @@ |
|
|
|
|
|
|
|
<view class="menu"> |
|
|
|
<uv-grid :border="false" :col="4" > |
|
|
|
<uv-grid-item v-for="(item,index) in baseList" :key="index" @click="$utils.navigateTo(item.path)"> |
|
|
|
<uv-grid-item v-for="(item,index) in baseList" :key="index" |
|
|
|
@click="toUrl(item.url)"> |
|
|
|
<image :src="item.image" mode=""></image> |
|
|
|
<text class="menu-text">{{item.title}}</text> |
|
|
|
</uv-grid-item> |
|
|
@ -34,7 +35,6 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="map"> |
|
|
|
{{ configList.index_center_image }} |
|
|
|
<image :src="configList.index_center_image" mode="aspectFill" /> |
|
|
|
</view> |
|
|
|
|
|
|
@ -145,9 +145,7 @@ |
|
|
|
import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue' |
|
|
|
import Position from '@/utils/position.js' |
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
import { |
|
|
|
mapGetters |
|
|
|
} from 'vuex' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
tabber, |
|
|
@ -158,40 +156,41 @@ |
|
|
|
area: '长沙', |
|
|
|
notice: '长沙市刘师傅在服务过程中客户投诉“服务过程中有不文明的行为”.....', |
|
|
|
bannerList: [], |
|
|
|
baseList: [{ |
|
|
|
image: '/static/image/home/0.png', |
|
|
|
title: '关于我们', |
|
|
|
path: '/pages_order/home/introduce', |
|
|
|
}, |
|
|
|
{ |
|
|
|
image: '/static/image/home/1.png', |
|
|
|
title: '产品介绍', |
|
|
|
}, |
|
|
|
{ |
|
|
|
image: '/static/image/home/2.png', |
|
|
|
title: '促销活动', |
|
|
|
}, |
|
|
|
{ |
|
|
|
image: '/static/image/home/3.png', |
|
|
|
title: '商城', |
|
|
|
}, |
|
|
|
{ |
|
|
|
image: '/static/image/home/4.png', |
|
|
|
title: '邀请好友', |
|
|
|
}, |
|
|
|
{ |
|
|
|
image: '/static/image/home/5.png', |
|
|
|
title: '新闻中心', |
|
|
|
path: '/pages_order/home/journalism', |
|
|
|
}, |
|
|
|
{ |
|
|
|
image: '/static/image/home/6.png', |
|
|
|
title: '企业合作', |
|
|
|
}, |
|
|
|
{ |
|
|
|
image: '/static/image/home/7.png', |
|
|
|
title: '联系我们', |
|
|
|
}, |
|
|
|
baseList: [ |
|
|
|
// { |
|
|
|
// image: '/static/image/home/0.png', |
|
|
|
// title: '关于我们', |
|
|
|
// path: '/pages_order/home/introduce', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// image: '/static/image/home/1.png', |
|
|
|
// title: '产品介绍', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// image: '/static/image/home/2.png', |
|
|
|
// title: '促销活动', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// image: '/static/image/home/3.png', |
|
|
|
// title: '商城', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// image: '/static/image/home/4.png', |
|
|
|
// title: '邀请好友', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// image: '/static/image/home/5.png', |
|
|
|
// title: '新闻中心', |
|
|
|
// path: '/pages_order/home/journalism', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// image: '/static/image/home/6.png', |
|
|
|
// title: '企业合作', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// image: '/static/image/home/7.png', |
|
|
|
// title: '联系我们', |
|
|
|
// }, |
|
|
|
], |
|
|
|
productList: [], |
|
|
|
keyword: '', |
|
|
@ -262,10 +261,21 @@ |
|
|
|
getRiceIconList(){ |
|
|
|
this.$api('getRiceIconList', res => { |
|
|
|
if(res.code == 200){ |
|
|
|
this.newList = res.result.records |
|
|
|
this.baseList = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
toUrl(url){ |
|
|
|
if(!url){ |
|
|
|
uni.showToast({ |
|
|
|
title: '功能暂未开放' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
uni.navigateTo({ |
|
|
|
url |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|