Procházet zdrojové kódy

[解除注释][修改]:解除注释

tags/2.2.5
meo před 6 roky
rodič
revize
a5241e5bc6
4 změnil soubory, kde provedl 4 přidání a 18 odebrání
  1. +1
    -13
      pages/index/index.js
  2. +1
    -1
      pages/index/index.wxml
  3. +2
    -3
      pages/user/index.wxml
  4. +0
    -1
      pages/user/index.wxss

+ 1
- 13
pages/index/index.js Zobrazit soubor

@@ -32,21 +32,16 @@ Page({
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onLoad: function(options) { onLoad: function(options) {
console.log(options,2222222)
if(options.played=="true"){ if(options.played=="true"){
this.setData({ this.setData({
played:true played:true
}) })
} }
var that = this; var that = this;
console.log(options);
console.log("这是options")
var scene = decodeURIComponent(options.scene); var scene = decodeURIComponent(options.scene);
that.setData({ that.setData({
scene:scene scene:scene
}); });
// console.log(that.data.scene)
// console.log(scene);
app.getLocation(); app.getLocation();
if (options.couponChannelId && options.couponId){ if (options.couponChannelId && options.couponId){
that.userLogin(options.couponChannelId, options.couponId); that.userLogin(options.couponChannelId, options.couponId);
@@ -60,9 +55,7 @@ Page({
} }
}) })
.then(res=>{ .then(res=>{
// console.log(res.data.weapNote);
let weapNote = JSON.parse(res.data.weapNote); let weapNote = JSON.parse(res.data.weapNote);
// console.log(weapNote.firstpage);
that.setData({ that.setData({
desc: weapNote.firstpage.desc, desc: weapNote.firstpage.desc,
title: weapNote.firstpage.title title: weapNote.firstpage.title
@@ -70,7 +63,6 @@ Page({
}) })
}, },
onShow:function(){ onShow:function(){
// console.log(app.globalData.havePlayEd)
this.setData({ this.setData({
havePlayEd: app.globalData.havePlayEd ? app.globalData.havePlayEd:false havePlayEd: app.globalData.havePlayEd ? app.globalData.havePlayEd:false
}) })
@@ -118,7 +110,6 @@ Page({
}) => { }) => {
wx.getSystemInfo({ wx.getSystemInfo({
success: function (res) { success: function (res) {
// console.log(JSON.stringify(res))
that.setData({ that.setData({
systemInfo: JSON.stringify(res) systemInfo: JSON.stringify(res)
}) })
@@ -157,10 +148,7 @@ Page({
that.setData({ that.setData({
showGame: true showGame: true
}) })
/**
* 暂时注释
*/
// that.getGameOne(res.data.token)
that.getGameOne(res.data.token)
} }
Http.setToken(res.data.token); Http.setToken(res.data.token);
that.checkUserCarStatus(); that.checkUserCarStatus();


+ 1
- 1
pages/index/index.wxml Zobrazit soubor

@@ -9,5 +9,5 @@
<text>独家福利,抢完即止</text> <text>独家福利,抢完即止</text>
</view> --> </view> -->
<c-coupons id="lists" bind:myevent="onGetCode" /> <c-coupons id="lists" bind:myevent="onGetCode" />
<!-- <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" /> -->
<g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" />
</view> </view>

+ 2
- 3
pages/user/index.wxml Zobrazit soubor

@@ -13,9 +13,8 @@
<image src='./../../assets/img/redirect.png' mode='widthFix'></image> <image src='./../../assets/img/redirect.png' mode='widthFix'></image>
</view> </view>
</view> </view>
<!-- <view class='chengzhang1' bindtap='gotoedit'> -->
<view class='chengzhang1'>
<!-- <text style="color:#01bffe;">编辑</text> -->
<view class='chengzhang1' bindtap='gotoedit'>
<text style="color:#01bffe;">编辑</text>
<image class='activeimg' src='./../../assets/img/active.gif' mode='widthFix'></image> <image class='activeimg' src='./../../assets/img/active.gif' mode='widthFix'></image>
</view> </view>
</view> </view>


+ 0
- 1
pages/user/index.wxss Zobrazit soubor

@@ -233,7 +233,6 @@
display: block; display: block;
} }
.activeimg{ .activeimg{
display: none;
width: 200rpx!important; width: 200rpx!important;
position: absolute; position: absolute;
bottom: 0; bottom: 0;


Načítá se…
Zrušit
Uložit