diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue
index 8297fa5..9fd84d9 100644
--- a/pages/goods/detail.vue
+++ b/pages/goods/detail.vue
@@ -314,7 +314,7 @@
成本价格:
-
+
商品价格:
@@ -402,6 +402,7 @@
isTodo: true,
result: {},
max_price: "",
+ cost_price:'',
markup_rate: "",
showGoodsPosterPopup: false,
cityInfo: {},
@@ -521,7 +522,7 @@
//修改商品价格
async toUnpdatePrice() {
const that = this;
- if (!that.selectShop) {
+ if (!that.cost_price) {
uni.showToast({
icon: "none",
title: "成本价格不能为空!"
@@ -543,7 +544,7 @@
let params = {
id: that.goods.goods_id,
goods_price: that.max_price,
- line_price: that.markup_rate,
+ cost_price: that.cost_price,
sku_id: sku_id.toString()
}
GoodsApi.editGoodsPrice(params).then(res => {
@@ -1649,8 +1650,8 @@
}
.setMs {
- width: 656rpx;
- height: 590rpx;
+ width: 556rpx;
+ height: 480rpx;
background: #FFFFFF;
border-radius: 12rpx 12rpx 12rpx 12rpx;
opacity: 1;
@@ -1679,7 +1680,7 @@
margin-bottom: 30rpx;
.inp {
- width: 440rpx;
+ width: 300rpx;
height: 72rpx;
background: #FFFFFF;
border-radius: 4rpx 4rpx 4rpx 4rpx;