1. 程式人生 > >【04】MUI 仿拼多多 商品詳情

【04】MUI 仿拼多多 商品詳情

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<title>商品詳情</title>
		<link href="../../css/mui.min.css" rel="stylesheet">
		<link href="../../css/useritem.css" rel="stylesheet" />
		<style type="text/css">
			.mui-content { 
				margin-bottom: 60px;
				background: white;
			}
			
			#Topslider {
				height: 340px;
			}
			
			.mui-bar a {
				color: #E02D26;
			}
			
			.mui-slider-item img {
				height: 100%;
			}
			
			.mui-slider-indicator .mui-indicator {
				height: 0px;
				width: 0px;
				box-shadow: initial;
				margin-right: 30px;
				color: #ddd;
			}
			
			.footer {
				z-index: 10;
				border-top: 1px solid #DDDDDD;
				width: 100%;
				height: 60px;
				margin: 0 auto;
				background: white;
				position: fixed;
				bottom: 0px;
			}
			
			.footer-left {
				width: 65%;
				float: left;
				height: 60px;
				line-height: 60px;
			}
			
			.footer-right {
				width: 35%;
				float: left;
				height: 60px;
				text-align: center;
				line-height: 60px;
				color: white;
				background: #E02D26;
			}
			
			.footer-left1 {
				width: 65%;
				float: left;
			}
			
			.footer-left2 {
				text-align: center;
				width: 35%;
				float: left;
				background: #F2BAC7;
			}
			
			.footer-left-font {
				font-size: 12px;
				line-height: 35px;
				color: #858585;
			}
			
			.footer-left-font2 {
				font-size: 13px;
				line-height: 30px;
				color: white;
			}
			
			.footer-left-icondiv {
				float: left;
				width: 33.33%;
				text-align: center;
				border-right: 1px solid #F5F5F5;
			}
			
			.footer-left-icon {
				height: 30px;
				line-height: 45px;
			}
			
			.mui-icon-home:before {
				font-size: 22px;
				color: #E02D26;
			}
			
			.icon-shoucang:before {
				content: "\e612";
				font-size: 18px;
				color: #E02D26;
			}
			
			.icon-service:before {
				content: "\e7bb";
				font-size: 23px;
				color: #E02D26;
			}
			
			.footer-left-money {
				font-size: 17px;
				color: white;
			}
			
			.footer-left-money:hover {
				color: white;
			}
			
			.money {
				height: 45px;
				line-height: 45px;
				background: white;
			}
			
			.top-money {
				font-size: 15px;
				margin-left: 10px;
				color: #E02D26;
				font-weight: bold;
			}
			
			.primaryMoney {
				padding-left: 10px;
				color: #858585;
				font-size: 11px;
				text-decoration: line-through;
			}
			
			.top-money-right {
				color: #858585;
				font-size: 11px;
				padding-right: 10px;
			}
			
			.name {
				max-height: 60px;
				background: white;
			}
			
			.name span {
				display: block;
				width: 94%;
				margin: 0px auto;
				color: black;
				font-size: 14px;
				font-weight: bold;
			}
			
			#youhui {
				background: #FAFAFA;
				font-size: 14px;
			}
			
			.mui-table-view-cell {
				padding: 8px 10px;
			}
			
			.mui-table-view-cell:after {
				height: 0px;
			}
			
			.mui-table-view:after {
				height: 0px;
			}
			
			.mui-table-view:before {
				height: 0px;
			}
			
			.youhui-quan {
				float: left;
				width: 15px;
				height: 15px;
				background: #E02D26;
				text-align: center;
				line-height: 15px;
				border-radius: 5px;
			}
			
			.youhui-details {
				float: left;
				width: 15px;
				height: 15px;
				border: 1px solid #E02D26;
				text-align: center;
				line-height: 15px;
				border-radius: 50%;
			}
			
			.youhui-Items {
				width: 200px;
				padding: 10px;
				font-size: 13px;
				/*width: 15px;
				height: 15px;
				border: 1px solid #E02D26;
				text-align: center;
				line-height: 15px;
				border-radius: 50%;*/
				border: 1px solid red;
			}
			
			.yuohuiIcon {
				/*float: left;*/
				width: 15px;
				height: 15px;
				border: 1px solid #E02D26;
				text-align: center;
				line-height: 15px;
				border-radius: 50%;
				border: 1px solid red;
			}
			
			.youhui-Items div {
				float: left;
				border: 1px solid red;
			}
			
			.youhui-quan-desc {
				float: left;
				width: auto;
				margin-left: 5px;
				line-height: 17px;
				margin-right: 10px;
			}
			
			.youhui-quan a {
				font-size: 12px;
				color: white;
			}
			
			.youhui-quan-desc a {
				font-size: 11px;
				color: #858585;
			}
			
			.youhui-box-desc {
				float: left;
				width: auto;
				margin-left: 5px;
				line-height: 17px;
				margin-right: 10px;
			}
			
			.youhui-box-desc a {
				font-size: 13px;
				color: black;
			}
			
			.youhui-quan:hover {
				color: white;
			}
			
			.mui-icon-checkmarkempty {
				text-align: center;
				margin-left: -3px;
				margin-top: -3px;
				font-size: 20px;
				color: #E02D26;
			}
			
			.mui-icon-checkmarkempty:hover {
				color: #E02D26;
			}
			
			.youhui-item {
				font-size: 12px;
				color: #858585;
				margin-left: 3px;
				margin-right: 3px;
			}
			
			.youhui-item:hover {
				color: #858585;
			}
			
			.titleTop {
				border-top: 8px solid #EFEFF4;
			}
			
			.pindan_num {
				color: black;
				font-size: 13px;
			}
			
			.pindan_num:hover {
				color: black;
			}
			
			.seemore {
				margin-right: 20px;
				color: #858585;
				font-size: 13px;
			}
			
			.seemore:hover {
				color: #858585;
			}
			
			.seeall {
				margin-right: 20px;
				color: #858585;
				font-size: 13px;
			}
			
			.seeall:hover {
				color: #858585;
			}
			
			.cypdItem {
				background: white;
				width: 94%;
				margin: 0px auto;
				max-height: 112px;
				overflow: hidden;
			}
			
			.cypddDiv {
				height: 56px;
				line-height: 56px;
				border-top: 1px solid #EFEFF4;
			}
			
			.cypdBottomBorder {
				border-bottom: 1px solid #EFEFF4;
			}
			
			.pjBottmBorder {
				border-bottom: 1px solid #EFEFF4;
			}
			
			.cypdLeft {
				width: 47%;
				float: left;
			}
			
			.cypdLeftImg {
				height: 50px;
				width: 50px;
				margin-top: 3px;
				border-radius: 50%;
				float: left;
			}
			
			.cypdLeftPhone {
				float: left;
				margin-left: 5px;
				font-size: 13px;
			}
			
			.cypdCenter {
				width: 35%;
				float: left;
				line-height: 28px;
			}
			
			.cypdCenterDiv {
				font-size: 13px;
				text-align: center;
				margin-top: 8px;
			}
			
			.cypdCenterNum {
				color: #E02D26;
			}
			
			.cypdCenterTime {
				font-size: 13px;
				text-align: center;
				margin-top: -10px;
			}
			
			.cypdRight {
				width: 18%;
				float: left;
				text-align: center;
			}
			
			.cypdRightBtn {
				background: #E02D26;
				font-size: 13px;
				color: white;
				height: 28px;
				margin-top: 15px;
				line-height: 28px;
				border-radius: 5px;
			}
			
			.goshop {
				border-top: 7px solid #EFEFF4;
				background: white;
				width: 100%;
				float: left;
			}
			
			.goshopLeft {
				width: 15%;
				float: left;
			}
			
			.goshopLeftImg {
				height: 40px;
				width: 40px;
				margin-top: 7px;
				margin-left: 10px;
				float: left;
			}
			
			.goshopCenter {
				float: left;
				line-height: 28px;
			}
			
			.goshopCenterDiv {
				font-size: 13px;
				text-align: left;
				margin-top: 5px;
				margin-left: 8px;
			}
			
			.goshopCenterNum {
				color: #E02D26;
			}
			
			.goshopCenterTime {
				margin-left: 8px;
				font-size: 13px;
				text-align: left;
				margin-top: -10px;
				color: #858585;
			}
			
			.goshopRight {
				width: 90px;
				float: right;
				margin-right: 10px;
				text-align: center;
			}
			
			.goshopRightBtn {
				border: 1px solid #858585;
				font-size: 12px;
				color: #858585;
				height: 28px;
				margin-top: 12px;
				line-height: 28px;
				border-radius: 5px;
			}
			/*--*/
			
			.pindanLeft {
				width: 15%;
				float: left;
			}
			
			.selectAllPindan {
				margin-top: 50px;
			}
			
			.pingdanWindowItems {
				float: left;
				width: 100%;
				border-bottom: 1px solid #F0F0F0;
				margin-bottom: 5px;
			}
			
			.ShiRen {
				height: 30px;
				line-height: 30px;
				font-size: 13px;
				text-align: center;
				border-bottom: 0px;
			}
			
			.pindanLeftImg {
				height: 40px;
				width: 40px;
				margin-top: 5px;
				margin-left: 10px;
				border-radius: 50%;
				float: left;
			}
			
			.pindanCenter {
				width: 50%;
				float: left;
				line-height: 25px;
			}
			
			.pindanCenterDiv {
				font-size: 12px;
				text-align: left;
				margin-top: 8px;
				margin-left: 8px;
			}
			
			.pingdanItemsName {
				font-weight: bold;
				width: 80px;
				display: inline-block;
				float: left;
				color: black;
			}
			
			.ChaRen {
				margin-left: 10px;
				display: inline-block;
				float: left;
				color: black;
			}
			
			.pindanCenterNum {
				color: #E02D26;
			}
			
			.pindanCenterTime {
				margin-left: 8px;
				font-size: 12px;
				text-align: left;
				margin-top: -10px;
				color: #858585;
				float: left;
			}
			
			.pindanRight {
				width: 60px;
				float: right;
				margin-right: 10px;
				text-align: center;
			}
			
			.pindanRightBtn {
				background: #E02D26;
				font-size: 14px;
				color: white;
				height: 28px;
				margin-top: 10px;
				line-height: 28px;
				border-radius: 5px;
			}
			/*--*/
			
			.mui-icon-home:before {
				color: #858585;
			}
			
			.detail {
				float: left;
				background: #fceae9;
				margin: 10px 0px 0px 10px;
				padding: 5px 10px 3px 10px;
				border-radius: 5px;
				overflow: hidden;
				font-size: 12px;
				color: #858585;
			}
			
			.pingjiaBtn {
				float: left;
				width: 100%;
			}
			
			.pingjiaItem {
				float: left;
				height: 25px;
				line-height: 25px;
				width: 100%;
				margin-top: 10px;
			}
			
			.pingjiaImg {
				width: 25px;
				height: 25px;
				border-radius: 50%;
				float: left;
				margin-left: 10px;
			}
			
			.pingjiaName {
				border-radius: 50%;
				float: left;
				margin-left: 5px;
				font-size: 13px;
			}
			
			.pingjiaTime {
				font-size: 12px;
				margin-right: 10px;
				color: black;
			}
			
			.pingjiaContent {
				font-size: 12px;
				padding: 3px 10px;
				float: left;
				width: 100%;
				height: auto;
			}
			
			.kuanshi {
				font-size: 12px;
				padding: 5px 10px;
				float: left;
				width: 100%;
				height: auto;
				color: #858585;
				border-bottom: 1px solid #EFEFF4;
			}
			
			.shopDetails {
				float: left;
				width: 100%;
				border-bottom: 1px solid #EFEFF4;
			}
			
			.shopDetailsContent {
				float: left;
				padding: 10px;
				font-size: 12px;
				width: 95%;
				margin: 10px;
				background: #fafafa;
			}
			
			.shopImgItems {
				width: 100%;
			}
			
			.box {
				border-top: 1px solid #EEEEEE;
				height: 70px;
				background: white;
			}
			
			.boxs {
				padding-top: 10px;
				height: 60px;
				background: white;
			}
			
			.boxsTopBorder {
				border-top: 1px solid #EEEEEE;
			}
			
			.youhuiBoxDiv {
				margin-left: 10px;
			}
			
			.youhuiBoxItemDetails {
				width: 100%;
				float: left;
				margin-left: 20px;
				font-size: 11px;
				color: #858585;
			}
			
			.price {
				width: 25%;
				height: 70px;
				float: left;
				text-align: center;
				line-height: 70px;
			}
			
			.center {
				width: 55%;
				height: 70px;
				float: left;
				text-align: left;
				padding: 15px 5px;
			}
			
			.select {
				width: 20%;
				height: 70px;
				float: left;
				text-align: center;
				line-height: 70px;
			}
			
			.price_unit {
				font-size: 15px;
				color: #E02D26;
			}
			
			.price_unit:hover {
				color: #E02D26;
			}
			
			.price_num {
				font-size: 25px;
				color: #E02D26;
				font-weight: bold;
			}
			
			.price_num:hover {
				color: #E02D26;
			}
			
			.priceAll {
				font-size: 13px;
			}
			
			.time {
				font-size: 11px;
				color: #8f8f94;
			}
			
			.selectPrice {
				font-size: 23px;
				color: white;
				background: #E02D26;
				border-radius: 50%;
				border: 0px;
			}
			
			.mui-icon-checkmarkemptys:before {
				content: '\e472';
			}
			
			.mui-icon-checkmarkemptys {
				font-size: 18px;
				color: white;
				border-radius: 50%;
				border: 1px solid #CCCCCC;
			}
			
			.no {
				font-size: 15px;
				color: black;
			}
			
			.no:hover {
				color: black;
			}
			
			.noBorder {
				border-bottom: 1px solid #EEEEEE;
			}
			
			.ptyh {
				font-size: 14px;
				background: white;
				height: 60px;
				padding-left: 20px;
				text-align: center;
				line-height: 60px;
			}
			
			#closeYouhui {
				line-height: 60px;
				margin-right: 10px;
				color: #797979;
				font-size: 35px;
				font-weight: bold;
			}
			
			#closeFuwu {
				line-height: 60px;
				margin-right: 10px;
				color: #797979;
				font-size: 35px;
				font-weight: bold;
			}
			
			.lingqumanjian {
				padding: 3px;
				font-size: 11px;
				border: 1px solid #E02D26;
				width: 100%;
				height: 30px;
				margin-top: 15px;
				color: #E02D26;
			}
			
			.mui-preview-image.mui-fullscreen {
				position: fixed;
				z-index: 20;
				background-color: #000;
			}
			
			.mui-preview-header,
			.mui-preview-footer {
				position: absolute;
				width: 100%;
				left: 0;
				z-index: 10;
			}
			
			.mui-preview-header {
				height: 44px;
				top: 0;
			}
			
			.mui-preview-footer {
				height: 50px;
				bottom: 0px;
			}
			
			.mui-preview-header .mui-preview-indicator {
				display: block;
				line-height: 25px;
				color: #fff;
				text-align: center;
				margin: 15px auto 4;
				width: 70px;
				background-color: rgba(0, 0, 0, 0.4);
				border-radius: 12px;
				font-size: 16px;
			}
			
			.mui-preview-image {
				display: none;
				-webkit-animation-duration: 0.5s;
				animation-duration: 0.5s;
				-webkit-animation-fill-mode: both;
				animation-fill-mode: both;
			}
			
			.mui-preview-image.mui-preview-in {
				-webkit-animation-name: fadeIn;
				animation-name: fadeIn;
			}
			
			.mui-preview-image.mui-preview-out {
				background: none;
				-webkit-animation-name: fadeOut;
				animation-name: fadeOut;
			}
			
			.mui-preview-image.mui-preview-out .mui-preview-header,
			.mui-preview-image.mui-preview-out .mui-preview-footer {
				display: none;
			}
			
			.mui-zoom-scroller {
				position: absolute;
				display: -webkit-box;
				display: -webkit-flex;
				display: flex;
				-webkit-box-align: center;
				-webkit-align-items: center;
				align-items: center;
				-webkit-box-pack: center;
				-webkit-justify-content: center;
				justify-content: center;
				left: 0;
				right: 0;
				bottom: 0;
				top: 0;
				width: 100%;
				height: 100%;
				margin: 0;
				-webkit-backface-visibility: hidden;
			}
			
			.mui-zoom {
				-webkit-transform-style: preserve-3d;
				transform-style: preserve-3d;
			}
			
			.mui-slider .mui-slider-group .mui-slider-item img {
				width: auto;
				height: auto;
				max-width: 100%;
				max-height: 100%;
			}
			
			.mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
				width: 100%;
			}
			
			.mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
				display: inline-table;
			}
			
			.mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
				display: table-cell;
				vertical-align: middle;
			}
			
			.mui-preview-loading {
				position: absolute;
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
				display: none;
			}
			
			.mui-preview-loading.mui-active {
				display: block;
			}
			
			.mui-preview-loading .mui-spinner-white {
				position: absolute;
				top: 50%;
				left: 50%;
				margin-left: -25px;
				margin-top: -25px;
				height: 50px;
				width: 50px;
			}
			
			.mui-preview-image img.mui-transitioning {
				-webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
				transition: transform 0.5s ease, opacity 0.5s ease;
			}
			
			@-webkit-keyframes fadeIn {
				0% {
					opacity: 0;
				}
				100% {
					opacity: 1;
				}
			}
			
			@keyframes fadeIn {
				0% {
					opacity: 0;
				}
				100% {
					opacity: 1;
				}
			}
			
			@-webkit-keyframes fadeOut {
				0% {
					opacity: 1;
				}
				100% {
					opacity: 0;
				}
			}
			
			@keyframes fadeOut {
				0% {
					opacity: 1;
				}
				100% {
					opacity: 0;
				}
			}
			
			p img {
				max-width: 100%;
				height: auto;
			}
			/*.mui-popover.mui-active {
				display: block;
				opacity: 1;
				left:100px;
				height: 300px;
				position: fixed;
				top:50%
			}*/
			
			#div {
				width: 0px;
				height: 0px;
				position: fixed;
				top: 70%;
				left: 50%;
			}
			
			.mui-popover .mui-popover-arrow:after {
				width: 0px;
			}
			
			#middlePopover {
				height: 350px;
			}
			
			.PingDanPopoverTitle {
				text-align: center;
				height: 50px;
				border-bottom: 1px solid #D4D4D4;
				line-height: 50px;
				position: relative;
			}
			
			.PingDanPopoverTitle a {
				color: black;
			}
			
			#PingdanAllClose {
				font-size: 30px;
				position: absolute;
				top: 10px;
				right: 10px;
			}
			
			#PingdanOneClose {
				font-size: 30px;
				position: absolute;
				top: 10px;
				right: 10px;
			}
			
			.OnePindanTop {
				height: 50px;
				line-height: 50px;
				text-align: center;
				font-size: 13px;
			}
			
			.OnePindanTopName {
				color: #E02D26;
				font-size: 14px;
				font-weight: bold;
			}
			
			.OnePindanTopName:hover {
				color: #E02D26;
			}
			
			.OnePindanTopTime {
				color: black;
			}
			
			.OnePindanTopTime:hover {
				color: black;
			}
			
			.OnePindanCenter {
				text-align: center;
			}
			
			.OnePindanCenterLeft {
				width: 50px;
				height: 50px;
				border-radius: 50%;
			}
			
			.OnePindanCenter:before {
				content: "拼主";
				position: absolute;
				left: 85px;
				top: 48px;
				width: 38px;
				height: 18px;
				font-size: 11px;
				line-height: 17px;
				text-align: center;
				background-color: #ffab33;
				border: 1px solid #fff;
				border-radius: 12px;
				color: #9f7200;
			}
			
			.OnePindanCenterRight {
				width: 50px;
				height: 50px;
				border-radius: 50%;
				border: 1px dashed #DDDDDD;
			}
			
			.OnePindanGo {
				width: 90%;
				margin: 0px auto;
				height: 40px;
				line-height: 40px;
				background: red;
				color: white;
				border-radius: 5px;
				margin-top: 15px;
				font-size: 15px;
			}
			
			#sheet3 {
				background: white;
			}
			
			.goPingdanImg {
				width: 100px;
				height: 100px;
				float: left;
				margin-left: 10px;
				border-radius: 5px;
				margin-top: -30px;
				border: 1px solid white;
			}
			
			.goPingdanDiv {
				min-height: 70px;
				float: left;
				font-size: 13px;
				margin-left: 10px;
				margin-top: 10px;
			}
			
			.goPingdanMoney {
				color: #E02D26;
				font-size: 15px;
			}
			
			.goPingdanSelectKuanshi {
				height: auto;
			}
			
			.goPingdanKuanshi {
				border-top: 1px solid #f5f5f5;
				width: 100%;
				float: left;
				background: white;
			}
			
			.goPingdanKuanshiItem {
				float: left;
				background: #f5f5f5;
				color: black;
				font-size: 11px;
				padding: 3px;
				margin: 5px 5px 0px 10px;
				border-radius: 5px;
			}
			
			.goPingdanKuanshiItem-Active {
				float: left;
				background: #E02D26;
				color: white;
				font-size: 12px;
				padding: 3px;
				margin: 5px 5px 0px 10px;
				border-radius: 5px;
			}
			
			.goPingdanNumDiv {
				border-top: 1px solid #f5f5f5;
				border-bottom: 1px solid #f5f5f5;
				width: 100%;
				float: left;
				background: white;
				height: 50px;
				line-height: 50px;
			}
			
			.goPingdanNumFont {
				font-size: 13px;
				margin-left: 10px;
				float: left;
			}
			
			.goPingdanNumFontOperation {
				float: right;
				margin-right: 10px;
			}
			
			.goPingdanNumDel {
				float: left;
				font-size: 13px;
				width: 30px;
				height: 20px;
				text-align: center;
				background: #f2f2f2;
				line-height: 20px;
				margin-top: 15px;
			}
			
			.goPingdanNumContent {
				float: left;
				font-size: 13px;
				width: 50px;
				height: 20px;
				text-align: center;
				background: #f2f2f2;
				line-height: 20px;
				margin-top: 15px;
			}
			
			.goPingdanNumAdd {
				float: left;
				font-size: 13px;
				width: 30px;
				height: 20px;
				text-align: center;
				background: #e0e0e0;
				margin-top: 15px;
				line-height: 20px;
			}
			
			.goPingdanBtnDiv {
				height: 100px;
				background: white;
				float: left;
				background: white;
				width: 100%;
				text-align: center;
			}
			
			.goPingdanBtn {
				width: 95%;
				font-size: 15px;
				background: #E02D26;
				color: white;
				margin: 0px auto;
				height: 40px;
				line-height: 40px;
				margin-top: 30px;
				border-radius: 5px;
			}
			
			#goTop {
				width: 40px;
				height: 40px;
				position: fixed;
				bottom: 80px;
				right: 5%;
				border-radius: 50%;
				border: 1px solid #EFEFF4;
				text-align: center;
				line-height: 40px;
				box-shadow: 1px 1px 1px #888888;
				background: white;
				z-index: 20;
				opacity: 0.8;
			}
			
			#goTop a {
				color: #E02D26;
				font-weight: bold;
			}
			
			.hide {
				display: none;
			}
			
			</div>
		</style>

	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-transparent">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title"></h1>
		</header>
		<div class="mui-content">
			<!--輪播圖片-->
			<div id="Topslider" class="mui-slider">
				<div class="mui-slider-group mui-slider-loop">
					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="#">
							<img style="height: 350px;width: 100%;" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/
[email protected]
_1l_50Q"> </a> </div> <div class="mui-slider-item"> <a href="#"> <img style="height: 350px;width: 100%;" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1"> </a> </div> <div class="mui-slider-item"> <a href="#"> <img style="height: 350px;width: 100%;" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/9bde42b04e6dbbbfca6416
[email protected]
_1l_50Q" data-preview-src="" data-preview-group="1"> </a> </div> <div class="mui-slider-item"> <a href="#"> <img style="height: 350px;width: 100%;" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1"> </a> </div> <div class="mui-slider-item"> <a href="#"> <img style="height: 350px;width: 100%;" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/
[email protected]
_1l_50Q" data-preview-src="" data-preview-group="1"> </a> </div> <div class="mui-slider-item mui-slider-item-duplicate"> <a href="#"> <img style="height: 350px;width: 100%;" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q"> </a> </div> </div> <div class="mui-slider-indicator mui-text-right"> <div id="topSliderNum" class="mui-indicator">1/4</div> </div> </div> <div class="money"> <span class="top-money">¥11.8<a class="primaryMoney">¥58</a></span> <a class="mui-pull-right top-money-right">已拼35203件·2人拼單</a> </div> <div class="name"> <span>【買1送1】【滿天星種子1000粒+土+肥+生根粉】 多款選擇 滿天星花種子</span> </div> <ul class="mui-table-view" id="youhui"> <li class="mui-table-view-cell" id="manjianLi"> <div class="mui-navigate-right youhui-quan"> <a>券</a> </div> <div class="youhui-quan-desc"> <a>滿30減3</a> </div> <div class="youhui-quan"> <a>券</a> </div> <div class="youhui-quan-desc"> <a>滿50減5</a> </div> </li> <li class="mui-table-view-cell" id="youhuiLi"> <div class="mui-navigate-right youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-quan-desc"> <a>全場包郵</a> </div> <div class="mui-navigate-right youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-quan-desc"> <a>7天退換</a> </div> <div class="mui-navigate-right youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-quan-desc"> <a>48小時發貨</a> </div> <div class="mui-navigate-right youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-quan-desc"> <a>假一賠十</a> </div> </li> </ul> <ul class="mui-table-view titleTop"> <li class="mui-table-view-cell"> <div class="mui-navigate-right" style="margin-top:3px"> <a class="pindan_num">53人正在拼單,可直接參與</a> <!--<a class="mui-pull-right seemore" href="#middlePopover">檢視更多</a>--> <a class="mui-pull-right seemore">檢視更多</a> </div> </li> </ul> <div id="cypdItem" class="cypdItem"> <div class="cypddDiv"> <div class="cypdLeft"> <img class="cypdLeftImg" src="http://avatar.yangkeduo.com/a/7c0ac971f37f5c21cc122dbd1afe55d8afefa6b2-1523088411?x-oss-process=image/resize,w_100"> <div class="cypdLeftPhone">182****8518</div> </div> <div class="cypdCenter"> <div class="cypdCenterDiv"> <span>還差 <a class="cypdCenterNum">1人</a> 拼成 </span> </div> <div class="cypdCenterTime">剩餘23:54:15:0</div> </div> <div class="cypdRight"> <div class="cypdRightBtn">去拼單</div> </div> </div> <div class="cypddDiv"> <div class="cypdLeft"> <img class="cypdLeftImg" src="http://avatar.yangkeduo.com/a/c2af00f5d113db5b36c052b7a93ef0bde1c8c056-1519827381?x-oss-process=image/resize,w_100"> <div class="cypdLeftPhone ">182****8518</div> </div> <div class="cypdCenter"> <div class="cypdCenterDiv"> <span>還差 <a class="cypdCenterNum">1人</a> 拼成 </span> </div> <div class="cypdCenterTime">剩餘23:12:15:0</div> </div> <div class="cypdRight"> <div class="cypdRightBtn">去拼單</div> </div> </div> <div class="cypddDiv"> <div class="cypdLeft"> <img class="cypdLeftImg" src="http://avatar.yangkeduo.com/a/c2af00f5d113db5b36c052b7a93ef0bde1c8c056-1519827381?x-oss-process=image/resize,w_100"> <div class="cypdLeftPhone ">111****1111</div> </div> <div class="cypdCenter"> <div class="cypdCenterDiv"> <span>還差 <a class="cypdCenterNum">1人</a> 拼成 </span> </div> <div class="cypdCenterTime">剩餘23:00:15:0</div> </div> <div class="cypdRight"> <div class="cypdRightBtn">去拼單</div> </div> </div> </div> <ul class="mui-table-view titleTop pjBottmBorder"> <li class="mui-table-view-cell"> <div class="mui-navigate-right" style="margin-top:3px"> <a class="pindan_num">商品評價(16705)</a> <a class="mui-pull-right seeall">檢視全部</a> </div> </li> </ul> <div class="pingjiaBtn"> <div class="detail">便宜(10)</div> <div class="detail">物流很快(99)</div> <div class="detail">划算(77)</div> <div class="detail">耐心(32)</div> </div> <div class="pingjiaAll"> <div class="pingjiaList"> <div class="pingjiaItem"> <img class="pingjiaImg" src="http://avatar.yangkeduo.com/a/427a36d24c609bcc0c788c9f1656bc0bfe61a6e1-1521586348?x-oss-process=image/resize,w_100"> <div class="pingjiaName">淋溼的諾言</div> <a class="mui-pull-right pingjiaTime">2018.4.10</a> </div> <div class="pingjiaContent" style=""> 非常滿意已經種下了,靜等發芽了期待 </div> <div class="kuanshi" style="">款式:紅錦1000粒+盆+土+肥+生根粉</div> </div> <div class="pingjiaList"> <div class="pingjiaItem"> <img class="pingjiaImg" src="http://avatar.yangkeduo.com/a/5661ca969e505515480a4288dbe963936653928f-1522674891?x-oss-process=image/resize,w_100"> <div class="pingjiaName">淋溼的諾言</div> <a class="mui-pull-right pingjiaTime">2018.4.10</a> </div> <div class="pingjiaContent" style=""> 除了包裝盒有點壓的難看點之外,其他的還可以,至於花得等長出來之後再追評。 </div> <div class="kuanshi" style="">款式:混色滿天星1000粒+肥+生根粉</div> </div> </div> <div class="goshop"> <div class="goshopLeft"> <img class="goshopLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> </div> <div class="goshopCenter"> <div class="goshopCenterDiv"> <span>夏菊花卉專營店 </span> </div> <div class="goshopCenterTime">商品數量 &nbsp;27&nbsp;&nbsp;已拼&nbsp;46萬 </div> </div> <div class="goshopRight"> <div class="goshopRightBtn" id="GoShopLook"> <a class="mui-icon mui-icon-home"></a>進店逛逛</div> </div> </div> <ul class="mui-table-view titleTop shopDetails"> <li class="mui-table-view-cell"> <div style="margin-top:3px"> <a class="pindan_num">商品詳情</a> </div> </li> </ul> <div class="shopDetailsContent"> 【4.8元 滿天星2000粒+複合肥2包+生根粉2包】【7.8元 滿天星2000粒+花盆2個+營養土200克+複合肥2包+生根粉2包】多買多送,看好顏色套餐包含什麼在購買,不要到時候問客服說怎麼沒有盆和土,收到貨不會種植的朋友,請聯絡客服教您種植,滿天星發芽必須晒陽光 保持土壤溼潤,不要到時候長成豆芽菜了說我們的種子是油菜種子,不管什麼種子不晒陽光,那都像豆芽菜,所以必須晒陽光,有什麼不懂的地方可以直接聯絡客服說明,我們會手把手解決您任何問題的,快來和心愛的人一起播種吧~重要的事情說三遍 快遞只發郵政 快遞只發郵政 快遞只發郵政 </div> <div class="shopImg"> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> <img class="shopImgItems" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/[email protected]_1l_50Q" data-preview-src="" data-preview-group="1" /> </div> <div id="middlePopover" class="mui-popover"> <div class="mui-popover-arrow"></div> <div class="PingDanPopoverTitle"> <a>正在拼單</a> <a id="PingdanAllClose" class="mui-icon mui-icon-closeempty "></a> </div> <div id="selectAllPindan" class="mui-scroll-wrapper" style="margin-top: 50px;"> <div class="mui-scroll"> <div class="pingdanWindowItems"> <img class="pindanLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> <div class="pindanCenter"> <div class="pindanCenterDiv"> <a class="mui-ellipsis pingdanItemsName">木子李</a> <a class="ChaRen">差1人</a> </div> <div class="pindanCenterTime">剩餘23:00:15:0</div> </div> <div class="pindanRight"> <div class="pindanRightBtn"> 去拼單</div> </div> </div> <div class="pingdanWindowItems"> <img class="pindanLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> <div class="pindanCenter"> <div class="pindanCenterDiv"> <a class="mui-ellipsis pingdanItemsName">冬天的薛</a> <a class="ChaRen">差1人</a> </div> <div class="pindanCenterTime">剩餘23:00:15:0</div> </div> <div class="pindanRight"> <div class="pindanRightBtn"> 去拼單</div> </div> </div> <div class="pingdanWindowItems"> <img class="pindanLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> <div class="pindanCenter"> <div class="pindanCenterDiv"> <a class="mui-ellipsis pingdanItemsName">王立英</a> <a class="ChaRen">差1人</a> </div> <div class="pindanCenterTime">剩餘23:00:15:0</div> </div> <div class="pindanRight"> <div class="pindanRightBtn"> 去拼單</div> </div> </div> <div class="pingdanWindowItems"> <img class="pindanLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> <div class="pindanCenter"> <div class="pindanCenterDiv"> <a class="mui-ellipsis pingdanItemsName">平平</a> <a class="ChaRen">差1人</a> </div> <div class="pindanCenterTime">剩餘23:00:15:0</div> </div> <div class="pindanRight"> <div class="pindanRightBtn"> 去拼單</div> </div> </div> <div class="pingdanWindowItems"> <img class="pindanLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> <div class="pindanCenter"> <div class="pindanCenterDiv"> <a class="mui-ellipsis pingdanItemsName">夏日玫瑰</a> <a class="ChaRen">差1人</a> </div> <div class="pindanCenterTime">剩餘23:00:15:0</div> </div> <div class="pindanRight"> <div class="pindanRightBtn"> 去拼單</div> </div> </div> <div class="pingdanWindowItems"> <img class="pindanLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> <div class="pindanCenter"> <div class="pindanCenterDiv"> <a class="mui-ellipsis pingdanItemsName">玉</a> <a class="ChaRen">差1人</a> </div> <div class="pindanCenterTime">剩餘23:00:15:0</div> </div> <div class="pindanRight"> <div class="pindanRightBtn"> 去拼單</div> </div> </div> <div class="pingdanWindowItems"> <img class="pindanLeftImg" src="http://imsproductionimg.yangkeduo.com/9f29e42446c81f0cef0de27b5a34829d.jpg"> <div class="pindanCenter"> <div class="pindanCenterDiv"> <a class="mui-ellipsis pingdanItemsName">玉111</a> <a class="ChaRen">差1人</a> </div> <div class="pindanCenterTime">剩餘23:00:15:0</div> </div> <div class="pindanRight"> <div class="pindanRightBtn"> 去拼單</div> </div> </div> <div class="pingdanWindowItems ShiRen"> 僅顯示10個正在拼單的人 </div> </div> </div> </div> </div> <div id="PindanOnePopover" class="mui-popover" style="height: 250px;"> <div class="mui-popover-arrow"></div> <div class="PingDanPopoverTitle"> <a>參與木子李的拼單</a> <a id="PingdanOneClose" class="mui-icon mui-icon-closeempty"></a> </div> <div id="selectOnePindan" class="mui-scroll-wrapper" style="margin-top: 50px;"> <div class="mui-scroll"> <div class="OnePindanTop">僅剩 <a class="OnePindanTopName">1</a>個名額, <a class="OnePindanTopTime">23:15:50.1後結束</a> </div> <div class="OnePindanCenter"> <img class="OnePindanCenterLeft" src="http://avatar.yangkeduo.com/a/96ee74d21e7ed7db3ea43cb4b2b083c58081a755-1523176593?x-oss-process=image/resize,w_100"> <img class="OnePindanCenterRight" src="../../img/pindanWenhao.png"> </div> <div class="OnePindanCenter"> <div class="OnePindanGo">參與拼單</div> </div> </div> </div> </div> </div> <div class="footer"> <div class="footer-left"> <div class="footer-left1 order-item mui-bar-tab"> <div class="footer-left-icondiv" id="btn_Tab_gotoHome"> <div class="footer-left-icon"> <a class="mui-icon mui-icon-home"></a> </div> <div class="footer-left-font">首頁</div> </div> <div class="footer-left-icondiv" id="btn_Tab_Shoucang"> <div class="footer-left-icon"> <a class="mui-icon iconfont icon-shoucang"></a> </div> <div class="footer-left-font">收藏</div> </div> <div class="footer-left-icondiv" id="btn_Tab_Kefu"> <div class="footer-left-icon"> <a class="mui-icon iconfont icon-service"></a> </div> <div class="footer-left-font">客服</div> </div> </div> <div class="footer-left2" id="btn_Tab_Dandu"> <div class="footer-left-icon"> <a class="footer-left-money">¥13.8</a> </div> <div class="footer-left-font2">單獨購買</div> </div> </div> <div id="btn_Tab_GoPingdan" class="footer-right"> <div class="footer-left-icon"> <a class="footer-left-money">¥11.8</a> </div> <div class="footer-left-font2">發起拼單</div> </div> </div> <div id="sheet1" class="mui-popover mui-popover-bottom mui-popover-action "> <div class="ptyh"> 夏菊花卉專營店 <a id="closeYouhui" class="mui-icon mui-icon-closeempty mui-pull-right"></a> </div> <div class="box" data-price="3"> <div class="price"> <a class="price_unit">¥</a> <a class="price_num">3</a> </div> <div class="center"> <div class="priceAll">店鋪內滿30元可使用</div> <div class="time">有效期2017.8.25-2020-8.13</div> </div> <div class="select"> <span class="lingqumanjian">領取</span> </div> </div> <div class="box" data-price="5"> <div class="price"> <a class="price_unit">¥</a> <a class="price_num">5</a> </div> <div class="center"> <div class="priceAll">店鋪內滿50元可使用</div> <div class="time">有效期2017.8.25-2020-8.13</div> </div> <div class="select"> <span class="lingqumanjian">領取</span> </div> </div> <div style="height:100px;background: white;"> </div> </div> <div id="sheet2" class="mui-popover mui-popover-bottom mui-popover-action "> <div class="ptyh"> 服務說明 <a id="closeFuwu" class="mui-icon mui-icon-closeempty mui-pull-right"></a> </div> <div class="boxs boxsTopBorder"> <div class="youhuiBoxDiv"> <div class="youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-box-desc"> <a>全場包郵</a> </div> <div class="youhuiBoxItemDetails">所有商品無條件包郵</div> </div> </div> <div class="boxs"> <div class="youhuiBoxDiv"> <div class="youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-box-desc"> <a>7天退換</a> </div> <div class="youhuiBoxItemDetails">商家承諾7天無理由退換貨</div> </div> </div> <div class="boxs"> <div class="youhuiBoxDiv"> <div class="youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-box-desc"> <a>48小時發貨</a> </div> <div class="youhuiBoxItemDetails">若超時未發貨,商家將補償3元無門檻代金券</div> </div> </div> <div class="boxs"> <div class="youhuiBoxDiv"> <div class="youhui-details"> <a class="mui-icon mui-icon-checkmarkempty"></a> </div> <div class="youhui-box-desc"> <a>假一賠十</a> </div> <div class="youhuiBoxItemDetails">若收到的商品是假冒品牌,可獲得加倍賠償</div> </div> </div> <div style="height:100px;background: white;"> </div> </div> <div id="sheet3" class="mui-popover mui-popover-bottom mui-popover-action "> <img class="goPingdanImg" src="http://omsproductionimg.yangkeduo.com/images/2018-01-16/53b5180be4c7b8ff276e7b42eb9e3250.jpeg" /> <div class="goPingdanDiv"> <div class="goPingdanMoney">¥10.9</div> <div class="goPingdanSelectKuanshi">請選擇&nbsp;&nbsp;款式</div> </div> <div class="goPingdanKuanshi"> <div style="float: left;width: 100%;font-size: 14px;padding-top: 10px;padding-left: 10px;">款式</div> <div class="goPingdanKuanshiItem">混色滿天星1000粒+肥+生根粉</div> <div class="goPingdanKuanshiItem">薄荷滿天星1000粒+肥+生根粉</div> <div class="goPingdanKuanshiItem">淡紫色滿天星1000粒+肥+生根粉</div> <div class="goPingdanKuanshiItem">粉色滿天星1000粒+肥+生根粉</div> <div class="goPingdanKuanshiItem">紅錦滿天星1000粒+肥+生根粉</div> <div class="goPingdanKuanshiItem">黃色滿天星1000粒+肥+生根粉</div> <div class="goPingdanKuanshiItem">藍利滿天星1000粒+肥+生根粉</div> <div class="goPingdanKuanshiItem">宿根滿天星1000粒+肥+生根粉</div> </div> <div class="goPingdanNumDiv"> <div class="goPingdanNumFont">數量</div> <div class="goPingdanNumFontOperation"> <div id="goPingdanNumDel" class="goPingdanNumDel">-</div> <div id="goPingdanNumContent" class="goPingdanNumContent">1</div> <div id="goPingdanNumAdd" class="goPingdanNumAdd">+</div> </div> </div> <div class="goPingdanBtnDiv"> <div id="sure" class="goPingdanBtn">確定</div> </div> </div> <!--以下div勿刪 定位使用--> <div id="div"></div> <div id="goTop"> <a class="mui-icon mui-icon-arrowthinup"></a> </div> <script src="../../js/mui.min.js"></script> <script type="text/javascript" src="../../js/mui.zoom.js"></script> <script type="text/javascript" src="../../js/mui.previewimage.js"></script> <script src="../../js/jquery-1.11.0.min.js"></script> <script> mui.init(); mui('#selectAllPindan').scroll({ bounce: true, indicators: true, deceleration: mui.os.ios ? 0.003 : 0.0009 }); $("#goTop").addClass("hide"); //設定購買是已選規格div長度 var width = document.documentElement.clientWidth || document.body.clientWidth; $(".goPingdanDiv").css("width", width - 140 + "px") //控制拼單列表滾動 3s一次 var oMarquee = document.getElementById("cypdItem"); //滾動物件 var iLineHeight = 56; //單行高度,畫素 var iLineCount = 3; //實際行數 var iScrollAmount = 56; //每次滾動高度,畫素 function run() { oMarquee.scrollTop += iScrollAmount; if(oMarquee.scrollTop == iLineCount * iLineHeight) oMarquee.scrollTop = 0; if(oMarquee.scrollTop % iLineHeight == 0) { window.setTimeout("run()", 3000); } else { window.setTimeout("run()", 50); } } oMarquee.innerHTML += oMarquee.innerHTML; window.setTimeout("run()", 3000); mui.previewImage(); //商品詳情圖片滑動改變右下角數字 document.querySelector('#Topslider').addEventListener('slide', function(event) { var sliderImgCount = $(".mui-slider-item").length - 2; $("#topSliderNum").html(parseInt(event.detail.slideNumber + 1) + "/" + sliderImgCount) }); //檢視滿減詳情 document.getElementById("manjianLi").addEventListener("tap", function() { mui('#sheet1').popover('toggle'); }); //檢視保證詳情 document.getElementById("youhuiLi").addEventListener("tap", function() { mui('#sheet2').popover('toggle'); }); //關閉滿減閒情 document.getElementById("closeYouhui").addEventListener("tap", function() { mui('#sheet1').popover('toggle'); }) //關閉保證詳情 document.getElementById("closeFuwu").addEventListener("tap", function() { mui('#sheet2').popover('toggle'); }) //領取優惠券 mui("#sheet1").on("tap", ".lingqumanjian", function() { mui.alert("領取:" + $(this).parent().parent().attr("data-price") + "元優惠券") }) //檢視更多拼單 mui(".mui-table-view").on("tap", ".seemore", function() { mui("#middlePopover").popover('toggle', document.getElementById("div")); }) //關閉檢視更多拼單 document.getElementById("PingdanAllClose").addEventListener("tap", function() { mui("#middlePopover").popover('toggle', document.getElementById("div")); }) //檢視全部評價 mui(".mui-table-view").on("tap", ".seeall", function() { mui.openWindow({ url: "CommentDetails.html", id: "CommentDetails.html" }) }) //進店逛逛 document.getElementById("GoShopLook").addEventListener("tap", function() { mui.openWindow({ url: "GoToShop.html", id: "GoToShop.html" }) }) //點選評價分類 mui(".pingjiaBtn").on("tap", ".detail", function() { mui.openWindow({ url: "CommentDetails.html", id: "CommentDetails.html" }) }) //點選評價內容 mui(".pingjiaAll").on("tap", ".pingjiaList", function() { mui.openWindow({ url: "CommentDetails.html", id: "CommentDetails.html" }) }) //點選首頁 document.getElementById("btn_Tab_gotoHome").addEventListener("tap", function() { //首頁目前ID為HBuilder 釋出之後改為index.html var self = plus.webview.getWebviewById("HBuilder"); plus.webview.currentWebview().close(); mui.openWindow({ id: self.id }) }) //收藏 document.getElementById("btn_Tab_Shoucang").addEventListener("tap", function() { mui.alert("收藏"); }) //客服 document.getElementById("btn_Tab_Kefu").addEventListener("tap", function() { mui.alert("客服"); }) //頁面點選參與拼單模態框 mui(".cypddDiv").on("tap", ".cypdRightBtn", function() { mui("#PindanOnePopover").popover('toggle', document.getElementById("div")); }) //頁面點選去參與拼單 mui(".OnePindanCenter").on("tap", ".OnePindanGo", function() { mui('#sheet3').popover('toggle'); }) //關閉頁面參與拼單模態框 document.getElementById("PingdanOneClose").addEventListener("tap", function() { mui("#PindanOnePopover").popover('toggle', document.getElementById("div")); }) //檢視更多拼單模態框裡面去拼單按鈕 mui(".pindanRight").on("tap", ".pindanRightBtn", function() { mui("#PindanOnePopover").popover('toggle', document.getElementById("div")); }) //單獨購買 document.getElementById("btn_Tab_Dandu").addEventListener("tap", function() { var pindanPrice = $(this).children().children()[0].innerHTML; $(".goPingdanMoney").html(pindanPrice); mui('#sheet3').popover('toggle'); }) //發起拼單 document.getElementById("btn_Tab_GoPingdan").addEventListener("tap", function() { var pindanPrice = $(this).children().children()[0].innerHTML; $(".goPingdanMoney").html(pindanPrice); mui('#sheet3').popover('toggle'); }) //選擇款式 mui(".goPingdanKuanshi").on("tap", ".goPingdanKuanshiItem", function() { $(".goPingdanSelectKuanshi").html("已選:" + $(this).html()) mui(".goPingdanKuanshiItem").each(function(e) { $(this).removeClass("goPingdanKuanshiItem-Active"); }) if(mui(this)[0].classList.contains("goPingdanKuanshiItem-Active")) $(this).removeClass("goPingdanKuanshiItem-Active") else $(this).addClass("goPingdanKuanshiItem-Active") }) if($("#goPingdanNumContent").html().trim() > 1) { $("#goPingdanNumDel").css("background", "#e0e0e0"); } //數量+1 document.getElementById("goPingdanNumAdd").addEventListener("tap", function() { if(parseInt($("#goPingdanNumContent").html().trim()) + 1 == 2) $("#goPingdanNumDel").css("background", "#e0e0e0"); $("#goPingdanNumContent").html(parseInt($("#goPingdanNumContent").html().trim()) + 1) }) //數量-1 document.getElementById("goPingdanNumDel").addEventListener("tap", function() { if($("#goPingdanNumContent").html().trim() == "1") { mui.toast("已經不能再減少啦~") return; } if(parseInt($("#goPingdanNumContent").html().trim()) - 1 == 1) $("#goPingdanNumDel").css("background", "#f2f2f2"); $("#goPingdanNumContent").html(parseInt($("#goPingdanNumContent").html().trim()) - 1) }) //確定 document.getElementById("sure").addEventListener("tap", function() { mui.openWindow({ url: "PlaceOrder.html", id: "PlaceOrder.html" }) }) //回到頂部 document.getElementById("goTop").addEventListener("tap", function() { mui.scrollTo(0, 100); }) //返回頂部按鈕在頂部不顯示 一定距離後顯示 var scrollToTopBox = document.getElementById('goTop'); window.addEventListener('scroll', function(e) { if(window.pageYOffset >= window.innerHeight && scrollToTopBox.classList.contains('hide')) { scrollToTopBox.classList.remove('hide'); } else if(window.pageYOffset < window.innerHeight && !scrollToTopBox.classList.contains('hide')) { scrollToTopBox.classList.add('hide'); } }); </script> </body> </html>