fanfan 4 months ago
commit 6a9b7ba3f5
  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. 8
      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 = [ const pageStyle = [
{ name: '默认', key: 'default', value: '' },
{ name: '风格一', key: '1', value: '1' }, { name: '风格一', key: '1', value: '1' },
{ name: '风格二', key: '2', value: '2' }, { name: '风格二', key: '2', value: '2' },
{ name: '风格三', key: '3', value: '3' }, { name: '风格三', key: '3', value: '3' },

@ -6,10 +6,10 @@
<!-- 模板预览 --> <!-- 模板预览 -->
<div class="preview fl-l"> <div class="preview fl-l">
<a-carousel autoplay> <a-carousel autoplay>
<template v-if="form.getFieldValue('style')"> <template>
<div v-for="(item, index) in imageList" :key="index"> <div v-for="(item, index) in imageList" :key="index">
<img <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> </div>
</template> </template>
@ -20,7 +20,7 @@
<a-form :form="form" @submit="handleSubmit"> <a-form :form="form" @submit="handleSubmit">
<a-form-item label="页面风格" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="页面风格" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group <a-radio-group
v-decorator="['style', { rules: [{ required: true, message: '请选择页面风格' }]}]" v-decorator="['style', { rules: [{ required: false, message: '请选择页面风格' }]}]"
> >
<a-radio <a-radio
v-for="(item, index) in pageStyle" v-for="(item, index) in pageStyle"
@ -77,7 +77,7 @@ export default {
.then(result => { .then(result => {
console.log(result) console.log(result)
// //
this.record.style = result.data.detail.style || '' this.record.style = result.data.detail ? (result.data.detail.style || '') : ''
// //
this.setFieldsValue() this.setFieldsValue()
}) })

Loading…
Cancel
Save