|
|
@@ -1,13 +1,102 @@
|
|
|
<template>
|
|
|
- <div class="app-content"></div>
|
|
|
+ <div class="app-content">
|
|
|
+ <div class="module-com flex-center-between switch-blo">
|
|
|
+ <div class="app-size-32">开启自动涨价</div>
|
|
|
+ <div>
|
|
|
+ <switch checked @change="switchChangeFn" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 选项设置 -->
|
|
|
+ <div class="input-line-wrap new-wrap">
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">旧密码</div>
|
|
|
+ <div class="tui-input button-wrap">
|
|
|
+ <button class="admin-button-com">2.14情人节</button>
|
|
|
+ <button class="admin-button-com default">七夕节</button>
|
|
|
+ <button class="admin-button-com">母亲节</button>
|
|
|
+ </div>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">涨价方式</div>
|
|
|
+ <radio-group class="tui-input flex-center-between" @change="radioChange">
|
|
|
+ <label class="list" for="customLink">
|
|
|
+ <radio id="customLink" value="自定义链接" checked="checked" />
|
|
|
+ <span class="checkbox-text">按百分比</span>
|
|
|
+ </label>
|
|
|
+ <label class="list" for="goodsLink">
|
|
|
+ <radio id="goodsLink" value="链接商品" />
|
|
|
+ <span class="checkbox-text">按金额</span>
|
|
|
+ </label>
|
|
|
+ </radio-group>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">比例</div>
|
|
|
+ <input placeholder-class="phcolor" class="tui-input" name="phone" placeholder="涨价10%,请输入10" maxlength="50" type="number" />
|
|
|
+ </tui-list-cell>
|
|
|
+ </div>
|
|
|
+ <div class="prompt-text">提示:在节日的前一天和当天,商城设置自动涨价的商品将会全部 统一涨价。过后自动恢复原价。</div>
|
|
|
+ <button class="admin-button-com blue big confirm-btn">确定</button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import TuiListCell from '@/components/plugin/list-cell'
|
|
|
export default {
|
|
|
- name: 'price-increase'
|
|
|
+ name: 'setting-price-increase',
|
|
|
+ components: {
|
|
|
+ TuiListCell
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {}
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ switchChangeFn(e) {
|
|
|
+ console.log('switch1 发生 change 事件,携带值为', e.target.value)
|
|
|
+ },
|
|
|
+ radioChange() {}
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
+ .prompt-text {
|
|
|
+ color: $fontColor3;
|
|
|
+ padding-bottom: 20px;
|
|
|
+ padding-left: 30px;
|
|
|
+ }
|
|
|
+ .module-com {
|
|
|
+ margin-bottom: 20px;
|
|
|
+ padding: 30px;
|
|
|
+ background-color: #fff;
|
|
|
+ color: $fontColor2;
|
|
|
+ .module-tit {
|
|
|
+ font-size: 28px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .confirm-btn {
|
|
|
+ width: calc(100% - 60px);
|
|
|
+ margin: 60px 30px 0;
|
|
|
+ }
|
|
|
+ .switch-blo {
|
|
|
+ padding: 15px 30px;
|
|
|
+ }
|
|
|
+ .new-wrap {
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .checkbox-text {
|
|
|
+ color: $fontColor2;
|
|
|
+ }
|
|
|
+ .button-wrap {
|
|
|
+ justify-content: flex-start;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .admin-button-com {
|
|
|
+ padding-top: 12px;
|
|
|
+ padding-bottom: 12px;
|
|
|
+ margin-left: 20px;
|
|
|
+ border-radius: 4px;
|
|
|
+ &:first-child {
|
|
|
+ margin-left: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|