| @@ -16,7 +16,7 @@ Component({ | |||||
| gotoGg: function (e) { | gotoGg: function (e) { | ||||
| let that = this; | let that = this; | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '/pages/coupon/detail/index?couponChannelId=' + e.currentTarget.dataset.data.produceId, | |||||
| url: '/pages/coupon/detail/index?couponChannelId=' + e.currentTarget.dataset.data.produceId+'&g=1', | |||||
| }) | }) | ||||
| }, | }, | ||||
| a: function () { | a: function () { | ||||
| @@ -384,6 +384,9 @@ Page({ | |||||
| */ | */ | ||||
| onLoad(options) { | onLoad(options) { | ||||
| let that = this; | let that = this; | ||||
| if (options.g){ | |||||
| app.globalData.havePlayEd1 = true; | |||||
| } | |||||
| wx.showLoading({ | wx.showLoading({ | ||||
| title: "加载中..." | title: "加载中..." | ||||
| }); | }); | ||||
| @@ -931,7 +934,6 @@ Page({ | |||||
| }) | }) | ||||
| }, | }, | ||||
| onShow() { | onShow() { | ||||
| app.globalData.havePlayEd1 = true; | |||||
| this.setData({ | this.setData({ | ||||
| showbutton: false, | showbutton: false, | ||||
| showbutton1: false | showbutton1: false | ||||
| @@ -30,9 +30,8 @@ Page({ | |||||
| reloadIf: false, | reloadIf: false, | ||||
| creditAmount: 0, | creditAmount: 0, | ||||
| score: '0', | score: '0', | ||||
| sort:imgurl.sort.url, | |||||
| up:imgurl.up.url, | |||||
| down:imgurl.down.url | |||||
| sort:'', | |||||
| hidden:false | |||||
| }, | }, | ||||
| qrcodeH: function () { | qrcodeH: function () { | ||||
| var that = this; | var that = this; | ||||
| @@ -192,16 +191,28 @@ Page({ | |||||
| }, | }, | ||||
| //所需积分 | //所需积分 | ||||
| need(e){ | |||||
| need: function (e) { | |||||
| console.log(this.data.hidden) | |||||
| var that = this; | var that = this; | ||||
| // if() | |||||
| console.log(e.target) | |||||
| let clickNum = [] | |||||
| var hid = this.data.hidden; | |||||
| if (hid == true) { | |||||
| hid = false; | |||||
| that.setData({ | |||||
| sort :imgurl.up.url | |||||
| }) | |||||
| that.setData({ | |||||
| sort :imgurl.down.url | |||||
| } | |||||
| else { | |||||
| hid = true; | |||||
| that.setData({ | |||||
| sort: imgurl.down.url | |||||
| }) | |||||
| } | |||||
| this.setData({ | |||||
| hidden: hid // 改变状态 | |||||
| }) | }) | ||||
| }, | }, | ||||
| //sortColumn=shopNumber&sortOrder=desc | |||||
| getList(pageNum) { | getList(pageNum) { | ||||
| var that = this; | var that = this; | ||||
| if (that.data.allow_load) { | if (that.data.allow_load) { | ||||
| @@ -307,5 +318,9 @@ Page({ | |||||
| let that = this; | let that = this; | ||||
| that.getList(1); | that.getList(1); | ||||
| that.getPoints(); | that.getPoints(); | ||||
| that.setData({ | |||||
| sort : '' | |||||
| }) | |||||
| } | } | ||||
| }) | }) | ||||
| @@ -45,7 +45,7 @@ | |||||
| <view bindtap='can'>我可换购</view> | <view bindtap='can'>我可换购</view> | ||||
| <view class='need' bindtap='need'> | <view class='need' bindtap='need'> | ||||
| <text>所需积分</text> | <text>所需积分</text> | ||||
| <image src='{{sort}}' moda="aspectFill" ></image> | |||||
| <image wx:if="{{sort }}" src='{{sort}}' moda="aspectFill" ></image> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class='content' wx:if='{{lists.length>0}}'> | <view class='content' wx:if='{{lists.length>0}}'> | ||||
| @@ -4,6 +4,10 @@ | |||||
| height: 100%; | height: 100%; | ||||
| background:linear-gradient(180deg,rgba(253,131,45,1) 0%,rgba(254,74,22,1) 100%); | background:linear-gradient(180deg,rgba(253,131,45,1) 0%,rgba(254,74,22,1) 100%); | ||||
| } | } | ||||
| page { | |||||
| background: linear-gradient(180deg,rgba(253,131,45,1) 0%,rgba(254,74,22,1) 100%); | |||||
| height: auto !important; | |||||
| } | |||||
| .couponbg { | .couponbg { | ||||
| position: relative; | position: relative; | ||||
| background: #fff; | background: #fff; | ||||