对接小程序商品详情页可得积分数据
修改提交订单的接口传值
This commit is contained in:
parent
73018bd564
commit
fd16796aa3
@ -111,6 +111,18 @@ image {
|
||||
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 {
|
||||
margin: 0 20rpx;
|
||||
display: flex;
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
<view class="MoneyUnit">/{{ currentGG.goods_unit }}</view>
|
||||
|
||||
<view class="oldMoney">¥{{ currentGG.market_price }}</view>
|
||||
<view class="integral" v-if="currentGG.available_points_count > 0">可得{{ currentGG.available_points_count }}个积分</view>
|
||||
</view>
|
||||
|
||||
<!-- 规格 -->
|
||||
|
||||
@ -382,7 +382,8 @@ export default {
|
||||
receiving_phone: this.defAddress.phone,
|
||||
receiving_address: this.defAddress.address + this.defAddress.house_number,
|
||||
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({
|
||||
|
||||
@ -68,8 +68,7 @@
|
||||
<u-upload :fileList="imgList" @afterRead="afterReadImg" @delete="deletePic" name="1" multiple
|
||||
:maxCount="10">
|
||||
<view class="imgCon">
|
||||
<image
|
||||
src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
|
||||
<image src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
|
||||
mode="widthFix"></image>
|
||||
上传图片
|
||||
</view>
|
||||
@ -83,8 +82,7 @@
|
||||
<u-upload :fileList="imgList3" @afterRead="afterReadImg2" @delete="deletePic2" name="1" multiple
|
||||
:maxCount="10">
|
||||
<view class="imgCon">
|
||||
<image
|
||||
src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
|
||||
<image src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
|
||||
mode="widthFix"></image>
|
||||
上传图片
|
||||
</view>
|
||||
@ -98,8 +96,7 @@
|
||||
<u-upload :fileList="imgList5" @afterRead="afterReadImg3" @delete="deletePic3" name="1" multiple
|
||||
:maxCount="1">
|
||||
<view class="imgCon">
|
||||
<image
|
||||
src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
|
||||
<image src="https://static.hshuishang.com/property-img-file/com_imageImg.png"
|
||||
mode="widthFix"></image>
|
||||
上传图片
|
||||
</view>
|
||||
@ -377,7 +374,7 @@ export default {
|
||||
that.confirmClassify = ''
|
||||
NavgateTo("../sucess/index")
|
||||
}).catch(res => {
|
||||
if(res.message.includes("agent_nil")) {
|
||||
if (res.message.includes("agent_nil")) {
|
||||
uni.showToast({
|
||||
title: '未找到对应的代理商信息',
|
||||
icon: 'none',
|
||||
@ -388,21 +385,21 @@ export default {
|
||||
|
||||
// 省市区
|
||||
getPro() {
|
||||
return request(MapApi.getArea, "POST", {}).then(res => {
|
||||
return request(MapApi.getArea, "POST", {}, {}, false).then(res => {
|
||||
this.pro = res.rows
|
||||
})
|
||||
},
|
||||
getCity(e) {
|
||||
return request(MapApi.getArea, "POST", {
|
||||
parent_ad_code: e
|
||||
}).then(res => {
|
||||
}, {}, false).then(res => {
|
||||
this.city = res.rows
|
||||
})
|
||||
},
|
||||
getBuss(e) {
|
||||
return request(MapApi.getArea, "POST", {
|
||||
parent_ad_code: e
|
||||
}).then(res => {
|
||||
}, {}, false).then(res => {
|
||||
this.buss = res.rows
|
||||
})
|
||||
},
|
||||
@ -410,7 +407,7 @@ export default {
|
||||
const params = {
|
||||
is_shop: 1,
|
||||
}
|
||||
return request(apiArr.getMerChantCateList, "POST", params).then(res => {
|
||||
return request(apiArr.getMerChantCateList, "POST", params, {}, false).then(res => {
|
||||
this.classify = res.rows
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user