提交一下

main
RIceWqy 2 years ago
parent 2f66303367
commit b06e115977

@ -196,11 +196,15 @@
//
async getCategory() {
console.log("getCategory222")
const tabbarData = await this.$http('category.detail', {
console.log("getCategory#@#@")
const tabbarData = await this.$jsonrpc('category.detail', {
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;
},

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

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

Loading…
Cancel
Save