From d68a36b92a0df03cb631d1b34ed01ce4710a74eb Mon Sep 17 00:00:00 2001
From: meo <18801474720@163.com>
Date: Mon, 12 Nov 2018 13:04:51 +0800
Subject: [PATCH] =?UTF-8?q?[=E9=97=AE=E5=8D=B7=E8=B0=83=E6=9F=A5][?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9]:=E9=97=AE=E5=8D=B7=E8=B0=83=E6=9F=A5?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/coupon/detail/index.js | 19 ++++++++++---------
pages/coupon/detail/index.wxml | 6 +++---
pages/coupon/detail/index.wxss | 6 +-----
3 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js
index 6c49cce..397192e 100644
--- a/pages/coupon/detail/index.js
+++ b/pages/coupon/detail/index.js
@@ -33,9 +33,7 @@ Page({
scaleData: null,
skewData: null,
matrixData: null,
- // flag: false,
- scale01:0,
- opacity01:0,
+ opacity:0,
queueData:null,
zIndex:11,
display:null
@@ -96,13 +94,16 @@ Page({
closeQuestion: function () {
let that = this;
- that.setData({
- display:"none",
- zIndex: 11,
- })
+ setTimeout(function(){
+ that.setData({
+ display: "none",
+ zIndex: 11,
+ opacity: 0
+ })
+ },500)
setTimeout(function () {
that.orderFunc();
- }, 300)
+ }, 500)
},
/**
* gotopay
@@ -128,7 +129,7 @@ Page({
} else if (res.data) {
var animation = wx.createAnimation({});
animation.translate((that.data.widthScreen - that.data.widthScreen), 0).scale(1).opacity(1).step({
- duration: 1000
+ duration: 500
})
that.setData({
diff --git a/pages/coupon/detail/index.wxml b/pages/coupon/detail/index.wxml
index da13fd6..8201cc1 100644
--- a/pages/coupon/detail/index.wxml
+++ b/pages/coupon/detail/index.wxml
@@ -4,7 +4,7 @@
-
+
-
+
@@ -89,7 +89,7 @@
-
+
diff --git a/pages/coupon/detail/index.wxss b/pages/coupon/detail/index.wxss
index de51609..9cd89b4 100644
--- a/pages/coupon/detail/index.wxss
+++ b/pages/coupon/detail/index.wxss
@@ -23,14 +23,12 @@ page {
}
.coupons_info {
- position: relative;
width: 92%;
padding: 0 4%;
background: #fff;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
margin-top: -25rpx;
- z-index: 3;
}
.fenxiang {
@@ -48,7 +46,7 @@ page {
}
.user-motto {
- width: 100%;
+ width: 100rpx;
border: 0;
background: none;
height: 60rpx;
@@ -286,14 +284,12 @@ page {
}
.tel {
- position: absolute;
right: 0;
top: 0;
bottom: 0;
margin: auto;
width: 50rpx;
height: 50rpx;
- z-index: 3;
}
.txt {