服务器更替
This commit is contained in:
@@ -36,6 +36,11 @@ const { t } = useI18n();
|
||||
|
||||
const loading = ref(false)
|
||||
|
||||
function isSoldOutStock(stockLike: unknown) {
|
||||
const n = Number(stockLike)
|
||||
return !Number.isNaN(n) && n <= 0
|
||||
}
|
||||
|
||||
function navigateTo(url: string) {
|
||||
if(userStore.checkLogin()) {
|
||||
uni.navigateTo({
|
||||
@@ -373,6 +378,12 @@ const debouncedEmit = debounce(1300, (isCollected: boolean, id: string, type: Co
|
||||
class="w-full h-full"
|
||||
/>
|
||||
</view>
|
||||
<view
|
||||
v-if="isSoldOutStock(item?.stock)"
|
||||
class="absolute z-2 left-20rpx top-20rpx px-16rpx h-52rpx rounded-26rpx bg-#14181B/70 center text-26rpx text-#fff font-500"
|
||||
>
|
||||
已售完
|
||||
</view>
|
||||
<image
|
||||
:src="item?.dishImage?.split(',')[0]"
|
||||
mode="aspectFill"
|
||||
|
||||
@@ -194,7 +194,7 @@ const poster = computed(() => ({
|
||||
type: 'view',
|
||||
},
|
||||
{
|
||||
text: Config.shareLink + `pages-login/pages/sign-up/index?invitationCode=${userStore.userInfo.invitationCode}`,
|
||||
text: 'http://192.168.5.118:8011/h5/'+ `pages-login/pages/sign-up/index?invitationCode=${userStore.userInfo.invitationCode}`,
|
||||
type: 'qrcode',
|
||||
css: {
|
||||
width: '124rpx',
|
||||
@@ -213,6 +213,8 @@ const poster = computed(() => ({
|
||||
}))
|
||||
|
||||
|
||||
//Config.shareLink
|
||||
|
||||
function save() {
|
||||
onAppSaveToPhone()
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ defineExpose({
|
||||
</view>
|
||||
<view class="shrink-0 ml-20rpx" v-if="userStore.userInfo.invitationCode">
|
||||
<uqrcode ref="uqrcode" canvas-id="qrcode"
|
||||
:value="Config.shareLink + `pages-login/pages/sign-up/index?invitationCode=${userStore.userInfo.invitationCode}`"
|
||||
:value="'http://192.168.5.118:8011/h5/' + `pages-login/pages/sign-up/index?invitationCode=${userStore.userInfo.invitationCode}`"
|
||||
:size="124"
|
||||
sizeUnit="rpx"
|
||||
:options="{}"></uqrcode>
|
||||
@@ -91,6 +91,8 @@ defineExpose({
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- Config.shareLink -->
|
||||
<view class="mt-34rpx flex justify-between items-center ">
|
||||
<wd-button
|
||||
custom-class="!box-border shrink-0 !min-w-auto !h-98rpx !w-316rpx !text-#333 !text-30rpx !lh-42rpx !rounded-16rpx !bg-#fff"
|
||||
|
||||
Reference in New Issue
Block a user