diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 520ede6..8b157e7 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -3,7 +3,7 @@
"configurations" : [
{
"playground" : "custom",
- "type" : "uni-app:app-android"
+ "type" : "uni-app:app-ios"
},
{
"app-plus" : {
@@ -13,7 +13,7 @@
},
{
"playground" : "custom",
- "type" : "uni-app:app-ios"
+ "type" : "uni-app:app-android"
}
]
}
diff --git a/manifest.json b/manifest.json
index 763bac7..251b1d3 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "艺邑库存",
"appid" : "__UNI__6DE03A4",
"description" : "",
- "versionName" : "1.0.0",
- "versionCode" : "100",
+ "versionName" : "1.0.1",
+ "versionCode" : 102,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages/goodDetail/goodDetail.vue b/pages/goodDetail/goodDetail.vue
index 8f610ed..6382073 100644
--- a/pages/goodDetail/goodDetail.vue
+++ b/pages/goodDetail/goodDetail.vue
@@ -124,6 +124,7 @@
@click="addNum">
@@ -133,6 +134,7 @@
v-else>
@@ -199,6 +201,7 @@ import moment from "moment";
export default {
data() {
return {
+ loading: false,
actionType: "add",
title: "商品录入",
codeVal: "",
@@ -345,9 +348,11 @@ export default {
},
// 保存接口
async save() {
+ this.loading = true;
this.model.goodsInfo.stockSize = parseInt(this.model.goodsInfo.stockSize);
let res = await this.$api.management.save(this.model.goodsInfo);
if (res.status == 0) {
+ this.loading = false;
uni.$u.toast("添加成功");
setTimeout(() => {
uni.navigateTo({
@@ -355,14 +360,17 @@ export default {
});
}, 1000);
} else {
+ this.loading = false;
uni.$u.toast("添加失败");
}
},
// 修改接口
async edit() {
+ this.loading = true;
this.model.goodsInfo.stockSize = parseInt(this.model.goodsInfo.stockSize);
let res = await this.$api.management.update(this.model.goodsInfo);
if (res.status == 0) {
+ this.loading = false;
uni.$u.toast("修改成功");
setTimeout(() => {
uni.navigateTo({
@@ -370,6 +378,7 @@ export default {
});
}, 1000);
} else {
+ this.loading = false;
uni.$u.toast("修改失败");
}
},
diff --git a/static/f83cca29cc1a04c0f7109ca43c4ae314.png b/static/f83cca29cc1a04c0f7109ca43c4ae314.png
new file mode 100644
index 0000000..432c40d
Binary files /dev/null and b/static/f83cca29cc1a04c0f7109ca43c4ae314.png differ