新增优惠券
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<view class="head">
|
||||
<text></text>
|
||||
<text class="title">请选择</text>
|
||||
<up-icon name="close-circle-fill" color="#333" size="20"></up-icon>
|
||||
<up-icon @tap="close" name="close-circle-fill" color="#333" size="20"></up-icon>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="category">
|
||||
@@ -65,7 +65,7 @@ import {
|
||||
goodsValue.value = item.id;
|
||||
}
|
||||
function groupChange ( n ) {
|
||||
console.log(n)
|
||||
// console.log(n)
|
||||
}
|
||||
function getCategoryList () {
|
||||
$tbShopCategory({
|
||||
@@ -78,7 +78,6 @@ import {
|
||||
}
|
||||
function getGoodsList () {
|
||||
$tbProductV2(category.query).then(res => {
|
||||
console.log(res);
|
||||
category.goodsList = res.content.map(v => {
|
||||
return {
|
||||
...v,
|
||||
@@ -104,18 +103,14 @@ import {
|
||||
* 确认
|
||||
*/
|
||||
function affirm() {
|
||||
console.log(goodsValue.value)
|
||||
// let params = {
|
||||
// coverImg: vdata.imgUrlList,
|
||||
// consId: itemData.value.consId,
|
||||
// amount: vdata.stockNumber,
|
||||
// shopId: uni.getStorageSync("shopId"),
|
||||
// }
|
||||
// tbConsInfoFlowfrmLoss(params).then((res) => {
|
||||
// show.value = false;
|
||||
// vdata.imgUrlList = [];
|
||||
// vdata.stockNumber = 1;
|
||||
// })
|
||||
let item;
|
||||
category.goodsList.forEach((v,e)=>{
|
||||
if ( v.id == goodsValue.value) {
|
||||
item = v;
|
||||
}
|
||||
})
|
||||
emits('affirm',item)
|
||||
close();
|
||||
}
|
||||
defineExpose({
|
||||
open,close,affirm
|
||||
|
||||
Reference in New Issue
Block a user