Parcourir la source

[限时抢购][修改][展示逻辑]

tags/河北版C.8.1.01
rui il y a 5 ans
Parent
révision
d177d85f5c
9 fichiers modifiés avec 30 ajouts et 16 suppressions
  1. +7
    -5
      components/hot/index.js
  2. +1
    -1
      components/hot/index.wxml
  3. +1
    -1
      components/hot/index.wxss
  4. +6
    -6
      pages/index/searchbar/detail/index.wxml
  5. +4
    -0
      pages/index/searchbar/detail/index.wxss
  6. +1
    -1
      pages/index/searchbar/index.wxml
  7. +8
    -1
      pages/main/index.js
  8. +1
    -1
      pages/main/index.wxml
  9. +1
    -0
      pages/passCar/passCar.js

+ 7
- 5
components/hot/index.js Voir le fichier

@@ -53,7 +53,8 @@ Component({
if(val=='1'){
that.setData({
kData: res.data,
couponId: res.data.couponId
couponId: res.data.couponId,
// title:res.data.
});
}else{
that.setData({
@@ -76,10 +77,11 @@ Component({
},
// 换一换
getChange(){
if (this.data.couponId){
let that = this;
if (that.data.couponId){
this.getList(1)
}
if (this.data.couponId1) {
if (that.data.couponId1) {
this.getList(2)
}
},
@@ -111,8 +113,8 @@ Component({
ready() {
app.couponChannelListCallback = (token,val) => {
Http.setToken(token);
this.getList('1');
this.getList('2');
this.getList(1);
this.getList(2);
};
if (app.globalData.token && app.globalData.token != null) {
app.couponChannelListCallback(app.globalData.token);


+ 1
- 1
components/hot/index.wxml Voir le fichier

@@ -5,7 +5,7 @@
<view class='sql' style='background:{{sql}}'></view>
<text>爆款专区</text>
</view>
<view class='titleR' bindtap='getChange' >
<view class='titleR' bindtap='getChange' wx:if='{{kData.id || pData.id}}' >
<text style='color:{{txt}}'>换一换</text>
<view>
<image src='{{change}}' bindtap='' mode='aspectFill'></image>


+ 1
- 1
components/hot/index.wxss Voir le fichier

@@ -3,7 +3,7 @@
.hotBox{
width:710rpx;
height: 220rpx;
margin: 0 auto 20rpx;
margin: 20rpx auto 0;
}
.hotTitle{
width: 100%;


+ 6
- 6
pages/index/searchbar/detail/index.wxml Voir le fichier

@@ -29,7 +29,7 @@
</view>
<!-- 一个商铺 -->
<!-- 多个商铺 -->
<view class='merchant-shop'>
<view class='merchant-shop shopHr'>
<view class='clearfix' style='width:100%;'>
<view class='fl'>
<text>商户位置:</text>
@@ -42,7 +42,7 @@
</view>
</view>
<!-- 联系方式 -->
<view class='merchant-shop' wx:if="{{data.linkLinePhone}}">
<view class='merchant-shop shopHr' wx:if="{{data.linkLinePhone}}">
<view class='clearfix' style='width:100%;'>
<view class='fl'>
<text>客服电话:</text>
@@ -57,7 +57,7 @@
</view>
</view>
<!-- 商户活动 -->
<view class='merchant-shop' wx:if="{{data.actionDesc}}" >
<view class='merchant-shop shopHr' wx:if="{{data.actionDesc}}" >
<view class='notes'>
<view>
<text>商户活动</text>
@@ -97,10 +97,10 @@
<view class='loadingtext' wx:if="{{loadingtext}}">{{loadingtext}}</view>
</view>
<!-- 商户简介 -->
<view wx:elif="{{currentTab==1}}">
<image src="{{noMerchant}}" mode="widthFix"></image>
<view wx:elif="{{currentTab==1}}" >
<image src="{{noMerchant}}" wx:if="{{!data.introduction}}" mode="widthFix"></image>
<text wx:if="{{data.introduction}}">{{data.introduction}}</text>
<text wx:else>信息完善中,敬请期待~</text>
<text wx:if="{{!data.introduction}}">信息完善中,敬请期待~</text>
</view>
</view>
<view class='merchant-info'>


+ 4
- 0
pages/index/searchbar/detail/index.wxss Voir le fichier

@@ -75,6 +75,7 @@ page{
font-family:PingFangSC-Regular;
font-weight:400;
color:rgba(60,60,60,1);
margin-top: 20rpx;
}
/* .merchant-brand view:nth-child(1) image {
display: block;
@@ -221,6 +222,9 @@ page{
width: 92%;
margin: 0 auto;
}
.shopHr{
margin-bottom: 20rpx;
}
.tabs-item.selected {
color: rgba(171, 149, 109, 0.8);
border-bottom: 2px solid rgba(171, 149, 109, 0.8);


+ 1
- 1
pages/index/searchbar/index.wxml Voir le fichier

@@ -3,7 +3,7 @@
<view style="padding-top:{{navigationBarHeight}}">
<view class='under_line'></view>
<view style='float: left' class='left'>
<scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px'>
<scroll-view scroll-y scroll-with-animation scroll-left="{{scrollLength}}" class='scrollY' style='height: {{windowHeight}}px;padding-top:{{navigationBarHeight}}'>
<view class='all clear'>
<block wx:for="{{lists}}" wx:key="{{index}}">
<view bindtap='jumpIndex' data-menuindex='{{item.id}}'>


+ 8
- 1
pages/main/index.js Voir le fichier

@@ -58,6 +58,7 @@ Page({
scrollTop: 0,
showGame: false,
showTopic: false,
showQg:false,
gamedata: {},
couponId: '', //游戏返回时传回的字段
played: false, //从游戏页面跳回首页返回true
@@ -464,7 +465,12 @@ Page({
if (res && res.data) {
that.setData({
xslist: res.data.list,
showQg:true
});
}else{
that.setData({
showQg:false
})
}
})
.catch(err => {
@@ -617,11 +623,12 @@ Page({
wx.stopPullDownRefresh();
};
// 砍价下拉刷新
that.selectComponent("#hot").getList();
// that.selectComponent("#bargain").getList();
// that.selectComponent("#spellGroup").getList();
// that.selectComponent("#rushtobyCard").getList();
wx.stopPullDownRefresh();
//砍价,拼团下拉刷新
that.selectComponent("#hot").getList();
},
//加载更多
onReachBottom: function() {


+ 1
- 1
pages/main/index.wxml Voir le fichier

@@ -59,7 +59,7 @@
</view>
</view>
<!-- 每日头条 限时抢购 -->
<view class='toutiao' bindtap='gotoRushBuy'>
<view class='toutiao' bindtap='gotoRushBuy' wx:if="{{showQg}}">
<view class='imgBox'>
<image src='{{toutiao}}' mode='aspectFill'></image>
</view>


+ 1
- 0
pages/passCar/passCar.js Voir le fichier

@@ -9,6 +9,7 @@ const imgurl = require("../../utils/imgurl");
Page({
data: {
navigationBarHeight,
jianUrl: imgurl.jian.url,
parkUrl: imgurl.park.url,
guanliHr: imgurl.guanliHr.url,
qidaiUrl: imgurl.qidai.url,


Chargement…
Annuler
Enregistrer