123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <!DOCTYPE html>
- <html class="">
- <!--STATUS OK-->
- <head>
- <meta name="referrer" content="always" />
- <meta charset='utf-8' />
- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="x-dns-prefetch-control" content="on">
- <meta name="description" content="">
- <meta name="format-detection" content="telephone=no" />
- <link rel="stylesheet" type="text/css" href="../css/api.css" />
- <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
- <link rel="stylesheet" type="text/css" href="css/vant-ui.css" />
- <link rel="stylesheet" type="text/css" href="css/iconfont.css">
- <link rel="stylesheet" type="text/css" href="css/main.css" />
- <link rel="stylesheet" type="text/css" href="css/countdown.css"/>
- <script type="text/javascript" src="../script/aui-tab.js"></script>
- <script src="js/vue.js"></script>
- <script src="js/vant-ui.js"></script>
- <script src="js/main.js"></script>
- <script src="js/countdown.js"></script>
- <title></title>
- </head>
- <style>
- .settle {
- position: absolute;
- bottom: 0;
- background-color: #fff;
- width: 100%
- }
- .settle-main {
- display: flex;
- justify-content: space-between;
- margin: .15rem 0;
- }
- .settle-left {
- margin: 0 .2rem;
- display: flex;
- flex-direction: row;
- align-items: center;
-
- }
- .settle-right {
- display: flex;
- flex-direction: row;
- }
- .buttom-buy{
- background-color: #fb5609;
- color: #ffffff;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: .34rem;
- border-radius: .7rem;
- padding:.15rem .4rem ;
- margin-right: .2rem;
- }
- .buttom-cart{
- background-color: rgba(0, 159, 233, 1);
- color: #ffffff;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: .34rem;
- border-radius: .7rem;
- padding:.15rem .4rem ;
- margin-right: .2rem;
- }
- .popup_title{
- margin: .4rem .2rem;
- text-align: center;
- }
- .price{
- color: #fb5609;
- font-size:.5rem;
- }
- .price .icon{
- font-size: .25rem;
- }
- .intro_title{
- font-size: .3rem;
- margin: .2rem;
- }
- .intro{
- background-color: #f5f5f5;
- margin: .2rem;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: .25rem;
- border-radius: .7rem;
- padding:.1rem .2rem ;
- width:1.5rem;
-
- }
- .popupbutton{
- position: absolute;
- bottom: 0.2rem;
- left:0.2rem;
- right:0rem;
- }
- .productBanner{
- position: relative;
-
- }
- .productBanner .price{
- color: #fff;
- font-size:.4rem;
- position: absolute;
- top:.1rem;
- left:1.35rem;
- }
- .productBanner.price .icon{
- font-size: .25rem;
- }
- .xg{
-
- background-size: cover;
- background: url(image/xg_bg.png) no-repeat center;
- background-size:100% 100%;
- position: absolute;
- top:.2rem;
- left:3rem;
- font-size: .2rem;
- color:#666666;
- padding: .05rem .1rem;
-
- }
- .downcount{
- color: #fff;
- font-size:.3rem;
- position: absolute;
- top:.1rem;
- right:0.2rem;
- }
- .times{
- color:#fff;
- font-size: .23rem;
- }
- .hms{
- background-color: #ffffff;
- color: #fb5609;
- font-size: .23rem;
- display: inline-block;
- text-align: center;
- }
- .price2{
- color: #fb5609;
- font-size:.4rem;
- position: absolute;
- bottom:.2rem;
- left:.35rem;
- font-weight: bold;
- }
- .price2 .icon{
- font-size: .25rem;
- }
- .price2 .title{
- font-size: .25rem;
- font-weight: normal;
- }
- .couponInfo{
- position: absolute;
- bottom:.2rem;
- right: .3rem;
- top:0.8rem;
- text-align: right;
- width:4.2rem;
-
- }
- .coupon{
- font-size: .2rem;
- color: #fb5609;
- background-color: #fee1d3;
- border-radius: .3rem;
- padding: 0rem .1rem;
- }
- .productTitle{
- font-size: .34rem;
- padding: .3rem .2rem;
- display: flex;
- align-items: center;
- border-bottom: 1px solid #f5f5f5;
- }
- .zhiying{
- font-size: .26rem;
- color: #8f5e01;
- background-color: #f3cb7e;
- border-radius: .3rem;
- padding: .05rem .1rem;
- margin-right: .1rem;
- }
- .productCount{
-
- display: flex;
- justify-content: space-between;
- flex-direction: row;
- padding: .3rem .2rem;
- font-size: .28rem;
- }
- .detail{
- background-color: #fff;
- margin:.2rem 0rem;
- padding:.2rem;
- }
- </style>
- <body>
- <div id="app" style="background-color:#f5f5f5;overflow : scroll;padding-bottom: 2rem;" >
- <div>
-
- <img src="image/cart_goods.png" style="width:100%">
- </div>
- <div class="productBanner">
- <img src="image/product_banner.png" style="width:100%">
- <div class="price">
- <span class="icon">¥</span>240.00
- </div>
- <div class="xg">
- <span style="margin-right: .06rem"><img src="image/xiangou.png" style="height:.2rem;width:.2rem"></span> 限购5条
- </div>
- <div class="downcount">
- <van-count-down :time="time">
- <template #default="timeData">
- <span class="times">距结束剩{{ timeData.days>0?timeData.days+"天":'' }}</span>
- <span class="hms">{{ timeData.hours>9? timeData.hours :"0"+timeData.hours }}</span>
- <span class="times">:</span>
- <span class="hms">{{ timeData.minutes>9?timeData.minutes:"0"+timeData.minutes }}</span>
- <span class="times">:</span>
- <span class="hms">{{ timeData.seconds>9?timeData.seconds:"0"+timeData.seconds }}</span>
- </template>
- </van-count-down>
- </div>
- <div class="price2">
- <div class="title">
- 预估到手价
- </div>
- <div>
- <span class="icon">¥</span>200.00
- </div>
-
- </div>
- <div class="couponInfo">
-
- <span class="coupon">爆款优惠券15元</span>
- <span class="coupon">注册优惠券10元</span>
-
- <span class="coupon">预计奖励4元</span>
- <span class="coupon">50积分</span>
-
- </div>
- </div>
- <div style="background-color: #fff; ">
- <div class="productTitle">
- <span class="zhiying">工厂直营 </span> 赛轮轮胎 205/60R16S SU58
- </div>
- <div class="productCount">
- <div>
- 已选 1条
- </div>
- <div style="color: #666666">
- 可购2条/已购3条
- </div>
- </div>
-
- </div>
- <div class="detail">
- 图文详情
- </div>
- <div class="settle">
- <div class="settle-main">
- <div class="settle-left" >
- <van-icon name="shopping-cart-o" badge="9" size=".8rem" color="#666666" v-on:click="gocar"/>
- </div>
- <div class="settle-right">
- <div class="buttom-cart" v-on:click="showPopup" >加入购物车</div>
- <div class="buttom-buy" v-on:click="showPopup">立即下单</div>
- </div>
- </div>
- </div>
- <van-popup v-model="show" closeable position="bottom" :style="{ height: '60%' }">
- <div class="popup_title">
- <div class="price" >
- <span class="icon">¥</span>200.00
- </div>
- </div>
-
- <div class="intro_title">
- 尺寸
- </div>
-
- <div class="intro" >15寸</div>
- <div class="intro_title">
- 花纹
- </div>
- <div class="intro" >SH56</div>
- <div style="text-align: right;margin-right: .2rem" >
- <van-stepper input-width=".6rem" button-size=".5rem"
- integer min="1" max="999" />
- </div>
- <div class="popupbutton">
- <div class="buttom-cart">加入购物车</div>
- </div>
-
- </van-popup>
- </div>
- </div>
- </body>
- <script type="text/javascript" src="./js/qrcode.min.js"></script>
- <script type="text/javascript" src="../script/aui-scroll.js"></script>
- <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
- <script type="text/javascript" src="../script/api.js"></script>
- <script type="text/javascript" src="../script/httpRequest.js"></script>
- <script type="text/javascript" src="../script/vue_plugins.js"></script>
- <script type="text/javascript">
- apiready = function () {
- api.parseTapmode();
-
- new Vue({
- el: '#app',
- data: {
- show:false,
- time:30 * 60 * 60 * 1000,
- },
- methods: {
- init: function () {
- this.userId = $api.getStorage('userid');
- // this.storeId = $api.getStorage('userid');
- this.loginId = $api.getStorage('loginid');
- this.status = $api.getStorage('status');
-
- var _this = this;
-
-
- },
- gocar:function(){
- this.sendEvent("gotocart");
- api.closeToWin({
- name:'root'
- }) ;
-
- },
- showPopup: function () {
-
- this.show = true;
-
- // var data = {
- // "url": "json",
- // "type": "body",
- // "storeId": this.storeId,
- // "addressType": "1",
- // "isDel": 0
- // },
- // _this = this,
- // url = "getReceiptAddress";
- // this.$post(url, data, function (ret) {
- // if (ret.code == 0 || ret.code == '0') {
- // _this.addresslist = ret.list;
- // for (var i = 0; i < _this.addresslist.length; i++) {
- // if (_this.addresslist[i].beDefault == 1) {
- // _this.radio = _this.addresslist[i].mainId
- // } else {
- // _this.radio = _this.addresslist[0].mainId
- // }
- // }
- // }
- // })
- },
-
-
- downTime:function(){
- var o = {
- el : 'time',
- st : 0,
- ed : 5400000,
- hh: 'hh',
- mm: 'mm',
- ss: 'ss',
- ms: 'ms'
- }
- var d = new countdown(o);
- d.downsElement();
- }
- },
- watch: {
- },
- computed: {
-
-
- },
- mounted: function () {
- this.init();
- // this.downTime();
- }
- })
- }
- </script>
- </html>
|