Merge branch 'dev' into 'master'
uniapp【修复】: 修改分销订单页面文字对应错误 See merge request jianweie/coreshoppro!71
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
import { handleAdvertiseDetail } from '@/core/utils';
|
import { handleAdvertiseDetail } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
code ?: string,
|
code : string,
|
||||||
height ?: string
|
height : string
|
||||||
}>(), {
|
}>(), {
|
||||||
code: '',
|
code: '',
|
||||||
height: '200rpx'
|
height: '200rpx'
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
import { handleStaticResources } from '@/core/utils';
|
import { handleStaticResources } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -10,11 +10,11 @@
|
|||||||
const emits = defineEmits(['onClick']);
|
const emits = defineEmits(['onClick']);
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
title ?: string;
|
title : string;
|
||||||
radius ?: number;
|
radius ?: number;
|
||||||
backgroundColor ?: string;
|
backgroundColor ?: string;
|
||||||
color ?: string;
|
color ?: string;
|
||||||
loading ?: boolean;
|
loading : boolean;
|
||||||
customStyle ?: { [key : string] : any }
|
customStyle ?: { [key : string] : any }
|
||||||
}>(), {
|
}>(), {
|
||||||
title: '保存',
|
title: '保存',
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
import { cdnFilesUrl } from '@/core/consts';
|
import { cdnFilesUrl } from '@/core/consts';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
mode ?: EmptyEnum;
|
mode : EmptyEnum;
|
||||||
text ?: string;
|
text : string;
|
||||||
textColor ?: string;
|
textColor : string;
|
||||||
}>(), {
|
}>(), {
|
||||||
mode: EmptyEnum.data,
|
mode: EmptyEnum.data,
|
||||||
text: '数据为空',
|
text: '数据为空',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view :class="props.type == 'horizontal' ? 'horizontal-good-card-box' : 'vertical-good-card-box'" >
|
<view :class="props.type == 'horizontal' ? 'horizontal-good-card-box' : 'vertical-good-card-box'">
|
||||||
<view class="img-box" :style="{ 'width': props.imgWidth, 'height': props.imgHeight }" @click="hanldeClickGoods">
|
<view class="img-box" :style="{ 'width': props.imgWidth, 'height': props.imgHeight }" @click="hanldeClickGoods">
|
||||||
<image class="good-img" :src="props.goodsData.image"></image>
|
<image class="good-img" :src="props.goodsData.image"></image>
|
||||||
<view class="recommend" v-if="props.goodsData.isRecommend">推荐</view>
|
<view class="recommend" v-if="props.goodsData.isRecommend">推荐</view>
|
||||||
@@ -38,12 +38,12 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
type ?: 'vertical' | 'horizontal',
|
type : 'vertical' | 'horizontal',
|
||||||
imgWidth ?: string,
|
imgWidth : string,
|
||||||
imgHeight ?: string,
|
imgHeight : string,
|
||||||
nameOverflow ?: number,
|
nameOverflow : number,
|
||||||
briefOverflow ?: number,
|
briefOverflow : number,
|
||||||
goodsData ?: any,
|
goodsData : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
type: 'horizontal', // vertical 垂直 horizontal 水平
|
type: 'horizontal', // vertical 垂直 horizontal 水平
|
||||||
imgWidth: '190rpx',
|
imgWidth: '190rpx',
|
||||||
|
|||||||
+2
-2
@@ -69,8 +69,8 @@
|
|||||||
const userInfoStore = useUserInfoStore();
|
const userInfoStore = useUserInfoStore();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
show ?: boolean,
|
show : boolean,
|
||||||
goodsDetailData ?: any,
|
goodsDetailData : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
show: false,
|
show: false,
|
||||||
goodsDetailData: {},
|
goodsDetailData: {},
|
||||||
|
|||||||
+2
-2
@@ -27,9 +27,10 @@
|
|||||||
isShowStatusBarHeight ?: boolean;
|
isShowStatusBarHeight ?: boolean;
|
||||||
customStyle ?: any;
|
customStyle ?: any;
|
||||||
contentStyle ?: any;
|
contentStyle ?: any;
|
||||||
handleCustomRouteJump ?: () => void | null,
|
handleCustomRouteJump ?: () => void,
|
||||||
showLoginModalDom ?: boolean;
|
showLoginModalDom ?: boolean;
|
||||||
placeholder ?: boolean;
|
placeholder ?: boolean;
|
||||||
|
|
||||||
}>(), {
|
}>(), {
|
||||||
isBack: true,
|
isBack: true,
|
||||||
bgColor: '#eef2f6',
|
bgColor: '#eef2f6',
|
||||||
@@ -39,7 +40,6 @@
|
|||||||
isShowStatusBarHeight: true,
|
isShowStatusBarHeight: true,
|
||||||
customStyle: {},
|
customStyle: {},
|
||||||
contentStyle: {},
|
contentStyle: {},
|
||||||
handleCustomRouteJump: null,
|
|
||||||
showLoginModalDom: false,
|
showLoginModalDom: false,
|
||||||
placeholder: true,
|
placeholder: true,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
isShowStatusBarHeight ?: boolean;
|
isShowStatusBarHeight ?: boolean;
|
||||||
customStyle ?: any;
|
customStyle ?: any;
|
||||||
contentStyle ?: any;
|
contentStyle ?: any;
|
||||||
handleCustomRouteJump ?: () => void | null,
|
handleCustomRouteJump ?: () => void,
|
||||||
showLoginModalDom ?: boolean;
|
showLoginModalDom ?: boolean;
|
||||||
needSkeleton ?: boolean;
|
needSkeleton ?: boolean;
|
||||||
skeleton ?: Array<{ [key : string] : any }>;
|
skeleton ?: Array<{ [key : string] : any }>;
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
loadingTextFontSize ?: string;
|
loadingTextFontSize ?: string;
|
||||||
loadingBgColor ?: string;
|
loadingBgColor ?: string;
|
||||||
loadingColor ?: string;
|
loadingColor ?: string;
|
||||||
|
|
||||||
}>(), {
|
}>(), {
|
||||||
isBack: true,
|
isBack: true,
|
||||||
bgColor: '#eef2f6',
|
bgColor: '#eef2f6',
|
||||||
@@ -49,7 +50,6 @@
|
|||||||
isShowStatusBarHeight: true,
|
isShowStatusBarHeight: true,
|
||||||
customStyle: {},
|
customStyle: {},
|
||||||
contentStyle: {},
|
contentStyle: {},
|
||||||
handleCustomRouteJump: null,
|
|
||||||
showLoginModalDom: false,
|
showLoginModalDom: false,
|
||||||
needSkeleton: false,
|
needSkeleton: false,
|
||||||
skeleton: [],
|
skeleton: [],
|
||||||
|
|||||||
+3
-3
@@ -8,9 +8,9 @@
|
|||||||
import { queryAreas } from '@/core/api';
|
import { queryAreas } from '@/core/api';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
show ?: boolean,
|
show : boolean,
|
||||||
cityList ?: Array<CityAddressType>,
|
cityList : Array<CityAddressType>,
|
||||||
pickerValue ?: string,
|
pickerValue : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
show: false,
|
show: false,
|
||||||
cityList: () => [],
|
cityList: () => [],
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
const sharePpopup = ref();
|
const sharePpopup = ref();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
goodsDetailData ?: any,
|
goodsDetailData : any,
|
||||||
show ?: boolean,
|
show : boolean,
|
||||||
shareType ?: number,
|
shareType : number,
|
||||||
}>(), {
|
}>(), {
|
||||||
goodsDetailData: {},
|
goodsDetailData: {},
|
||||||
show: false,
|
show: false,
|
||||||
|
|||||||
@@ -17,9 +17,9 @@
|
|||||||
const instance = getCurrentInstance();
|
const instance = getCurrentInstance();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
current ?: number,
|
current : number,
|
||||||
keyNname ?: string,
|
keyNname : string,
|
||||||
list ?: Array<any>,
|
list : Array<any>,
|
||||||
}>(), {
|
}>(), {
|
||||||
current: 0,
|
current: 0,
|
||||||
keyNname: 'name',
|
keyNname: 'name',
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
title ?: string,
|
title : string,
|
||||||
color ?: string,
|
color : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
title: '查看更多',
|
title: '查看更多',
|
||||||
color: '#6E737D'
|
color: '#6E737D'
|
||||||
|
|||||||
+3
-3
@@ -139,9 +139,9 @@
|
|||||||
const _useLoginStore = useLoginStore();
|
const _useLoginStore = useLoginStore();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: Array<CategoriesType>,
|
data : Array<CategoriesType>,
|
||||||
height ?: number,
|
height : number,
|
||||||
statusBarHeight ?: number,
|
statusBarHeight : number,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: () => [],
|
data: () => [],
|
||||||
height: 0,
|
height: 0,
|
||||||
|
|||||||
+2
-2
@@ -89,8 +89,8 @@
|
|||||||
const _useLoginStore = useLoginStore();
|
const _useLoginStore = useLoginStore();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: Array<CategoriesType>,
|
data : Array<CategoriesType>,
|
||||||
height ?: number,
|
height : number,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: () => [],
|
data: () => [],
|
||||||
height: 0,
|
height: 0,
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: Array<CategoriesType>,
|
data : Array<CategoriesType>,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: () => [],
|
data: () => [],
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-2
@@ -35,8 +35,8 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: Array<CategoriesType>,
|
data : Array<CategoriesType>,
|
||||||
height ?: number,
|
height : number,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: () => [],
|
data: () => [],
|
||||||
height: 0,
|
height: 0,
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: Array<CategoriesType>,
|
data : Array<CategoriesType>,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: () => [],
|
data: () => [],
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {}
|
data: {}
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {}
|
data: {}
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {}
|
data: {}
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: string,
|
data : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: ''
|
data: ''
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@
|
|||||||
const _useLoginStore = useLoginStore();
|
const _useLoginStore = useLoginStore();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {}
|
data: {}
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@
|
|||||||
import { handleRouteNavigateTo, splitArrayByStep } from '@/core/utils';
|
import { handleRouteNavigateTo, splitArrayByStep } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -81,7 +81,7 @@
|
|||||||
import { handleRouteNavigateTo, toDimensionArray, splitArrayByStep } from '@/core/utils';
|
import { handleRouteNavigateTo, toDimensionArray, splitArrayByStep } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {}
|
data: {}
|
||||||
});
|
});
|
||||||
|
|||||||
+3
-3
@@ -26,9 +26,9 @@
|
|||||||
const shopConfigStore = useShopConfigStore();
|
const shopConfigStore = useShopConfigStore();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
flex ?: boolean,
|
flex : boolean,
|
||||||
fontSize ?: string,
|
fontSize : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
flex: false,
|
flex: false,
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@
|
|||||||
import { handleStaticResources, handleRouteNavigateTo } from '@/core/utils';
|
import { handleStaticResources, handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@
|
|||||||
import { handleStaticResources, handleAdvertiseDetail } from '@/core/utils';
|
import { handleStaticResources, handleAdvertiseDetail } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
import type { PageConfigItemsImgSlideType } from '@/core/models';
|
import type { PageConfigItemsImgSlideType } from '@/core/models';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
import { handleAdvertiseDetail } from '@/core/utils';
|
import { handleAdvertiseDetail } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@
|
|||||||
import { handleStaticResources, handleRouteNavigateTo } from '@/core/utils';
|
import { handleStaticResources, handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
import { onHomePageShow } from '@/core/consts';
|
import { onHomePageShow } from '@/core/consts';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@
|
|||||||
import { handleStaticResources, handleRouteNavigateTo } from '@/core/utils';
|
import { handleStaticResources, handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+4
@@ -16,6 +16,10 @@
|
|||||||
.card-box {
|
.card-box {
|
||||||
margin-top: 35rpx;
|
margin-top: 35rpx;
|
||||||
|
|
||||||
|
.goods-card {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.price-tag-box {
|
.price-tag-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="card-box" v-for="item, index in props.data.list" :key="index">
|
<view class="card-box" v-for="item, index in props.data.list" :key="index">
|
||||||
<coreshop-goods-card :goodsData="hanldeCombinationGoodsData(item)"
|
<coreshop-goods-card class="goods-card" :goodsData="hanldeCombinationGoodsData(item)"
|
||||||
@hanldeClickGoods="hanldeClickGoods">
|
@hanldeClickGoods="hanldeClickGoods">
|
||||||
<template #goodTag>
|
<template #goodTag>
|
||||||
<view class="price-tag-box" @click="hanldeClickGoods(item)">
|
<view class="price-tag-box" @click="hanldeClickGoods(item)">
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
import { handleRouteNavigateTo } from '@/core/utils';
|
import { handleRouteNavigateTo } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
+7
-7
@@ -12,13 +12,13 @@
|
|||||||
import { handleAdvertiseDetail } from '@/core/utils';
|
import { handleAdvertiseDetail } from '@/core/utils';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
dotsSelect ?: boolean,
|
dotsSelect : boolean,
|
||||||
autoplaySelect ?: boolean,
|
autoplaySelect : boolean,
|
||||||
intervalSelect ?: number,
|
intervalSelect : number,
|
||||||
circularSelect ?: boolean,
|
circularSelect : boolean,
|
||||||
indicatorColor ?: string,
|
indicatorColor : string,
|
||||||
indicatorColorActive ?: string,
|
indicatorColorActive : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
dotsSelect: true,
|
dotsSelect: true,
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import HomeContent from '../home-content/home-content.vue';
|
import HomeContent from '../home-content/home-content.vue';
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: string,
|
data : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: '',
|
data: '',
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
data ?: any,
|
data : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
// import HomeAdpop from './components/home-adpop/home-adpop.vue';
|
// import HomeAdpop from './components/home-adpop/home-adpop.vue';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
coreshopData ?: Array<PageConfigItemsType>,
|
coreshopData : Array<PageConfigItemsType>,
|
||||||
}>(), {
|
}>(), {
|
||||||
coreshopData: () => []
|
coreshopData: () => []
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-2
@@ -50,8 +50,8 @@
|
|||||||
import type { GoodsAgentListType } from "@/core/models";
|
import type { GoodsAgentListType } from "@/core/models";
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
userAgentGrade ?: any,
|
userAgentGrade : any,
|
||||||
agentProductsList ?: Array<GoodsAgentListType>,
|
agentProductsList : Array<GoodsAgentListType>,
|
||||||
}>(), {
|
}>(), {
|
||||||
userAgentGrade: {},
|
userAgentGrade: {},
|
||||||
agentProductsList: () => [],
|
agentProductsList: () => [],
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@
|
|||||||
import { useCartStore } from '@/core/store';
|
import { useCartStore } from '@/core/store';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
price ?: number,
|
price : number,
|
||||||
}>(), {
|
}>(), {
|
||||||
price: 0,
|
price: 0,
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
import type { CommonQuestionServiceType } from "@/core/models";
|
import type { CommonQuestionServiceType } from "@/core/models";
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
commonQuestion ?: Array<CommonQuestionServiceType>,
|
commonQuestion : Array<CommonQuestionServiceType>,
|
||||||
}>(), {
|
}>(), {
|
||||||
commonQuestion: () => [],
|
commonQuestion: () => [],
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
goodsDetailContent ?: string,
|
goodsDetailContent : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
goodsDetailContent: '',
|
goodsDetailContent: '',
|
||||||
});
|
});
|
||||||
|
|||||||
+3
-3
@@ -32,9 +32,9 @@
|
|||||||
import { handleRouteNavigateTo } from "@/core/utils";
|
import { handleRouteNavigateTo } from "@/core/utils";
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
commentsCount ?: number,
|
commentsCount : number,
|
||||||
commentsList ?: Array<GoodsPictureListType>,
|
commentsList : Array<GoodsPictureListType>,
|
||||||
id ?: number;
|
id : number;
|
||||||
}>(), {
|
}>(), {
|
||||||
commentsCount: 0,
|
commentsCount: 0,
|
||||||
commentsList: () => [],
|
commentsList: () => [],
|
||||||
|
|||||||
+3
-3
@@ -87,9 +87,9 @@
|
|||||||
const _useLoginStore = useLoginStore();
|
const _useLoginStore = useLoginStore();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
goodsDetailData ?: any,
|
goodsDetailData : any,
|
||||||
isActivityGoods ?: boolean,
|
isActivityGoods : boolean,
|
||||||
shareType ?: ShareEnum,
|
shareType : ShareEnum,
|
||||||
}>(), {
|
}>(), {
|
||||||
goodsDetailData: {},
|
goodsDetailData: {},
|
||||||
isActivityGoods: false,
|
isActivityGoods: false,
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
import type { GoodsParamsType } from "@/core/models";
|
import type { GoodsParamsType } from "@/core/models";
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
goodsParamsList ?: Array<GoodsParamsType>,
|
goodsParamsList : Array<GoodsParamsType>,
|
||||||
}>(), {
|
}>(), {
|
||||||
goodsParamsList: () => [],
|
goodsParamsList: () => [],
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-2
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
swiperBanner ?: Array<string>,
|
swiperBanner : Array<string>,
|
||||||
video ?: string,
|
video : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
swiperBanner: () => [],
|
swiperBanner: () => [],
|
||||||
video: '',
|
video: '',
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@
|
|||||||
import Point from '@/pages/components/custom-page/components/home-goods/point.vue';
|
import Point from '@/pages/components/custom-page/components/home-goods/point.vue';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
queryParams ?: any,
|
queryParams : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
id: 10,
|
id: 10,
|
||||||
|
|||||||
+5
-5
@@ -111,11 +111,11 @@
|
|||||||
import type { GoodsPromotionType, CommonQuestionServiceType } from "@/core/models";
|
import type { GoodsPromotionType, CommonQuestionServiceType } from "@/core/models";
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
isCustomService ?: boolean,
|
isCustomService : boolean,
|
||||||
goodsPromotionList ?: Array<GoodsPromotionType>,
|
goodsPromotionList : Array<GoodsPromotionType>,
|
||||||
delivery ?: Array<CommonQuestionServiceType>,
|
delivery : Array<CommonQuestionServiceType>,
|
||||||
service ?: Array<CommonQuestionServiceType>,
|
service : Array<CommonQuestionServiceType>,
|
||||||
spesDesc ?: string,
|
spesDesc : string,
|
||||||
}>(), {
|
}>(), {
|
||||||
isCustomService: false,
|
isCustomService: false,
|
||||||
goodsPromotionList: () => [],
|
goodsPromotionList: () => [],
|
||||||
|
|||||||
+11
-12
@@ -32,14 +32,13 @@
|
|||||||
<view class="btn-box">
|
<view class="btn-box">
|
||||||
<!-- <view v-if="props.isShowAddCartBtn" class="btn add-cart" @click="handleAddCart">加入购物车</view> -->
|
<!-- <view v-if="props.isShowAddCartBtn" class="btn add-cart" @click="handleAddCart">加入购物车</view> -->
|
||||||
<view v-if="props.isShowAddCartBtn" class="core-button-confirm add-cart">
|
<view v-if="props.isShowAddCartBtn" class="core-button-confirm add-cart">
|
||||||
<coreshop-button :loading="props.addCartloading" class="core-button-confirm_" :radius="0"
|
<coreshop-button :loading="props.addCartloading" class="core-button-confirm_" :radius="0" title="加入购物车"
|
||||||
title="加入购物车" :customStyle="addCartCustomStyle" @onClick="handleAddCart()"></coreshop-button>
|
:customStyle="addCartCustomStyle" @onClick="handleAddCart()"></coreshop-button>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="btn buy-now" @click="handleBuyNow">{{ props.btnBuyTitlt }}</view> -->
|
<!-- <view class="btn buy-now" @click="handleBuyNow">{{ props.btnBuyTitlt }}</view> -->
|
||||||
<view class="core-button-confirm">
|
<view class="core-button-confirm">
|
||||||
<coreshop-button :loading="props.buyNowNowloading" class="core-button-confirm_" :radius="0"
|
<coreshop-button :loading="props.buyNowNowloading" class="core-button-confirm_" :radius="0"
|
||||||
:title="props.btnBuyTitlt" :customStyle="buyNowCustomStyle"
|
:title="props.btnBuyTitlt" :customStyle="buyNowCustomStyle" @onClick="handleBuyNow()"></coreshop-button>
|
||||||
@onClick="handleBuyNow()"></coreshop-button>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -70,14 +69,14 @@
|
|||||||
|
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
showSku ?: boolean,
|
showSku : boolean,
|
||||||
goodsDetailData ?: any,
|
goodsDetailData : any,
|
||||||
isShowAddCartBtn ?: boolean,
|
isShowAddCartBtn : boolean,
|
||||||
btnBuyTitlt ?: string,
|
btnBuyTitlt : string,
|
||||||
safeAreaInsetBottom ?: boolean;
|
safeAreaInsetBottom : boolean;
|
||||||
buyNowCustomStyle ?: { [key : string] : any },
|
buyNowCustomStyle : { [key : string] : any },
|
||||||
buyNowNowloading ?: boolean,
|
buyNowNowloading : boolean,
|
||||||
addCartloading ?: boolean
|
addCartloading : boolean
|
||||||
}>(), {
|
}>(), {
|
||||||
showSku: false,
|
showSku: false,
|
||||||
goodsDetailData: {},
|
goodsDetailData: {},
|
||||||
|
|||||||
@@ -68,17 +68,17 @@
|
|||||||
import type { Response, CommonQuestionServiceType, GoodsPictureType, GoodsPictureListType, GoodsParamsType, GoodsAgentListType, GoodsPromotionType } from "@/core/models";
|
import type { Response, CommonQuestionServiceType, GoodsPictureType, GoodsPictureListType, GoodsParamsType, GoodsAgentListType, GoodsPromotionType } from "@/core/models";
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
isActivityGoods ?: boolean,
|
isActivityGoods : boolean,
|
||||||
goodsId ?: number,
|
goodsId : number,
|
||||||
goodsDetailData ?: any,
|
goodsDetailData : any,
|
||||||
swiperBanner ?: Array<any>,
|
swiperBanner : Array<any>,
|
||||||
goodsDetailContent ?: string,
|
goodsDetailContent : string,
|
||||||
userAgentGrade ?: any,
|
userAgentGrade : any,
|
||||||
agentProductsList ?: Array<GoodsAgentListType>,
|
agentProductsList : Array<GoodsAgentListType>,
|
||||||
goodsPromotionList ?: Array<GoodsPromotionType>,
|
goodsPromotionList : Array<GoodsPromotionType>,
|
||||||
spesDesc ?: string,
|
spesDesc : string,
|
||||||
isCustomService ?: boolean,
|
isCustomService : boolean,
|
||||||
shareType ?: ShareEnum,
|
shareType : ShareEnum,
|
||||||
}>(), {
|
}>(), {
|
||||||
isActivityGoods: false, /** 是否是活动商品 */
|
isActivityGoods: false, /** 是否是活动商品 */
|
||||||
goodsId: 0, /** 商品id */
|
goodsId: 0, /** 商品id */
|
||||||
|
|||||||
@@ -26,15 +26,15 @@
|
|||||||
import { queryPay } from '@/core/api';
|
import { queryPay } from '@/core/api';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
payMethodList ?: Array<PayMethodListType>,
|
payMethodList : Array<PayMethodListType>,
|
||||||
orderType ?: PaymentTypeEnum,
|
orderType : PaymentTypeEnum,
|
||||||
orderId ?: string,
|
orderId : number,
|
||||||
recharge ?: number,
|
recharge : number,
|
||||||
userInfo ?: any,
|
userInfo : any,
|
||||||
}>(), {
|
}>(), {
|
||||||
payMethodList: () => [],
|
payMethodList: () => [],
|
||||||
orderType: PaymentTypeEnum.common,
|
orderType: PaymentTypeEnum.common,
|
||||||
orderId: '', /** 如果是商品订单此参数必须 */
|
orderId: 0, /** 如果是商品订单此参数必须 */
|
||||||
recharge: 0, /** 如果是充值订单此参数必须 */
|
recharge: 0, /** 如果是充值订单此参数必须 */
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="order_price">
|
<view class="order_price">
|
||||||
<view class="team_price">
|
<view class="team_price">
|
||||||
<view class="label">团队订单数量(单)</view>
|
<view class="label">团队订单金额(元)</view>
|
||||||
<view class="value">
|
<view class="value">
|
||||||
{{state.orderInfo?.allOrderMoney ? state.orderInfo?.allOrderMoney : 0}}
|
{{state.orderInfo?.allOrderMoney ? state.orderInfo?.allOrderMoney : 0}}
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user