瀏覽代碼

[游戏][修改]:[修改游戏专场]

tags/河北版C.8.1.01
meo 5 年之前
父節點
當前提交
dad9b6bacb
共有 4 個文件被更改,包括 54 次插入44 次删除
  1. +49
    -40
      pages/main/index.js
  2. +3
    -3
      pages/main/index.wxml
  3. +1
    -0
      pages/radetail/index.wxml
  4. +1
    -1
      pages/spellGroup/spellGroup.wxss

+ 49
- 40
pages/main/index.js 查看文件

@@ -145,48 +145,57 @@ Page({
},
gotogame: function() {
let that = this;
Http.get({
if (!that.data.showIf){
wx.showToast({
title: '暂无游戏频道',
icon:"none",
duration:3000
})
}else{
Http.get({
url: config.api.checkPhoneStatus,
data: {}
})
.then(res => {
var data = {
couponChannelId: "" + that.data.couponChannelId,
couponId: "" + that.data.couponId
};
if (that.data.couponChannelId == null) {
.then(res => {
var data = {
couponChannelId: "" + that.data.couponChannelId,
couponId: "" + that.data.couponId
};
}
wx.redirectTo({
url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId,
})
})
.catch(err => {
if (err.code == 11005) {
// 用户手机未授权
/**
* 将值传到用户手机号授权的页面
*
*/
wx.redirectTo({
url: "/pages/getphoneInfo/index?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId,
});
} else if (err.code == 11006) {
// 用户手机已加密
if (that.data.couponChannelId == null) {
var data = {
couponId: "" + that.data.couponId
};
}
wx.redirectTo({
url: "/pages/phoneinput/phoneinput?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId,
});
} else {
wx.showToast({
title: err.message,
icon: 'none',
duration: 2000,
mask: false
});
}
})
url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId,
})
})
.catch(err => {
if (err.code == 11005) {
// 用户手机未授权
/**
* 将值传到用户手机号授权的页面
*
*/
wx.redirectTo({
url: "/pages/getphoneInfo/index?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId,
});
} else if (err.code == 11006) {
// 用户手机已加密
wx.redirectTo({
url: "/pages/phoneinput/phoneinput?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId,
});
} else {
wx.showToast({
title: err.message,
icon: 'none',
duration: 2000,
mask: false
});
}
})
}
},
mySpecial: function() {
console.log("special");
@@ -305,11 +314,11 @@ Page({
url: '/pages/discountCardList/discountCardList',
})
},
gotoGame: function () {
wx.navigateTo({
url: '/pages/game/index',
})
},
// gotoGame: function () {
// wx.navigateTo({
// url: '/pages/game/index',
// })
// },
gotoJfsc: function () {
wx.navigateTo({
url: '/pages/integralmall/index',


+ 3
- 3
pages/main/index.wxml 查看文件

@@ -51,7 +51,7 @@
</view>
<view class='kjBox' bindtap='gotogame' >
<image src='{{xingyun}}' mode='aspectFill' bindtap=''></image>
<text>幸运卡牌</text>
<text>游戏频道</text>
</view>
<view class='kjBox' bindtap='gotoJfsc'>
<image src='{{jfshangcheng}}' mode='aspectFill'></image>
@@ -91,12 +91,12 @@
<!-- 拼团专场 -->
<!-- <c-spellGroup id="spellGroup"/> -->
<!-- 小游戏暂时注释 -->
<view class='game' wx-if="{{showIf}}">
<!-- <view class='game' wx-if="{{showIf}}">
<view class='game-entry'>
<image src="{{guanbi1}}" bindtap="close" style='width:30rpx;height:30rpx;position:absolute;right:0;top:-20rpx;' mode='widthFix'></image>
<image src="{{usergift}}" bindtap="gotogame" class='gameimg' mode='widthFix'></image>
</view>
</view>
</view> -->
<!-- 限时抢购和消费卡 -->
<!-- <c-rushtobyCard id="rushtobyCard"/> -->
<c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" />


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

@@ -13,6 +13,7 @@
<view class='box'>
<view class='act'>
<view class='fenxiang' bindtap='showshare'>
<button class='share user-motto' open-type="share" style="height:48rpx;width:100rpx;position: absolute;top: 10rpx;right: 10rpx;background: transparent;" hover-class="other-button-hover"></button>
<image src='{{fenxiang}}' mode="widthFix"></image>
<text class='gift'>分享</text>
</view>


+ 1
- 1
pages/spellGroup/spellGroup.wxss 查看文件

@@ -289,7 +289,7 @@ image{
.no-data{
width: 690rpx;
padding-top: 174rpx;
height: calc(100vh - 160rpx);
height: calc(100vh - 300rpx);
background: #fff;
margin: 0 auto;
border-radius:15rpx;


Loading…
取消
儲存