|
|
@ -23,6 +23,28 @@ |
|
|
|
<image v-else :src="copyRightImg" mode="aspectFill" class="support"></image> |
|
|
|
<image v-else :src="copyRightImg" mode="aspectFill" class="support"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</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--> |
|
|
|
<!-- 店员推广码 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="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> |
|
|
|
<view class="fs-32 text-#333 fw-500 mt-48 mb-48 text-center">店员推广码</view> |
|
|
@ -107,7 +129,8 @@ export default { |
|
|
|
intoPage: this.intoPage, |
|
|
|
intoPage: this.intoPage, |
|
|
|
goMenuPage: this.goMenuPage, |
|
|
|
goMenuPage: this.goMenuPage, |
|
|
|
getMenuData: this.getMenuData, |
|
|
|
getMenuData: this.getMenuData, |
|
|
|
goEdit: this.goEdit |
|
|
|
goEdit: this.goEdit, |
|
|
|
|
|
|
|
openAuto:this.openAuto |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
@ -217,6 +240,8 @@ export default { |
|
|
|
// #endif |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
}, |
|
|
|
async onLoad(option) { |
|
|
|
async onLoad(option) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.isLogin) { |
|
|
|
if (this.isLogin) { |
|
|
|
// this.getNewcomerGift(); |
|
|
|
// this.getNewcomerGift(); |
|
|
|
} |
|
|
|
} |
|
|
@ -238,7 +263,7 @@ export default { |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
if (!this.isLogin) { |
|
|
|
if (!this.isLogin) { |
|
|
|
this.userInfo = ''; |
|
|
|
this.userInfo = ''; |
|
|
|
return; |
|
|
|
// return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.cartNum > 0) { |
|
|
|
if (this.cartNum > 0) { |
|
|
|
// uni.setTabBarBadge({ |
|
|
|
// uni.setTabBarBadge({ |
|
|
@ -269,10 +294,11 @@ export default { |
|
|
|
// #endif |
|
|
|
// #endif |
|
|
|
if (that.isLogin) { |
|
|
|
if (that.isLogin) { |
|
|
|
this.getUserInfo(); |
|
|
|
this.getUserInfo(); |
|
|
|
this.getMyMenus(); |
|
|
|
|
|
|
|
this.setVisit(); |
|
|
|
this.setVisit(); |
|
|
|
this.getMenuData(); |
|
|
|
this.getMenuData(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.getMyMenus(); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// #ifdef MP || APP-PLUS |
|
|
|
// #ifdef MP || APP-PLUS |
|
|
|
onPageScroll(e) { |
|
|
|
onPageScroll(e) { |
|
|
@ -536,7 +562,7 @@ export default { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(url); |
|
|
|
console.log(url); |
|
|
|
if (this.isLogin) { |
|
|
|
// if (this.isLogin) { |
|
|
|
let arr = url.split('@APPID='); |
|
|
|
let arr = url.split('@APPID='); |
|
|
|
if (arr.length > 1) { |
|
|
|
if (arr.length > 1) { |
|
|
|
//#ifdef MP |
|
|
|
//#ifdef MP |
|
|
@ -612,7 +638,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|