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/commons/utils/infoBox.js b/commons/utils/infoBox.js index 603e646..6b57f3f 100644 --- a/commons/utils/infoBox.js +++ b/commons/utils/infoBox.js @@ -13,7 +13,7 @@ const model = { // 返回: promise对象, 当提示消失后调用 resolve() showToast: (title, duration = 1.5, extObject) => { return new Promise((resolve, reject) => { - uni.showToast(Object.assign({ title: title, icon: 'none', mask: true, duration: (duration * 1000) }, extObject)) + uni.showToast(Object.assign({ title: title, icon: 'none', mask: false, duration: (duration * 1000) }, extObject)) setTimeout(resolve, (duration * 1000)); }) }, diff --git a/components/my-components/my-pagination.vue b/components/my-components/my-pagination.vue index 74d67eb..549e89e 100644 --- a/components/my-components/my-pagination.vue +++ b/components/my-components/my-pagination.vue @@ -57,7 +57,8 @@ let currentPage = ref(props.page === 0 ? 1 : props.page) function returnMaxPage() { - return Math.ceil(props.totalElements / props.size) + const result=Math.ceil(props.totalElements / props.size) + return (result-1<=0?1:result-1) } let maxPage=ref(returnMaxPage()) const pagesData = computed(() => { 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/http/yskApi/http.js b/http/yskApi/http.js index 631033a..47ef1f2 100644 --- a/http/yskApi/http.js +++ b/http/yskApi/http.js @@ -88,7 +88,7 @@ function commonsProcess(showLoading, httpReqCallback) { // http响应码不正确 if (statusCode != 200 && statusCode != 204 && statusCode != 201) { isShowErrorToast = true - infoBox.showErrorToast(data.message || '服务器异常') + infoBox.showToast(data.message || '服务器异常') return Promise.reject(bodyData) // 跳转到catch函数 } diff --git a/manifest.json b/manifest.json index 8cdda79..f645895 100644 --- a/manifest.json +++ b/manifest.json @@ -71,13 +71,13 @@ "amap" : { "__platform__" : [ "ios", "android" ], "appkey_ios" : "0b9be2631525ee5e218ac26d333f215c", - "appkey_android" : "39854b629c421d511a0697f2ae3b18f6" + "appkey_android" : "9d1e62050f8558a082f7aa3ad5bb3c68" } }, "maps" : { "amap" : { "appkey_ios" : "0b9be2631525ee5e218ac26d333f215c", - "appkey_android" : "39854b629c421d511a0697f2ae3b18f6" + "appkey_android" : "9d1e62050f8558a082f7aa3ad5bb3c68" } }, "ad" : {}, @@ -223,6 +223,15 @@ } } } + }, + "sdkConfigs" : { + "maps" : { + "amap" : { + "key" : "6033c97e67bf2e9ceac306e1a3fa35f8", + "securityJsCode" : "0547b69252ef0ed14e11f5c4ac152f07", + "serviceHost" : "" + } + } } }, "mp-alipay" : { diff --git a/pageGoodsGroup/edit-group-goods/edit-group-goods.vue b/pageGoodsGroup/edit-group-goods/edit-group-goods.vue index c4e5991..277ac19 100644 --- a/pageGoodsGroup/edit-group-goods/edit-group-goods.vue +++ b/pageGoodsGroup/edit-group-goods/edit-group-goods.vue @@ -143,7 +143,10 @@ page: 0, size: 999, categoryId: '', - name: '' + name: '', + createdAt: [], + id: "", + sort: "createdAt,desc" }, category: '', categoryList: [], //分类列表 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 @@