cyy-vue-material 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/api/http.js
CHANGED
|
@@ -7,7 +7,6 @@ export const fetchPost = async (url) => {
|
|
|
7
7
|
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
|
|
8
8
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
9
9
|
},
|
|
10
|
-
withCredentials: true,
|
|
11
10
|
credentials: "include",
|
|
12
11
|
})
|
|
13
12
|
.then((response) => response.json())
|
|
@@ -28,8 +28,14 @@
|
|
|
28
28
|
<script>
|
|
29
29
|
import { isLc } from "../../utils/index.js";
|
|
30
30
|
import { fetchPost } from "../../api/http.js";
|
|
31
|
-
import { query } from "../../api/urlQuery.js";
|
|
32
31
|
import { queryNoticePageListByPlat, queryNoticePageList } from "../../api/index.js";
|
|
32
|
+
import querystring from "querystring";
|
|
33
|
+
if (isLc) {
|
|
34
|
+
const urlQuery = location.hash.replace(/[\\/#?]/g, "");
|
|
35
|
+
const parsedQuery = querystring.parse(urlQuery);
|
|
36
|
+
const query = {};
|
|
37
|
+
query.modelTagvalueId = parsedQuery["modelTagvalueId"] ?? "";
|
|
38
|
+
}
|
|
33
39
|
|
|
34
40
|
export default {
|
|
35
41
|
props: {
|
|
@@ -75,7 +81,7 @@ export default {
|
|
|
75
81
|
that.noticeList = res;
|
|
76
82
|
},
|
|
77
83
|
async getNotice(that) {
|
|
78
|
-
await that.http.get(`${queryNoticePageList}`, { noticeType: 1 });
|
|
84
|
+
const res = await that.http.get(`${queryNoticePageList}`, { noticeType: 1 });
|
|
79
85
|
that.noticeList = res;
|
|
80
86
|
},
|
|
81
87
|
handleToNotice(item) {
|
|
@@ -76,7 +76,6 @@ function getGoodsImpl() {
|
|
|
76
76
|
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
|
|
77
77
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
78
78
|
},
|
|
79
|
-
withCredentials: true,
|
|
80
79
|
credentials: "include",
|
|
81
80
|
}
|
|
82
81
|
)
|