| xqd
@@ -39,6 +39,7 @@
|
|
|
:key="index"
|
|
|
class="menu-item main-between cross-center"
|
|
|
:open-type="menu.type ? menu.type : ''"
|
|
|
+ @bindcontact="handleMenu"
|
|
|
@click="handleMenu(menu)"
|
|
|
>
|
|
|
<view class="left-box dir-left-nowrap cross-center">
|
| xqd
@@ -59,6 +60,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
menus: [
|
|
|
+ { icon: '/static/image/my-page/share.png', name: '分享好友', type: 'share' },
|
|
|
{ icon: '/static/image/share/income.png', name: '分享佣金', href: '/pages/share/income' },
|
|
|
{ icon: '/static/image/share/order.png', name: '分享订单', href: '/pages/share/order' },
|
|
|
{ icon: '/static/image/share/detail.png', name: '提现明细', href: '/pages/share/withdrawDetail' },
|
| xqd
@@ -73,6 +75,19 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleMenu(menu) {
|
|
|
+ // #ifdef MP-KUAISHOU
|
|
|
+ if (menu.type === 'contact') {
|
|
|
+ ks.makePhoneCall({
|
|
|
+ phoneNumber: this.config.contact,
|
|
|
+ success(res) {
|
|
|
+ console.log('-->success', res)
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ console.log('-->error', err)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
if (menu.href) {
|
|
|
this.$u.route(menu.href)
|
|
|
}
|