浏览代码

文案更新

541469799@qq.com 1 年之前
父节点
当前提交
7283654ea3
共有 2 个文件被更改,包括 95 次插入0 次删除
  1. 36 0
      app/index/view/user/orderDetails.html
  2. 59 0
      public/assets/index/css/orderDetails.css

+ 36 - 0
app/index/view/user/orderDetails.html

@@ -101,6 +101,9 @@
                             <div class="ogMarkButton">Pay With PayPal</div>
                             <div class="ogMarkButton">Pay With PayPal</div>
                             <div class="ogCancelButton">Cancel</div>
                             <div class="ogCancelButton">Cancel</div>
                             {/if}
                             {/if}
+                            {if $order['delivery'] == 20}
+                            <div class="receivedConfirmButton">Pay With PayPal</div>
+                            {/if}
                         </div>
                         </div>
                         <p class="ogTips">
                         <p class="ogTips">
                             Your goods will be shipped in 72 hours
                             Your goods will be shipped in 72 hours
@@ -336,6 +339,17 @@
     </div>
     </div>
     <div id="closeEvaluateModal"></div>
     <div id="closeEvaluateModal"></div>
 </div>
 </div>
+
+<div id="deleteAddressModal">
+    <div class="deleteAddressBox">
+        <p class="deteTips">Confirm you have </p>
+        <input type="hidden" id="deleteAddInfoId" value="0">
+        <div class="deteButtonBox">
+            <div id="cancelDelete">Cancel</div>
+            <div id="confirmDelete">Confirm</div>
+        </div>
+    </div>
+</div>
 {/block}
 {/block}
 
 
 {block name="scriptSrc"}
 {block name="scriptSrc"}
@@ -468,6 +482,28 @@
             })
             })
         });
         });
 
 
+        $(".receivedConfirmButton").on(tap, async function () {
+            $("#deleteAddressModal").show(0)
+        });
+
+        //确认删除地址
+        $("#confirmDelete").on(tap, function () {
+            $.get('/index/order/receipt?orderId=' + orderId, function (res) {
+                if (res.status === 200 || res.status === "200") {
+                    showToast('Success')
+                } else {
+                    showToast('Something wrong')
+                }
+                $("#deleteAddressModal").hide(0)
+            })
+
+        })
+
+        //取消删除地址
+        $("#cancelDelete").on(tap, function () {
+            $("#deleteAddressModal").hide(0)
+        })
+
         function fetchOrder(interId) {
         function fetchOrder(interId) {
             $.get('/index/order/detail?orderId=' + orderId, function (res) {
             $.get('/index/order/detail?orderId=' + orderId, function (res) {
                 if (res.status == 200 && res.data.order.pay_status == 20) {
                 if (res.status == 200 && res.data.order.pay_status == 20) {

+ 59 - 0
public/assets/index/css/orderDetails.css

@@ -490,6 +490,65 @@ body{
     font-size: .16rem;
     font-size: .16rem;
     padding-right: .24rem;
     padding-right: .24rem;
 }
 }
+
+#deleteAddressModal{
+    position: fixed;
+    z-index: 999;
+    top: 0;
+    left: 0;
+    bottom: 0;
+    right: 0;
+    background-color: rgba(0, 0, 0, .5);
+    display: none;
+}
+#deleteAddressModal .deleteAddressBox{
+    border-radius: .06rem;
+    overflow: hidden;
+    margin: 25% auto 0 auto;
+    width: 4rem;
+    padding: .24rem;
+    background-color: #fff;
+    border-radius: .12rem;
+}
+.deteTips{
+    font-size: .24rem;
+    font-weight: bold;
+    word-break: break-all;
+    text-align: center;
+    padding: .12rem 0;
+    line-height: 1.5;
+}
+.deteTips #daleteAddInfo{
+    color: rgba(79, 73, 222, 1);
+}
+.deteButtonBox{
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    padding-top: .24rem;
+}
+#cancelDelete,#confirmDelete{
+    background-color: rgba(79, 73, 222, 1);
+    color: #FFF;
+    font-size: .2rem;
+    border-radius: .04rem;
+    margin: 0 .24rem;
+    height: .5rem;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    width: 1.3rem;
+    cursor: pointer;
+    -moz-box-sizing: border-box;
+    -webkit-box-sizing: border-box;
+    box-sizing: border-box;
+}
+#cancelDelete{
+    border: .02rem solid rgba(0, 0, 0, .2);
+    background: transparent;
+    color: #434343;
+}
+
 .starContainer{
 .starContainer{
     flex: 1;
     flex: 1;
     display: flex;
     display: flex;