kk.shi hace 3 años
padre
commit
146b6a853a

+ 2 - 1
app.json

@@ -6,7 +6,8 @@
     "pages/index/index",
     "pages/receiveCoupon/receiveCoupon",
     "pages/logs/logs",
-    "pages/welfareMall/personal/personal"
+    "pages/welfareMall/personal/personal",
+    "pages/welfareMall/historical/historical"
   ],
   "window": {
     "backgroundTextStyle": "light",

BIN
images/welfareMall/middle_img.png


+ 66 - 0
pages/welfareMall/historical/historical.js

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

+ 4 - 0
pages/welfareMall/historical/historical.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "历史订单"
+}

+ 32 - 0
pages/welfareMall/historical/historical.wxml

@@ -0,0 +1,32 @@
+<!--pages/welfareMall/historical/historical.wxml-->
+<!-- 历史订单 -->
+<view class="historical flex-column">
+  <view class="historical-style">
+    <!-- 内容 -->
+    <view class="historical-content flex-column">
+      <view class="content-hm flex-column">
+        <view class="content-head flex-row">
+          <view class="content-head-date">2021.11.04 12:22:35</view>
+          <view class="content-head-state">已完成</view>
+        </view>
+        <view class="content-middle flex-row">
+          <view class="middle-it flex-row">
+            <image class="middle-img" src="/images/welfareMall/middle_img.png" />
+            <view class="middle-text">圣诞优惠券包</view>
+          </view>
+          <view class="middle-num flex-column">
+            <view class="middle-num-money">¥0.0</view>
+            <view class="money-num-count">x1</view>
+          </view>
+        </view>
+      </view>
+      <view class="content-line"></view>
+      <view class="content-lower flex-row">
+        <view class="lower-total">共1件商品 合计¥9.9</view>
+        <view class="lower-order-style flex-row">
+          <view class="lower-order-text">订单详情</view>
+        </view>
+      </view>
+    </view>
+  </view>
+</view>

+ 138 - 0
pages/welfareMall/historical/historical.wxss

@@ -0,0 +1,138 @@
+/* pages/welfareMall/historical/historical.wxss */
+.historical{
+  width: 750rpx;
+  height: auto;
+  padding-bottom: 119rpx; 
+  background: #F7F7F7;
+}
+
+/* 垂直方向布局,水平居中 **/
+.flex-column{
+  display: flex;
+  flex-flow: column nowrap;
+  align-items: center;
+  justify-content: left;
+}
+
+/* 水平方向布局,垂直居中 **/
+.flex-row{
+  display: flex;
+  flex-flow: row nowrap;
+  align-items: center;
+  justify-content: center;
+}
+
+.historical-content{
+  width: 716rpx;
+  height: 327rpx;
+  background: #FFFFFF;
+  border-radius: 10rpx;
+  margin-top: 14rpx;
+}
+
+.content-hm{
+  width: 680rpx;
+  height: 242rpx;
+}
+.content-head{
+  width: 676rpx;
+  height: 22rpx;
+  justify-content: space-between;
+}
+
+.content-head-date{
+  width: 211rpx;
+  height: 28rpx;
+  font-size: 22rpx;
+  font-weight: 500;
+  color: #A0A0A0;
+}
+
+.content-head-state{
+  width: 70rpx;
+  height: 28rpx;
+  font-size: 22rpx;
+  font-weight: 500;
+  color: #A0A0A0;
+}
+
+.content-head{
+  width: 676rpx;
+  height: 40rpx;
+  justify-content: space-between;
+  margin-top: 30rpx;
+}
+
+.content-middle{
+  width: 676rpx;
+  height: 160rpx;
+  justify-content: space-between;
+}
+
+.middle-img{
+  width: 160rpx;
+  height: 119rpx;
+}
+
+.middle-text{
+  width: 180rpx;
+  height: 36rpx;
+  font-size: 28rpx;
+  font-weight: 500;
+  color: #444444;
+  margin-left: 36rpx;
+  overflow: hidden;
+	white-space: nowrap;
+  text-overflow: ellipsis;
+  margin-bottom: 34rpx;
+}
+
+.middle-num{
+  align-items: flex-end;
+}
+
+.middle-num-money{
+  font-size: 28rpx;
+  font-weight: 500;
+  color: #444444;
+  margin-top: 10rpx;
+}
+
+.money-num-count{
+  font-size: 22rpx;
+  font-weight: 500;
+  color: #A0A0A0;
+}
+
+.content-line{
+  width: 679rpx;
+  height: 1rpx;
+  background: #A0A0A0;
+}
+
+.content-lower{
+  width: 676rpx;
+  height: 80rpx;
+  justify-content: space-between;
+}
+
+.lower-total{
+  font-size: 24rpx;
+  font-family: Source Han Sans CN;
+  font-weight: 500;
+  color: #444444;
+}
+
+.lower-order-style{
+  width: 140rpx;
+  height: 46rpx;
+  background: #FFFFFF;
+  border: 1rpx solid #B01717;
+  border-radius: 10rpx;
+}
+
+.lower-order-text{
+  font-size: 22rpx;
+  font-weight: 500;
+  color: #B01717;
+}

+ 2 - 1
pages/welfareMall/personal/personal.json

@@ -2,5 +2,6 @@
   "usingComponents": {
     "tab-bar": "../components/tabbar"
   },
-  "navigationBarBackgroundColor": "#FFF2F3"
+  "navigationBarBackgroundColor": "#FFF2F3",
+  "navigationBarTitleText": ""
 }

+ 6 - 0
project.private.config.json

@@ -41,6 +41,12 @@
           "pathName": "pages/welfareMall/personal/personal",
           "query": "",
           "scene": null
+        },
+        {
+          "name": "pages/welfareMall/historical/historical",
+          "pathName": "pages/welfareMall/historical/historical",
+          "query": "",
+          "scene": null
         }
       ]
     }