tianyi 2 days ago
parent
commit
2c0b753b3e
  1. 48
      pages/goods/gategory.vue
  2. 5
      pages/login/login.vue
  3. 5
      pages/myCenter/shopDetail.vue
  4. 10
      pages/shop/addGoods.vue

48
pages/goods/gategory.vue

@ -25,7 +25,8 @@
</uni-popup-dialog>
</uni-popup>
<uni-popup ref="delDialog" type="dialog">
<view class="type-popup" style="width:100%;margin-bottom: 0;border-radius: 0;height: 650rpx;border-radius: 20rpx;">
<view class="type-popup"
style="width:100%;margin-bottom: 0;border-radius: 0;height: 650rpx;border-radius: 20rpx;">
<view style="height: 120rpx;font-size: 36rpx;font-weight: bold;line-height: 120rpx;text-align: center;">
编辑分类
</view>
@ -39,9 +40,12 @@
<view style="width: 90%;margin: 40rpx auto 0;">
排序<uni-easyinput type="text" v-model="sortTextEdit" @blur="handleBlurSort" placeholder="可设置排序" />
</view>
<view style="width: 100%;height: 90rpx;line-height: 90rpx;text-align: center;border-radius: 0;color: #fff;display: flex;position: absolute;bottom: 0;">
<view style="flex: 1;background: linear-gradient(90deg, #60F3FF, #088FEB);" v-if="inputVal != '默认分类'" @tap="dialogDel">删除</view>
<view style="flex: 1;background: linear-gradient(90deg, #FF9797, #FFC1E0);" @tap="dialogInputConfirm">确认</view>
<view
style="width: 100%;height: 90rpx;line-height: 90rpx;text-align: center;border-radius: 0;color: #fff;display: flex;position: absolute;bottom: 0;">
<view style="flex: 1;background: linear-gradient(90deg, #60F3FF, #088FEB);"
v-if="inputVal != '默认分类'" @tap="dialogDel">删除</view>
<view style="flex: 1;background: linear-gradient(90deg, #FF9797, #FFC1E0);"
@tap="dialogInputConfirm">确认</view>
</view>
</view>
</uni-popup>
@ -54,9 +58,11 @@
style="height:40rpx;line-height: 40rpx;position: absolute !important;bottom:0;right: 30rpx;"></uni-icons>
</view>
<view class="add-popup-container">
<input type="text" v-model="typeText" style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;"
<input type="text" v-model="typeText"
style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;"
placeholder="请输入分类名称">
<input type="text" v-model="sortText" style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;"
<input type="text" v-model="sortText"
style="width: 100%;border: 1px solid #eee;height: 80rpx;padding-left: 20rpx;margin:20rpx 0;font-size: 25rpx;line-height: 80rpx;"
placeholder="可设置分类排序">
<view class="add-popup-bottom">
<view class="add-popup-btn" @tap="dialogInputConfirm(typeText)">确认</view>
@ -79,7 +85,8 @@
</view>
<view class="shop-box" v-for="(item,index) in goodsList" :key="index" style="position: relative;">
<view style='height: 50rpx;line-height: 50rpx;'>
<view style="width: 70%;text-align: center;border-right: 1px solid #eee;float: left;height: 50rpx;overflow: hidden;">
<view
style="width: 70%;text-align: center;border-right: 1px solid #eee;float: left;height: 50rpx;overflow: hidden;">
{{item.attributeList | sliceMsg}}
</view>
<view style="width: 29%;text-align: center;float: left;">
@ -291,7 +298,8 @@
if (type == 'edit') {
this.inputVal = item.categoryName;
this.editItem = item;
this.sortTextEdit = (this.editItem.sort == null || this.editItem.sort == 'null') ? '' : this.editItem.sort
this.sortTextEdit = (this.editItem.sort == null || this.editItem.sort == 'null') ? '' : this.editItem
.sort
this.$refs.delDialog.open('bottom')
} else if (type == 'add') {
this.inputVal = '';
@ -340,9 +348,19 @@
} else {
that.show = true
}
} else {
uni.showToast({
title: res1.message,
icon: 'none'
})
}
})
}
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
},
@ -498,7 +516,8 @@
for (var i = 0; i < this.multipleList.length; i++) {
if (this.multipleList[i].attributeName == item.name) { //
for (var m = 0; m < this.multipleList[i].productAttributeValueVoList.length; m++) {
if(this.multipleList[i].productAttributeValueVoList[m].value == item.list[index].value){ //
if (this.multipleList[i].productAttributeValueVoList[m].value == item.list[index]
.value) { //
this.multipleList[i].productAttributeValueVoList.splice(m, 1)
@ -534,9 +553,11 @@
</script>
<style lang="scss" scoped>
page,.page1{
page,
.page1 {
font-size: 28rpx;
}
.u-wrap {
height: calc(100vh);
/* #ifdef H5 */
@ -611,10 +632,12 @@
margin: 150rpx auto 0;
}
.checked {
background: #60F3FF;
color: #fff;
}
.card-list ul {}
.card-list li {
@ -708,6 +731,7 @@
background: linear-gradient(90deg, #60F3FF, #088FEB);
border-radius: 70rpx;
}
.add-popup-content {
align-items: center;
justify-content: center;
@ -742,11 +766,13 @@
text-align: center;
background: linear-gradient(90deg, #60F3FF, #088FEB);
}
.title-fur {
width: 95%;
height: 70rpx;
margin: 0 auto;
border-bottom: 1px solid #eee;
.name {
font-size: 30rpx;
width: 90%;
@ -755,6 +781,7 @@
line-height: 70rpx;
}
}
.content-fur {
padding-bottom: 25rpx;
}
@ -770,6 +797,7 @@
color: #777;
margin: 20rpx 0 0 20rpx;
}
.type-popup {
width: 500rpx;
height: auto;

5
pages/login/login.vue

@ -274,6 +274,11 @@
that.codetimes = "获取验证码"
}
}, 1000);
}else{
uni.showToast({
title: data.message,
icon: 'none'
})
}
}).catch(data => {

5
pages/myCenter/shopDetail.vue

@ -292,6 +292,11 @@
if (modalRes.confirm) uni.navigateBack()
}
})
}else{
uni.showToast({
title: res.message,
icon: 'none'
})
}
uni.hideLoading()
})

10
pages/shop/addGoods.vue

@ -457,6 +457,11 @@
icon: 'none'
})
uni.navigateBack()
}else{
uni.showToast({
title: res.message,
icon: 'none'
})
}
}).catch(() => {});
} else if (this.modalType == 1) {
@ -472,6 +477,11 @@
icon: 'none'
})
uni.navigateBack()
}else{
uni.showToast({
title: res.message,
icon: 'none'
})
}
}).catch(() => {});
}

Loading…
Cancel
Save