2***@qq.com
2***@qq.com
  • 发布:2022-04-13 11:57
  • 更新:2022-04-13 11:57
  • 阅读:1119

再一个菜单上添加open-type="contact",所有菜单都变成了进入客服事件

分类:uni-app
                <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  
                }  
            },  
2022-04-13 11:57 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复