yzc 2 éve
szülő
commit
af47b68701

+ 9 - 5
pages/order/confirmOreder/confirmOreder.js

@@ -88,6 +88,7 @@ Page({
     },
 
     changeClose2(e) {
+        // console.log(e)
         this.setData({
             show2: !this.data.show2,
             remark: this.data.remark
@@ -204,9 +205,10 @@ Page({
             address: that.data.address,
 
         }, "post").then(function (res) {
+          
             if (res.code != 200) {
                 wx.showLoading({
-                    title: res.message.msg,
+                    title: res.original.message.msg,
                 })
                 setTimeout(function () {
                     wx.hideLoading({
@@ -221,7 +223,7 @@ Page({
             }
            
         }).catch(function (err) {
-            console.log(222);
+            console.log(err);
         })
     },
     updateaddr(e) {
@@ -261,9 +263,10 @@ Page({
             user_remark: that.data.remark,
             address_id:that.data.address_id
         }, "post").then(function (res) {
-            if (res.original.code != 200) {
+            console.log(res)
+            if (res.code != 200) {
                 wx.showLoading({
-                    title: res.original.message.msg,
+                    title: res.message.msg,
                 })
                 setTimeout(function () {
                     wx.hideLoading({
@@ -280,7 +283,8 @@ Page({
 
 
         }).catch(function (err) {
-            console.log(222);
+            // console.log(222);
+            console.log(err)
         })
     },
 

+ 1 - 1
pages/order/confirmOreder/confirmOreder.wxml

@@ -127,7 +127,7 @@
         </view>
 
 
-        <view class="btn btn-sky" bindtap="{{useraddr.id?'updateaddr':'addsave'}}" data-id="{{useraddr.id}}">
+        <view class="btn btn-sky" bindtap="{{useraddr.id?'updateaddr':'addAddress'}}" data-id="{{useraddr.id}}">
             保存并使用
         </view>
     </view>

+ 1 - 1
pages/tabber/my/index.wxss

@@ -3,7 +3,7 @@
     width: 750rpx;
     height: 100vh;
 }
-button {}
+/* button {} */
 
 .page1 {
     background: linear-gradient(180deg, #F4F3F8 0%, #F6F6F6 100%);

+ 5 - 6
project.config.json

@@ -8,7 +8,6 @@
       }
     ]
   },
-  
   "setting": {
     "urlCheck": false,
     "es6": true,
@@ -36,7 +35,6 @@
       "disablePlugins": [],
       "outputPath": ""
     },
-    "enableEngineNative": false,
     "useIsolateContext": false,
     "userConfirmedBundleSwitch": false,
     "packNpmManually": false,
@@ -48,14 +46,15 @@
     ],
     "minifyWXSS": true,
     "disableUseStrict": false,
-    "minifyWXML": true,
+    "minifyWXML": false,
     "showES6CompileOption": false,
-    "useCompilerPlugins": false
+    "useCompilerPlugins": false,
+    "ignoreUploadUnusedFiles": true
   },
-  "cloudfunctionRoot": "./cloudfunction",
+  "cloudfunctionRoot": "cloudfunction/",
   "compileType": "miniprogram",
   "libVersion": "2.22.0",
-  "appid": "wxb824dbe860d7480d",
+  "appid": "wx0b37183822da9c21",
   "projectname": "%E6%B5%B7%E6%98%9F%E7%94%A8%E6%88%B7%E7%AB%AF",
   "cloudfunctionTemplateRoot": "cloudfunctionTemplate",
   "watchOptions": {