Browse Source

[首页][删除]:[删除没有用的代码]

tags/河北版C.8.2.0^2
meo 5 years ago
parent
commit
8ba321bf73
4 changed files with 3 additions and 59 deletions
  1. +1
    -1
      app.wxss
  2. +1
    -3
      pages/acSignIn/index.js
  3. +1
    -13
      pages/main/index.js
  4. +0
    -42
      pages/main/index.wxml

+ 1
- 1
app.wxss View File

@@ -1,4 +1,4 @@
@import "weui.wxss";
/* @import "weui.wxss"; */


@font-face { @font-face {
font-family: "iconfont"; /* project id 777313 */ font-family: "iconfont"; /* project id 777313 */


+ 1
- 3
pages/acSignIn/index.js View File

@@ -23,7 +23,6 @@ Page({
}) })
} }
}, },
// pages/index/searchbar/index
signIn(id){ signIn(id){
let that = this; let that = this;
Http.post({ Http.post({
@@ -55,11 +54,10 @@ Page({
title: '此活动报名已结束', title: '此活动报名已结束',
}) })
} }
}, },
goback: function () { goback: function () {
wx.switchTab({ wx.switchTab({
url: '/pages/main/index', url: '/pages/main/index',
}) })
},
}
}) })

+ 1
- 13
pages/main/index.js View File

@@ -69,15 +69,7 @@ Page({
display: 'none', display: 'none',
display1: 'none', display1: 'none',
optionsData: null, optionsData: null,
credit: 0,
score: '0',
page: 1 ,// 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载
topicTitle:'',
},
close: function() {
this.setData({
showIf: false
})
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载
}, },
alphaClick: function(even) { alphaClick: function(even) {
var animation = wx.createAnimation({}) var animation = wx.createAnimation({})
@@ -272,13 +264,10 @@ Page({
levelName: res.data.levelName, levelName: res.data.levelName,
upgradePercent: res.data.upgradePercent, upgradePercent: res.data.upgradePercent,
upgradeScore: res.data.upgradeScore, upgradeScore: res.data.upgradeScore,
credit: res.data.credit ? res.data.credit : 0,
score: res.data.score
}) })
if (res.data.nickName) { if (res.data.nickName) {
that.setData({ that.setData({
ismember: true,
memberId: res.data.id memberId: res.data.id
}) })
var initUrl = JSON.stringify({ var initUrl = JSON.stringify({
@@ -528,7 +517,6 @@ Page({
that.setData({ that.setData({
name: res.data.name, name: res.data.name,
cover: res.data.cover, cover: res.data.cover,
topicTitle: res.data.title,
id: res.data.id, id: res.data.id,
showTopic: true showTopic: true
}) })


+ 0
- 42
pages/main/index.wxml View File

@@ -16,19 +16,10 @@
</view> </view>
</view> </view>
<view class="view"> <view class="view">
<!-- 成长值<text class="score">{{score}}</text> -->
<progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" /> <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" />
<view class='remainchengzhangzhi'>还需{{upgradeScore}}成长值可升级</view> <view class='remainchengzhangzhi'>还需{{upgradeScore}}成长值可升级</view>
</view> </view>
</view> </view>
<!-- 积分 -->
<!-- <view class='fl integral' bindtap='gotouser'>
<view class='clearfix'>
<text class='jifen fl'>积分</text>
<text class='jifenNumber fl'>{{credit}}</text>
</view>
<image src="{{duihuan}}" class='duihuanimg' mode='widthFix'></image>
</view> -->
</view> </view>
<!-- 二维码 --> <!-- 二维码 -->
@@ -72,44 +63,11 @@
</view> </view>
<view class='qg' style='border-color:{{qg}}'>抢购</view> <view class='qg' style='border-color:{{qg}}'>抢购</view>
</view> </view>
<!-- 专题 -->
<!-- <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'>
<view class='gift' >
<image src='{{giftHr}}' mode='aspectFill' ></image>
</view>
<view class='textBox'>
<view class='name'>{{name}}</view>
<view class='title'>{{topicTitle}}</view>
</view>
<view class='next'>
<image src='{{next}}' mode='widthFix' ></image>
</view>
</view> -->
<!-- 爆款专区 --> <!-- 爆款专区 -->
<c-hot id="hot"/> <c-hot id="hot"/>
<view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'> <view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'>
<image src='{{cover}}' mode='widthFix' ></image> <image src='{{cover}}' mode='widthFix' ></image>
<!-- <view class='textBox'>
<view class='name'>{{name}}</view>
<view class='title'>{{topicTitle}}</view>
</view>
<view class='next'>
<image src='{{next}}' mode='aspectFill' ></image>
</view> -->
</view> </view>
<!-- 砍价专场 -->
<!-- <c-bargain id="bargain"/> -->
<!-- 拼团专场 -->
<!-- <c-spellGroup id="spellGroup"/> -->
<!-- 小游戏暂时注释 -->
<!-- <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> -->
<!-- 限时抢购和消费卡 -->
<!-- <c-rushtobyCard id="rushtobyCard"/> -->
<c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" /> <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" />
<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>


Loading…
Cancel
Save