增加网络波动加载中,增加会员信息扫码充值
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="therecontent flex-between" >
|
||||
<view class="therecontent flex-between">
|
||||
<view class="therecontent_box_item">
|
||||
<view class="therecontent_box_imge flex-between" @click="jrtoday(0)">
|
||||
<view class="therecontent_box_imge_text">
|
||||
@@ -42,7 +42,7 @@
|
||||
style="background: url(https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/towcontent_box2.png) no-repeat; background-size: cover;"
|
||||
@click="jrtoday(1)">
|
||||
<view class="therecontent_box_imge_text">
|
||||
{{salesList.name}}
|
||||
{{salesList.name || ''}}
|
||||
</view>
|
||||
<view class="therecontent_box_imge_right flex-start">
|
||||
<view>
|
||||
@@ -82,13 +82,20 @@
|
||||
defineProps
|
||||
} from 'vue';
|
||||
const props = defineProps({
|
||||
salesList: Object,
|
||||
salesList: {
|
||||
type: Object,
|
||||
default: {
|
||||
name: '',
|
||||
date: '',
|
||||
hotList: [],
|
||||
}
|
||||
},
|
||||
todayList: {
|
||||
type: Object,
|
||||
default: () => ({
|
||||
name:'',
|
||||
date:'',
|
||||
hotList:[]
|
||||
name: '',
|
||||
date: '',
|
||||
hotList: []
|
||||
}) //
|
||||
},
|
||||
});
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
<up-loadmore :status="formhomelist.status" fontSize="14" color="#999" iconSize="14" />
|
||||
</view>
|
||||
</view>
|
||||
<indexs v-if="showindex == 'shopIndex'"></indexs>
|
||||
<indexs v-if="showindex == 'shopIndex'" :shopExtend='orderVIP.shopExtendList'></indexs>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -139,7 +139,8 @@
|
||||
reactive,
|
||||
onBeforeUnmount,
|
||||
watch,
|
||||
getCurrentInstance
|
||||
getCurrentInstance,
|
||||
nextTick
|
||||
} from "vue";
|
||||
import {
|
||||
onLoad,
|
||||
@@ -235,7 +236,7 @@
|
||||
size: 10, //页容量
|
||||
status: 'loadmore',
|
||||
name: '1',
|
||||
list:[]
|
||||
list: []
|
||||
})
|
||||
// 使用 reactive 创建响应式对象
|
||||
const timeData = ref({});
|
||||
@@ -287,7 +288,7 @@
|
||||
formhomelist.status = 'loading';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} catch (e) {}
|
||||
}
|
||||
// /筛选数据处理
|
||||
@@ -307,6 +308,10 @@
|
||||
onLoadhome()
|
||||
}
|
||||
|
||||
const orderVIP = ref({
|
||||
shopExtendList:''
|
||||
})
|
||||
|
||||
// 弹出层处理
|
||||
const showproductlist = ref(false);
|
||||
// 定义方法
|
||||
@@ -393,7 +398,9 @@
|
||||
await proxy.$onLaunched;
|
||||
if (uni.cache.get('shopId')) {
|
||||
showindex.value = 'shopIndex'
|
||||
await storeuser.actionsAPIuser()
|
||||
await storeuser.actionsproductqueryProduct()
|
||||
await nextTick()
|
||||
orderVIP.value = uni.cache.get('orderVIP')
|
||||
} else {
|
||||
showindex.value = 'index'
|
||||
hometop()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="contentbox"
|
||||
:style="'background:url('+(shopExtend[0]?shopExtend[0].value:'https://czg-qr-order.oss-cn-beijing.aliyuncs.com/indexs/shuangbackground.png')+') no-repeat center center / cover' ">
|
||||
:style="'background:url('+(shopExtend?shopExtend[0].value:'https://czg-qr-order.oss-cn-beijing.aliyuncs.com/indexs/shuangbackground.png')+') no-repeat center center / cover' ">
|
||||
<view class="contentboxitem flex-between">
|
||||
<view class="contentboxitemleft flex-colum" @click="scanCodehandle(0)">
|
||||
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/indexs/Xdiancan.png" mode="aspectFill">
|
||||
@@ -36,13 +36,23 @@
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
onMounted,
|
||||
reactive,
|
||||
} from "vue";
|
||||
defineProps,
|
||||
defineEmits
|
||||
} from 'vue';
|
||||
|
||||
// 定义接收的属性
|
||||
const props = defineProps({
|
||||
shopExtend: {
|
||||
type: Array,
|
||||
default: []
|
||||
}
|
||||
});
|
||||
|
||||
import {
|
||||
productStore
|
||||
} from '@/stores/user.js';
|
||||
const shopExtend = uni.cache.get('shopUserInfo').shopExtendList ? uni.cache.get('shopUserInfo').shopExtendList : 'https://czg-qr-order.oss-cn-beijing.aliyuncs.com/indexs/shuangbackground.png'
|
||||
|
||||
const scanCodehandle = async (i) => {
|
||||
const store = productStore();
|
||||
await store.scanCodeactions()
|
||||
@@ -63,7 +73,6 @@
|
||||
}
|
||||
return null;
|
||||
}
|
||||
onMounted(() => {})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user