lex-xin 5 달 전
부모
커밋
9d5be7f098

+ 16 - 13
miniprogram/components/buyerInformation/index.less

@@ -48,21 +48,23 @@
     margin: 20rpx 0 18rpx 28rpx;
   }
 
-  .van-cell {
-    padding: 28rpx;
-    font-size: 30rpx;
-    line-height: 42rpx;
-
-    .van-field__label {
-      font-weight: 600;
-      color: #666666;
-    }
+  
+    .van-cell {
+      padding: 28rpx;
+      font-size: 30rpx;
+      line-height: 42rpx;
+
+      .van-field__label {
+        font-weight: 600;
+        color: #666666;
+      }
 
-    .van-icon-arrow {
-      color: #CCCCCC;
-      font-weight: 600;
+      .van-icon-arrow {
+        color: #CCCCCC;
+        font-weight: 600;
+      }
     }
-  }
+  
 
   .gender-section {
     display: flex;
@@ -92,6 +94,7 @@
   font-size: 32rpx;
   color: #6D4718 !important;
 }
+
 .pop-btn-group {
   padding: 100rpx 32rpx 58rpx;
 }

+ 14 - 1
miniprogram/components/buyerInformation/index.ts

@@ -15,7 +15,20 @@ Component({
    * 组件的初始数据
    */
   data: {
-
+    phone: '',
+    name: '',
+    gender: '1',
+    schoolAreaId: '',
+    schoolAreaName: '',
+    currentGradeClassTxt: '',
+    currentClass: null,
+    currentGradeNum: null,
+    cityCode: null,
+    cityName: "",
+    provinceCode: null,
+    provinceName: "",
+    regionCode: null,
+    regionName: "",
   },
 
   /**

+ 0 - 1
miniprogram/components/buyerInformation/index.wxml

@@ -1,6 +1,5 @@
 <!--components/buyerInformation/index.wxml-->
 <van-popup show="{{ popShow }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onCloseBuyer" position="bottom" round z-index="101">
-
   <image src="./images/icon-back.png" class="icon-close" bind:tap="onCloseBuyer" />
   <view class="container">
     <view class="pop-address-title">

+ 1 - 0
miniprogram/pages/index/index.json

@@ -2,6 +2,7 @@
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar",
     "buyerInformation": "/components/buyerInformation/index",
+    "van-popup": "@vant/weapp/popup/index",
     "service": "/components/service/service"
   }
 }

+ 1 - 3
miniprogram/pages/index/index.ts

@@ -111,7 +111,6 @@ Page({
         selected = list[0]
       }
 
-      console.log(smallGoods, 'smallGoods')
       this.setData({
         list,
         instrumentList, // 乐器列表
@@ -233,7 +232,6 @@ Page({
       params.decimalPart = prices.decimalPart
     }
 
-    console.log(params, "params")
     this.setData({
       formatSelectGood: params
     })
@@ -293,7 +291,7 @@ Page({
       let info = JSON.stringify({
         ...that.data.selected
       });
-      console.log(that.data.selected, "that.data.selected")
+      // console.log(that.data.selected, "that.data.selected")
       info = encodeURIComponent(info);
       wx.navigateTo({
         url: `../orders/order-detail?orderInfo=${info}`,

+ 7 - 2
miniprogram/pages/index/index.wxml

@@ -154,9 +154,14 @@
         </view>
 
         <!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
-
-        <buyerInformation popShow="{{ showBuyer }}" bind:cancel="onCloseBuyer" />
+        <!-- <buyerInformation show="{{ popShow }}" bind:cancel="onCloseBuyer" /> -->
+        <van-popup show="{{ popShow }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onCloseBuyer" position="bottom" round z-index="101">
+          12121212
+        </van-popup>
       </scroll-view>
+
+
     </view>
   </swiper-item>
+
 </swiper>