商户评分

feature/0423
wangdong 9 months ago
parent c9e5a55c53
commit fb376dfab5
  1. BIN
      public/static/style/1/排行榜1.png
  2. BIN
      public/static/style/1/新人首单礼1.png
  3. BIN
      public/static/style/1/新品首发1.png
  4. BIN
      public/static/style/1/秒杀专区1.png
  5. BIN
      public/static/style/1/邀请有礼1.png
  6. BIN
      public/static/style/1/预售专区1.png
  7. BIN
      public/static/style/1/领券中心1.png
  8. BIN
      public/static/style/1/首页1.png
  9. BIN
      public/static/style/2/排行榜2.png
  10. BIN
      public/static/style/2/新人首单礼2.png
  11. BIN
      public/static/style/2/新品首发2.png
  12. BIN
      public/static/style/2/秒杀专区2.png
  13. BIN
      public/static/style/2/邀请有礼2.png
  14. BIN
      public/static/style/2/预售专区2.png
  15. BIN
      public/static/style/2/领券中心2.png
  16. BIN
      public/static/style/2/首页2.png
  17. BIN
      public/static/style/3/排行榜3.png
  18. BIN
      public/static/style/3/新人首单礼3.png
  19. BIN
      public/static/style/3/新品首发3.png
  20. BIN
      public/static/style/3/秒杀专区3.png
  21. BIN
      public/static/style/3/邀请有礼3.png
  22. BIN
      public/static/style/3/预售专区3.png
  23. BIN
      public/static/style/3/领券中心3.png
  24. BIN
      public/static/style/3/首页3.png
  25. BIN
      public/static/style/4/排行榜4.png
  26. BIN
      public/static/style/4/新人首单礼4.png
  27. BIN
      public/static/style/4/新品首发4.png
  28. BIN
      public/static/style/4/秒杀专区4.png
  29. BIN
      public/static/style/4/邀请有礼4.png
  30. BIN
      public/static/style/4/预售专区4.png
  31. BIN
      public/static/style/4/领券中心4.png
  32. BIN
      public/static/style/4/首页4.png
  33. BIN
      public/static/style/5/排行榜5.png
  34. BIN
      public/static/style/5/新人首单礼5.png
  35. BIN
      public/static/style/5/新品首发5.png
  36. BIN
      public/static/style/5/秒杀专区5.png
  37. BIN
      public/static/style/5/邀请有礼5.png
  38. BIN
      public/static/style/5/预售专区5.png
  39. BIN
      public/static/style/5/领券中心5.png
  40. BIN
      public/static/style/5/首页5.png
  41. 24
      src/common/enum/store/page/wxAppStyle/constants.js
  42. 35
      src/views/client/wxapp/Style.vue
  43. 18
      src/views/shop/modules/Add.vue
  44. 21
      src/views/shop/modules/Edit.vue

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

@ -1,11 +1,23 @@
const pageStyle = [ const pageStyle = [
{ 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' },
{ name: '风格四', key: 4, value: 4 }, { name: '风格四', key: '4', value: '4' },
{ name: '风格五', key: 5, value: 5 } { name: '风格五', key: '5', value: '5' }
]
const imageList = [
{ name: '首页' },
{ name: '领券中心' },
{ name: '秒杀专区' },
{ name: '排行榜' },
{ name: '新品首发' },
{ name: '新人首单礼' },
{ name: '邀请有礼' },
{ name: '预售专区' }
] ]
export default { export default {
pageStyle pageStyle,
imageList
} }

@ -6,30 +6,13 @@
<!-- 模板预览 --> <!-- 模板预览 -->
<div class="preview fl-l"> <div class="preview fl-l">
<a-carousel autoplay> <a-carousel autoplay>
<div> <template v-if="form.getFieldValue('style')">
<div v-for="(item, index) in imageList" :key="index">
<img <img
v-if="form.getFieldValue('style')" :src="`static/style/${form.getFieldValue('style')}/${item.name}${form.getFieldValue('style')}.png`"
:src="`static/img/category/${form.getFieldValue('style')}.png`"
/>
</div>
<div>
<img
v-if="form.getFieldValue('style')"
:src="`static/img/category/${form.getFieldValue('style')}.png`"
/>
</div>
<div>
<img
v-if="form.getFieldValue('style')"
:src="`static/img/category/${form.getFieldValue('style')}.png`"
/>
</div>
<div>
<img
v-if="form.getFieldValue('style')"
:src="`static/img/category/${form.getFieldValue('style')}.png`"
/> />
</div> </div>
</template>
</a-carousel> </a-carousel>
</div> </div>
<!-- 表单内容 --> <!-- 表单内容 -->
@ -59,7 +42,6 @@
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
import * as Api from '@/api/client/wxapp/setting' import * as Api from '@/api/client/wxapp/setting'
import { SettingEnum } from '@/common/enum/store'
import constants from '@/common/enum/store/page/wxAppStyle/constants' import constants from '@/common/enum/store/page/wxAppStyle/constants'
export default { export default {
@ -77,7 +59,8 @@ export default {
form: this.$form.createForm(this), form: this.$form.createForm(this),
// //
record: {}, record: {},
pageStyle: constants.pageStyle pageStyle: constants.pageStyle,
imageList: constants.imageList
} }
}, },
// //
@ -92,8 +75,9 @@ export default {
this.isLoading = true this.isLoading = true
Api.getPageStyle() Api.getPageStyle()
.then(result => { .then(result => {
console.log(result)
// //
this.record = result.data.detail || '' this.record.style = result.data.detail.style || ''
// //
this.setFieldsValue() this.setFieldsValue()
}) })
@ -152,9 +136,12 @@ export default {
.preview { .preview {
width: 300px; width: 300px;
height: 600px;
overflow: hidden;
img { img {
display: block; display: block;
width: 100%; width: 100%;
height: 100%;
box-shadow: 0 3px 10px #dcdcdc; box-shadow: 0 3px 10px #dcdcdc;
} }
} }

@ -34,6 +34,24 @@
v-decorator="['license_img_id', { rules: [{ required: true, message: '请上传营业执照' }]}]" v-decorator="['license_img_id', { rules: [{ required: true, message: '请上传营业执照' }]}]"
/> />
</a-form-item> </a-form-item>
<a-form-item
label="店铺评分"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
>
<a-select
style="width: 300px"
v-decorator="['score', { rules: [{ required: true, message: '请选择评分' }] }]"
placeholder="请选择评分"
>
<a-select-option
v-for="(item, index) in 5"
:key="index"
:value="item"
>{{ item }}</a-select-option
>
</a-select>
</a-form-item>
<a-form-item <a-form-item
label="绑定账号" label="绑定账号"
:labelCol="labelCol" :labelCol="labelCol"

@ -34,9 +34,27 @@
<SelectImage <SelectImage
multiple multiple
:defaultList="info.licenseImg ? info.licenseImg : []" :defaultList="info.licenseImg ? info.licenseImg : []"
v-decorator="['license_img_id']" v-decorator="['license_img_id', { rules: [{ required: true, message: '请上传营业执照' }]}]"
/> />
</a-form-item> </a-form-item>
<a-form-item
label="店铺评分"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
>
<a-select
style="width: 300px"
v-decorator="['score', { rules: [{ required: true, message: '请选择评分' }] }]"
placeholder="请选择评分"
>
<a-select-option
v-for="(item, index) in 5"
:key="index"
:value="item"
>{{ item }}</a-select-option
>
</a-select>
</a-form-item>
<a-form-item <a-form-item
label="绑定账号" label="绑定账号"
:labelCol="labelCol" :labelCol="labelCol"
@ -127,6 +145,7 @@ export default {
'shop_name', 'shop_name',
'shop_label', 'shop_label',
'logo_image_id', 'logo_image_id',
'score',
'user_name' 'user_name'
]) ])
) )

Loading…
Cancel
Save