Преглед изворни кода

Merge branch 'master' of http://39.101.143.165:8090/hxl13994548489/LocalLivingServicesUniapp

baijunde пре 1 година
родитељ
комит
cec710af36
4 измењених фајлова са 16 додато и 6 уклоњено
  1. 2 2
      common/service/config.service.js
  2. 3 1
      manifest.json
  3. 10 2
      pages/coupon/coupon.vue
  4. 1 1
      pages/store/editStore.vue

+ 2 - 2
common/service/config.service.js

@@ -2,9 +2,9 @@ let BASE_URL = ''
 
 
 if (process.env.NODE_ENV == 'development') {
-	BASE_URL = 'https://test.baoxianzhanggui.com/locallive-java' // 测试环境
+	// BASE_URL = 'https://test.baoxianzhanggui.com/locallive-java' // 测试环境
 	// BASE_URL = 'http://192.168.0.36:8080/jeecg-boot' // 开发环境
-    // BASE_URL = 'http://192.168.0.52:8081/jeecg-boot' // 开发环境
+    BASE_URL = 'http://192.168.0.52:8081/jeecg-boot' // 开发环境
 
 } else {
 	BASE_URL = 'https://test.baoxianzhanggui.com/locallive-java' // 测试环境

+ 3 - 1
manifest.json

@@ -10,7 +10,9 @@
         "modules" : {
             "Maps" : {},
             "Geolocation" : {},
-            "Barcode" : {}
+            "Barcode" : {},
+            "Camera" : {},
+            "VideoPlayer" : {}
         },
         /* 模块配置 */
         "distribute" : {

+ 10 - 2
pages/coupon/coupon.vue

@@ -189,7 +189,13 @@ export default {
                     pageNo: page.num 
                  }).then(res => {
                 if (res.data.success) {
-					this.dataList.couponList0 = this.dataList.couponList0.concat(res.data.result.records)
+                    if( res.data.result.records==null && page.num==1){
+                        this.dataList.couponList0=[]
+                    }
+                    else{
+                        this.dataList.couponList0 =res.data.result.pages? this.dataList.couponList0.concat(res.data.result.records) : this.dataList.couponList0
+                    }
+
                     this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);
 						uni.showTabBar()
 					}
@@ -207,7 +213,7 @@ export default {
                 pageNo: page.num 
             }).then(res => {
                 if (res.data.success) {
-                    this.dataList['couponList' + this.currentTab] = res.data.result.records
+                    this.dataList['couponList' + this.currentTab] =res.data.result.pages? this.dataList['couponList' + this.currentTab].concat(res.data.result.records) : this.dataList['couponList' + this.currentTab]
                 }
                 else {
                     this.$tip.error(res.data.message);
@@ -239,9 +245,11 @@ export default {
                                         size: 10
                                     }
                                     if (this.currentTab == 0) {
+                                        this.dataList.couponList0 = []
                                         this.getList(page)
                                     }
                                     else {
+                                        this.dataList['couponList' + this.currentTab] =[]
                                         this.getList1(page)
                                     }
                                 }

+ 1 - 1
pages/store/editStore.vue

@@ -228,7 +228,7 @@ export default {
 
             // const queryString = uni.getStorageSync('address') ? encodeURIComponent(JSON.stringify(uni.getStorageSync('address'))) : ''
             uni.navigateTo({
-                url: '/pages/login/map?position=${queryString}'
+                url: `/pages/login/map?position=${queryString}`
             })
 
         },