2 Revīzijas f6010577e3 ... b32b94d7a7

Autors SHA1 Ziņojums Datums
  liangqiuying b32b94d7a7 “客户端确认订单2” 2 gadi atpakaļ
  liangqiuying 34f48618b6 “客户端确认订单” 2 gadi atpakaļ

+ 4 - 3
app.json

@@ -3,7 +3,7 @@
     "pages/index/index",
     "pages/search/index",
     "pages/me/me",
-    "pages/exchange/exchange"
+    "pages/confirm/confirm"
   ],
   "window": {
     "backgroundTextStyle": "light",
@@ -27,9 +27,10 @@
         "iconPath": "/images/icon/me.png",
         "selectedIconPath": "/images/icon/me-select .png"
       }
-    ],
+    ]
+  },
   "usingComponents": {
     "van-button": "@vant/weapp/button"
   },
   "sitemapLocation": "sitemap.json"
-}}
+}

BIN
images/confirm/canting.png


+ 66 - 0
pages/confirm/confirm.js

@@ -0,0 +1,66 @@
+// pages/confirm/confirm.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 12 - 0
pages/confirm/confirm.json

@@ -0,0 +1,12 @@
+{
+  "usingComponents": {
+    "van-button": "@vant/weapp/button/index",
+    "van-nav-bar": "@vant/weapp/nav-bar/index",
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "van-icon": "@vant/weapp/icon/index",
+    "van-row": "@vant/weapp/row/index",
+    "van-col": "@vant/weapp/col/index",
+    "van-image": "@vant/weapp/image/index"
+  }
+}

+ 65 - 0
pages/confirm/confirm.wxml

@@ -0,0 +1,65 @@
+<view class="confirm-top1">
+  <view class="address">
+    <!-- <van-cell-group inset> -->
+      <van-cell title="哈尔滨师范大学第一公寓2门312室" label="吴迪(先生)182****2898" />
+    <!-- </van-cell-group> -->
+  </view>
+
+  <view class="products">
+      <view class="products-top">      
+        <van-cell >
+          <text class="text0">二楼麻辣烫、麻辣香锅、麻辣拌饭</text>
+        </van-cell>
+        <van-cell border="{{true}}">
+          <image class='img-1' src='/images/confirm/canting.png' slot="icon"></image>
+          <text class="text1">麻辣烫微辣微麻</text>
+          <text class="text2">¥10.98+40积分</text>
+          <text class="text3">*2</text>
+          <text class="text4">¥28.80</text>
+        </van-cell>
+      </view>
+      <view class="products-content">
+        <van-cell 
+        value="¥0" 
+        label="包装费"
+        value-class="cell-value1"/>
+      </view>
+      <view class="products-bottom">
+        <van-cell value="¥3" label="付款费" value-class="cell-value1" />
+      </view>
+      <view class="products-bottom2">
+        <van-cell value="" label=""  border="{{false}}"/>
+      </view>
+  </view>
+
+  <view class="remark">
+      <view class="remark-left">备注</view>
+      <view class="remark-right">不要香菜</view>
+  </view>
+  
+  <view class="message">
+      <view class="message-left">订单编号:</view>
+      <view class="message-right">203266522255666</view>
+  </view>
+  <view class="message">
+      <view class="message-left">交易时间:</view>
+      <view class="message-right">2022-06-03 13:19:08</view>
+  </view>
+  <view class="message">
+      <view class="message-left">积分抵扣:</view>
+      <view class="message-right">40积分</view>
+  </view>
+  <view class="message">
+      <view class="message-left" value-class="cell-value1">实付金额:</view>
+      <view class="message-right2">¥21.80</view>
+  </view>
+  
+  <view class="kong">
+      <van-cell value="" label=""  border="{{false}}"/>
+      <van-cell value="" label=""  border="{{false}}"/>
+      <van-cell value="" label=""  border="{{false}}"/>
+      <van-cell value="" label=""  border="{{false}}"/>
+      <van-cell value="" label=""  border="{{false}}"/>
+  </view>
+   
+</view>

+ 107 - 0
pages/confirm/confirm.wxss

@@ -0,0 +1,107 @@
+/* pages/confirm/confirm.wxss */
+page{
+  background-color: rgb(243, 241, 241) ;
+}
+
+.products{
+  padding-top: 10rpx;
+}
+.text0{
+  float: left;
+  font-size: 26rpx;
+  color: #000;
+  height: 40rpx;
+}
+.img-1{
+  width: 180rpx;
+  height: 110rpx;
+  padding-right: 20rpx;
+}
+.text1{
+  float: left;
+  font-size: 26rpx;
+  color: #000;
+}
+.text2{
+  float: right;
+  font-size: 26rpx;
+  color: red;
+}
+.text3{
+  float: left;
+  padding-top: 24rpx;
+  margin-right: 100rpx;
+  font-size: 26rpx;
+}
+.text4{
+  float: right;
+  font-size: 24rpx;
+  text-decoration: line-through;
+}
+.products-bottom2{
+height: 70rpx;
+background-color: white;
+margin-bottom: 10rpx;
+}
+.cell-value1{
+  color: red !important;
+  font-size: 24rpx !important;
+}
+.cell-value2{
+  font-size: 24rpx !important;
+}
+.remark{
+ padding-top: 10rpx;
+ padding-bottom: 10rpx;
+ height: 60rpx;
+ background: white;
+ margin-bottom: 10rpx;
+}
+/* 使用伪类添加边框 */
+/* .remark::after {
+    content: '';
+    width: 90%;
+    height: 10px;
+    display: block;
+    margin: 0 auto;
+    border-bottom: 1px solid red;
+} */
+.remark-left{
+  padding-top: 12rpx;
+  padding-left: 30rpx;
+  font-size: 24rpx;
+}
+.remark-right{
+  margin-top: -32rpx;
+  padding-left: 110rpx;
+  font-size: 24rpx;
+  padding-top: -30rpx;
+  color: #a5a5a5;
+}
+.message{
+  padding-top: 10rpx;
+  padding-left: 30rpx;
+  padding-bottom: -10rpx;
+  height: 56rpx;
+  background: white;
+  /* border-bottom: 5px solid red; */
+}
+.message-left{
+  padding-top: 12rpx;
+  font-size: 24rpx;
+}
+.message-right{
+  margin-top: -30rpx;
+  padding-left: 115rpx;
+  font-size: 24rpx;
+  color: #a5a5a5;
+} 
+.message-right2{
+  margin-top: -30rpx;
+  padding-left: 115rpx;
+  font-size: 24rpx;
+  color: red;
+}
+.kong{
+  padding-top: 10rpx;
+}

+ 10 - 11
project.config.json

@@ -1,9 +1,5 @@
 {
   "description": "项目配置文件",
-  "packOptions": {
-    "ignore": [],
-    "include": []
-  },
   "setting": {
     "bundle": false,
     "userConfirmedBundleSwitch": false,
@@ -24,8 +20,6 @@
     "nodeModules": false,
     "enhance": true,
     "useMultiFrameRuntime": true,
-    "useApiHook": true,
-    "useApiHostProcess": true,
     "showShadowRootInWxmlPanel": true,
     "packNpmManually": true,
     "enableEngineNative": false,
@@ -43,15 +37,20 @@
       "disablePlugins": [],
       "outputPath": ""
     },
-    "condition": false
+    "condition": false,
+    "ignoreUploadUnusedFiles": true
   },
   "compileType": "miniprogram",
-  "libVersion": "2.19.4",
-  "appid": "wxc06fe0355f1e6452",
-  "projectname": "miniprogram-92",
   "condition": {},
   "editorSetting": {
     "tabIndent": "insertSpaces",
     "tabSize": 2
-  }
+  },
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
+  "appid": "wx00b296c6fce7bfcb",
+  "projectname": "delivery-customer",
+  "libVersion": "2.19.6"
 }

+ 1 - 1
project.private.config.json

@@ -5,7 +5,7 @@
       "list": [
         {
           "name": "",
-          "pathName": "pages/index/index",
+          "pathName": "pages/confirm/confirm",
           "query": "",
           "launchMode": "default",
           "scene": null