设置默认风格

master
wangdong 4 months ago
parent 39e416a9e7
commit 6ce3f35d58
  1. BIN
      public/static/style/default/排行榜.png
  2. BIN
      public/static/style/default/新人首单礼.png
  3. BIN
      public/static/style/default/新品首发.png
  4. BIN
      public/static/style/default/秒杀专区.png
  5. BIN
      public/static/style/default/邀请有礼.png
  6. BIN
      public/static/style/default/预售专区.png
  7. BIN
      public/static/style/default/领券中心.png
  8. BIN
      public/static/style/default/首页.png
  9. 1
      src/common/enum/store/page/wxAppStyle/constants.js
  10. 6
      src/views/client/wxapp/Style.vue

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

@ -1,4 +1,5 @@
const pageStyle = [
{ name: '默认', key: 'default', value: '' },
{ name: '风格一', key: '1', value: '1' },
{ name: '风格二', key: '2', value: '2' },
{ name: '风格三', key: '3', value: '3' },

@ -6,10 +6,10 @@
<!-- 模板预览 -->
<div class="preview fl-l">
<a-carousel autoplay>
<template v-if="form.getFieldValue('style')">
<template>
<div v-for="(item, index) in imageList" :key="index">
<img
:src="`static/style/${form.getFieldValue('style')}/${item.name}${form.getFieldValue('style')}.png`"
:src="`static/style/${form.getFieldValue('style') || 'default'}/${item.name}${form.getFieldValue('style')}.png`"
/>
</div>
</template>
@ -20,7 +20,7 @@
<a-form :form="form" @submit="handleSubmit">
<a-form-item label="页面风格" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group
v-decorator="['style', { rules: [{ required: true, message: '请选择页面风格' }]}]"
v-decorator="['style', { rules: [{ required: false, message: '请选择页面风格' }]}]"
>
<a-radio
v-for="(item, index) in pageStyle"

Loading…
Cancel
Save