- 新增大量图片资源,包括图标、背景图、海报等,用于页面展示 - 添加字体文件及样式配置,支持自定义字体 - 引入 uni-ui 组件库,包括图标、弹窗、日期选择器等常用组件 - 添加网络状态监听、加密工具等基础工具函数 - 配置 Vuex 状态管理,包括购物车数量、热门搜索词等 - 增加页面组件,如用户协议、分销信息、提现状态等 - 配置项目构建和忽略文件,优化开发体验
75 lines
1.4 KiB
Vue
75 lines
1.4 KiB
Vue
<script>
|
|
import propertyList from '@/utils/propertyList.js';
|
|
import template1 from './template1.vue';
|
|
import template2 from './template2.vue';
|
|
export default {
|
|
components: {
|
|
template1,
|
|
template2
|
|
},
|
|
props: {
|
|
userInfo: {
|
|
type: Object,
|
|
default: () => {}
|
|
},
|
|
orderData: {
|
|
type: Object,
|
|
default: () => {}
|
|
},
|
|
orderMenu: {
|
|
type: Array,
|
|
default() {
|
|
return [];
|
|
}
|
|
},
|
|
orderAdminData: {
|
|
type: Object,
|
|
default: () => {}
|
|
}
|
|
},
|
|
watch: {
|
|
orderData: {
|
|
handler(nVal, oVal) {
|
|
// this.iconFilter(nVal.style);
|
|
},
|
|
immediate: true,
|
|
deep: true
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
property: []
|
|
};
|
|
},
|
|
methods: {}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<view>
|
|
<template1 v-if="orderData.style == 1" :orderMenu="orderMenu" :notPayOrder="orderAdminData.not_pay_order" :commission="orderAdminData.commission"></template1>
|
|
<template2 v-if="orderData.style == 2 || orderData.style == 3" :notPayOrder="orderAdminData.not_pay_order" :orderStyle="orderData.style" :orderMenu="orderMenu"></template2>
|
|
</view>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
// /deep/ .section-content .uni-badge-left-margin {
|
|
// position: absolute;
|
|
// top: 0rpx;
|
|
// right: 44rpx;
|
|
// /deep/.uni-badge--error {
|
|
// background-color: #fff !important;
|
|
// }
|
|
// /deep/.uni-badge {
|
|
// color: var(--view-theme);
|
|
// border: 1px solid var(--view-theme);
|
|
// z-index: 29;
|
|
// }
|
|
// }
|
|
|
|
.text-primary-con {
|
|
color: var(--view-theme);
|
|
}
|
|
|
|
</style>
|