diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 69faf69..179fe2d 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -4,19 +4,16 @@ "version" : "0.0", "configurations" : [ { - "app-plus" : - { - "launchtype" : "local" - }, - "default" : - { - "launchtype" : "local" - }, - "mp-weixin" : - { - "launchtype" : "local" - }, - "type" : "uniCloud" + "app-plus" : { + "launchtype" : "local" + }, + "default" : { + "launchtype" : "local" + }, + "mp-weixin" : { + "launchtype" : "local" + }, + "type" : "uniCloud" }, { "playground" : "custom", diff --git a/commons/style/common.scss b/commons/style/common.scss index f7a5065..1c5f255 100644 --- a/commons/style/common.scss +++ b/commons/style/common.scss @@ -389,4 +389,7 @@ text { // } // .u-font-32{ // font-size: 16px; -// } \ No newline at end of file +// } +.line-th{ + text-decoration: line-through; +} \ No newline at end of file diff --git a/http/http.js b/http/http.js index 9d21bed..14122b6 100644 --- a/http/http.js +++ b/http/http.js @@ -78,7 +78,7 @@ function commonsProcess(showLoading, httpReqCallback){ // http响应码不正确 if(statusCode != 200){ isShowErrorToast = true - infoBox.showErrorToast('服务器异常') + infoBox.showToast('服务器异常') return Promise.reject(bodyData) // 跳转到catch函数 } @@ -105,14 +105,11 @@ function commonsProcess(showLoading, httpReqCallback){ return Promise.resolve({ bizData: bodyData.data, code: bodyData.code }) }).catch( res => { - reqFinishFunc(); // 请求完毕的动作 - // 如果没有提示错误, 那么此处提示 异常。 if(!isShowErrorToast){ - infoBox.showErrorToast(`请求网络异常`) + infoBox.showToast(`请求网络异常`) } - return Promise.reject(res) }).finally(() => { // finally 是 then结束后再执行, 此处不适用。 需要在请求完成后立马调用: reqFinishFunc() diff --git a/pageProduct/add-Product/add-Product.vue b/pageProduct/add-Product/add-Product.vue index 3d19334..e6b3a11 100644 --- a/pageProduct/add-Product/add-Product.vue +++ b/pageProduct/add-Product/add-Product.vue @@ -1508,6 +1508,13 @@ barCode: `${uni.getStorageSync("shopId")}${dayjs().valueOf()}` } } + }else{ + //编辑 + if (newval === 'sku') { + skuList.list = [] + } else { + skuList.list=$goodsData.skuList + } } }) diff --git a/pageProduct/add-specifications/add-specifications.vue b/pageProduct/add-specifications/add-specifications.vue index 46772d8..1b8fcac 100644 --- a/pageProduct/add-specifications/add-specifications.vue +++ b/pageProduct/add-specifications/add-specifications.vue @@ -1,62 +1,53 @@