diff --git a/yudao-admin-vue3/.env.local b/yudao-admin-vue3/.env.local index f61c09e..120bda0 100644 --- a/yudao-admin-vue3/.env.local +++ b/yudao-admin-vue3/.env.local @@ -4,12 +4,13 @@ NODE_ENV=development VITE_DEV=true # 请求路径 -VITE_BASE_URL='http://localhost:6127' +#VITE_BASE_URL='https://zysc.fjptzykj.com' +VITE_BASE_URL='http://192.168.1.12:6127' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务 VITE_UPLOAD_TYPE=server # 上传路径 -VITE_UPLOAD_URL='http://localhost:6127/admin-api/infra/file/upload' +VITE_UPLOAD_URL='https://zysc.fjptzykj.com/admin-api/infra/file/upload' # 接口地址 VITE_API_URL=/admin-api diff --git a/yudao-admin-vue3/src/api/mall/statistics/member.ts b/yudao-admin-vue3/src/api/mall/statistics/member.ts index d9accf9..5d9827a 100644 --- a/yudao-admin-vue3/src/api/mall/statistics/member.ts +++ b/yudao-admin-vue3/src/api/mall/statistics/member.ts @@ -121,3 +121,10 @@ export const getMemberRegisterCountList = ( params: { times: [formatDate(beginTime), formatDate(endTime)] } }) } + +// 获取自定义页面数据 +export const getDiyPage = () => { + return request.get({ + url: '/promotion/diy-page/getDiyPage' + }) +} diff --git a/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue b/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue index 5133f16..762ee96 100644 --- a/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue +++ b/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue @@ -1,210 +1,215 @@ - + \ No newline at end of file diff --git a/yudao-admin-vue3/src/components/AppLinkInput/data.ts b/yudao-admin-vue3/src/components/AppLinkInput/data.ts index 77fb4e1..e6424a9 100644 --- a/yudao-admin-vue3/src/components/AppLinkInput/data.ts +++ b/yudao-admin-vue3/src/components/AppLinkInput/data.ts @@ -250,30 +250,31 @@ export const APP_LINK_GROUP_LIST = [ path: '/pages/user/user_vip/index' } ] - }, - { - name: '自定义页面', - links: [ - { - name: '促销页面', - path: 'ss' - }, - { - name: '关于我们', - path: '/pages/pay/recharge-lo' - }, - { - name: '产品与服务', - path: '/pages/pay/recharge-l' - }, - { - name: '自定义页面', - path: '/pages/pay/recharge-' - }, - { - name: '个人中心', - path: '/pages/pay/recharge' - } - ] } + // , + // { + // name: '自定义页面', + // links: [ + // { + // name: '促销页面', + // path: 'ss' + // }, + // { + // name: '关于我们', + // path: '/pages/pay/recharge-lo' + // }, + // { + // name: '产品与服务', + // path: '/pages/pay/recharge-l' + // }, + // { + // name: '自定义页面', + // path: '/pages/pay/recharge-' + // }, + // { + // name: '个人中心', + // path: '/pages/pay/recharge' + // } + // ] + // } ] as AppLinkGroup[] diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/property.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/property.vue index 4f32c21..4cecea5 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/property.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/CouponCard/property.vue @@ -23,7 +23,7 @@ - + @@ -85,7 +85,7 @@ defineOptions({ name: 'CouponCardProperty' }) const props = defineProps<{ modelValue: CouponCardProperty }>() const emit = defineEmits(['update:modelValue']) const { formData } = usePropertyForm(props.modelValue, emit) - +formData.value.columns = '3'; // 优惠券列表 const couponList = ref([]) const couponSelectDialog = ref() diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue index 328c049..fce5090 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue @@ -7,8 +7,9 @@
- + + 拼团活动
92人拼团成功
@@ -158,6 +159,14 @@ onMounted(() => { .wh { position: relative; padding-right: 10px; + display: flex; + align-items: center; + .new-text1{ + width:30px; + } + .new-text{ + font-weight: 700; + } } .wh::after { diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue index b479582..f31e1db 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionCombination/property.vue @@ -99,6 +99,7 @@ defineOptions({ name: 'PromotionCombinationProperty' }) const props = defineProps<{ modelValue: PromotionCombinationProperty }>() const emit = defineEmits(['update:modelValue']) const { formData } = usePropertyForm(props.modelValue, emit) +formData.value.layoutType = 'threeCol'; // 活动列表 const activityList = ref([]) onMounted(async () => { diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/config.ts b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/config.ts new file mode 100644 index 0000000..75aa0ff --- /dev/null +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/config.ts @@ -0,0 +1,96 @@ +import {ComponentStyle, DiyComponent} from '@/components/DiyEditor/util' + +/** 积分商城属性 */ +export interface PromotionPointProperty { + // 布局类型:单列 | 三列 + layoutType: 'oneColBigImg' | 'oneColSmallImg' | 'twoCol' + // 商品字段 + fields: { + // 商品名称 + name: PromotionPointFieldProperty + // 商品简介 + introduction: PromotionPointFieldProperty + // 商品价格 + price: PromotionPointFieldProperty + // 市场价 + marketPrice: PromotionPointFieldProperty + // 商品销量 + salesCount: PromotionPointFieldProperty + // 商品库存 + stock: PromotionPointFieldProperty + } + // 角标 + badge: { + // 是否显示 + show: boolean + // 角标图片 + imgUrl: string + } + // 按钮 + btnBuy: { + // 类型:文字 | 图片 + type: 'text' | 'img' + // 文字 + text: string + // 文字按钮:背景渐变起始颜色 + bgBeginColor: string + // 文字按钮:背景渐变结束颜色 + bgEndColor: string + // 图片按钮:图片地址 + imgUrl: string + } + // 上圆角 + borderRadiusTop: number + // 下圆角 + borderRadiusBottom: number + // 间距 + space: number + // 秒杀活动编号 + activityIds: number[] + // 组件样式 + style: ComponentStyle +} + +// 商品字段 +export interface PromotionPointFieldProperty { + // 是否显示 + show: boolean + // 颜色 + color: string +} + +// 定义组件 +export const component = { + id: 'PromotionPoint', + name: '积分商城', + icon: 'ep:present', + property: { + layoutType: 'oneColBigImg', + fields: { + name: { show: true, color: '#000' }, + introduction: { show: true, color: '#999' }, + price: { show: true, color: '#ff3000' }, + marketPrice: { show: true, color: '#c4c4c4' }, + salesCount: { show: true, color: '#c4c4c4' }, + stock: { show: false, color: '#c4c4c4' } + }, + badge: { show: false, imgUrl: '' }, + btnBuy: { + type: 'text', + text: '立即兑换', + bgBeginColor: '#FF6000', + bgEndColor: '#FE832A', + imgUrl: '' + }, + borderRadiusTop: 8, + borderRadiusBottom: 8, + space: 8, + style: { + bgType: 'color', + bgColor: '', + marginLeft: 8, + marginRight: 8, + marginBottom: 8 + } as ComponentStyle + } +} as DiyComponent diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/index.vue new file mode 100644 index 0000000..4acd93f --- /dev/null +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/index.vue @@ -0,0 +1,202 @@ + + + + diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/property.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/property.vue new file mode 100644 index 0000000..84a429b --- /dev/null +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionPoint/property.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue index b851de6..ec2670b 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue @@ -6,8 +6,9 @@
- + + 限时秒杀
已有99人购买
@@ -150,6 +151,14 @@ .wh { position: relative; padding-right: 10px; + display: flex; + align-items: center; + .new-text1{ + width:30px; + } + .new-text{ + font-weight: 700; + } } .wh::after { diff --git a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/property.vue b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/property.vue index 8753782..e4a9bf6 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/property.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/components/mobile/PromotionSeckill/property.vue @@ -14,7 +14,7 @@ - +
@@ -99,6 +99,7 @@ defineOptions({ name: 'PromotionSeckillProperty' }) const props = defineProps<{ modelValue: PromotionSeckillProperty }>() const emit = defineEmits(['update:modelValue']) const { formData } = usePropertyForm(props.modelValue, emit) +formData.value.layoutType = "threeCol" // 活动列表 const activityList = ref([]) onMounted(async () => { diff --git a/yudao-admin-vue3/src/components/DiyEditor/util.ts b/yudao-admin-vue3/src/components/DiyEditor/util.ts index 5154c9b..c75945f 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/util.ts +++ b/yudao-admin-vue3/src/components/DiyEditor/util.ts @@ -146,7 +146,7 @@ export const PAGE_LIBS = [ components: [ 'PromotionCombination', 'PromotionSeckill', - // 'PromotionPoint', + 'PromotionPoint', 'CouponCard', 'PromotionArticle' ]