作者 lihongjuan

1

... ... @@ -6,14 +6,30 @@
</view>
<view class='real_goods_bottom'>
<view class='goods_title'>{{item.name}}</view>
<view class='goods_flex'>
<view wx:if="{{item.price2!=null}}">
<view class='goods_flex'>
<view class='score'>积分</view>
<view class='price'>{{item.price2}}</view>
<view class='sell'>已卖出{{item.paynum}}件</view>
</view>
<view class='oldprice'>{{item.price}}</view>
</view>
<view class='goods_flex' wx:else>
<view class='score'>积分</view>
<view class='price'>{{item.price}}</view>
<view class='sell'>已卖出{{item.paynum}}件</view>
</view>
</view>
<view class="pink_cover" wx:if="{{item.sold == 0}}"/>
<view class="pink_cover" wx:if="{{item.sold==0}}" />
</view>
</view>
\ No newline at end of file
... ...
.real_goods {
width: 708rpx;
width: 750rpx;
margin: 0 auto;
background: #f9f9f9;
display: flex;
flex-wrap: wrap;
padding: 8rpx 11rpx 20rpx;
padding: 8rpx 0 20rpx;
box-sizing: border-box;
}
... ... @@ -15,6 +15,11 @@
background: #fff;
overflow: hidden;
position: relative;
display:flex;
flex-direction: column;
align-items: center;
}
.real_goods_img {
... ... @@ -48,7 +53,7 @@
}
.goods_title {
height: 72rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
... ... @@ -59,7 +64,7 @@
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
margin-bottom: 20rpx;
margin-bottom: 10rpx;
}
.goods_flex {
... ... @@ -104,4 +109,9 @@
position: absolute;
left: 0;
top: 0;
}
.oldprice{
color:#BDC4CE;
font-size: 24rpx;
text-decoration: line-through
}
\ No newline at end of file
... ...
App({
onLaunch: function () {
this.getmessagelist()
//自动更新版本
const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {
... ... @@ -77,6 +77,47 @@ App({
return promise;
},
getmessagelist() {
let that = this
let url = '/information/get_all';
let data = {
page: 1,
pageNum: 10,
}
this.post(url, data, "POST").then((r) => {
// console.log(r)
// that.setData({
// messagelist: that.data.messagelist.concat(r.msg)
// })
let newlist = [];
r.msg.forEach(function (value, index, array) {
console.log(newlist)
if (value.status == 1) {
newlist.push(value)
}
})
console.log('77889944556',newlist)
if (newlist.length != 0) {
wx.showTabBarRedDot({
index: 1,
success: function (red) {
wx.setTabBarBadge({
index: 1,
text: newlist.length.toString(),
})
}
})
}
}).catch((err) => { })
},
//接口管理
interface: {
... ...
... ... @@ -50,8 +50,8 @@
{
"pagePath": "pages/message/message",
"text": "消息",
"iconPath": "images/tabbar/icon_69.png",
"selectedIconPath": "images/tabbar/icon_74.png"
"iconPath": "images/tabbar/message.png",
"selectedIconPath": "images/tabbar/messageactive.png"
},
{
"pagePath": "pages/shop_cart/shop_cart",
... ...
... ... @@ -47,3 +47,18 @@
align-items: center;
justify-content: center;
}
.empty {
font-size: 36rpx;
font-family: PingFang SC;
font-weight: 400;
color: #ccc;
margin-top: 200rpx;
text-align: center;
}
.oldprice{
color:#BDC4CE;
font-size: 24rpx;
text-decoration: line-through
}
\ No newline at end of file
... ...

973 字节 | 宽: | 高:

1.9 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

645 字节 | 宽: | 高:

1.0 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

651 字节 | 宽: | 高:

1.1 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

1.3 KB | 宽: | 高:

1.7 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

1.2 KB | 宽: | 高:

1.5 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

618 字节 | 宽: | 高:

1.4 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
... ... @@ -24,7 +24,12 @@ Page({
hou :'',
min :'',
sec :'',
endTime:''
endTime:'',
activitystatus:'',
showtime:false,
status1:'',
status2:'',
title2:''
},
scroll(e){
... ... @@ -48,6 +53,27 @@ Page({
})
},
// 控制活动专区和限时抢购显示隐藏
ishow(){
let that = this
let url = '//wb/wb';
let data = {
}
app.post(url, data, "POST").then((r) => {
console.log('4456789',r)
that.setData({
status1: r.msg.status1,
status2: r.msg.status2,
title2: r.msg.title2
})
}).catch((err) => { })
},
// 限时抢购
getxianshi(){
let that = this
... ... @@ -62,7 +88,8 @@ Page({
console.log(r.msg.residue_time)
that.setData({
xianshilist: r.msg.list,
endTime: r.msg.residue_time
endTime: r.msg.residue_time,
activitystatus:r.msg.status
})
var time = that.date_format(r.msg.residue_time);
console.log(time)
... ... @@ -285,10 +312,12 @@ date_format(micro_second) {
pid: pid
}
app.post(url, params).then((res) => {
console.log('88776654',res)
wx.hideLoading()
if (type == 1) {
let obj={
name:'首页'
name:'首页',
id:''
}
res.msg.unshift(obj)
that.setData({
... ... @@ -296,11 +325,17 @@ date_format(micro_second) {
})
that.get_info(res.msg[0].id, 2)
} else if (type == 2) {
console.log('666',res)
// let obj = {
// name: '全部',
// id: ''
// }
// res.msg.unshift(obj)
that.setData({
class_arr: res.msg,
cid: res.msg[0].id
cid: ''
})
that.good_list(res.msg[0].id, that.data.c_index)
that.good_list('', that.data.c_index)
}
}).catch((er) => {
wx.hideLoading()
... ... @@ -349,11 +384,21 @@ date_format(micro_second) {
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
let that=this
this.get_banner()
this.get_info(0, 1);
// 获取活动专区
this.getzhuanqulist();
this.getxianshi()
this.getxianshi();
setTimeout(function(){
that.setData({
showtime:true
})
},990)
},
//获取购物车数量
get_shopnum() {
... ... @@ -377,6 +422,46 @@ date_format(micro_second) {
}
})
},
getmessagelist() {
let that = this
let url = '/information/get_all';
let data = {
page: 1,
pageNum: 10,
}
app.post(url, data, "POST").then((r) => {
// console.log(r)
// that.setData({
// messagelist: that.data.messagelist.concat(r.msg)
// })
let newlist = [];
r.msg.forEach(function (value, index, array) {
console.log(newlist)
if (value.status == 1) {
newlist.push(value)
}
})
console.log('77889944556', newlist)
if (newlist.length != 0) {
wx.showTabBarRedDot({
index: 1,
success: function (red) {
wx.setTabBarBadge({
index: 1,
text: newlist.length.toString(),
})
}
})
}
}).catch((err) => { })
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ... @@ -390,6 +475,9 @@ date_format(micro_second) {
onShow: function() {
this.get_notice()
this.get_shopnum()
this.getmessagelist()
//控制显示隐藏
this.ishow()
},
/**
... ...
... ... @@ -7,24 +7,24 @@
</navigator>
</view>
<view class='list' wx:if="{{nav_index!=0}}">
<view class='list_item' wx:if="{{index < length_num}}" wx:for="{{class_arr}}" wx:key="index" data-id="{{item.id}}" data-index="{{index}}" catchtap="look_item">
<view class='item'>
<view class='item_img'>
<image src='{{item.image}}' mode='aspectFill' />
</view>
<view class='item_font'>{{item.name}}</view>
<view class='list' wx:if="{{nav_index!=0}}">
<view class='list_item' wx:if="{{index < length_num}}" wx:for="{{class_arr}}" wx:key="index" data-id="{{item.id}}" data-index="{{index}}" catchtap="look_item">
<view class='item'>
<view class='item_img'>
<image src='{{item.image}}' mode='aspectFill' />
</view>
<view class='item_font'>{{item.name}}</view>
</view>
<view class='list_item' data-type="1" catchtap="show_all" wx:if="{{class_arr.length>9}}">
<view class='item'>
<view class='item_img'>
<image src='/images/all.png' />
</view>
<view class='item_font'>{{length_num == 9?'查看全部':'收起'}}</view>
</view>
<view class='list_item' data-type="1" catchtap="show_all" wx:if="{{class_arr.length>9}}">
<view class='item'>
<view class='item_img'>
<image src='/images/all.png' />
</view>
<view class='item_font'>{{length_num == 9?'查看全部':'收起'}}</view>
</view>
</view>
</view>
<!-- 轮播图 -->
<view class="lunbo_box {{nav_index==0?'boxactive':''}}" wx:else>
... ... @@ -49,14 +49,8 @@
</view>
</view> -->
<!-- 活动区域 -->
<view class="actity">
<view class="miaoshatopk flextwo">
<view class="miaoshatopleft flexone">
<view class="miaoshaoname">活动专区</view>
</view>
</view>
<view class="actity" wx:if="{{status1==1}}">
<!-- <view class="miaoshaoname">活动专区</view> -->
<view class="active flexone">
... ... @@ -74,12 +68,13 @@
</view>
<!-- 秒杀商城 -->
<!-- wx:if="{{activitystatus==3}}" -->
<view class="miaosha xianshi">
<view class="miaosha xianshi" wx:if="{{status2==1}}">
<view class="miaoshatop flextwo">
<view class="miaoshatopleft flexone">
<view class="miaoshaoname">限时抢购</view>
<view class="hourgou">倒计时{{day}}天 {{hou}}:{{min}}:{{sec}}</view>
<view class="miaoshaoname">{{title2}}</view>
<!-- <view class="hourgou" wx:if="{{showtime}}">{{day}}:{{hou}}:{{min}}:{{sec}}</view> -->
</view>
<view class="miaosharight" bindtap="moremiao">
查看更多>
... ... @@ -87,12 +82,14 @@
</view>
<view class="miaoshalist">
<view class="miaoshalistitem" wx:for="{{xianshilist}}" wx:key="">
<view class="miaoshalistitem" wx:for="{{xianshilist}}" wx:key="" bindtap="look_more" data-id="{{item.id}}">
<view class="goodimg">
<image src="{{item.images[0]}}"></image>
</view>
<view class="price">¥{{item.price}}</view>
<!-- <view class="oldprice">{{item.price}}</view> -->
<view class="price">¥{{item.price2!=null?item.price2:item.price}}</view>
</view>
</view>
... ... @@ -119,23 +116,21 @@
<!-- {{stick==1?'navactive':''}} -->
<view class="navactive">
<view class="flexone">
<view class="horizontal_nav ">
<view class="horizontal_nav ">
<view class="nav_item {{nav_index == index?'active':''}}" wx:for="{{nav_arr}}" wx:key="index" bindtap="select_nav" data-index="{{index}}" data-id="{{item.id}}">{{item.name}}</view>
<view class="nav_item {{nav_index == index?'active':''}}" wx:for="{{nav_arr}}" wx:key="index" bindtap="select_nav" data-index="{{index}}" data-id="{{item.id}}">{{item.name}}</view>
</view>
</view>
<view class="morebox" bindtap="more">
<view class="moreimg">
<image src="/images/more.png"></image>
</view>
<view class="morebox" bindtap="more">
<view class="moreimg">
<image src="/images/more.png"></image>
</view>
</view>
<!-- 小分类 -->
</view>
... ...
page {
width: 100%;
height: 100%;
background: #f9f9f9;
background: #fff;
}
image {
... ... @@ -15,8 +15,8 @@ image {
.top {
width: 750rpx;
height: 98rpx;
padding: 15rpx 32rpx;
height: 80rpx;
padding: 5rpx 32rpx;
box-sizing: border-box;
background: rgba(61, 154, 248, 1);
position: fixed;
... ... @@ -28,8 +28,8 @@ image {
.lunbo_box {
border: none !important;
background: rgba(61, 154, 248, 1);
padding: 20rpx 32rpx 25rpx;
box-sizing: border-box;
/* padding: 2rpx 32rpx 25rpx;
box-sizing: border-box; */
position: relative;
margin-top: 10rpx;
}
... ... @@ -81,8 +81,7 @@ image {
color: rgba(174, 214, 255, 1);
padding: 0 12rpx;
box-sizing: border-box;
position: relative;
/* position: fixed;
/* position: relative; *//* position: fixed;
top:128rpx;
left:0; */
}
... ... @@ -111,18 +110,20 @@ image {
}
.navactive {
width: 100%;
position: fixed;
top: 99rpx;
display: flex;
top: 79rpx;
left: 0;
z-index: 999;
}
.boxactive {
margin-top: 173rpx;
margin-top: 166rpx;
}
.nav_item {
padding: 0 40rpx;
padding: 0 18rpx;
box-sizing: border-box;
display: inline-block;
}
... ... @@ -136,7 +137,7 @@ image {
/* margin-top: 36rpx; */
display: flex;
flex-wrap: wrap;
margin-top:195rpx;
margin-top: 195rpx;
/* background: #fff; */
}
... ... @@ -181,8 +182,10 @@ image {
}
.swiper_box {
width: 686rpx;
height: 304rpx;
/* width: 686rpx;
height: 304rpx; */
width: 750rpx;
height: 320rpx;
position: relative;
}
... ... @@ -231,11 +234,12 @@ image {
height: 88rpx;
width: 100%;
background: #fff;
padding: 0 98rpx;
padding: 0 32rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 auto;
}
.select_item {
... ... @@ -281,13 +285,13 @@ image {
.notice {
width: 100%;
padding: 18rpx 32rpx;
padding: 24rpx 32rpx;
box-sizing: border-box;
background: #fff;
display: flex;
align-items: center;
border-top: 20rpx solid #f9f9f9;
border-bottom: 20rpx solid #f9f9f9;
/* border-top: 20rpx solid #f9f9f9;
border-bottom: 20rpx solid #f9f9f9; */
}
.notice_tips {
... ... @@ -353,26 +357,29 @@ image {
}
.activeitem {
width: 325rpx;
height: 200rpx;
width: 218rpx;
height: 240rpx;
font-size: 0;
display: flex;
justify-content: center;
align-items: center;
border-radius: 16rpx;
margin-right: 24rpx;
margin: 0 auto;
}
.activeitem image{
.activeitem image {
border-radius: 16rpx;
}
.actbox {
width: 218rpx;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
margin-right: 12rpx;
margin-bottom:20rpx;
margin-right: 16rpx;
}
image {
... ... @@ -387,11 +394,13 @@ image {
}
.actity {
width:750rpx;
padding: 0 0rpx 0 64rpx;
width: 750rpx;
padding: 24rpx 30rpx;
box-sizing: border-box;
margin-top:10rpx;
background: #fff;
border-bottom: 16rpx solid #f5f5f5;
border-top:16rpx solid #f5f5f5;
margin-top:20rpx;
}
.miaosha {
... ... @@ -400,69 +409,85 @@ image {
}
.active {
flex-wrap: wrap;
flex-wrap: nowrap;
/* overflow-x: scroll; */
}
.miaoshaoname {
color: rgba(61, 154, 248, 1);
color: #06121e;
font-size: 32rpx;
font-weight: bold;
}
.hourgou {
color: rgba(5, 9, 26, 1);
font-size: 28rpx;
width: 220rpx;
height: 44rpx;
background: rgba(255, 255, 255, 1);
border: 1rpx solid rgba(200, 37, 25, 1);
opacity: 1;
border-radius: 22rpx;
color: #ea322b;
font-size: 24rpx;
margin-left: 20rpx;
text-align: center;
line-height: 44rpx;
}
.miaoshatop {
padding: 0 32rpx 32rpx;
padding: 0;
box-sizing: border-box;
}
.miaosharight {
color: rgba(61, 154, 248, 1);
font-size: 28rpx;
font-size: 24rpx;
}
.miaoshatopk{
padding: 32rpx 0;
box-sizing: border-box
.miaoshatopk {
color: #06121e;
font-size: 32rpx;
font-weight: bold;
/* padding: 32rpx 0;
box-sizing: border-box */
}
.miaoshalist {
display: flex;
align-items: center;
flex-wrap: wrap
flex-wrap: wrap;
margin-top: 24rpx;
}
.miaoshalistitem {
width: 217rpx;
width: 140rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-right: 12rpx;
padding-bottom: 24rpx;
margin-right: 24rpx;
box-sizing: border-box;
}
.goodimg {
width: 180rpx;
height: 180rpx;
width: 140rpx;
height: 140rpx;
font-size: 0;
border-radius: 10rpx;
}
.goodimg image{
.goodimg image {
border-radius: 10rpx;
}
.price {
width:180rpx;
width: 140rpx;
text-align: center;
color: rgba(61, 154, 248, 1);
font-size: 28rpx;
margin-top: 5rpx;
color: rgba(156, 156, 156, 1);
font-size: 24rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-top: 10rpx;
}
.oldprice {
... ... @@ -472,22 +497,26 @@ image {
}
.activename {
width: 140rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: rgba(156, 156, 156, 1);
font-size: 28rpx;
text-align: left;
width: 324rpx;
font-size: 24rpx;
text-align: center;
margin-top: 10rpx;
}
.xianshi{
width:686rpx;
border-radius: 20rpx;
margin:20rpx auto 0;
.xianshi {
width: 750rpx;
padding: 24rpx 30rpx;
box-sizing: border-box;
background: #fff;
padding: 32rpx 0;
box-sizing: border-box
}
.topnav{
border-bottom:16rpx solid #f5f5f5;
}
.topnav {
position: fixed;
top:0;
left:0
}
\ No newline at end of file
top: 0;
left: 0;
}
... ...
... ... @@ -5,18 +5,22 @@ Page({
* 页面的初始数据
*/
data: {
info:[]
},
// 获取页面信息
get_info(order) {
let that=this
let url = app.interface.kuaidi
let params = {
order_odd: order
}
app.post(url,params).then((res)=>{
console.log(res)
this.setData({
info: res.msg
info: res.msg.kuaidi
})
console.log(that.data.info)
})
},
/**
... ...
<!-- 商品 -->
<view class="show_good">
<image src="{{info.product_image}}" mode="aspectFill" />
<text>{{info.State>2?(item.State>3?'问题件':'已签收'):'运输中'}}</text>
</view>
<view class="block">
<view wx:for="{{info}}" wx:key=''>
<view class="show_good">
<image src="{{item.kuaidi.product_image}}" mode="aspectFill"/>
<view class="dai" wx:if="{{item.kuaidi.State==0}}">待取件</view>
<view class="dai" wx:if="{{item.kuaidi.State==1}}">已揽收</view>
<view class="dai" wx:if="{{item.kuaidi.State==2}}">在途中</view>
<view class="dai" wx:if="{{item.kuaidi.State==3}}">已签收</view>
<view class="dai" wx:if="{{item.kuaidi.State==4}}">问题件</view>
</view>
<!-- 物流 -->
<view class="logistics">
<view class="info">
<view class="right">
<view class="name">{{info.name}}</view>
<view class="order_num">快递单号:{{info.LogisticCode}}</view>
<!-- 物流 -->
<view class="logistics">
<view class="info">
<view class="right">
<view class="name">{{item.kuaidi.name}}</view>
<view class="order_num">快递单号:{{item.kuaidi.LogisticCode}}</view>
</view>
</view>
</view>
<view class="order_box">
<view class="order_item" wx:for="{{info.Traces}}" wx:key="index">
<view class="order_box">
<view class="order_item" wx:for="{{item.kuaidi.Traces}}" wx:key="index">
<view class="time_box">
<view class="date">{{item.AcceptTime}}</view>
</view>
<view class="status_img">
<image src="/images/icon_62.png" />
<view class="line"/>
<view class="line" />
</view>
<view class="status_info">
<view class="status_word">{{item.Remark?item.Remark:''}}</view>
<view class="status_word">{{item.AcceptStation}}</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
</view>
</view>
... ...
... ... @@ -76,7 +76,9 @@ page {
.order_item {
width: 100%;
height: 170rpx;
/* height: 170rpx; */
padding: 30rpx 0;
box-sizing: border-box;
display: flex;
align-items: center;
}
... ... @@ -146,3 +148,6 @@ page {
color: rgba(156, 156, 156, 1);
margin-top: 12rpx;
}
.dai{
margin-left:20rpx;
}
\ No newline at end of file
... ...
// pages/message/message.js
const app=getApp()
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
page:1,
messagelist:[]
page: 1,
messagelist: []
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
},
getmessagelist(){
let that=this
getmessagelist() {
let that = this
let url = '/information/get_all';
let data = {
page:that.data.page,
page: that.data.page,
pageNum: 10,
}
app.post(url, data, "POST").then((r) => {
console.log(r)
... ... @@ -31,33 +31,54 @@ Page({
messagelist: that.data.messagelist.concat(r.msg)
})
console.log(that.data.messagelist)
let newlist = [];
that.data.messagelist.forEach(function(value, index, array) {
console.log(newlist)
if (value.status == 1) {
newlist.push(value)
}
})
console.log(newlist)
if (newlist.length != 0) {
wx.showTabBarRedDot({
index: 1,
success: function(red) {
wx.setTabBarBadge({
index: 1,
text: newlist.length.toString(),
})
}
})
}
}).catch((err) => { })
}).catch((err) => {})
},
// 订单详情
ordertail(e){
let id=e.currentTarget.dataset.id;
ordertail(e) {
let id = e.currentTarget.dataset.id;
wx.navigateTo({
url: '/pages/messagedetail/messagedetail?id='+id,
url: '/pages/messagedetail/messagedetail?id=' + id,
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
this.setData({
messagelist:[],
page:1
messagelist: [],
page: 1
})
this.getmessagelist()
},
... ... @@ -65,32 +86,32 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
let newpage=this.data.page;
onReachBottom: function() {
let newpage = this.data.page;
newpage++;
this.setData({
page:newpage
page: newpage
})
this.getmessagelist()
},
... ... @@ -98,7 +119,7 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
<view class="messagelist">
<view class="empty" wx:if="{{messagelist.length==0}}">暂无更多数据</view>
<view class="messagelist" wx:else>
<view class='mssageitem' wx:for="{{messagelist}}" wx:key="" bindtap="ordertail" data-id="{{item.id}}">
<view class="messageitemtop flextwo">
<view class="messtopleft {{item.status==1?'activeleft':''}}">{{item.title}}</view>
... ...
... ... @@ -19,7 +19,7 @@ page {
.messtopleft {
color: rgba(19, 26, 46, 1);
font-size: 22rpx;
font-size: 28rpx;
}
.activeleft {
... ... @@ -42,7 +42,7 @@ page {
.messtopright, .messagename {
color: #939a9e;
font-size: 22rpx;
font-size: 28rpx;
}
.messagename {
... ...
... ... @@ -36,6 +36,10 @@ Page({
that.setData({
kuaidi: r.msg
})
that.data.kuaidi.forEach(function(value,index,array){
console.log(value.kuaidi[0].kuaidi.Traces)
})
console.log(that.data.kuaidi)
... ...
... ... @@ -60,11 +60,11 @@
<view class="swiper-item">
<view class='wuliutop flextwo'>
<view class="wutopleft">最新物流</view>
<view class="wutopright">{{item.kuaidi.Traces[0].AcceptTime}}</view>
<view class="wutopright">{{item.kuaidi[0].kuaidi.Traces[0].AcceptTime}}</view>
</view>
<view class="wuliubot flexone">
<view class="wuliuleft">
<image src="{{item.kuaidi.product_image}}"></image>
<image src="{{item.kuaidi[0].kuaidi.product_image}}"></image>
</view>
<view class="wuliuitemright">
... ... @@ -73,13 +73,13 @@
<view class="wuliuimg">
<image src="/images/icon_30.png"></image>
</view>
<view class="dai" wx:if="{{item.kuaidi.State==0}}">待取件</view>
<view class="dai" wx:if="{{item.kuaidi.State==1}}">已揽收</view>
<view class="dai" wx:if="{{item.kuaidi.State==2}}">在途中</view>
<view class="dai" wx:if="{{item.kuaidi.State==3}}">签收</view>
<view class="dai" wx:if="{{item.kuaidi.State==4}}">问题件</view>
<view class="dai" wx:if="{{item.kuaidi[0].kuaidi.State==0}}">待取件</view>
<view class="dai" wx:if="{{item.kuaidi[0].kuaidi.State==1}}">已揽收</view>
<view class="dai" wx:if="{{item.kuaidi[0].kuaidi.State==2}}">在途中</view>
<view class="dai" wx:if="{{item.kuaidi[0].kuaidi.State==3}}">已签收</view>
<view class="dai" wx:if="{{item.kuaidi[0].kuaidi.State==4}}">问题件</view>
</view>
<view class="daiquname">{{item.kuaidi.Traces[0].AcceptStation}}</view>
<view class="daiquname">{{item.kuaidi[0].kuaidi.Traces[0].AcceptStation}}</view>
</view>
</view>
... ...
... ... @@ -11,7 +11,8 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.getCodeFun()
this.getCodeFun();
},
// 进入页面获取code
... ... @@ -103,6 +104,8 @@ Page({
},
// 暂不授权
returnPageFun() {
wx.navigateBack()
... ...
... ... @@ -13,10 +13,12 @@
<view class='two'>
<view class='two_one'>
<view class='score'>积分</view>
<view class='price'>{{info.price}}</view>
<view class='price'>{{info.price2==null?info.price:info.price2}}</view>
</view>
<view class="oldprice" wx:if="{{info.price2!=null}}">{{info.price}}</view>
<view class='two_two'>{{info.name}}</view>
<view class='two_three'>
<view class='two_three two_threek'>
<view>库存:{{info.sold}}</view>
<view>销量:{{info.paynum}}</view>
</view>
... ...
... ... @@ -117,6 +117,9 @@ page {
color: rgba(156, 156, 156, 1);
margin-top: 18rpx;
}
.two_threek{
padding: 0;
}
.three {
margin-top: 18rpx;
... ...
<view class="miaoshatime flexthree" wx:if="{{showtime==true}}">
<view class='miaoname'>距离开始</view>
<view class='miaotime miaohour boxsizing'>{{day}}</view>
<view class="miaoname">天</view>
<!-- <view class="miaofen flexone miaohour">
<view class='miaotime boxsizing miaohour'>{{hou}}</view>
<view class='miaotime'>3</view>
</view> -->
<view class='miaotime miaohour boxsizing'>{{hou}}</view>
<view class="miaoname">:</view>
<!-- <view class="miaofen flexone miaohour">
<view class='miaotime boxsizing miaohour'>{{min}}</view>
<view class='miaotime boxsizing'>5</view>
</view> -->
<view class='miaotime miaohour boxsizing'>{{min}}</view>
<view class="miaoname">:</view>
<!-- <view class="miaofen flexone miaohour">
<view class='miaotime boxsizing miaohour'>{{sec}}</view>
<view class='miaotime boxsizing'>2</view>
</view> -->
<view class='miaotime miaohour boxsizing'>{{sec}}</view>
</view>
<!-- <view class="miaoshatime flexthree" wx:if="{{showtime==true}}">
<view class='miaoname'>距离开始</view>
<view class='miaotime miaohour boxsizing'>{{day}}</view>
<view class="miaoname">天</view>
<view class='miaotime miaohour boxsizing'>{{hou}}</view>
<view class="miaoname">:</view>
<view class='miaotime miaohour boxsizing'>{{min}}</view>
<view class="miaoname">:</view>
<view class='miaotime miaohour boxsizing'>{{sec}}</view>
</view> -->
<view class="searchgood commnonpadding">
<view class="searchgooditem flextwo boxsizing" wx:for="{{xianshilist}}" wx:key="">
<view class="gooditemleft">
<image src="{{item.images[0]}}" mode=""></image>
</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">{{item.name}}</view>
<view class="searchgooditem flextwo boxsizing" wx:for="{{xianshilist}}" wx:key="">
<view class="gooditemleft">
<image src="{{item.images[0]}}" mode=""></image>
</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">{{item.name}}</view>
<view class="miaogood flextwo">
<view class="miaogoodleft">
<view class="saleprice">¥288</view>
<!-- <view class="yuansaleprice">¥{{}}</view> -->
</view>
<view class="buynow buyactive" wx:if="{{status==1}}">未开始</view>
<view class="buynow buyactive" wx:if="{{status==2}}">已结束</view>
<view class="buynow" wx:if="{{status==3&&item.sold!=0}}" data-id="{{item.id}}" bindtap="{{item.sold==0?'':'look_more'}}">立即抢购</view>
<view class="buynow" wx:if="{{status==3&&item.sold==0}}">已抢光</view>
</view>
<view class="miaogood flextwo">
<view class="miaogoodleft">
<view class="saleprice">¥288</view>
<!-- <view class="yuansaleprice">¥{{}}</view> -->
</view>
<view class="buynow buyactive" wx:if="{{status==1}}">未开始</view>
<view class="buynow buyactive" wx:if="{{status==2}}">已结束</view>
<view class="buynow" wx:if="{{status==3&&item.sold!=0}}" data-id="{{item.id}}" bindtap="{{item.sold==0?'':'look_more'}}">立即抢购</view>
<view class="buynow" wx:if="{{status==3&&item.sold==0}}">已抢光</view>
</view>
<view class="miaojindu flextwo">
<view class="miaojinduleft">
<view class="miaojinnei" style="width:{{item.rob}}%"></view>
</view>
<view class="miaojinduright">已抢{{item.rob}}%</view>
</view>
<view class="miaojindu flextwo">
<view class="miaojinduleft">
<view class="miaojinnei" style="width:{{item.rob}}%"></view>
</view>
<view class="miaojinduright">已抢{{item.rob}}%</view>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
</view>
\ No newline at end of file
... ...
... ... @@ -24,10 +24,19 @@ Page({
//轮播图
look_more(e) {
let id = e.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/shop_detail/shop_detail?id=' + id
})
let id = e.currentTarget.dataset.id;
console.log(id)
let type=e.currentTarget.dataset.type;
if(type==1){
wx.navigateTo({
url: '/pages/shop_detail/shop_detail?id=' + id
})
}else{
wx.navigateTo({
url: '/pages/taocandetail/taocandetail?id=' + id
})
}
},
... ...
{
"navigationBarTitleText": "会员专区"
"navigationBarTitleText": "活动专区"
}
\ No newline at end of file
... ...
... ... @@ -5,24 +5,72 @@
<Model_item list="{{shop_arr}}" />
<view class='real_goods' wx:if="{{activelist.length>0}}">
<view class="real_goods_item" wx:for="{{activelist}}" wx:key="index" data-id="{{item.id}}" bindtap="{{item.sold==0?'':'look_more'}}">
<view class='real_goods_img'>
<image src='{{item.images[0]}}' mode="aspectFill" />
<image src='/images/mei.png' class="tip" wx:if="{{item.sold == 0}}" />
</view>
<view class='real_goods_bottom'>
<view class='goods_title'>{{item.name}}</view>
<view class='goods_flex'>
<view class='score'>积分</view>
<view class='price'>{{item.price}}</view>
<view class='sell'>已卖出{{item.paynum}}件</view>
</view>
</view>
<view class="real_goods_item" wx:for="{{activelist}}" wx:key="index" data-id="{{item.type==1?item.product_id:item.combo.id}}" bindtap="{{item.product.sold==0?'':'look_more'}}" data-type="{{item.type}}">
<view class="pink_cover" wx:if="{{item.sold == 0}}"/>
<view wx:if="{{item.type==1}}">
<view class='real_goods_img'>
<image src='{{item.product.images[0]}}' mode="aspectFill" />
<image src='/images/mei.png' class="tip" wx:if="{{item.sold == 0}}" />
</view>
<view class='real_goods_bottom'>
<view class='goods_title'>{{item.product.name}}</view>
<view wx:if="{{item.product.price2!=null}}">
</view>
</view>
<view class='goods_flex'>
<view class='score'>积分</view>
<view class='price'>{{item.product.price2}}</view>
<view class='sell'>已卖出{{item.product.paynum}}件</view>
</view>
<view class='oldprice'>{{item.product.price}}</view>
</view>
<view class='goods_flex' wx:else>
<view class='score'>积分</view>
<view class='price'>{{item.product.price}}</view>
<view class='sell'>已卖出{{item.product.paynum}}件</view>
</view>
</view>
<view class="pink_cover" wx:if="{{item.product.sold == 0}}" />
</view>
<view wx:else>
<view class='real_goods_img'>
<image src='{{item.combo.image}}' mode="aspectFill" />
<image src='/images/mei.png' class="tip" wx:if="{{item.sold == 0}}" />
</view>
<view class='real_goods_bottom'>
<view class='goods_title'>{{item.combo.name}}</view>
<view wx:if="{{item.combo.price2!=null}}">
<view class='goods_flex'>
<view class='score'>积分</view>
<view class='price'>{{item.combo.price2}}</view>
<!-- <view class='sell'>已卖出{{item.combo.paynum}}件</view> -->
</view>
<view class='oldprice'>{{item.combo.price}}</view>
</view>
<view class='goods_flex' wx:else>
<view class='score'>积分</view>
<view class='price'>{{item.combo.price}}</view>
<!-- <view class='sell'>已卖出{{item.combo.paynum}}件</view> -->
</view>
</view>
</view>
</view>
</view>
<view class="empty" wx:else>暂无更多数据</view>
</view>
... ...
... ... @@ -98,12 +98,12 @@ page {
text-align: center;
}
.real_goods {
width: 708rpx;
width: 750rpx;
margin: 0 auto;
background: #f9f9f9;
display: flex;
flex-wrap: wrap;
padding: 8rpx 11rpx 20rpx;
/* padding: 8rpx 11rpx 20rpx; */
box-sizing: border-box;
}
... ... @@ -114,6 +114,11 @@ page {
background: #fff;
overflow: hidden;
position: relative;
display:flex;
flex-direction: column;
justify-content: center;
align-items: center
}
.real_goods_img {
... ... @@ -147,7 +152,7 @@ page {
}
.goods_title {
height: 72rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
... ... @@ -158,7 +163,7 @@ page {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
margin-bottom: 20rpx;
}
.goods_flex {
... ...
... ... @@ -22,12 +22,13 @@ Page({
let that = this
let url = '/getopenid/product_view_log';
let data = {
page:that.data.page,
pageNum:10
}
app.post(url, data, "POST").then((r) => {
console.log(r)
that.setData({
zujilist: r.msg
zujilist: that.data.zujilist.concat(r.msg)
})
console.log(that.data.zujilist)
... ... @@ -84,7 +85,13 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
let newpage=this.data.page;
newpage++;
this.setData({
page:newpage
})
this.getzujilist()
},
/**
... ...
... ... @@ -98,12 +98,12 @@ page {
text-align: center;
}
.real_goods {
width: 708rpx;
width: 750rpx;
margin: 0 auto;
background: #f9f9f9;
display: flex;
flex-wrap: wrap;
padding: 8rpx 11rpx 20rpx;
padding: 8rpx 0 20rpx;
box-sizing: border-box;
}
... ... @@ -114,6 +114,10 @@ page {
background: #fff;
overflow: hidden;
position: relative;
display:flex;
flex-direction: column;
justify-content: center;
align-items: center
}
.real_goods_img {
... ...