update BUG

This commit is contained in:
qijq 2025-09-01 10:49:32 +08:00
parent 951488cc79
commit 48bf2f4d96
5 changed files with 34 additions and 17 deletions

View File

@ -1,11 +1,11 @@
{ {
"name" : "小发同城", "name" : "小发同城",
"appid" : "__UNI__95F809F", "appid" : "__UNI__95F809F",
"package" : "com.xiaofa.shopAdmin", "package" : "com.gpxscs.shopAdmin",
"description" : "", "description" : "",
// //
"versionName" : "1.0.2", "versionName" : "1.0.3",
"versionCode" : 102, "versionCode" : 103,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
@ -24,9 +24,15 @@
"Camera" : {}, "Camera" : {},
"Record" : {}, "Record" : {},
"VideoPlayer" : {}, "VideoPlayer" : {},
"UIWebview" : {}, "Push" : {
"Push" : {} "kernel": {
"ios": "WKWebview" // "WKWebview"
}
}
}, },
"kernel": {
"ios": "WKWebview" // "WKWebview"
},
/* */ /* */
"distribute" : { "distribute" : {
/* android */ /* android */
@ -131,6 +137,9 @@
}, },
"usingComponents" : true "usingComponents" : true
}, },
"mp-ios" : {
"bundleId" : ""
},
"h5" : { "h5" : {
// "devServer" : { // "devServer" : {
// "https" : true, // "https" : true,

View File

@ -131,7 +131,7 @@
icon="man-add-fill" icon="man-add-fill"
title="账号设置" title="账号设置"
></u-cell> ></u-cell>
<u-cell <u-cell
iconStyle="marginRight:6px; color: #ff695b" iconStyle="marginRight:6px; color: #ff695b"
:border="false" :border="false"
isLink isLink
@ -236,6 +236,7 @@ export default {
store_info: { store_info: {
store_id: 1, store_id: 1,
store_name: "", store_name: "",
store_biz_state: 1,
}, },
}, },
form: { form: {
@ -278,6 +279,7 @@ export default {
if (res && res.status == 200) { if (res && res.status == 200) {
uni.setStorageSync("accountDashboard", res.data); uni.setStorageSync("accountDashboard", res.data);
this.dashboardInfo = res.data; this.dashboardInfo = res.data;
this.shopStatus = this.dashboardInfo.store_info.store_biz_state;
} }
}, },

View File

@ -58,7 +58,7 @@
disabled disabled
inputAlign="right" inputAlign="right"
disabledColor="#fff" disabledColor="#fff"
color="#5ac725" :color="form.store_biz_state == 1 ? '#5ac725' : 'red'"
v-model="businessName" v-model="businessName"
placeholder="" placeholder=""
/> />
@ -214,6 +214,8 @@ export default {
res.data.info.store_opening_hours + res.data.info.store_opening_hours +
"-" + "-" +
res.data.info.store_close_hours; res.data.info.store_close_hours;
this.businessName = res.data.store_biz_state == 1 ? "营业中" : "停业中";
} }
}, },
skipuContract() { skipuContract() {
@ -221,18 +223,16 @@ export default {
url: "/pages/my/contract", url: "/pages/my/contract",
}); });
}, },
async updateLogo() { async updateLogo() {
let that = this; let that = this;
// #ifdef APP-PLUS // #ifdef APP-PLUS
// //
let result = await permission.premissionCheck( let result = await permission.premissionCheck("EXTERNAL_STORAGE");
"EXTERNAL_STORAGE"
);
if (result != 1) { if (result != 1) {
return result return result;
} }
// #endif // #endif
uni.chooseImage({ uni.chooseImage({

View File

@ -616,6 +616,7 @@ export default {
this.showBackPopup = true; this.showBackPopup = true;
}, },
handerPageBack() { handerPageBack() {
this.isAdd = true;
this.$emit("pageBack"); this.$emit("pageBack");
}, },
overSize(e) { overSize(e) {
@ -822,9 +823,12 @@ export default {
async getCommoditSpecificationBaseInfo(type_id) { async getCommoditSpecificationBaseInfo(type_id) {
let params = { let params = {
type_id: type_id, type_id: type_id,
product_id: this.productItem.product_id,
}; };
if (!this.isAdd) {
params.product_id = this.productItem.product_id;
}
let res = await GetCommoditSpecificationBaseInfo(params); let res = await GetCommoditSpecificationBaseInfo(params);
if (res && res.status == 200) { if (res && res.status == 200) {
this.commoditSpecificationBaseInfo = res.data; this.commoditSpecificationBaseInfo = res.data;
@ -872,7 +876,6 @@ export default {
list.length > 1 list.length > 1
? list[1].category_virtual_enable ? list[1].category_virtual_enable
: list[0].category_virtual_enable; : list[0].category_virtual_enable;
this.typeId = typeId; this.typeId = typeId;
this.getCommoditSpecificationBaseInfo(typeId); this.getCommoditSpecificationBaseInfo(typeId);
}, },

View File

@ -525,7 +525,10 @@ export default {
JSON.stringify(this.commoditSpecificationBaseInfo) JSON.stringify(this.commoditSpecificationBaseInfo)
); );
if (this.commoditSpecificationBaseInfo2.specs[0].specItems.length > 0) { if (
this.commoditSpecificationBaseInfo2 &&
this.commoditSpecificationBaseInfo2.specs[0].specItems.length > 0
) {
console.log(this.commoditSpecificationBaseInfo2); console.log(this.commoditSpecificationBaseInfo2);
} }