储值卡
This commit is contained in:
parent
cf5d5684e0
commit
cadeccf2f8
@ -208,13 +208,13 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="14">
|
<!-- <el-col :span="14">
|
||||||
<el-form-item label="赠送加油金" :label-width="formLabelWidth" prop="refuelMoney">
|
<el-form-item label="赠送加油金" :label-width="formLabelWidth" prop="refuelMoney">
|
||||||
<el-input type="number" v-model="form.refuelMoney" autocomplete="off">
|
<el-input type="number" v-model="form.refuelMoney" autocomplete="off">
|
||||||
<template slot="append">元</template>
|
<template slot="append">元</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-form-item label="赠送特权" :label-width="formLabelWidth" prop="resource">
|
<el-form-item label="赠送特权" :label-width="formLabelWidth" prop="resource">
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
components: {
|
components: {
|
||||||
|
|
||||||
},
|
},
|
||||||
onLoad() {
|
onShow() {
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -17,17 +17,22 @@
|
|||||||
<!-- 储值充值 -->
|
<!-- 储值充值 -->
|
||||||
<view class="boxback" v-if="actinput == 0 || actinput == 1 ">
|
<view class="boxback" v-if="actinput == 0 || actinput == 1 ">
|
||||||
<view class="box-cz">
|
<view class="box-cz">
|
||||||
<view class="box-jg" :class="{ 'actbox' : actindex == index }" v-for="(item,index) in 5"
|
<view class="box-jg" :class="{ 'actbox' : actindex == index }" v-for="(item,index) in cardValueList"
|
||||||
:key="index" @click="xzindex(index)">
|
:key="index"
|
||||||
|
@click="xzindex(index,item.rechargeBalance,item.fringeBenefit,item.giftBalance,item.points,item.growthValue)">
|
||||||
<view class="s-title" :class="{ 'actsize' : actindex == index }">¥ <text
|
<view class="s-title" :class="{ 'actsize' : actindex == index }">¥ <text
|
||||||
style="font-weight: bold;">0.01</text> </view>
|
style="font-weight: bold;"></text>{{item.rechargeBalance}}</view>
|
||||||
<view class="min-size" :class="{ 'actsize' : actindex == index }">售价¥0.01</view>
|
<view class="min-size" :class="{ 'actsize' : actindex == index }">售价¥{{item.rechargeBalance}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="box-hui">
|
<view class="box-hui">
|
||||||
<view style="margin-bottom: 15px;">充值权益</view>
|
<view style="margin-bottom: 15px;">充值{{text}}元权益</view>
|
||||||
<view class="huisize">1.该服务为储蓄卡直充服务</view>
|
<view class="huisize" v-if="fringeBenefit">{{1}}.{{fringeBenefit}}</view>
|
||||||
<view class="huisize">2.请确认充值类型正确后再付款 </view>
|
<view class="huisize" v-if="giftBalance">{{2}}.赠送金额{{giftBalance}}</view>
|
||||||
|
<view class="huisize" v-if="points">{{3}}.赠送积分{{points}}</view>
|
||||||
|
<view class="huisize" v-if="growthValue">{{4}}.赠送成长值{{growthValue}}</view>
|
||||||
|
<!-- <view class="huisize" v-if="fringeBenefit">{{index + 1}}.{{fringeBenefit}}</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="box-gang">
|
<view class="box-gang">
|
||||||
<view class="">推荐员工</view>
|
<view class="">推荐员工</view>
|
||||||
@ -75,11 +80,19 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import request from '../../utils/request'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: '',
|
title: '',
|
||||||
actindex: 0,
|
actindex: 0,
|
||||||
|
actInput: 0,
|
||||||
|
index: 0,
|
||||||
|
text: "",
|
||||||
|
fringeBenefit: "",
|
||||||
|
giftBalance: "",
|
||||||
|
points: "",
|
||||||
|
growthValue: "",
|
||||||
show: false,
|
show: false,
|
||||||
columns: [
|
columns: [
|
||||||
['员工一', '员工二', '员工三']
|
['员工一', '员工二', '员工三']
|
||||||
@ -95,12 +108,16 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
|
cardValueList: [],
|
||||||
|
|
||||||
actinput: 0,
|
actinput: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.getValueCars();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
@ -109,14 +126,30 @@
|
|||||||
cancel() {
|
cancel() {
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
xzindex(index) {
|
xzindex(index, text, fringeBenefit, giftBalance, points, growthValue) {
|
||||||
this.actindex = index
|
this.actindex = index
|
||||||
|
this.text = text
|
||||||
|
this.fringeBenefit = fringeBenefit
|
||||||
|
this.giftBalance = giftBalance
|
||||||
|
this.points = points
|
||||||
|
this.growthValue = growthValue
|
||||||
},
|
},
|
||||||
getindex(index) {
|
getindex(index) {
|
||||||
this.actinput = index
|
this.actinput = index
|
||||||
},
|
},
|
||||||
goback() {
|
goback() {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
},
|
||||||
|
getValueCars() {
|
||||||
|
request({
|
||||||
|
url: '/business/marketingActivity/cardValue',
|
||||||
|
method: 'get',
|
||||||
|
data: {
|
||||||
|
activeStatus: '1'
|
||||||
|
},
|
||||||
|
}).then(res => {
|
||||||
|
this.cardValueList = res.data.records
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user