diff --git a/bundle_b/pages/local_shop/local_shop_edit.vue b/bundle_b/pages/local_shop/local_shop_edit.vue
index 9c4c18d..3f05293 100644
--- a/bundle_b/pages/local_shop/local_shop_edit.vue
+++ b/bundle_b/pages/local_shop/local_shop_edit.vue
@@ -43,8 +43,11 @@
+
+
+ *上下架商品只能修改商品价格
@@ -61,7 +64,8 @@
import {
getLocalGoodsShopDetails,
saveLocalShopGoods,
- setLocalShopState
+ setLocalShopState,
+ editLocalShopPrice
} from '@/api/store'
import {
trottle
@@ -197,6 +201,43 @@
}
})
},
+
+ // 上下架的商品只能修改价格
+ async editPrice() {
+ let {
+ price,
+ } = this.formData;
+
+ if (!this.$u.test.amount(price)) {
+ this.$toast({
+ title: "商品价格格式错误"
+ });
+ return false;
+ }
+
+ uni.showLoading({
+ title: '上传中请稍后',
+ mask: true
+ })
+
+ const {data, code} = await editLocalShopPrice({
+ id: this.id,
+ price,
+ type: 'price'
+ })
+
+ if (code == 1) {
+ this.$toast({
+ title: '修改成功'
+ });
+ } else {
+ this.$toast({
+ title: '修改失败'
+ });
+ }
+ uni.hideLoading()
+ },
+
async formSubmit() {
const url = this.shop_pic.map((item) => {
if (item.lsg_id && item.url) {