瀏覽代碼

[分享点开][修改][没有广告弹出]

tags/C.10.02
hurui 5 年之前
父節點
當前提交
22f88b6030
共有 5 個檔案被更改,包括 33 行新增12 行删除
  1. +1
    -1
      components/advertisement/advertisement.js
  2. +3
    -1
      pages/coupon/detail/index.js
  3. +24
    -9
      pages/integralmall/index.js
  4. +1
    -1
      pages/integralmall/index.wxml
  5. +4
    -0
      pages/orderquanma/index.wxss

+ 1
- 1
components/advertisement/advertisement.js 查看文件

@@ -16,7 +16,7 @@ Component({
gotoGg: function (e) {
let that = this;
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 () {


+ 3
- 1
pages/coupon/detail/index.js 查看文件

@@ -384,6 +384,9 @@ Page({
*/
onLoad(options) {
let that = this;
if (options.g){
app.globalData.havePlayEd1 = true;
}
wx.showLoading({
title: "加载中..."
});
@@ -931,7 +934,6 @@ Page({
})
},
onShow() {
app.globalData.havePlayEd1 = true;
this.setData({
showbutton: false,
showbutton1: false


+ 24
- 9
pages/integralmall/index.js 查看文件

@@ -30,9 +30,8 @@ Page({
reloadIf: false,
creditAmount: 0,
score: '0',
sort:imgurl.sort.url,
up:imgurl.up.url,
down:imgurl.down.url
sort:'',
hidden:false
},
qrcodeH: function () {
var that = this;
@@ -192,16 +191,28 @@ Page({
},
//所需积分
need(e){
need: function (e) {
console.log(this.data.hidden)
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) {
var that = this;
if (that.data.allow_load) {
@@ -307,5 +318,9 @@ Page({
let that = this;
that.getList(1);
that.getPoints();
that.setData({
sort : ''
})
}
})

+ 1
- 1
pages/integralmall/index.wxml 查看文件

@@ -45,7 +45,7 @@
<view bindtap='can'>我可换购</view>
<view class='need' bindtap='need'>
<text>所需积分</text>
<image src='{{sort}}' moda="aspectFill" ></image>
<image wx:if="{{sort }}" src='{{sort}}' moda="aspectFill" ></image>
</view>
</view>
<view class='content' wx:if='{{lists.length>0}}'>


+ 4
- 0
pages/orderquanma/index.wxss 查看文件

@@ -4,6 +4,10 @@
height: 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 {
position: relative;
background: #fff;


Loading…
取消
儲存