diff --git a/pages/spellDetail/index.js b/pages/spellDetail/index.js index 43b92e6..c454cad 100644 --- a/pages/spellDetail/index.js +++ b/pages/spellDetail/index.js @@ -12,6 +12,7 @@ Page({ tuanzhang: imgurl.tuanzhang.url, spellBg: imgurl.spellBg.url, position: imgurl.position.url, + close03: imgurl.close03.url, paramData:null, data:null, clock: "00", @@ -20,7 +21,8 @@ Page({ min: "00", sec: "00", spellStatusList: spellStatus, - isMyself:false + isMyself:false, + showAlert:false }, gotoAgain(){ let data = this.data.data; @@ -133,6 +135,18 @@ Page({ that.countdown(end_time); }, 1000) }, + //关闭弹框 + gotoClose(){ + this.setData({ + showAlert:false + }) + }, + //跳转拼团列表 + gotoSpellList(){ + wx.navigateTo({ + url: '/pages/spellGroup/spellGroup', + }) + }, getDetail(){ let that = this; Http.get({ @@ -154,6 +168,11 @@ Page({ let a={}; data.userList.push(a) } + if (res.data.couponStatus!=0){ + that.setData({ + showAlert: true + }) + } that.setData({ data:res.data }) diff --git a/pages/spellDetail/index.wxml b/pages/spellDetail/index.wxml index 902979f..3718978 100644 --- a/pages/spellDetail/index.wxml +++ b/pages/spellDetail/index.wxml @@ -112,8 +112,18 @@ - - - + + + + + + + + + + 商品已下架 + + + diff --git a/pages/spellDetail/index.wxss b/pages/spellDetail/index.wxss index 31dc406..18721d9 100644 --- a/pages/spellDetail/index.wxss +++ b/pages/spellDetail/index.wxss @@ -292,4 +292,52 @@ page { border-radius:47rpx; color:#333333; margin-bottom: 50rpx; +} +.alert-bg{ + width: 100%; + height: 100vh; + position: fixed; + opacity: 0.7; + background: #000; + top: 0; + left: 0; + z-index: 200; +} +.alert-box{ + width: 600rpx; + height: 332rpx; + position: fixed; + z-index: 300; + background: #fff; + top: 50vh; + margin-top: -162rpx; + left: 85rpx; + border-radius:15rpx; +} +.alert-close{ + position: absolute; + width: 47rpx; + height: 98rpx; + top: -98rpx; + right: 0; +} +.alert-close image{ + width: 47rpx; + height: 98rpx; +} +.alert-title{ + text-align: center; + font-size:30rpx; + line-height: 30rpx; + margin-top: 79rpx; + font-family:PingFang-SC-Medium; + font-weight:500; + color:rgba(51,51,51,1); +} +.alert-button .share{ + width:500rpx; + height:95rpx; + background:linear-gradient(90deg,rgba(248,85,45,1) 0%,rgba(241,60,66,1) 0%,rgba(248,86,46,1) 100%); + border-radius:47rpx; + margin-top: 79rpx; } \ No newline at end of file diff --git a/utils/imgurl.js b/utils/imgurl.js index 46eda9a..bec25f3 100644 --- a/utils/imgurl.js +++ b/utils/imgurl.js @@ -376,4 +376,8 @@ module.exports = { 'url': baseUrl + 'position.png', 'name': '地理位置图标' }, + 'close03': { + 'url': baseUrl + 'close03.png', + 'name': '拼团页面关闭图标' + }, } \ No newline at end of file