Browse Source

首页静态

feature/v1.1.0
shuiqing 7 years ago
parent
commit
acf89cec87
6 changed files with 67 additions and 18 deletions
  1. BIN
      images/u273.png
  2. 15
      pages/activity_detail/activity_detail.js
  3. 22
      pages/activity_detail/activity_detail.wxml
  4. 44
      pages/activity_detail/activity_detail.wxss
  5. 3
      pages/at_present/at_present.js
  6. 1
      pages/at_present/at_present.wxml

BIN
images/u273.png

Before After
Width: 24  |  Height: 22  |  Size: 403 B

15
pages/activity_detail/activity_detail.js

@ -2,7 +2,6 @@
const app = getApp() const app = getApp()
let interval let interval
var WxParse = require('../../wxParse/wxParse.js');//主要为了能够显示获取的html代码 var WxParse = require('../../wxParse/wxParse.js');//主要为了能够显示获取的html代码
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
@ -29,13 +28,14 @@ Page({
one_content: "none", one_content: "none",
two_content: "none", two_content: "none",
bottomBGColor: '#F36619', bottomBGColor: '#F36619',
buttomText: '我要团',
buttomText: '我要团',
tagColor: "#F8B551", tagColor: "#F8B551",
remark: "none", remark: "none",
remarkText: "已退款", remarkText: "已退款",
//分享 //分享
show: false, show: false,
cancelWithMask: true, cancelWithMask: true,
img1: '/images/u273.png',
actions: [{ actions: [{
name: '微信好友', name: '微信好友',
icon: '../../images/wechat_ico.png', icon: '../../images/wechat_ico.png',
@ -139,7 +139,7 @@ Page({
one_content: "block", one_content: "block",
two_content: "none", two_content: "none",
bottomBGColor: '#F36619', bottomBGColor: '#F36619',
buttomText: '我要团',
buttomText: '我要团',
grounpInfo: "none", grounpInfo: "none",
grounpInfo2: "block", grounpInfo2: "block",
@ -165,7 +165,7 @@ Page({
one_content: "block", one_content: "block",
two_content: "none", two_content: "none",
bottomBGColor: '#F36619', bottomBGColor: '#F36619',
buttomText: '我要团',
buttomText: '我要团',
grounpInfo: "none", grounpInfo: "none",
grounpInfo2: "block", grounpInfo2: "block",
@ -177,7 +177,7 @@ Page({
one_content: "block", one_content: "block",
two_content: "none", two_content: "none",
bottomBGColor: '#F36619', bottomBGColor: '#F36619',
buttomText: '重新团',
buttomText: '重新团',
grounpInfo: "block", grounpInfo: "block",
grounpInfo2: "none", grounpInfo2: "none",
remark: "none", remark: "none",
@ -493,4 +493,9 @@ Page({
path: '/pages/activity_detail/activity_detail?activityNo=' + this.data.activityNo + '&groupNo=' + this.data.groupNo, path: '/pages/activity_detail/activity_detail?activityNo=' + this.data.activityNo + '&groupNo=' + this.data.groupNo,
}; };
}, },
openGroup: function (e) {
wx.switchTab({
url: '../index/index'
})
},
}) })

22
pages/activity_detail/activity_detail.wxml

@ -6,8 +6,8 @@
<view class='row0'> <view class='row0'>
<text class='title'>{{activityDetail.activityName}}</text> <text class='title'>{{activityDetail.activityName}}</text>
<view class='countdown' style='display: {{groupNo == "" ? "block" : "none"}};'> <view class='countdown' style='display: {{groupNo == "" ? "block" : "none"}};'>
<text >{{activityDetail.countdownDesc}}</text>
<view >
<text>{{activityDetail.countdownDesc}}</text>
<view>
<text class="sec">{{countDownDay}}</text>天 <text class="sec">{{countDownDay}}</text>天
<text class="sec">{{countDownHour}}</text>时 <text class="sec">{{countDownHour}}</text>时
<text class="sec">{{countDownMinute}}</text>分 <text class="sec">{{countDownMinute}}</text>分
@ -62,6 +62,7 @@
<text class="{{item.memberType == 0 ? 'markBlock' : 'markNone'}}">团长</text> <text class="{{item.memberType == 0 ? 'markBlock' : 'markNone'}}">团长</text>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
@ -77,11 +78,20 @@
<template is="wxParse" data="{{wxParseData:activityContent.nodes}}" /> <template is="wxParse" data="{{wxParseData:activityContent.nodes}}" />
</view> </view>
</scroll-view> </scroll-view>
<view class='bottom_view'>
<!-- 我要开团按钮 -->
<view class='one_content' id='one_button' style='display: {{one_content}};background-color:{{bottomBGColor}};' bindtap='groupTap'>{{buttomText}}</view>
<view class='bottom_view'>
<view class="buttom_img" bindtap='openGroup'>
<view class="buttom_imgs_top">
<image src='{{img1}}' class="imgs"></image>
</view>
<view class="buttom_imgs_buttom">
<text class="imgs_text">首页</text>
</view>
</view>
<!-- 我要开团按钮 -->
<view class='one_content' id='one_button' style='display: {{one_content}};background-color:{{bottomBGColor}};' bindtap='groupTap'>{{buttomText}}</view>
<view class='two_content' id='two_content' style='display: {{two_content}};'> <view class='two_content' id='two_content' style='display: {{two_content}};'>
<!-- 参与拼团的成员---左边价格,右边参与拼团 -->
<!-- 参与拼团的成员---左边价格,右边参与拼团 -->
<view class='left'>¥{{activityDetail.participantPrice / 100}}</view> <view class='left'>¥{{activityDetail.participantPrice / 100}}</view>
<view class='right' bindtap='groupTap'>{{buttomText}}</view> <view class='right' bindtap='groupTap'>{{buttomText}}</view>
</view> </view>

44
pages/activity_detail/activity_detail.wxss

@ -255,15 +255,53 @@ image{
height: 50px; height: 50px;
position:fixed; position:fixed;
bottom:0; bottom:0;
background: #fff;
}
.buttom_img{
width:15%;
height: 50px;
position:fixed;
bottom:0;
z-index: 999;
text-align: center;
border-right: 1px solid #ccc;
}
.buttom_img .buttom_imgs_top{
height: 22px;
}
.buttom_img .buttom_imgs_buttom{
margin-bottom: 3px;
display: inline-block;
}
.buttom_img .imgs{
width: 40rpx;
height: 34rpx;
display: inline-block;
margin-top: 5px;
}
.buttom_img .imgs_text{
color:#333333;
font-size:15px;
padding-bottom: 5px;
} }
.bottom_view .one_content{ .bottom_view .one_content{
width:100%;
/* width:100%;
line-height: 50px; line-height: 50px;
color: white; color: white;
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
font-weight: bold;
font-weight: bold; */
width:85%;
line-height:50px;
color:white;
text-align:center;
font-size:16px;
font-weight:bold;
float:right;
} }
@ -279,7 +317,7 @@ image{
font-size: 23px; font-size: 23px;
color: #F44054; color: #F44054;
font-weight: bold; font-weight: bold;
margin-left: 0px;
margin-left: 28px;
background-color: white; background-color: white;
text-align: center; text-align: center;
float: left; float: left;

3
pages/at_present/at_present.js

@ -26,9 +26,6 @@ Page({
// key: 'C5KBZ-RISKD-INW4P-PWYQJ-QC6C7-BQBGC'//测试 // key: 'C5KBZ-RISKD-INW4P-PWYQJ-QC6C7-BQBGC'//测试
key: 'JN7BZ-MJBK5-52SIH-QOKGH-FJE5F-IWFGG'//正式 key: 'JN7BZ-MJBK5-52SIH-QOKGH-FJE5F-IWFGG'//正式
}); });
// this.setData({
// groupNo: options.groupNo == undefined ? "" : options.groupNo,
// });
}, },
onReady: function() { onReady: function() {
var that = this; var that = this;

1
pages/at_present/at_present.wxml

@ -5,7 +5,6 @@
<text bindtap='openGroups'>{{city}}{{district}}</text> <text bindtap='openGroups'>{{city}}{{district}}</text>
</view> </view>
<view class="base_hint {{showOrHidden?'hide':'show'}}">{{lists}}</view> <view class="base_hint {{showOrHidden?'hide':'show'}}">{{lists}}</view>
<!-- class="choice_switchover {{showOrHidden?'show':'hide'}}" style='display: {{groupNo == "" ? "block" : "none"}};'-->
<text class="choice_switchover {{showOrHidden?'hide':'show'}}" bindtap='openGroup' >手动切换地址</text> <text class="choice_switchover {{showOrHidden?'hide':'show'}}" bindtap='openGroup' >手动切换地址</text>
<view class="choice {{showOrHidden?'show':'hide'}}"> <view class="choice {{showOrHidden?'show':'hide'}}">
<text class="confirm_left" bindtap='groupTaps'>确定</text> <text class="confirm_left" bindtap='groupTaps'>确定</text>

Loading…
Cancel
Save