对接小程序商品详情页可得积分数据

修改提交订单的接口传值
This commit is contained in:
赵毅 2025-12-24 14:55:41 +08:00
parent 73018bd564
commit fd16796aa3
4 changed files with 23 additions and 12 deletions

View File

@ -111,6 +111,18 @@ image {
text-decoration: line-through; text-decoration: line-through;
} }
.integral{
float: right;
font-size: 26rpx;
color: #fff;
position: absolute;
right: 20rpx;
width: auto;
padding: 5rpx 10rpx;
background-color: #FF370B;
border-radius: 10rpx;
}
.GGBox { .GGBox {
margin: 0 20rpx; margin: 0 20rpx;
display: flex; display: flex;

View File

@ -28,6 +28,7 @@
<view class="MoneyUnit">/{{ currentGG.goods_unit }}</view> <view class="MoneyUnit">/{{ currentGG.goods_unit }}</view>
<view class="oldMoney">{{ currentGG.market_price }}</view> <view class="oldMoney">{{ currentGG.market_price }}</view>
<view class="integral" v-if="currentGG.available_points_count > 0">可得{{ currentGG.available_points_count }}个积分</view>
</view> </view>
<!-- 规格 --> <!-- 规格 -->

View File

@ -382,7 +382,8 @@ export default {
receiving_phone: this.defAddress.phone, receiving_phone: this.defAddress.phone,
receiving_address: this.defAddress.address + this.defAddress.house_number, receiving_address: this.defAddress.address + this.defAddress.house_number,
merchant_id: this.defAddress.address_id, merchant_id: this.defAddress.address_id,
goods_and_count: [] goods_and_count: [],
get_points: item.commodity_goods_info.available_points_count,
}; };
} }
acc[supplierId].goods_and_count.push({ acc[supplierId].goods_and_count.push({

View File

@ -68,8 +68,7 @@
<u-upload :fileList="imgList" @afterRead="afterReadImg" @delete="deletePic" name="1" multiple <u-upload :fileList="imgList" @afterRead="afterReadImg" @delete="deletePic" name="1" multiple
:maxCount="10"> :maxCount="10">
<view class="imgCon"> <view class="imgCon">
<image <image src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
mode="widthFix"></image> mode="widthFix"></image>
上传图片 上传图片
</view> </view>
@ -83,8 +82,7 @@
<u-upload :fileList="imgList3" @afterRead="afterReadImg2" @delete="deletePic2" name="1" multiple <u-upload :fileList="imgList3" @afterRead="afterReadImg2" @delete="deletePic2" name="1" multiple
:maxCount="10"> :maxCount="10">
<view class="imgCon"> <view class="imgCon">
<image <image src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
mode="widthFix"></image> mode="widthFix"></image>
上传图片 上传图片
</view> </view>
@ -98,8 +96,7 @@
<u-upload :fileList="imgList5" @afterRead="afterReadImg3" @delete="deletePic3" name="1" multiple <u-upload :fileList="imgList5" @afterRead="afterReadImg3" @delete="deletePic3" name="1" multiple
:maxCount="1"> :maxCount="1">
<view class="imgCon"> <view class="imgCon">
<image <image src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
mode="widthFix"></image> mode="widthFix"></image>
上传图片 上传图片
</view> </view>
@ -388,21 +385,21 @@ export default {
// //
getPro() { getPro() {
return request(MapApi.getArea, "POST", {}).then(res => { return request(MapApi.getArea, "POST", {}, {}, false).then(res => {
this.pro = res.rows this.pro = res.rows
}) })
}, },
getCity(e) { getCity(e) {
return request(MapApi.getArea, "POST", { return request(MapApi.getArea, "POST", {
parent_ad_code: e parent_ad_code: e
}).then(res => { }, {}, false).then(res => {
this.city = res.rows this.city = res.rows
}) })
}, },
getBuss(e) { getBuss(e) {
return request(MapApi.getArea, "POST", { return request(MapApi.getArea, "POST", {
parent_ad_code: e parent_ad_code: e
}).then(res => { }, {}, false).then(res => {
this.buss = res.rows this.buss = res.rows
}) })
}, },
@ -410,7 +407,7 @@ export default {
const params = { const params = {
is_shop: 1, is_shop: 1,
} }
return request(apiArr.getMerChantCateList, "POST", params).then(res => { return request(apiArr.getMerChantCateList, "POST", params, {}, false).then(res => {
this.classify = res.rows this.classify = res.rows
}) })
}, },