mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-16 23:53:48 +08:00
Bug list updated
This commit is contained in:
@@ -155,8 +155,6 @@ ul li ol li em strong i {
|
||||
|
||||
span {
|
||||
display: block;
|
||||
margin-left: 3px;
|
||||
|
||||
}
|
||||
|
||||
i {
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rc_contline">1</div>
|
||||
<div class="rc_contline"></div>
|
||||
<div class="rc-main" v-for="(item, index) in goldmedal" :key="index">
|
||||
<div class="rc-usermain">
|
||||
<div class="rc-image">
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
<i class="ts-row-title">商品规格:</i>
|
||||
</div>
|
||||
<div class="ts-tag-list">
|
||||
<em v-for="(item, index) in newlist" :key="index" @click="selectsearch(item, index)" :class="[activeIndexa==index?'active':'unactive',item.leftAllotment?'':'disabled']">
|
||||
<em v-for="(item, index) in newlist" :key="index" @click="selectsearch(item, index)" :class="[activeIndexa==index?'active':'unactive',item.leftAllotment>0?'':'disabled']">
|
||||
{{ item.specifications }}
|
||||
</em>
|
||||
</div>
|
||||
@@ -218,7 +218,7 @@
|
||||
<img :src="userimage" alt="" />
|
||||
<div class="rc-contair">
|
||||
<div class="rc-left">
|
||||
<div>
|
||||
<div v-if="item.couponAmount">
|
||||
<i>¥</i><span>{{ item.couponAmount }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -313,13 +313,13 @@ export default {
|
||||
let data = await goodsmessage(singleCode);
|
||||
if (data && data.data.length>0) {
|
||||
newlist.push(data.data[0]);
|
||||
if(data.data[0].leftAllotment && !stopLeftAllotmentChecking) {
|
||||
if(data.data[0].leftAllotment>0 && !stopLeftAllotmentChecking) {
|
||||
activeIndexa = stopIndex;
|
||||
curItem = data.data[0];
|
||||
stopLeftAllotmentChecking=true;
|
||||
}
|
||||
stopIndex++;
|
||||
}
|
||||
stopIndex++;
|
||||
}
|
||||
productAttachmentList = newlist[0].productAttachmentList;
|
||||
userbuy = true;
|
||||
@@ -452,11 +452,14 @@ export default {
|
||||
//获取用户领取的优惠券
|
||||
async getconf(memberId, couponId) {
|
||||
let data = await getConfig(memberId, couponId);
|
||||
let msg = '领取成功';
|
||||
if (data) {
|
||||
this.$message({
|
||||
type: "warning",
|
||||
message: data.msg,
|
||||
});
|
||||
if(data.code!='0')
|
||||
msg = data.msg;
|
||||
this.$message({
|
||||
type: "warning",
|
||||
message: msg,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -535,7 +538,14 @@ export default {
|
||||
},
|
||||
|
||||
plus(num, index) {
|
||||
this.sales_num = parseInt(this.sales_num) + 1;
|
||||
if(this.sales_num >= this.curItem.leftAllotment) {
|
||||
this.$message({
|
||||
type: "warning",
|
||||
message: '已达到本品最大购买上限',
|
||||
});
|
||||
} else {
|
||||
this.sales_num = parseInt(this.sales_num) + 1;
|
||||
}
|
||||
},
|
||||
// 数量减方法
|
||||
sub(num, index) {
|
||||
@@ -551,7 +561,7 @@ export default {
|
||||
// let mobile=JSON.parse(location.getItem('userInfo'));
|
||||
// console.log(userid,mobile);
|
||||
let data = await postCourseId(
|
||||
this.productCode,
|
||||
item.productCode,
|
||||
this.sales_num,
|
||||
this.usermessage.data.id,
|
||||
this.usermessage.data.mobile,
|
||||
@@ -614,7 +624,7 @@ export default {
|
||||
}
|
||||
},
|
||||
selectsearch(item, index) {
|
||||
if(!item.leftAllotment)
|
||||
if(!item.leftAllotment || item.leftAllotment<=0)
|
||||
return;
|
||||
this.activeIndexa = index;
|
||||
this.curItem = item;
|
||||
|
||||
@@ -104,6 +104,7 @@
|
||||
<div class="rc-max-width--xl rc-margin-bottom--lg">
|
||||
<div class="usersearch">
|
||||
<div class="rc-contair">
|
||||
<div class="ts-no-data" v-if="!rccontair.length">暂未发现相关记录</div>
|
||||
<ul class="ts-product-list">
|
||||
<li
|
||||
v-for="(item, index) in rccontair"
|
||||
|
||||
Reference in New Issue
Block a user