浏览代码

Merge branch 'master' of https://gitee.com/huangg/panda_beauty_makeup_small_program

zhashaonan 7 年之前
父节点
当前提交
ea05a4b21b
共有 4 个文件被更改,包括 18 次插入2 次删除
  1. 1 0
      pages/person/person.js
  2. 10 0
      pages/shopCart/shopCart.js
  3. 2 2
      pages/shopCart/shopCart.wxss
  4. 5 0
      project.config.json

+ 1 - 0
pages/person/person.js

@@ -40,6 +40,7 @@ Page({
    */
    */
   onShow: function () {
   onShow: function () {
     const count = this.data.login_count;
     const count = this.data.login_count;
+    console.log(app.globalData.userInfo);
       if (!app.globalData.userInfo && count <= 2) {
       if (!app.globalData.userInfo && count <= 2) {
         this.setData({
         this.setData({
           login_count: this.data.login_count+1
           login_count: this.data.login_count+1

+ 10 - 0
pages/shopCart/shopCart.js

@@ -14,6 +14,16 @@ Page({
 
 
   },
   },
   onShow: function () {
   onShow: function () {
+    this.setData({
+      free_info: [],
+      summary: [],
+      cart_list: [],
+      all_checked: false,
+      allPrice: 0,
+      allGoodsPrice: 0,
+      hasmore: false,
+      curpage: 0
+    });
     this.req_datas();
     this.req_datas();
   },
   },
   req_datas(){
   req_datas(){

+ 2 - 2
pages/shopCart/shopCart.wxss

@@ -135,7 +135,7 @@
 .num_handle {
 .num_handle {
   position: absolute;
   position: absolute;
   bottom: 13rpx;
   bottom: 13rpx;
-  right: 0;
+  right: 10rpx;
 }
 }
 .handle_btn {
 .handle_btn {
     color: #ff4e4e;
     color: #ff4e4e;
@@ -155,7 +155,7 @@
 }
 }
 .cancal_btn {
 .cancal_btn {
   position: absolute;
   position: absolute;
-  right: 10rpx;
+  right: 20rpx;
   top: 15rpx;
   top: 15rpx;
   width: 40rpx;
   width: 40rpx;
   height: 40rpx;
   height: 40rpx;

+ 5 - 0
project.config.json

@@ -64,8 +64,13 @@
 				},
 				},
 				{
 				{
 					"id": -1,
 					"id": -1,
+<<<<<<< HEAD
+					"name": "fcode",
+					"pathName": "pages/fcode/fcode",
+=======
 					"name": "addAddress",
 					"name": "addAddress",
 					"pathName": "pages/addAddress/addAddress",
 					"pathName": "pages/addAddress/addAddress",
+>>>>>>> f778d35752c4b95547a4aa0ef9c201110699ad04
 					"query": ""
 					"query": ""
 				}
 				}
 			]
 			]