DESKTOP-SVI9JE1\muzen преди 1 година
родител
ревизия
e67953d3f2

+ 2 - 2
src/pages/activity/index.vue

@@ -44,7 +44,7 @@ export default {
       detail({
         activityId: this.form.activityId
       }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.pic = res.data.pic
         } else {
           uni.showToast({
@@ -59,7 +59,7 @@ export default {
     // 立即领取
     getSubmit() {
       submit(this.form).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.$refs.popup.open()
           this.content = res.data
           this.isShow = true

+ 1 - 1
src/pages/agreement/index.vue

@@ -21,7 +21,7 @@ export default {
       detail({
         type: type
       }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.form = res.data
         }
       })

+ 2 - 2
src/pages/article/index.vue

@@ -78,7 +78,7 @@ export default {
       detail({
         articleId: e.articleId
       }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.url = res.data.pic
           this.title = res.data.title
           this.content = res.data.content
@@ -105,7 +105,7 @@ export default {
   methods: {
     getList() {
       list(this.form).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           res.data.records.map(i => {
             this.tableData.push(i)
           })

+ 3 - 3
src/pages/channel/index.vue

@@ -52,7 +52,7 @@ export default {
     // 列表
     getList() {
       list({ ...this.dev, ...this.listForm }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           res.data.records.map(i => this.list.push(i))
           this.hasMore = res.data.hasMore
         }
@@ -85,7 +85,7 @@ export default {
       })
       if (rules) {
         submit(this.form).then(res => {
-          if (res.data.code === 0) {
+          if (res.code === 0) {
             this.list = []
             this.getList()
             this.form = [{
@@ -114,7 +114,7 @@ export default {
               id: item.id,
               ...this.dev
             }).then(res => {
-              if (res.data.code === 0) {
+              if (res.code === 0) {
                 this.list = []
                 this.getList(this.dev)
               }

+ 1 - 1
src/pages/content/index.vue

@@ -60,7 +60,7 @@ export default {
       detail({
         articleId: articleId
       }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           if (res.data.templateType == 1) {
             // 按sort从小到大排序
             res.data.contentShareLayoutList.sort(function (x, y) {

+ 1 - 1
src/pages/devices/detail.vue

@@ -18,7 +18,7 @@ export default {
   methods: {
     getDetail(e) {
       detail(e).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.content = res.data.content
         } else {
           uni.showToast({

+ 1 - 1
src/pages/guide/index.vue

@@ -25,7 +25,7 @@ export default {
         id: e.id
       }
       detail(data).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.content = res.data.guidePageContent
         }
       })

+ 1 - 1
src/pages/help/detail.vue

@@ -47,7 +47,7 @@ export default {
   methods: {
     getDetail() {
       detail(this.form).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           res.data.records.map(i => {
             this.tableData.push(i)
           })

+ 2 - 2
src/pages/help/index.vue

@@ -68,7 +68,7 @@ export default {
     // 反馈类型
     getList() {
       list().then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.typeOptions = res.data
         }
       })
@@ -103,7 +103,7 @@ export default {
       if (this.form.type !== '' && this.form.content !== '') {
         this.form.imageFiles = this.imageFiles.join(',')
         submit(this.form).then(res => {
-          if (res.data.code === 0) {
+          if (res.code === 0) {
             uni.showToast({
               title: '提交成功!'
             })

+ 1 - 1
src/pages/imusic/index.vue

@@ -35,7 +35,7 @@ export default {
   methods: {
     getDetail(e) {
       detail({ id: e }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.form = res.data
         }
       })

+ 1 - 1
src/pages/lottery/detail.vue

@@ -74,7 +74,7 @@ export default {
         if (!valid) {
           this.disabled = true
           receive(getApp().globalData.userInfo, this.form).then(res => {
-            if (res.data.code === 0) {
+            if (res.code === 0) {
               uni.showToast({
                 title: '提交成功!',
                 duration: 3000

+ 3 - 3
src/pages/lottery/index.vue

@@ -93,7 +93,7 @@ export default {
     getList() {
       this.prizes = []
       page(getApp().globalData.userInfo).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           const j = res.data
           // 可用积分
           this.maySignPoint = j.maySignPoint
@@ -136,7 +136,7 @@ export default {
             this.$refs.lucky.play()
             this.disabled = false
             result(getApp().globalData.userInfo).then(res => {
-              if (res.data.code === 0) {
+              if (res.code === 0) {
                 setTimeout(() => {
                   this.$refs.lucky.stop(res.data.resultGoodSort - 1)
                   this.form = res.data
@@ -183,7 +183,7 @@ export default {
           prizeId: this.form.resultGoodId,
           lotteryCode: this.form.lotteryCode
         }).then(res => {
-          if (res.data.code === 0) {
+          if (res.code === 0) {
             this.$refs.popup.close()
             this.getList()
             setTimeout(() => {

+ 3 - 3
src/pages/map/index.vue

@@ -205,7 +205,7 @@ export default {
             that.district = '全部'
             that.locationList = []
             options().then(res => {
-              if (res.data.code === 0) {
+              if (res.code === 0) {
                 let value = []
                 // 市
                 that.locationList[0] = res.data
@@ -323,7 +323,7 @@ export default {
       this.storeList = []
       this.map.clearMap()
       list(this.form).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           if (res.data.records.length > 0) {
             res.data.records.map(i => {
               this.list.push(i)
@@ -349,7 +349,7 @@ export default {
     // 第三方店铺
     getStoreList() {
       storeList().then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.storeList = res.data
         }
       })

+ 3 - 3
src/pages/pay/index.vue

@@ -21,8 +21,8 @@ export default {
     // 获取openId
     getOpenId(e) {
       openId(e.code).then(res => {
-        console.log(res.data);
-        if(res.data.code === 0) {
+        console.log(res);
+        if(res.code === 0) {
           this.openId = res.data.openid
         }
       })
@@ -32,7 +32,7 @@ export default {
     getWechatPay() {
       wechatPay(this.openId).then(res => {
         console.log(JSON.parse(res.data));
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.form = JSON.parse(res.data)
           if (typeof WeixinJSBridge == 'undefined') {
             if (document.addEventListener) {

+ 1 - 1
src/pages/share/channels.vue

@@ -35,7 +35,7 @@ export default {
       channelsList({
         userId: e.userId
       }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.list = res.data
         }
       })

+ 2 - 2
src/pages/share/controls.vue

@@ -43,7 +43,7 @@ export default {
         boradcastDetail({
           audioId: e.audioId
         }).then(res => {
-          if (res.data.code === 0) {
+          if (res.code === 0) {
             this.form = res.data
           }
         })
@@ -51,7 +51,7 @@ export default {
         podCastProgramDetail({
           audioId: e.audioId
         }).then(res => {
-          if (res.data.code === 0) {
+          if (res.code === 0) {
             this.form = res.data
             this.form.icon = res.data.audioPic
           }

+ 2 - 2
src/pages/share/detail.vue

@@ -84,7 +84,7 @@ export default {
     // 列表
     getList() {
       podCastProgramList(this.form).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.list = res.data.records
           this.total = res.data.total
         }
@@ -95,7 +95,7 @@ export default {
       podCastDetail({
         audioId: this.form.audioId
       }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.data = res.data
         }
       })

+ 2 - 2
src/pages/share/list.vue

@@ -61,7 +61,7 @@ export default {
         channelId: e.channelId,
         userId: e.userId
       }).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.data = res.data
         }
       })
@@ -78,7 +78,7 @@ export default {
     // 列表
     getList() {
       channelAudioPage(this.form).then(res => {
-        if (res.data.code === 0) {
+        if (res.code === 0) {
           this.list = res.data.records
           this.total = res.data.total
         }

+ 1 - 1
src/pages/ximalaya/index.vue

@@ -17,7 +17,7 @@ export default {
   onLoad(e) {
     const deviceid = window.location.hash.split('=')[1]
     getCallBack({ ...e, deviceid: deviceid }).then(res => {
-      if (res.data.code === 0) {
+      if (res.code === 0) {
         this.type = 'checkbox-filled'
         this.title = '授权成功!'
       } else {