This commit is contained in:
魏啾
2024-07-20 13:25:39 +08:00
parent 8655d7ed2f
commit ca46106afb
2 changed files with 8 additions and 6 deletions

View File

@@ -109,7 +109,9 @@
可用优惠券{{couponAmount}} 可用优惠券{{couponAmount}}
</view> </view>
</view> --> </view> -->
<!-- <u--textarea v-model="remark" placeholder="订单备注" ></u--textarea> --> <view style="padding: 0 20rpx;">
<u--textarea v-model="remark" placeholder="备注"></u--textarea>
</view>
<!-- 支付方式 --> <!-- 支付方式 -->
<view class="payType"> <view class="payType">
<view class=""> <view class="">
@@ -292,7 +294,6 @@
break; break;
case 'addCart': case 'addCart':
this.cartLists = msg this.cartLists = msg
this.productqueryProduct() //list 数据
break; break;
case 'order': case 'order':
uni.navigateBack() uni.navigateBack()
@@ -397,6 +398,7 @@
"skuId": '', "skuId": '',
"num": '', //数量 "num": '', //数量
"type": "createOrder", //“addcart:添加购物车create0rder:生成订单clearCart:庆康购物车”, "type": "createOrder", //“addcart:添加购物车create0rder:生成订单clearCart:庆康购物车”,
"remark": this.remark,
"couponsId": '', //优惠券ID, "couponsId": '', //优惠券ID,
"isYhq": 0, // 是否使用优惠券( 1 使用, 0 不使用), "isYhq": 0, // 是否使用优惠券( 1 使用, 0 不使用),
"isBuyYhq": 0, // 是否购买优惠券( 1 购买, 0 不够买) "isBuyYhq": 0, // 是否购买优惠券( 1 购买, 0 不够买)
@@ -478,8 +480,7 @@
let res = await this.api.accountPay({ let res = await this.api.accountPay({
orderId: this.listinfoid, orderId: this.listinfoid,
memberId: this.amountVIP.id, memberId: this.amountVIP.id,
// remark: this.remark, pwd:pwd
pwd
}) })
if (res.code == 0) { if (res.code == 0) {
// data ->1 支付成功 // data ->1 支付成功

View File

@@ -79,7 +79,7 @@
{{ item1.name }} {{ item1.name }}
</view> </view>
<view class="namess" v-if="item1.suit>1"> <view class="namess" v-if="item1.suit>1">
{{ item1.suit }} 起售{{ item1.suit }}
</view> </view>
<view class="price-wrap"> <view class="price-wrap">
<view class="price"> <view class="price">
@@ -452,7 +452,7 @@
} }
break; break;
} }
console.log(this.cartLists.data,1111111) console.log(this.cartLists.data, 1111111)
this.cartListsdatashow = this.cartLists.data.length == 0 ? false : true this.cartListsdatashow = this.cartLists.data.length == 0 ? false : true
} }
} catch (e) { } catch (e) {
@@ -927,6 +927,7 @@
margin-top: 16rpx; margin-top: 16rpx;
font-size: 24upx; font-size: 24upx;
font-weight: 300; font-weight: 300;
color: #a5a5a5;
} }
.select-sku-wrap { .select-sku-wrap {