审查视图

public/themes/simpleboot3/portal/personalcenter/shop_address.html 2.7 KB
5  
anyv authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>学考无忧-收获地址</title>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
</head>

<body style="background-color:white;">
<div class="address_box">
    <!-- 顶部 -->
    <div class="ad_top">
5  
anyv authored
17 18 19
        <a href="javascript:history.back(-1)">
            <img class="ad_topImg" src="__TMPL__/public/assets/images/left.png" alt="">
        </a>
5  
anyv authored
20
        <h1>收货地址</h1>
5  
anyv authored
21
        <a href="{:url('Personalcenter/add_shop_address')}">
5  
anyv authored
22 23 24 25 26 27
            <p>新增地址</p>
        </a>
    </div>
    <!-- 内容 -->
    <div class="ad_content">
        <ul id="ad_contentUl">
5  
anyv authored
28
            <volist name="data" id="vo">
1  
anyv authored
29
                <li ontouchstart="fors()">
5  
anyv authored
30 31
                    <div class="ad_conBox">
                        <div class="ad_con1">
anyv authored
32
                            <p class="ad_conName">{$vo.name}</p>
5  
anyv authored
33
                            <p class="ad_conMo">默认</p>
anyv authored
34
                            <p class="ad_conPhone">{$vo.phone}</p>
5  
anyv authored
35 36
                            <img class="ad_conImg" src="__TMPL__/public/assets/images/35.png" alt="">
                        </div>
5  
anyv authored
37
                    </div>
anyv authored
38
                    <p class="ad_conAddress">收货地址:{$vo.region}{$vo.detailed}</p>
5  
anyv authored
39
                    <div class="ad_MoRemove">
6  
anyv authored
40 41
                        <div class="ad_mo" ontouchstart="set_default({$vo.id})">设为默认</div>
                        <div class="ad_move" ontouchstart="address_del({$vo.id})">删除</div>
5  
anyv authored
42
                    </div>
5  
anyv authored
43 44
                </li>
            </volist>
5  
anyv authored
45 46 47 48 49 50
        </ul>
    </div>
</div>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/address.js"></script>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
5  
anyv authored
51
<script>
1  
anyv authored
52 53 54 55
    function fors() {
        console.log(111)
    }
5  
anyv authored
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
    /**
     *点击设置默认
     */
    function set_default(id){
        $.post("{:url('Personalcenter/set_default_address')}",{id:id},function(data){
            if(data){
            }else{
                alert('设置失败!');
            }
        });
    }

    /**
     * 点击删除地址
     */
    function address_del(id){
        $.post("{:url('Personalcenter/address_del')}",{id:id},function(data){
            if($data){
            }else{
                alert('删除失败!');
            }
        });
    }
</script>
5  
anyv authored
80 81 82
</body>

</html>