<view class="item tc" v-for="(item,i) in order" :key="i" v-if="!item.unshowItem">
<view class="" @click="navigateToHandle(item.router)" >
<view class="">
<image class='cell-hd-icon' :src='item.icon'></image>
</view>
<view @click.stop class="text contactbutee" v-if="i=='kefu'">
<button class="contactbut" open-type="contact" >客服</button>
</view>
<view class="text" v-else>
<text class="">{{item.name}}</text>
</view>
</view>
</view>
js
order: {
setting: {
name: '个人设置',
icon: '/static/image/me-ic-set.png',
router: '../setting/index',
unshowItem: false
},
carts: {
name: '合作',
icon: '/static/image/cart_gray.png',
router: '../../login/register/company',
unshowItem: false
},
kefu: {
name: '客服',
icon: '/static/image/customerservice.png',
router: '',
unshowItem: false
}
},
0 个回复