bug
This commit is contained in:
parent
5a42f4efa0
commit
c2f3279e5c
@ -319,12 +319,11 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="有效期(天)"
|
||||
width="240">
|
||||
label="有效期(天)">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.timeType == 0" > <el-input-number v-model="scope.row.validityZero" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > <el-input-number v-model="scope.row.validityOne" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > <el-input-number v-model="scope.row.validityTwo" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 0" > {{scope.row.validityZero}}天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > {{scope.row.validityOne}}天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > {{scope.row.validityTwo}}天 </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -388,10 +387,9 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="有效期(天)"
|
||||
width="240">
|
||||
label="有效期(天)">
|
||||
<template slot-scope="scope">
|
||||
<span > <el-input-number v-model="scope.row.giftCardTime" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span> {{ scope.row.giftCardTime }}天 </span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -251,12 +251,11 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="有效期(天)"
|
||||
width="240">
|
||||
label="有效期(天)">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.timeType == 0" > <el-input-number v-model="scope.row.validityZero" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > <el-input-number v-model="scope.row.validityOne" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > <el-input-number v-model="scope.row.validityTwo" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 0" > {{ scope.row.validityZero }}天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > {{ scope.row.validityOne }}天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > {{ scope.row.validityTwo }}天 </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -322,10 +321,9 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="有效期(天)"
|
||||
width="240">
|
||||
label="有效期(天)">
|
||||
<template slot-scope="scope">
|
||||
<span > <el-input-number v-model="scope.row.giftCardTime" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span> {{ scope.row.giftCardTime }}天 </span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -114,17 +114,17 @@
|
||||
label="有效期(天)"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.timeType == 0" > <el-input-number v-model="scope.row.validityZero" size="small" controls-position="right" :min="0" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > <el-input-number v-model="scope.row.validityOne" size="small" controls-position="right" :min="0" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > <el-input-number v-model="scope.row.validityTwo" size="small" controls-position="right" :min="0" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 0" > {{ scope.row.validityZero }}天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > {{ scope.row.validityOne }}天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > {{ scope.row.validityTwo }}天 </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="数量"
|
||||
label="数量" width="130"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input-number v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
<el-input-number style="width: 110px" v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -182,15 +182,15 @@
|
||||
label="有效期(天)"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span > <el-input-number v-model="scope.row.giftCardTime" size="small" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span > {{ scope.row.giftCardTime }}天 </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="数量"
|
||||
label="数量" width="130"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input-number v-model="scope.row.giftCardTotal" size="small" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
<el-input-number style="width: 110px" v-model="scope.row.giftCardTotal" size="small" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -208,17 +208,17 @@
|
||||
label="有效期(天)"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.timeType == 0" > <el-input-number v-model="scope.row.validityZero" controls-position="right" :min="1" :max="9999"></el-input-number> </span>
|
||||
<span v-if="scope.row.timeType == 1" > <el-input-number v-model="scope.row.validityOne" controls-position="right" :min="1" :max="9999"></el-input-number> </span>
|
||||
<span v-if="scope.row.timeType == 2" > <el-input-number v-model="scope.row.validityTwo" controls-position="right" :min="1" :max="9999"></el-input-number></span>
|
||||
<span v-if="scope.row.timeType == 0" > {{ scope.row.validityZero }}天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > {{ scope.row.validityOne }}天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > {{ scope.row.validityTwo }}天 </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="数量"
|
||||
label="数量" width="130"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input-number v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
<el-input-number style="width: 110px" v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@ -279,15 +279,15 @@
|
||||
label="有效期(天)"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span > <el-input-number v-model="scope.row.giftCardTime" controls-position="right" :min="1" :max="9999"></el-input-number> </span>
|
||||
<span > {{ scope.row.giftCardTime }}天 </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="数量"
|
||||
label="数量" width="130"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-input-number v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
<el-input-number style="width: 110px" v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -833,7 +833,8 @@ export default {
|
||||
activeNewName:'',
|
||||
activeNewId:'',
|
||||
status:'1'
|
||||
},
|
||||
}
|
||||
this.ruleForm.ylist = []
|
||||
this.xzshow = true
|
||||
},
|
||||
// 图片上传成功
|
||||
|
@ -425,6 +425,7 @@ export default {
|
||||
handleAdd() {
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.form.status = '0'
|
||||
this.title = '添加兑换券'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
|
@ -678,6 +678,7 @@ export default {
|
||||
this.vipname = res.data.records
|
||||
})
|
||||
this.open = true;
|
||||
this.form.status = '0'
|
||||
this.title = "添加优惠券";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
|
@ -274,16 +274,17 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="到期时间" prop="expireTime">
|
||||
<div style="width: 100%;display: flex;align-items: center ">
|
||||
<div style="width: 45%">
|
||||
<!-- <div style="width: 100%;display: flex;align-items: center ">-->
|
||||
<!-- <div style="width: 45%">-->
|
||||
<el-date-picker
|
||||
v-model="ruleForm.expireTime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
type="datetime"
|
||||
placeholder="到期时间">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div style="color: red;font-size: 12px;line-height: 18px;margin-top: 5px">注:当前到期时间为用户充值后电子囤油卡的余油的到期时间,如果到期后没有用完则自动转为电子储值卡余额</div>
|
||||
|
||||
|
||||
</el-form-item>
|
||||
|
@ -191,9 +191,9 @@
|
||||
label="有效期(天)"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.timeType == 0" > <el-input-number v-model="scope.row.validityZero" controls-position="right" size="mini" :min="1" :max="9999"></el-input-number></span>
|
||||
<span v-if="scope.row.timeType == 1" > <el-input-number v-model="scope.row.validityOne" controls-position="right" size="mini" :min="1" :max="9999"></el-input-number></span>
|
||||
<span v-if="scope.row.timeType == 2" > <el-input-number v-model="scope.row.validityTwo" controls-position="right" size="mini" :min="1" :max="9999"></el-input-number></span>
|
||||
<span v-if="scope.row.timeType == 0" > {{ scope.row.validityZero }}天</span>
|
||||
<span v-if="scope.row.timeType == 1" > {{ scope.row.validityOne }}天</span>
|
||||
<span v-if="scope.row.timeType == 2" > {{ scope.row.validityTwo }}天</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
@ -258,7 +258,7 @@
|
||||
label="有效期(天)"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span > <el-input-number v-model="scope.row.validity" controls-position="right" size="mini" :min="1" :max="9999"></el-input-number> </span>
|
||||
<span > {{ scope.row.validity }}天 </span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -346,9 +346,9 @@
|
||||
label="有效期(天)"
|
||||
width="240">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.timeType == 0" > <el-input-number v-model="scope.row.validityZero" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > <el-input-number v-model="scope.row.validityOne" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > <el-input-number v-model="scope.row.validityTwo" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span v-if="scope.row.timeType == 0" > {{ scope.row.validityZero }}天 </span>
|
||||
<span v-if="scope.row.timeType == 1" > {{ scope.row.validityOne }}天 </span>
|
||||
<span v-if="scope.row.timeType == 2" > {{ scope.row.validityTwo }}天 </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -412,7 +412,7 @@
|
||||
label="有效期(天)"
|
||||
width="240">
|
||||
<template slot-scope="scope">
|
||||
<span > <el-input-number v-model="scope.row.giftCardTime" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>
|
||||
<span > {{ scope.row.giftCardTime }}天 </span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -48,8 +48,8 @@ Vue.prototype.getName = getName
|
||||
Vue.prototype.download = download
|
||||
Vue.prototype.handleTree = handleTree
|
||||
// Vue.prototype.pcUrl = 'http://192.168.0.121:82/'
|
||||
Vue.prototype.pcUrl = 'http://192.168.31.96:82/'
|
||||
// Vue.prototype.pcUrl = 'http://47.95.206.185:85/'
|
||||
// Vue.prototype.pcUrl = 'http://192.168.31.96:82/'
|
||||
Vue.prototype.pcUrl = 'http://47.95.206.185:85/'
|
||||
|
||||
// 全局组件挂载
|
||||
Vue.component('DictTag', DictTag)
|
||||
|
@ -41,7 +41,7 @@
|
||||
</view>
|
||||
<view class="jg-size">本站活动</view>
|
||||
</view>
|
||||
<view class="jg-box" @click="goCard()">
|
||||
<view class="jg-box" @click="goCard()" v-if="isOpen">
|
||||
<view class="jg-img">
|
||||
<image src="../../static/imgs/ykcz.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
@ -53,6 +53,7 @@
|
||||
</view>
|
||||
<view class="jg-size">积分商城</view>
|
||||
</view>
|
||||
<view @click="isRecharge">.</view>
|
||||
|
||||
</view>
|
||||
<!-- 金刚区结束 -->
|
||||
@ -159,6 +160,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isOpen:false,
|
||||
chainStoreId: '',
|
||||
indicatorDots: true,
|
||||
autoplay: true,
|
||||
@ -279,6 +281,13 @@
|
||||
tabbar
|
||||
},
|
||||
methods: {
|
||||
isRecharge(){
|
||||
if (this.isOpen){
|
||||
this.isOpen = false;
|
||||
}else{
|
||||
this.isOpen = true
|
||||
}
|
||||
},
|
||||
// 返回图片路径
|
||||
getBannerUrl(url) {
|
||||
let imgurl = ""
|
||||
|
@ -433,14 +433,25 @@
|
||||
},
|
||||
//储值卡充值
|
||||
addValueCarRecords() {
|
||||
|
||||
// if (this.carValueId == '') {
|
||||
// uni.showToast({
|
||||
// title: "储值卡为必填项",
|
||||
// icon: "error"
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
if (this.types==0){
|
||||
if (this.carValueId == '') {
|
||||
uni.showToast({
|
||||
title: "当前店铺暂未设置电子囤油卡储值优惠,请先联系商家",
|
||||
icon: "error"
|
||||
})
|
||||
return
|
||||
}
|
||||
}else{
|
||||
if (!this.balance || this.balance<=0) {
|
||||
uni.showToast({
|
||||
title: "请填写充值金额,并确保充值金额大于0",
|
||||
icon: "error"
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let _this = this
|
||||
|
||||
request({
|
||||
|
Loading…
Reference in New Issue
Block a user