|
|
@@ -9,14 +9,6 @@
|
|
|
<block v-if="form.riseSwitch != 0">
|
|
|
<!-- 选项设置 -->
|
|
|
<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">
|
|
|
- <block v-for="(item, index) in festData" :key="index">
|
|
|
- <button class="admin-button-com" :class="[form.festIdList.includes(item.id) ? '' : 'default']" @click="selFestFn(item)">{{ item.name || '暂无' }}</button>
|
|
|
- </block>
|
|
|
- </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">
|
|
|
@@ -43,7 +35,7 @@
|
|
|
</tui-list-cell>
|
|
|
</block>
|
|
|
</div>
|
|
|
- <div class="prompt-text">这里的规则只对花束商城生效,对花材和花束图集无效</div>
|
|
|
+ <div class="prompt-text">涨价只对花束商城生效,花材和花束图集无效</div>
|
|
|
</block>
|
|
|
<div class="button-group">
|
|
|
<button class="admin-button-com default big cancel-btn" @click="goBack">取消</button>
|
|
|
@@ -55,21 +47,18 @@
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import TuiListCell from '@/components/plugin/list-cell'
|
|
|
- // api
|
|
|
import { getFest } from '@/utils/config'
|
|
|
import { getRise, updateRise } from '@/api/goods'
|
|
|
export default {
|
|
|
- name: 'setting-price-increase',
|
|
|
+ name: 'price-increase',
|
|
|
components: {
|
|
|
TuiListCell
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- // radioVal: '0',
|
|
|
form: {
|
|
|
riseSwitch: '0',
|
|
|
riseType: '0',
|
|
|
- //festIdList: [],
|
|
|
riseAmount: ''
|
|
|
}
|
|
|
}
|
|
|
@@ -77,9 +66,6 @@
|
|
|
computed: {
|
|
|
...mapGetters({ festData: 'getFest' })
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- // this.init()
|
|
|
- },
|
|
|
methods: {
|
|
|
init() {
|
|
|
getFest().then(() => {
|
|
|
@@ -89,17 +75,12 @@
|
|
|
_getDet() {
|
|
|
return getRise().then(res => {
|
|
|
if (this.$util.isEmpty(res.data)) return
|
|
|
- //res.data.festIdList = res.data.festIdList.map(e => e + '')
|
|
|
Object.keys(this.form).forEach((i, index) => {
|
|
|
this.form[i] = res.data[i]
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
setPrice() {
|
|
|
- // if (this.form.festIdList.length == 0) {
|
|
|
- // this.$msg('请先选择节日!')
|
|
|
- // return false
|
|
|
- // }
|
|
|
if (!this.form.riseAmount) {
|
|
|
this.$msg('请先输入比例或者金额!')
|
|
|
return false
|
|
|
@@ -135,6 +116,7 @@
|
|
|
color: $fontColor3;
|
|
|
padding-bottom: 20upx;
|
|
|
padding-left: 30upx;
|
|
|
+ font-size:29upx;
|
|
|
}
|
|
|
.module-com {
|
|
|
margin-bottom: 20upx;
|
|
|
@@ -170,9 +152,6 @@
|
|
|
padding-bottom: 12upx;
|
|
|
margin-right: 20upx;
|
|
|
border-radius: 4upx;
|
|
|
- // &:first-child {
|
|
|
- // margin-left: 0;
|
|
|
- // }
|
|
|
}
|
|
|
}
|
|
|
}
|