|
|
|
@ -23,6 +23,28 @@ |
|
|
|
|
<image v-else :src="copyRightImg" mode="aspectFill" class="support"></image> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<user-member :userInfo="userInfo" :memberData="diyData.member" :orderAdminData="orderAdminData" :balanceStatus="balanceStatus" :isScrolling="isScrolling"></user-member> |
|
|
|
|
<user-order :orderMenu="orderMenu" :orderAdminData="orderAdminData" :userInfo="userInfo" :memberData="diyData.member" :orderData="diyData.order"></user-order> |
|
|
|
|
<user-order-static |
|
|
|
|
v-if="isObjectData(orderAdminData) && orderAdminData.order.user_order" |
|
|
|
|
:orderAdminData="orderAdminData.order" |
|
|
|
|
:orderStaticData="diyData.orderStatic" |
|
|
|
|
></user-order-static> |
|
|
|
|
<user-poster :posterData="diyData.poster"></user-poster> |
|
|
|
|
<user-menu :menuData="diyData.menu"></user-menu> |
|
|
|
|
<user-mer-menu v-if="diyData.merMenu.list.length" :merMenuData="diyData.merMenu"></user-mer-menu> |
|
|
|
|
<user-store-menu v-if="diyData.storeMenu.list.length" :storeMenuData="diyData.storeMenu"></user-store-menu> |
|
|
|
|
<view class="copy_right pb-20"> |
|
|
|
|
<template v-if="copyRightText"> |
|
|
|
|
<image :src="copyRightImg" mode="aspectFill" class="copyRightImg"></image> |
|
|
|
|
<view class="copyRightText"> |
|
|
|
|
{{ copyRightText }} |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<image v-else :src="copyRightImg" mode="aspectFill" class="support"></image> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<!-- 店员推广码 extension--> |
|
|
|
|
<view class="fixed-ct w-620 h-690 bg--w111-fff rd-24rpx ml-f310 mt-f400 z-1000" v-show="isextension" @touchmove.stop.prevent> |
|
|
|
|
<view class="fs-32 text-#333 fw-500 mt-48 mb-48 text-center">店员推广码</view> |
|
|
|
@ -107,7 +129,8 @@ export default { |
|
|
|
|
intoPage: this.intoPage, |
|
|
|
|
goMenuPage: this.goMenuPage, |
|
|
|
|
getMenuData: this.getMenuData, |
|
|
|
|
goEdit: this.goEdit |
|
|
|
|
goEdit: this.goEdit, |
|
|
|
|
openAuto:this.openAuto |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
@ -217,6 +240,8 @@ export default { |
|
|
|
|
// #endif |
|
|
|
|
}, |
|
|
|
|
async onLoad(option) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.isLogin) { |
|
|
|
|
// this.getNewcomerGift(); |
|
|
|
|
} |
|
|
|
@ -238,7 +263,7 @@ export default { |
|
|
|
|
onShow() { |
|
|
|
|
if (!this.isLogin) { |
|
|
|
|
this.userInfo = ''; |
|
|
|
|
return; |
|
|
|
|
// return; |
|
|
|
|
} |
|
|
|
|
if (this.cartNum > 0) { |
|
|
|
|
// uni.setTabBarBadge({ |
|
|
|
@ -269,10 +294,11 @@ export default { |
|
|
|
|
// #endif |
|
|
|
|
if (that.isLogin) { |
|
|
|
|
this.getUserInfo(); |
|
|
|
|
this.getMyMenus(); |
|
|
|
|
this.setVisit(); |
|
|
|
|
this.getMenuData(); |
|
|
|
|
} |
|
|
|
|
this.getMyMenus(); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// #ifdef MP || APP-PLUS |
|
|
|
|
onPageScroll(e) { |
|
|
|
@ -536,7 +562,7 @@ export default { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
console.log(url); |
|
|
|
|
if (this.isLogin) { |
|
|
|
|
// if (this.isLogin) { |
|
|
|
|
let arr = url.split('@APPID='); |
|
|
|
|
if (arr.length > 1) { |
|
|
|
|
//#ifdef MP |
|
|
|
@ -612,7 +638,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|