kk.shi 3 years ago
parent
commit
457332f8b7

+ 2 - 1
app.json

@@ -8,7 +8,8 @@
     "pages/logs/logs",
     "pages/welfareMall/personal/personal",
     "pages/welfareMall/historical/historical",
-    "pages/welfareMall/order/orderCompletion"
+    "pages/welfareMall/order/orderCompletion",
+    "pages/welfareMall/refund/refund"
   ],
   "window": {
     "backgroundTextStyle": "light",

BIN
images/welfareMall/adopt.png


BIN
images/welfareMall/submit.png


+ 2 - 19
pages/welfareMall/order/orderCompletion.wxml

@@ -5,6 +5,8 @@
       <view class="order-state-title">订单已完成</view>
       <view class="order-state-text">感谢您对沪上阿姨的喜爱与支持,欢迎再度光临</view>
     </view>
+
+    <!-- 订单详情 -->
     <view class="order-details flex-column">
       <view class="content-hm flex-column">
         <view class="content-head flex-row">
@@ -21,29 +23,10 @@
           </view>
         </view>
       </view>
-      <view class="content-payment flex-row">
-        <view class="content-payment-mode">支付方式</view>
-        <view class="content-payment-mode">微信支付</view>
-      </view>
       <view class="content-line"></view>
       <view class="content-lower flex-row" catchtap="getCompletion">
         <view class="lower-total">共1件商品 合计¥9.9</view>
       </view>
     </view>
-    <view class="order-information flex-column">
-      <view class="order-information-code flex-row">
-        <view class="code-text">订单编号</view>
-        <view class="code-num">123455678897978779799</view>
-      </view>
-      <view class="order-information-date flex-row">
-        <view class="date-text">交易时间</view>
-        <view class="date-time">2021-11-24 14:20:38</view>
-      </view>
-    </view>
-    <view class="order-rt flex-row">
-      <view class="order-refund flex-row">
-        <view class="lower-order-text">申请退款</view>
-      </view>
-    </view>
   </view>
 </view>

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

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

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

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "退款详情"
+}

+ 41 - 0
pages/welfareMall/refund/refund.wxml

@@ -0,0 +1,41 @@
+<!--pages/welfareMall/refund/refund.wxml-->
+<view class="refund flex-column">
+  <view class="refund-style flex-column">
+    <view class="refund-speed flex-row">
+      <view class="refund-speed-submit flex-column">
+        <image class="refund-log-submit" src="/images/welfareMall/submit.png" />
+        <view class="refund-text">提交申请</view>
+      </view>
+      <view class="refund-line">
+        <view class="refund-log-line"></view>
+      </view>
+      <view class="refund-speed-adopt flex-column">
+        <image class="refund-log-adopt" src="/images/welfareMall/submit.png" />
+        <view class="refund-text">审核通过</view>
+      </view>
+    </view>
+    <!-- 订单详情 -->
+    <view class="refund-details flex-column">
+      <view class="content-hm flex-column">
+        <view class="content-head flex-row">
+          <view class="content-head-text">订单详情</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-nt">
+              <view class="middle-num">退款金额 ¥9.9</view>
+              <view class="middle-text">圣诞优惠券包</view>
+            </view>
+          </view>
+        </view>
+      </view>
+      <view class="content-line"></view>
+      <view class="content-lower flex-column">
+        <view class="lower-total-state">退款申请审核中</view>
+        <view class="lower-total-text">系统正在审核您是否符合退款条件,请耐心等待</view>
+      </view>
+    </view>
+    <view class="refund-explain"></view>
+  </view>
+</view>

+ 159 - 0
pages/welfareMall/refund/refund.wxss

@@ -0,0 +1,159 @@
+/* pages/welfareMall/refund/refund.wxss */
+.refund{
+  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;
+}
+
+.refund-speed{
+  width: 550rpx;
+  height: 200rpx;
+}
+
+.refund-details{
+  width: 716rpx;
+  height: 433rpx;
+  background: #FFFFFF;
+  border-radius: 10rpx;
+}
+
+.refund-log-submit,.refund-log-adopt{
+  width: 83rpx;
+  height: 84rpx;
+}
+
+.refund-speed-submit{
+  margin-right: 22rpx;
+}
+
+.refund-speed-adopt{
+  margin-left: 22rpx;
+}
+
+.refund-line{
+  width: 240rpx;
+  height: 56rpx;
+}
+
+.refund-log-line{
+  width: 240rpx;
+  height: 1rpx;
+  background: #A0A0A0;
+}
+
+.refund-text{
+  font-size: 24rpx;
+  font-weight: 500;
+  color: #444444;
+  margin-top: 27rpx;
+}
+
+/*订单详情**/
+.content-hm{
+  width: 680rpx;
+  height: 260rpx;
+}
+.content-head{
+  width: 676rpx;
+  height: 22rpx;
+  justify-content: space-between;
+}
+
+.content-head-text{
+  width: 211rpx;
+  height: 28rpx;
+  font-size: 24rpx;
+  font-weight: 500;
+  color: #444444;
+}
+
+.content-head{
+  width: 676rpx;
+  height: 40rpx;
+  justify-content: space-between;
+  margin-top: 30rpx;
+}
+
+.content-middle{
+  width: 676rpx;
+  height: 180rpx;
+  justify-content: space-between;
+}
+
+.middle-img{
+  width: 160rpx;
+  height: 119rpx;
+}
+
+.middle-nt{
+  margin-left: 36rpx;
+}
+
+.middle-num{
+  width: 220rpx;
+  height: 36rpx;
+  font-size: 28rpx;
+  font-weight: 500;
+  color: #444444;
+}
+
+.middle-text{
+  width: 180rpx;
+  height: 36rpx;
+  font-size: 28rpx;
+  font-weight: 500;
+  color: #444444;
+  overflow: hidden;
+	white-space: nowrap;
+  text-overflow: ellipsis;
+  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: 100rpx;
+  margin-top: 36rpx;
+}
+
+.lower-total-state{
+  font-size: 36rpx;
+  font-family: Source Han Sans CN;
+  font-weight: 500;
+  color: #444444;
+}
+
+.lower-total-text{
+  font-size: 22rpx;
+  font-weight: 500;
+  color: #444444;
+  margin-top: 14rpx;
+}

+ 6 - 0
project.private.config.json

@@ -47,6 +47,12 @@
           "pathName": "pages/welfareMall/historical/historical",
           "query": "",
           "scene": null
+        },
+        {
+          "name": "pages/welfareMall/refund/refund",
+          "pathName": "pages/welfareMall/refund/refund",
+          "query": "id=undefined",
+          "scene": null
         }
       ]
     }