Browse Source

[砍价详情页][修改][顶部]

tags/河北版C.8.1.01
hurui 5 years ago
parent
commit
84ad2715c9
8 changed files with 25 additions and 18 deletions
  1. +11
    -7
      components/hot/index.js
  2. +1
    -1
      components/hot/index.wxml
  3. +1
    -1
      pages/bargain/bargain.js
  4. +2
    -0
      pages/bargain/bargainDatail/bargainDatail.js
  5. +4
    -1
      pages/bargain/bargainDatail/bargainDatail.json
  6. +2
    -1
      pages/bargain/bargainDatail/bargainDatail.wxml
  7. +1
    -1
      pages/coupon/detail/index.wxml
  8. +3
    -6
      pages/coupon/detail/index.wxss

+ 11
- 7
components/hot/index.js View File

@@ -22,6 +22,8 @@ Component({
barginicon: imgurl.barginicon.url,
wangmeimeibargin: imgurl.wangmeimeibargin.url,
kData:[],
kSize:'',
pSize: '',
pData:[],
couponId:'',
couponId1: '',
@@ -52,14 +54,15 @@ Component({
if(res.data){
if(val=='1'){
that.setData({
kData: res.data,
couponId: res.data.couponId,
// title:res.data.
kData: res.data.data,
kSize: res.data.size,
couponId: res.data.data.couponId,
});
}else{
that.setData({
pData: res.data,
couponId1: res.data.couponId
pData: res.data.data,
pSize:res.data.size,
couponId1: res.data.data.couponId
});
}
}
@@ -78,10 +81,11 @@ Component({
// 换一换
getChange(){
let that = this;
if (that.data.couponId){
if (that.pSize != 1 && that.pSize != 0){
this.getList(1)
}
if (that.data.couponId1) {
if (that.pSize != 1 && that.pSize != 0) {
this.getList(2)
}
},


+ 1
- 1
components/hot/index.wxml View File

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


+ 1
- 1
pages/bargain/bargain.js View File

@@ -1,4 +1,4 @@
const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px'
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'
var config = require("../../config/config.js");
const Http = require("../../utils/HttpBasics");
const imgurl = require("../../utils/imgurl");


+ 2
- 0
pages/bargain/bargainDatail/bargainDatail.js View File

@@ -1,3 +1,4 @@
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'
var config = require("../../../config/config.js");
var app = getApp();
const Http = require("../../../utils/HttpBasics");
@@ -9,6 +10,7 @@ Page({
* 页面的初始数据
*/
data: {
navigationBarHeight,
bannerUrl: imgurl.banner.url,
wmhome: imgurl.wmhome.url,
wmhelp: imgurl.wmhelp.url,


+ 4
- 1
pages/bargain/bargainDatail/bargainDatail.json View File

@@ -2,5 +2,8 @@
"navigationBarTitleText": "砍价详情",
"navigationBarBackgroundColor":"#F4F5F9",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": true
"enablePullDownRefresh": true,
"usingComponents": {
"navbar": "../../../components/navbar/navbar"
}
}

+ 2
- 1
pages/bargain/bargainDatail/bargainDatail.wxml View File

@@ -1,5 +1,6 @@
<!-- <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> -->
<view class="bargainDetail" hover-class="none" hover-stop-propagation="false" wx:if="{{showPage}}">
<navbar back home text="砍价专场"></navbar>
<view class="bargainDetail" hover-class="none" hover-stop-propagation="false" wx:if="{{showPage}}" style="padding-top:{{navigationBarHeight}};">
<view class="listitem clearfix" hover-class="none" hover-stop-propagation="false">
<image class="fl" src="{{data.coverImg}}" lazy-load="true" binderror="" bindload="" mode='aspectFill'></image>
<view class="fl ri" hover-class="none" hover-stop-propagation="false">


+ 1
- 1
pages/coupon/detail/index.wxml View File

@@ -21,7 +21,7 @@
<view class='coupons_info' style='position:relative;z-index:9'>
<view class='fenxiang' wx:if="{{data.type!=50&&data.type!=51}}" bindtap='showshare'>
<image class="fenxiang" src='{{fenxiang}}' mode="widthFix"></image>
<text class='gift'>分享有礼</text>
<!-- <view class='gift'>分享有礼</view> -->
<!-- <button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button> -->
</view>
<view>


+ 3
- 6
pages/coupon/detail/index.wxss View File

@@ -79,21 +79,18 @@ button::after {
right: 28rpx;
top: 27rpx;
width: 108rpx;
height: 180rpx;
/* display: flex;
flex-direction:column; */
}

.fenxiang image {
width:48rpx;
height: 48rpx;
position: absolute;
top: 0;
right: 16rpx;
}
.gift{
color: #3C3C3C;
font-size: 20rpx;
position: absolute;
top: 50rpx;
right: 0;
}

.user-motto {


Loading…
Cancel
Save