提交一下

main
RIceWqy 2 years ago
parent 2f66303367
commit b06e115977

@ -196,11 +196,15 @@
// //
async getCategory() { async getCategory() {
console.log("getCategory222") console.log("getCategory#@#@")
const tabbarData = await this.$http('category.detail', { const tabbarData = await this.$jsonrpc('category.detail', {
id: this.categoryStyleId id: this.categoryStyleId
}); });
this.tabbarList = tabbarData.data.children;
/* const tabbarData = await this.$http('category.detail', {
id: this.categoryStyleId
}); */
this.tabbarList = tabbarData.result.children;
this.categoryID = this.tabbarList[0]?.id; this.categoryID = this.tabbarList[0]?.id;
}, },

@ -68,11 +68,11 @@ export default {
}, },
methods: { methods: {
getCategory() { getCategory() {
console.log("getCategory222")
this.$jsonrpc('category.info', { this.$jsonrpc('category.info', {
id: this.categoryStyleId id: this.categoryStyleId
}).then(res => { }).then(res => {
console.log("jsonrpc detail @@@",res)
this.categoryData = res.result.children; this.categoryData = res.result.children;

@ -148,7 +148,7 @@ async requestJson(options = {}) {
options.data = createJsonRpc options.data = createJsonRpc
options.method="POST" options.method="POST"
console.log(createJsonRpc)
/* let mergeUrl = Request.isUrl(options.url) ? options.url : (options.baseUrl + options.url) /* let mergeUrl = Request.isUrl(options.url) ? options.url : (options.baseUrl + options.url)
if (JSON.stringify(options.params) !== '{}') { if (JSON.stringify(options.params) !== '{}') {
let query = Request.addQueryString(options.params); let query = Request.addQueryString(options.params);
@ -157,7 +157,7 @@ async requestJson(options = {}) {
options.url = mergeUrl */ options.url = mergeUrl */
options.success = res => { options.success = res => {
console.log(res,"res")
resolve(this.requestAfter(res.data)) resolve(this.requestAfter(res.data))
} }
options.fail = err => { options.fail = err => {

Loading…
Cancel
Save