Browse Source

新增店铺信息

master
杜叶春 2 years ago
parent
commit
3a24b0f9a6
  1. 3
      app.json
  2. 4
      app.wxss
  3. BIN
      images/123123@2x.png
  4. BIN
      images/147852@2x(2).png
  5. BIN
      images/456654@2x(3).png
  6. BIN
      images/4566@2x(1).png
  7. BIN
      images/back-8@2x.png
  8. BIN
      images/back_home.png
  9. BIN
      images/blueRight.png
  10. BIN
      images/f.png
  11. BIN
      images/fx.png
  12. BIN
      images/goods_shopImg.png
  13. BIN
      images/gw.png
  14. BIN
      images/icon_dz.png
  15. BIN
      images/kefu.png
  16. BIN
      images/kefu1.png
  17. BIN
      images/xinghei.png
  18. BIN
      images/xinghui.png
  19. 121
      pages/category/category.wxml
  20. 132
      pages/collection/collection.js
  21. 2
      pages/distribution/detail.wxml
  22. 2
      pages/distribution/list.wxml
  23. 8
      pages/distribution/user.wxss
  24. 37
      pages/footprint/footprint.js
  25. 2
      pages/footprint/footprint.wxml
  26. 6
      pages/group_buy/cantuan.wxml
  27. 6
      pages/group_buy/detail.wxml
  28. 2
      pages/group_buy/payfor.wxml
  29. 4
      pages/index/index.js
  30. 2
      pages/index/index.wxml
  31. 2
      pages/index/index.wxss
  32. 147
      pages/listdetail/listdetail.js
  33. 122
      pages/listdetail/listdetail.wxml
  34. 128
      pages/listdetail/listdetail.wxss
  35. 21
      pages/new/new.wxml
  36. 4
      pages/new/new.wxss
  37. 4
      pages/order/detail.wxml
  38. 23
      pages/product/detail.js
  39. 120
      pages/product/detail.wxml
  40. 105
      pages/product/detail.wxss
  41. 6
      pages/return_goods/index.wxml
  42. 2
      pages/return_goods/return_goods.wxml
  43. 6
      pages/shop/shop.js
  44. 85
      pages/store/myStore.js
  45. 6
      pages/store/myStore.json
  46. 14
      pages/store/myStore.wxml
  47. 38
      pages/store/myStore.wxss
  48. 77
      pages/store/store.js
  49. 5
      pages/store/store.json
  50. 65
      pages/store/store.wxml
  51. 271
      pages/store/store.wxss
  52. 11
      pages/user/user.js
  53. 33
      utils/server.js
  54. 2
      wxSearch/wxSearch.wxml

3
app.json

@ -50,7 +50,8 @@
"pages/login/register",
"pages/shop/shop",
"pages/store/store",
"pages/order/payment"
"pages/order/payment",
"pages/store/myStore"
],
"window": {
"backgroundTextStyle": "light",

4
app.wxss

@ -167,8 +167,8 @@ page {
margin-left: 10px;
}
button[type="warn"] {
color:#FFFFFF;
background-color:#d9002f;
color:#FFFFFF;
background-color:#d9002f;
}
/* /加载页面/ */

BIN
images/123123@2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

BIN
images/147852@2x(2).png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
images/456654@2x(3).png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
images/4566@2x(1).png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
images/back-8@2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

BIN
images/back_home.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
images/blueRight.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
images/f.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

BIN
images/fx.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
images/goods_shopImg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
images/gw.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
images/icon_dz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
images/kefu.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
images/kefu1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

BIN
images/xinghei.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
images/xinghui.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

121
pages/category/category.wxml

@ -1,72 +1,71 @@
<!--pages/category/category.wxml-->
<!--index.wxml-->
<view class="body" wx:if="{{remind}}">
<view class='zong'>
<view class="spinner" >
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
</view>
<view class='zong'>
<view class="spinner">
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
</view>
</view>
</view>
<!-- 加载页面结束 -->
<block wx:else>
<import src="/wxSearch/wxSearch.wxml"/>
<form bindsubmit="wxSearchFn" report-submit="true" >
<view class="wxSearch-section">
<view class="wxSearch-pancel">
<input bindinput="wxSearchInput" confirmType="search" bindconfirm="search_confirmType" value="{{wxSearchData.value}}" bindtap="wxSerchFocus" class="wxSearch-input" placeholder="搜索" />
<button class="wxSearch-button" type="primary" formType="submit" size="mini" plain="true">搜索</button>
</view>
</view>
</form>
<template is="wxSearch" data="{{wxSearchData}}"/>
<view class="t_container">
<!--左侧栏-->
<view class="nav_left">
<scroll-view scroll-y="true" style="height:99%;">
<view wx:for="{{cateItems}}" wx:key="cateItems">
<!--当前项的id等于item项的id,那个就是当前状态-->
<!--用data-index记录这个数据在数组的下标位置,使用data-id设置每个item的id值,供打开2级页面使用-->
<view class="nav_left_items {{curNav == item.cate_id ? 'active' : ''}}" bindtap="switchRightTab" data-index="{{index}}" data-id="{{item.cate_id}}">{{item.cate_name}}</view>
<import src="/wxSearch/wxSearch.wxml" />
<form bindsubmit="wxSearchFn">
<view class="wxSearch-section">
<view class="wxSearch-pancel">
<input bindinput="wxSearchInput" confirmType="search" bindconfirm="search_confirmType" value="{{wxSearchData.value}}" bindtap="wxSerchFocus" class="wxSearch-input" placeholder="搜索" />
<button class="wxSearch-button" type="primary" formType="submit" size="mini" plain="true">搜索</button>
</view>
</scroll-view>
</view>
<!--右侧栏-->
<view class="nav_right">
<scroll-view scroll-y="true" style="height:100%">
<!--如果有数据,才遍历项-->
<image class='cimages' wx:if="{{cateItems[curIndex].cimgurl != ''}}" src="{{cateItems[curIndex].cimgurl}}"></image>
<view wx:if="{{cateItems[curIndex].ishaveChild}}">
<block wx:for="{{cateItems[curIndex].children}}" wx:key="children">
<view class="nav_right_items">
<!--界面跳转 -->
<navigator url="../listdetail/listdetail?class={{item.child_id}}&title={{item.name}}" >
<image src="{{item.picture}}"></image>
<text>{{item.name}}</text>
</navigator>
</view>
</form>
<template is="wxSearch" data="{{wxSearchData}}" />
<view class="t_container">
<!--左侧栏-->
<view class="nav_left">
<scroll-view scroll-y="true" style="height:99%;">
<view wx:for="{{cateItems}}" wx:key="cateItems">
<!--当前项的id等于item项的id,那个就是当前状态-->
<!--用data-index记录这个数据在数组的下标位置,使用data-id设置每个item的id值,供打开2级页面使用-->
<view class="nav_left_items {{curNav == item.cate_id ? 'active' : ''}}" bindtap="switchRightTab" data-index="{{index}}" data-id="{{item.cate_id}}">{{item.cate_name}}</view>
</view>
</block>
</scroll-view>
</view>
<!--右侧栏-->
<view class="nav_right">
<scroll-view scroll-y="true" style="height:100%">
<!--如果有数据,才遍历项-->
<image class='cimages' wx:if="{{cateItems[curIndex].cimgurl != ''}}" src="{{cateItems[curIndex].cimgurl}}"></image>
<view wx:if="{{cateItems[curIndex].ishaveChild}}">
<block wx:for="{{cateItems[curIndex].children}}" wx:key="children">
<view class="nav_right_items">
<!--界面跳转 -->
<navigator url="../listdetail/listdetail?id={{item.child_id}}&title={{item.name}}">
<image src="{{item.picture}}"></image>
<text>{{item.name}}</text>
</navigator>
</view>
</block>
</view>
<!--如果无数据,则显示数据-->
<view class="nodata_text" wx:else>该分类暂无数据</view>
</scroll-view>
</view>
<!--如果无数据,则显示数据-->
<view class="nodata_text" wx:else>该分类暂无数据</view>
</scroll-view>
</view>
</view>
</block>
</block>

132
pages/collection/collection.js

@ -29,39 +29,24 @@ Page({
content: '确定要清除全部商品吗?',
success: function (res) {
if (res.confirm) {
wx.request({
url: app.d.ceshiUrl + '&action=addFavorites&m=alldel',
method: 'post',
data: {
openid: app.globalData.userInfo.openid,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var status = res.data.status
if (status == 1) {
wx.showToast({
title: '清理成功!',
duration: 2000
});
that.setData({
list: []
});
} else {
wx.showToast({
title: '清理失败!',
duration: 2000
});
}
},
error: function (e) {
WXAPI.delallFavorites({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
}).then(res => {
if (res.code == 200) {
wx.showToast({
title: '网络异常!',
title: '清理成功!',
duration: 2000
});
that.collection();
} else {
wx.showToast({
title: res.message,
duration: 2000
});
}
});
});
} else if (res.cancel) {
console.log('用户点击取消')
}
@ -70,36 +55,18 @@ Page({
},
collection: function () {
var that = this;
wx.request({
url: app.d.ceshiUrl + '&action=addFavorites&m=collection',
method: 'post',
data: {
openid: app.globalData.userInfo.openid,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var status = res.data.status
if (status == 1) {
that.setData({
list: res.data.list,
bgcolor: app.d.bf_color,
remind: ''
});
} else {
wx.showToast({
title: '暂时还没有收藏!',
duration: 2000,
remind: ''
});
}
},
error: function (e) {
wx.showToast({
title: '网络异常!',
duration: 2000
});
WXAPI.favorites({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
type: 1
}).then(res => {
if (res.code == 200) {
var data = res.data
that.setData({
list: data.list,
remind: ''
})
}
});
},
@ -107,43 +74,30 @@ Page({
removeFavorites: function (e) {
console.log(e)
var that = this;
var id = e.currentTarget.dataset.favId;
var collection_id = e.currentTarget.dataset.favId;
wx.showModal({
title: '提示',
content: '你确认移除吗',
content: '你确认取消收藏吗',
success: function (res) {
res.confirm && wx.request({
url: app.d.ceshiUrl + '&action=addFavorites&m=removeFavorites',
method: 'post',
data: {
id: id,
openid: app.globalData.userInfo.openid,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var status = res.data.status;
if (status == 1) {
wx.showToast({
title: res.data.succ,
duration: 2000
});
that.collection();
} else {
wx.showToast({
title: res.data.err,
duration: 2000
});
}
},
error: function (e) {
res.confirm && WXAPI.removeFavorites({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
collection: collection_id,
}).then(res => {
if (res.code == 200) {
wx.showToast({
title: res.data.succ,
duration: 2000
});
that.collection();
} else {
wx.showToast({
title: '网络异常!',
title: res.message,
duration: 2000
});
}
});
});
}
});
}

2
pages/distribution/detail.wxml

@ -109,7 +109,7 @@
<view style='position: relative;height: 33px;'>
<contact-button type="default-light" session-from="productId_{{itemData.id}}" class="ke"></contact-button>
<view style='position: absolute;top: 0px;width: 50px;background:#ff6347;height: 30px;border-radius: 15px 0 0 15px;color: #fff;right:0;'>
<image class="icon_kf kf_img" src="/images/kefu1.png"></image>
<image class="icon_kf kf_img" src="/images/kefu.png"></image>
</view>
</view>
</view>

2
pages/distribution/list.wxml

@ -98,7 +98,7 @@
</view>
<view class="commodity_screen" bindtap="hideModal" wx:if="{{showModalStatus}}">1</view>
<view animation="{{animationData}}" class="commodity_attr_box" wx:if="{{showModalStatus}}"></view>
<view class="clear mt10" wx:if="{{period}}" style='border:0;color#666' >-我是有底线的-</view>
<view class="clear mt10" wx:if="{{period}}" style='border:0;color:#666' >-我是有底线的-</view>
</view>
</block>

8
pages/distribution/user.wxss

@ -95,9 +95,7 @@ contact-button{
display:flex;
flex-direction:column;
}
.hh{
/* margin-top: 15px; */
}
.dibu{
background-color: #48474c;
width: 100%;
@ -197,10 +195,6 @@ contact-button{
font-size:28rpx;
font-weight:bold;
}
.obtain_bt_3{
}
@keyframes rise{
0% {opacity: 0;transform: translate3d(0,100%,0);}

37
pages/footprint/footprint.js

@ -73,33 +73,16 @@ Page({
// 查看足迹
footprint: function(){
var that = this;
wx.request({
url: app.d.ceshiUrl + '&action=footprint&m=index',
method: 'post',
data: {
openid: app.globalData.userInfo.openid,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var status = res.data.status
if (status == 1) {
that.setData({
arr: res.data.arr
});
} else {
wx.showToast({
title: '暂时还没有记录!',
duration: 2000
});
}
},
error: function (e) {
wx.showToast({
title: '网络异常!',
duration: 2000
});
WXAPI.footprint({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
}).then(res => {
if (res.code == 200) {
var data = res.data
that.setData({
arr: data.arr
})
}
});
}

2
pages/footprint/footprint.wxml

@ -29,7 +29,7 @@
<view class="font_14"><image class="scimg" src="/images/search_no.png"></image></view>
<text>暂时还没有记录/(ㄒoㄒ)/~~</text>
</view>
<view wx:for="{{arr}}">
<view wx:for="{{arr}}" wx:key="id">
<view class="top">
<view>{{item.time}}</view>
</view>

6
pages/group_buy/cantuan.wxml

@ -49,7 +49,7 @@
<view class='{{man_num>4?"tablist":"tablist1"}}' style='margin-top:20rpx;'>
<view wx:for="{{groupMember}}" wx:for-index="idx" wx:key="unique" class='item' scroll-x style='margin:0 20rpx;width:150rpx;position:relative;'>
<text class="group-header" wx:if="{{idx==0}}" style='height:37rpx;position: absolute;top: -5px;left: -5px;background-color: orange;color: #fff;padding: 10rpx;border-radius: 15rpx;font-size: 25rpx;width:50rpx;'>团长</text>
<image src="{{item.headimgurl}}" mode="aspectFill" style="{{idx < 1 ? 'border:1px solid orange':'border:1px dashed #666'}};margin:10rpx;"></image>
<image src="{{item.headimgurl}}" mode="aspectFill" style="{{idx < 1 ? 'border:1px solid orange':'border:1px dashed #666'}}"></image>
</view>
</view>
</scroll-view>
@ -88,7 +88,7 @@
<button class='yq_btn' open-type="share">邀请好友</button>
</block>
<block wx:else>
<form bindsubmit="getUserformid" report-submit="true" data-status="1">
<form bindsubmit="getUserformid" data-status="1">
<button class='yq_btn' formType="submit">一键参团</button>
</form>
</block>
@ -161,7 +161,7 @@
</scroll-view>
</view>
<view class="footc" style='border-radius:15rpx;'>
<form bindsubmit="getformidToo" report-submit="true">
<form bindsubmit="getformidToo">
<button class="" type="primary" formType="submit" data-type="{{paytype}}" style='width:100%;height:90rpx;background:#FF6347;color:#fff !important;line-height:90rpx;'>确定</button>
</form>
</view>

6
pages/group_buy/detail.wxml

@ -195,7 +195,7 @@
<view style='font-size:24rpx;height: 39rpx;text-align: center;display: flex;align-items: center;text-align: center;justify-content: center;'>单独购买</view>
</view>
<block wx:if="{{is_over==false}}">
<form report-submit="true" data-type="group" bindtap="setModalStatus" data-status="1" style='width:40%;'>
<form data-type="group" bindtap="setModalStatus" data-status="1" style='width:40%;'>
<button class="pt_btn kt" type="primary" formType="submit" style='background:#ff6347;display:flex;flex-direction:column;justify-content:center;'>
<view style='font-size: 30rpx;height: 39rpx;text-align: center;display: flex;align-items: center;text-align: center;justify-content: center;'>¥{{gprice}}</view>
<view style='font-size: 24rpx;height: 39rpx;text-align: center;display: flex;align-items: center;text-align: center;justify-content: center;'>立即开团</view>
@ -218,7 +218,7 @@
<view style='position: relative;height: 33px;'>
<contact-button type="default-light" session-from="productId_{{itemData.product_id}}" class="ke"></contact-button>
<view style='position: absolute;top: 0px;width: 50px;background:#ff6347;height: 30px;border-radius: 15px 0 0 15px;color: #fff;right:0;'>
<image class="icon_kf kf_img" src="/images/kefu1.png"></image>
<image class="icon_kf kf_img" src="/images/kefu.png"></image>
</view>
</view>
</view>
@ -273,7 +273,7 @@
</scroll-view>
</view>
<view class="footc" style='border-radius:15rpx;'>
<form bindsubmit="getformidToo" report-submit="true" data-type="{{paytype}}">
<form bindsubmit="getformidToo" data-type="{{paytype}}">
<button class="" type="primary" formType="submit" style='width:100%;height:90rpx;background:#ff6347;color:#fff !important;line-height:90rpx;'>确定</button>
</form>
</view>

2
pages/group_buy/payfor.wxml

@ -24,7 +24,7 @@
</view>
<!-- 加载页面结束 -->
<block wx:else>
<form bindsubmit="createProductOrderByWX" report-submit="true">
<form bindsubmit="createProductOrderByWX">
<view class="w100" style='padding-bottom:100px;'>
<!-- 收货地址 -->
<view class="p_all bg_white mt10 font_14 top_xt" wx:if="{{buymsg != ''}}">

4
pages/index/index.js

@ -32,8 +32,8 @@ Page({
zjList_box: false,
cart: 0, //购物车数量
region: '',
latitude: 28.227965,
longitude: 112.951227,
latitude: 28.23529,
longitude: 112.93134,
},
//下拉事件
onPullDownRefresh: function () {

2
pages/index/index.wxml

@ -27,7 +27,7 @@
</view>
<!-- 加载页面结束 -->
<block wx:else>
<!-- <form bindsubmit="search_cancel" wx:if="{{searchView}}" report-submit="true">
<!-- <form bindsubmit="search_cancel" wx:if="{{searchView}}">
<view class="search-box">
<view class="input-box">

2
pages/index/index.wxss

@ -294,7 +294,7 @@ swiper {
/* padding-top: 10rpx; */
}
.cont .productView {
margin-bottom:10px;
margin-bottom:10rpx;
background:#fff;
display:inline-block;
width:46%;

147
pages/listdetail/listdetail.js

@ -62,7 +62,6 @@ Page({
},
});
this.setData({
bgcolor: app.d.bgcolor,
objectId: objectId,
title: title,
})
@ -84,48 +83,38 @@ Page({
} else {
var page = that.data.page + 1;
}
//ajax请求数据
wx.request({
url: app.d.ceshiUrl + '&action=search&m=listdetail',
method: 'post',
data: {
cid: objectId,
select: select,
sort: sort,
page: page
},
header: {
'content-type': 'application/x-www-form-urlencoded'
},
success: function (res) {
if (res.data.status) {
var shoplist = res.data.pro;// 商品信息
if (types == 0) {
that.setData({
shopList: shoplist,
bg: res.data.bg
})
} else {
that.setData({
page: page,
shopList: that.data.shopList.concat(shoplist)
})
}
WXAPI.listdetail({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
cid: objectId,
page: 1,
pro:'',
keyword:'',
sort_criteria: sort,
query_criteria: '',//'{"brand_id":"","min_price":"","max_price":""}',
}).then(res => {
if (res.code == 200) {
var data = res.data
var shoplist = data.pro;// 商品信息
if (types == 0) {
that.setData({
shopList: shoplist,
bg: data.bg
})
} else {
that.setData({
period: true
});
return false;
page: page,
shopList: that.data.shopList.concat(shoplist)
})
}
},
error: function (e) {
wx.showToast({
title: '网络异常!',
icon: 'none',
duration: 2000
} else {
that.setData({
period: true
});
}
})
return false;
}
});
},
//点击加载更多
getMore: function (e) {
@ -173,44 +162,35 @@ Page({
success: function () {
},
});
wx.request({
url: app.d.ceshiUrl + '&action=search&m=search',
method: 'post',
data: {
keyword: keyword,
num: that.data.page,
select: that.data.select,
sort: that.data.sort,
},
header: {
'content-type': 'application/x-www-form-urlencoded'
},
success: function (res) {
if (res.data.code == 1) {
var goods = res.data.list;
var type = res.data.type;
if (type == 0) {
that.data.objectId = res.data.cid;
var page = that.data.page;
var shoplist = [];
for (var i = 0; i <= page * 2 - 1; i++) {
if (i == goods.length) {
break;
}
shoplist[i] = goods[i];
}
if (types) {
that.setData({
type: type,
goodslist: goods,
shopList: that.data.shopList.concat(shoplist)
});
} else {
that.setData({
type: type,
shopList: goods
});
WXAPI.searchList({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
keyword: keyword,
num: that.data.page,
select: that.data.select,
sort_criteria: that.data.sort,
}).then(res => {
if (res.code == 200) {
var data = res.data
var goods = data.list;
var type = data.type;
if (type == 0) {
that.data.objectId = res.data.cid;
var page = that.data.page;
var shoplist = [];
for (var i = 0; i <= page * 2 - 1; i++) {
if (i == goods.length) {
break;
}
shoplist[i] = goods[i];
}
if (types) {
that.setData({
type: type,
goodslist: goods,
shopList: that.data.shopList.concat(shoplist)
});
} else {
that.setData({
type: type,
@ -219,17 +199,16 @@ Page({
}
} else {
that.setData({
period: true
type: type,
shopList: goods
});
}
},
error: function (e) {
wx.showToast({
title: '网络异常!',
duration: 2000
} else {
that.setData({
period: true
});
}
})
}
});
},
onShow: function () {
// 页面显示

122
pages/listdetail/listdetail.wxml

@ -1,6 +1,6 @@
<view class="body" wx:if="{{remind}}">
<view class='zong'>
<view class="spinner" >
<view class="spinner">
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
@ -24,10 +24,9 @@
</view>
<!-- 加载页面结束 -->
<block wx:else>
<!-- <image wx:if="{{bg != ''}}" class='class_img' src='{{bg}}'></image> -->
<view style='height:90rpx' wx:if="{{bg != ''}}"></view>
<view class='sort-wrap fd' wx:if="{{shopList.length > 0}}">
<!-- <image wx:if="{{bg != ''}}" class='class_img' src='{{bg}}'></image> -->
<view style='height:90rpx'></view>
<view class='sort-wrap fd'>
<view class="sort-btn {{select == 0 ? 'select' : ''}}" bindtap="default">
最新
</view>
@ -44,90 +43,61 @@
</view>
</view>
<view class="list {{bg == '' ? 'mt90':''}}" wx:if="{{shopList.length > 0}}">
<view class="cont" style='padding-top:10px;'>
<view class="{{shu}}">
<navigator class="pr {{shu}}" style='border:1px solid #EDEDED;' url="../product/detail?productId={{item.id}}&size={{item.sizeid}}" hover-class="changestyle" wx:for="{{shopList}}" wx:key="*this" data-id="{{item.id}}">
<view>
<image class="photo" src="{{item.imgurl}}"></image>
</view>
<view class='shu'>
<view class="title">{{item.name}}</view>
<view style="line-height:50rpx;padding:10rpx 0;">
<view class="gmxx" style="font-size:28rpx;">
<text style="padding:0px 2px;" wx:if="{{item.xp == 1}}">新品</text>
<text style="padding:0px 2px;" wx:if="{{item.rexiao == 1}}">热销</text>
<text style="padding:0px 2px;" wx:if="{{item.tuijian == 1}}">推荐</text>
<view class="list" wx:if="{{shopList.length > 0}}">
<view class="cont" style='padding-top:10px;'>
<view class="xs">
<navigator class="product xs" url="../product/detail?productId={{item.id}}&size={{item.size}}" hover-class="changestyle" wx:for="{{shopList}}" wx:key="index" data-id="{{item.id}}">
<image class="photo" src="{{item.imgurl}}"></image>
<view class="title">新品 {{item.product_title}}</view>
<view class="gstatus">{{item.s_type_list[0].name}}</view>
<view style="display:flex;line-height:50rpx;color:#999">
<view class="gmxx">¥ {{item.price}}</view>
<view class="ku">已售{{item.volume}}件</view>
</view>
<!-- <view class="gmx">¥ {{item.price}}</view> -->
</view>
<view style="display:flex;line-height:50rpx;color:#999">
<view class="gmxx" style=" color: red;">¥ {{item.price_yh}}</view>
<view class="ku" style="width:60%">销量:{{item.volume}}</view>
</view>
</view>
</navigator>
</view>
<view class="{{heng}}">
<navigator class="pr pr_xt" style='display:flex;margin-bottom:0px;width:100%;margin-left:0px;' url="../product/detail?productId={{item.id}}&size={{item.sizeid}}" hover-class="changestyle" wx:for="{{shopList}}" wx:key="*this" data-id="{{item.id}}" >
<view style="border-bottom:1px solid #eee;">
<image style='height:220rpx;width:230rpx;margin-left:10px;' src="{{item.imgurl}}"></image>
</view>
<view class='shu shu_xt' style='width:65%;padding:0 10px;'>
<view class="title">{{item.name}}</view>
<view class="gmxx" style="font-size:28rpx;">
<text style="padding:0px 2px;" wx:if="{{item.xp == 1}}">新品</text>
<text style="padding:0px 2px;" wx:if="{{item.rexiao == 1}}">热销</text>
<text style="padding:0px 2px;" wx:if="{{item.tuijian == 1}}">推荐</text>
<view style="display:flex;">
<view class="goods_shopBox">
<image class="goods_shop" src="{{logoUrl}}{{item.logo}}"></image>
<text>{{item.mch_name}}</text>
</view>
</view>
<view style="display:flex;line-height:50rpx;padding:10rpx 0;">
<view style="display:flex;line-height:50rpx;color:#999">
<!-- <view class="gmx" style='text-align:right;margin-right:17rpx;'>¥ {{item.price}}</view> -->
</view>
<view class="gmxx" style=" color: red;">¥ {{item.price_yh}}</view>
<view class="ku" style="width:60%">销量:{{item.volume}}</view>
</view>
</view>
</navigator>
</view>
</view>
<view class="commodity_screen" bindtap="hideModal" wx:if="{{showModalStatus}}">1</view>
<view animation="{{animationData}}" class="commodity_attr_box" wx:if="{{showModalStatus}}"></view>
<view class="clear mt10" wx:if="{{period}}" style='border: 0;color: #999;' >-我是有底线的-</view>
<view animation="{{animationData}}" class="commodity_attr_box" wx:if="{{showModalStatus}}"></view>
<view class="clear mt10" wx:if="{{period}}" style='border: 0;color: #999;'>-我是有底线的-</view>
<block wx:else>
<!-- 显示加载 -->
<view style="display: flex;" wx:if="{{loading}}">
<view class="spinner" style='margin:20px auto;' >
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
<!-- 显示加载 -->
<view style="display: flex;" wx:if="{{loading}}">
<view class="spinner" style='margin:20px auto;'>
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
</view>
</view>
</view>
</block>
</view>
<block wx:else>
<view style='text-align:center;padding-top:30%;'>
<view class="font_14"><image class="scimg" src="/images/icon-no.png"></image></view>
<text style="color: #666;font-size: 13px;">没有找到您需要商品(ㄒoㄒ)~~</text>
<view class="font_14">
<image class="scimg" src="/images/icon-no.png"></image>
</view>
<text style="color: #666;font-size: 13px;">没有找到您需要商品(ㄒoㄒ)~~</text>
</view>
</block>
</block>

128
pages/listdetail/listdetail.wxss

@ -103,7 +103,7 @@ page {
height: 80rpx;
}
.list{
background: #fff;
background: #f5f5f5;
width: 100%;
}
.ban{
@ -164,13 +164,21 @@ page {
font-size: 30rpx;
margin-top: 30rpx;
}
.cont .pr {
margin-bottom:10px;
background:#fff;
display:inline-block;
width:46%;
margin-left:18rpx;
.cont {
width: 100%;
margin: 0 auto;
}
.cont .product {
margin-bottom:10rpx;
background:#fff;
display:inline-block;
width:46%;
margin-left:22rpx;
font-size:13px;
border-radius: 10rpx;
overflow: hidden;
}
.cont_image {
width: 100%;
height: 285rpx;
@ -179,39 +187,37 @@ margin-left:18rpx;
.cont .title {
font-size: 28rpx;
color: #333;
line-height: 20px;
line-height: 28px;
margin: 0;
height: 40px;
overflow: hidden;
text-overflow: ellipsis;
max-height: 60rpx;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.cont .tit {
/*height: 80rpx;*/
font-size: 12px;
color: #333;
line-height: 20px;
margin: 0;
max-height: 40px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding: 1% 5% 0 5%;
/*color: #ccc*/
padding: 0 20rpx 0 20rpx;
}
.cont .gstatus{
color: #999;
font-size: 21rpx;
margin: 5rpx 20rpx 10rpx 20rpx;
/* border-radius: 40rpx; */
padding: 3rpx 5rpx;
height: 25rpx;
width: 45rpx;
line-height: 25rpx;
text-align: center;
border: 1rpx solid #999;
}
.photo{
height:345rpx;
width:345rpx;
width:100%;
}
.cont .photo {
margin-bottom:10px;
background:#fff;
display:inline-block;
background:#fff;
display:inline-block;
}
.co .title {
font-size: 32rpx;
@ -222,20 +228,23 @@ display:inline-block;
padding: 1% 5% 0 5%;
font-weight: 700;
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-line-clamp:1;
-webkit-box-orient:vertical;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-line-clamp:1;
-webkit-box-orient:vertical;
}
.gmxx {
padding-left:20rpx;
width:74%;
}
.gmx {
text-align: left;
width: 50%; font-size: 26rpx;
margin-left:20rpx; text-decoration:line-through;
color: #999
text-align: right;
width: 67%;
font-size: 25rpx;
text-decoration:line-through;
color: #999;
margin-right:7px;
}
.gmx .xiaoliang {
font-size: 26rpx;
@ -251,15 +260,29 @@ display:-webkit-box;
font-family: '\5FAE\8F6F\96C5\9ED1', arial, "\5b8b\4f53";
}
.gmxx{
font-size: 14px;
color: #d9002f;
font-size: 15px;
color: #fa5151;
/*padding-top: 10px; */
}
.ku{
text-align: right;
width: 50%; font-size: 26rpx;
width: 50%;
font-size: 23rpx;
margin-right:10rpx;
color: #666;
color: #999;
}
.goods_shopBox{
display: flex;
align-items: center;
margin: 15rpx 20rpx 15rpx;
font-size: 20rpx;
color: #1d1313;
}
.goods_shopBox .goods_shop{
width: 30rpx;
height: 30rpx;
border-radius: 50%;
margin-right: 10rpx;
}
.icons {
@ -360,5 +383,26 @@ margin-top:5px !important;
}
.shu_xt{
border-bottom:1px solid #eee;
margin-top: 15px;
}
.photo-c{
position: relative;
}
.photo-right{
position: absolute;
top: 0;
right: 0;
width: 30px;
height: 30px;
}
.goTop{
height: 80rpx;
width: 80rpx;
position: fixed;
bottom: 50rpx;
background: rgba(0,0,0,.7);
right: 30rpx;
/* */
z-index: 9999;
}

21
pages/new/new.wxml

@ -62,27 +62,6 @@
</view>
</navigator>
</view>
<!-- <view class="{{heng}}">
<navigator class="pr pr_xt" style='display:flex;margin-bottom:0px;width:100%;margin-left:0px;' url="../product/detail?productId={{item.id}}&size={{item.size}}" hover-class="changestyle" wx:for="{{shopList}}" wx:key="*this" data-id="{{item.id}}">
<view class='photo-c'>
<image class="photo" style='height:220rpx;width:230rpx;margin-left:20rpx;padding-top:20rpx' src="{{item.imgurl}}"></image>
</view>
<view class='shu shu_xt' style='width:65%;padding:0 10px;'>
<view class="title">
<text style="font-size:28rpx;width:30%;color:#B82136">新品 </text>{{item.name}}
</view>
<view style="display:flex;line-height:50rpx;padding:10rpx 0 5rpx;">
<view class="gmxx" style=" color: red;">¥ {{item.price_yh}}</view>
<view class="gmx" style='text-align:right;'>¥ {{item.price}}</view>
</view>
<view style="display:flex;line-height:50rpx;color:#999">
<view class="ku">销量:{{item.volume}}</view>
</view>
</view>
</navigator>
</view> -->
</view>
<view class="commodity_screen" bindtap="hideModal" wx:if="{{showModalStatus}}">1</view>
<view animation="{{animationData}}" class="commodity_attr_box" wx:if="{{showModalStatus}}"></view>

4
pages/new/new.wxss

@ -98,7 +98,7 @@ page {
height: 80rpx;
}
.list{
background: #eee;
background: #f5f5f5;
width: 100%;
/* margin-top: 90rpx; */
}
@ -163,7 +163,7 @@ page {
margin: 0 auto;
}
.cont .product {
margin-bottom:10px;
margin-bottom:10rpx;
background:#fff;
display:inline-block;
width:46%;

4
pages/order/detail.wxml

@ -156,10 +156,10 @@
<!-- <view class='pay_bottom' wx:if="{{rstatus != 0 && type1 == 11 && dr != 11}}" style='padding-top: 8px'>
<view class="font_12 red fl_r mr_5" style='border: 0;height: 60px;display: flex;justify-content: flex-end ;width: 100%;padding: 0;'>
<form bindsubmit="getUserformid" report-submit="true">
<form bindsubmit="getUserformid">
<button class="pay_foot" style='color: #808080;border: 1px solid #808080;border-radius: 3px;margin: 0;font-size: 13px;padding: 0;width: 90px;height: 30px;line-height: 30px;' data-orderId="{{id}}" data-ordersn="{{sNo}}" formType="submit">拼单详情</button>
</form>
<form bindsubmit="getUserformid" report-submit="true">
<form bindsubmit="getUserformid">
<button class="pay_foot" style='color: #fff;background: #FF6347;border-radius: 3px;margin: 0;font-size: 13px;padding: 0;width: 90px;height: 30px;line-height: 30px;' data-orderId="{{id}}" data-ordersn="{{sNo}}" formType="submit">分享好友</button>
</form>
</view>

23
pages/product/detail.js

@ -35,6 +35,7 @@ Page({
commodityAttr: [],
attrValueList: [],
show_share: false,
shop_list: {},
},
//分享朋友圈 查看保存图片
user_share: function () {
@ -165,6 +166,7 @@ Page({
WxParse.wxParse('content', 'html', content, that, 5);
that.setData({
itemData: pro,
shop_list: data.shop_list,
kucun: pro.num,
bannerItem: pro.img_arr,
share: data.share,
@ -657,8 +659,10 @@ Page({
}
var that = this;
WXAPI.addFavoritesIndex({
openid: app.globalData.userInfo.openid,
pid: that.data.productId,
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
pro_id: that.data.productId,
}).then(res => {
if (res.code == 200) {
var data = res.data;
@ -669,7 +673,7 @@ Page({
that.setData({
wsc: 'bxs',
sc: 'xs',
collection_id: data.id
collection_id: data.collection_id
})
//变成已收藏,但是目前小程序可能不能改变图片,只能改样式
that.data.itemData.isCollect = false;
@ -689,7 +693,10 @@ Page({
delFavorites: function (e) {
var that = this;
WXAPI.removeFavorites({
id: that.data.collection_id,
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
collection: that.data.collection_id,
}).then(res => {
if (res.code == 200) {
var data = res;
@ -856,9 +863,13 @@ Page({
}
})
},
navToStore: function (e) {
var info = e.currentTarget.dataset.info
wx.navigateTo({
url: '/pages/store/store?shopId=' + info.shop_id,
})
},
close_share: function (e) {
var that = this;
that.setData({

120
pages/product/detail.wxml

@ -29,7 +29,7 @@
<block wx:for="{{bannerItem}}" wx:key="index">
<swiper-item>
<image src="{{item}}" class="slide-image" />
<text style='position:absolute;z-index:999;width:20px;bottom:0;right:19px;color:#ddd;'>{{index+1}}/{{bannerItem.length}}</text>
<text style='position:absolute;z-index:999;width:20px;bottom:15rpx;right:16px;color:#ddd;'>{{index+1}}/{{bannerItem.length}}</text>
</swiper-item>
</block>
</swiper>
@ -49,7 +49,7 @@
</view>
<block wx:else>
<text style='font-size:40rpx;'>{{qj_price}}</text>
<text style='font-size:40rpx;'>{{qj_yprice}}</text>
<view wx:if="{{is_zhekou == 1 && zhekou !='all' && zhekou}}" style='width:100px;height:19px;float:right;'>会员折扣: {{zhekou}} 折</view>
</block>
@ -67,48 +67,35 @@
<text class='de_text' wx:if="{{itemData.tuijian == 1}}">推荐</text>
<text class='de_text' wx:if="{{itemData.xp == 1 || itemData.rexiao == 1 || itemData.tuijian == 1}}">]</text> {{itemData.name}}
</view>
<view style='float:right;margin-top:-4px;'>
<view class="df_1 l_h15 pt5">
<view bindtap="addFavorites" class='{{wsc}}'>
<image class="icon_kf" src="/images/shc.png" style="width: 23px;height: 23px;margin-top: 6px;"></image>
<!-- <view class="dbtext">收藏</view> -->
</view>
<view bindtap="delFavorites" class='{{sc}}'>
<image class="icon_kf" src="/images/shced.png" style="width: 23px;height: 23px;margin-top: 6px;"></image>
<!-- <view class="dbtext">已收藏</view> -->
</view>
</view>
</view>
<view style='clear:both;'></view>
<!-- <view style='margin-top:px;'>
</view> -->
<!-- <view style='height: 20rpx;'></view> -->
</view>
<view class='kd_xl'>
<text class="c6 font_14" style='color:#ccc;margin-right:90px;'>运费:{{itemData.freight}}</text>
<text class="c6 font_14" style='color:#ccc'>销量:{{itemData.volume}}</text>
<text class="c6 font_14" style='color:#999;'>销量:{{itemData.volume}}</text>
<text class="c6 font_14" style='color:#999;'>运费:{{itemData.freight}}</text>
</view>
</view>
<view style='clear:both;'></view>
<view class='qgx'></view>
<button class='gg_fl' style="font-size: 15px;height: 35px;padding: 0;width: 90%;margin: auto;background: #fff;line-height: 35px;" form-type="submit" type="default" data-type="" data-status="1">
<view style='float: left;font-size: 15px;line-height: 35px;color: #666;'>规格
<button class='gg_fl' style="font-size: 15px;height: 40px;padding: 0;width: 90%;margin: auto;background: #fff;line-height: 40px;" form-type="submit" type="default" data-type="" data-status="1">
<view style='float: left;font-size: 15px;line-height: 40px;color: #666;'>规格
<text wx:if="{{value}}" style='color:#666;padding-left:15px;'>{{value}}</text>
<text wx:else style='color:#666;padding-left:15px;'>选择 颜色分类</text>
</view>
<view style='float:right'>
<image src='../../images/x_right.png' style='float: right;line-height: 35px;'></image>
</view>
<view style='clear:both;'></view>
<!-- <view style='position:absolute;right:0rpx;margin-top:6rpx;'>
<image src='/images/x_right.png' style='width:25rpx;height:25rpx;'></image>
</view> -->
</button>
<view class='qgx'></view>
<!-- 悬浮客服窗口 -->
<view class='kffd'>
<view style='position: relative;height: 33px;'>
<contact-button type="default-light" session-from="productId_{{itemData.id}}" class="ke"></contact-button>
<view style='position: absolute;top: 0px;width: 50px;background:#ff6347;height: 30px;border-radius: 15px 0 0 15px;color: #fff;right:0;'>
<image class="icon_kf kf_img" src="/images/kefu1.png"></image>
</view>
<view bindtap="go_cart">
<image class="icon_kf" style='margin-right:20rpx;width:35px;height:35px;' src="/images/gw.png"></image>
</view>
<view bindtap="set_share">
<image class="icon_kf" style='width:35px;height:35px;' src="/images/fx.png"></image>
</view>
</view>
</view>
@ -123,7 +110,7 @@
<view class="mingcheng">
<view wx:if="{{paytype == 'canjiapintuan'}}" style="font-size:38rpx;color:red">¥{{itemData.price11}}</view>
<view wx:else style="font-size:38rpx;color:red">¥ {{itemData.price_yh}}</view>
<view style="font-size:26rpx;color:#ccc">库存:{{itemData.num}}</view>
<view style="font-size:26rpx;color:#999">库存:{{itemData.num}}</view>
</view>
<view style='clear:both;'></view>
<view class="commodity_attr_list" catchtouchmove="preventTouchMove">
@ -164,13 +151,36 @@
<view class="xgfootc2" data-type="canjiapintuan" id="canjiapintuan" type="primary" bindtap="submit" style='background:#ec612a;'> 参加拼团¥{{itemData.price11}} </view>
</view> -->
<block wx:else>
<view class="xgfootc1" data-type="addcart" id="addcart" type="primary" bindtap="submit" style='background:#f7c747;'>加入购物车</view>
<view class="xgfootc2" data-type="buynow" id="buynow" type="primary" bindtap="submit" style='background:#ec612a;'>立即购买</view>
<view class="xgfootc1" data-type="addcart" id="addcart" type="primary" bindtap="submit" style='background:#FC9696;'>加入购物车</view>
<view class="xgfootc2" data-type="buynow" id="buynow" type="primary" bindtap="submit" style='background:#FB5657;'>立即购买</view>
</block>
<!-- </block> -->
</view>
</view>
<!--弹框结尾 -->
<!-- 店铺 -->
<view class="shop_list" wx:if="{{shop_list.shop_id}}">
<view class="shop_top">
<image src="{{shop_list.shop_logo}}" mode=""></image>
<text>{{shop_list.shop_name}}</text>
<view class="shop_top_btn" data-info='{{shop_list}}' bindtap="navToStore">进店逛逛</view>
</view>
<view class="shop_bottom">
<view class="bottom_item">
<view>{{shop_list.quantity_on_sale}}</view>
<text>在售商品</text>
</view>
<view class="bottom_item">
<view>{{shop_list.quantity_sold}}</view>
<text>已售</text>
</view>
<view class="bottom_item">
<view>{{shop_list.collection_num}}</view>
<text>收藏人数</text>
</view>
</view>
</view>
<!-- 店铺结尾 -->
<!--图文详情头部-->
<view>
@ -270,7 +280,6 @@
<view class='noe'></view>掌柜回复:{{item.reply}}
</view>
</view>
</block>
</view>
@ -283,14 +292,14 @@
<view class="fl_l w60" style='width:100%'>
<view class="df_1 pt5 bre fl_l" style='width:19%;line-height:15px;'>
<view bindtap="t_index">
<image class="icon_kf" style='width:25px;height:25px;' src="/images/icons/home.png"></image>
<image class="icon_kf" style='width:25px;height:25px;' src="/images/back_home.png"></image>
<view class="dbtext">首页</view>
</view>
</view>
<!--获取formid -->
<view class=" w40 fl_l" style='background:#f7c747;' bindtap="setModalStatus" data-status="1" data-type="buynow">单独买 ¥ {{itemData.price_yh}}</view>
<!-- <form bindsubmit="getUserformid" report-submit="true" data-status="1" data-type="canjiapintuan" style='width:40%;'>
<!-- <form bindsubmit="getUserformid" data-status="1" data-type="canjiapintuan" style='width:40%;'>
<button type="primary" formType="submit" style='width:40.6%;height:50px;background: #ec612a;color:#fff !important;display:flex;flex-direction:column;justify-content:center;border-radius:0;margin:0;float:left;'>
<view class=" fl_l" bindtap="setModalStatus" data-status="1" data-type="canjiapintuan" style='font-size:14px;'>
参加拼团 ¥{{itemData.price11}}
@ -303,33 +312,40 @@
<block wx:else>
<view class="fl_l w40 font_12 hui03 df">
<view class="df_1 l_h15 pt5 bre" st>
<view class="df_1 l_h15 pt5">
<view style='height:2rpx;background-color:#eee;'></view>
<view bindtap="t_index">
<image class="icon_kf" style='width:25px;height:25px;' src="/images/icons/home.png"></image>
<view class="dbtext">首页</view>
<image class="icon_kf" style='width:22px;height:22px;' src="/images/back_home.png"></image>
<view class="dbtext" style='margin-top: 5rpx;'>首页</view>
</view>
</view>
<view class="df_1 l_h15 pt5 bre">
<view class="go_cart" bindtap="go_cart">
<image class="icon_kf" style='width:25px;height:25px;' src="/images/icons/cart.png"></image>
<view class="dbtext">购物车</view>
<view class="bg" wx:if="{{cart> 0}}">{{cart}}</view>
<view class="df_1 l_h15 pt5">
<view style='height:2rpx;background-color:#eee;'></view>
<view class="service">
<view style='position: relative;'>
<contact-button type="default-light" session-from="product" class="ke"></contact-button>
<image class="icon_kf" style='width:22px;height:22px;' src="/images/kefu.png"></image>
</view>
<view class="dbtext" style='margin-top: 5rpx;'>客服</view>
</view>
</view>
<view class="df_1 l_h15 pt5 bre">
<button bindtap="set_share" data-status="1" style='line-height:100%;background-color:#fff;border:0;border-radius:0px;padding:0;'>
<image class="icon_kf" style='width:25px;height:25px;' src="/images/f.png"></image>
<view class="dbtext">分享</view>
</button>
<view class="df_1 l_h15 pt5">
<view style='height:2rpx;background-color:#eee;'></view>
<view bindtap="addFavorites" class='{{wsc}}'>
<image class="icon_kf" style='width:22px;height:22px;' src="/images/xinghui.png"></image>
</view>
<view bindtap="delFavorites" class='{{sc}}'>
<image class="icon_kf" style='width:22px;height:22px;' src="/images/xinghei.png"></image>
</view>
<view class="dbtext" style='margin-top: 5rpx;'>收藏</view>
</view>
</view>
<view class="fl_l w60">
<button class="w50 fl_l white" style="background: #f7c747;font-size: 15px;line-height: 50px;color: #fff;padding:0;" bindtap="showAttribute" type="default" data-type="addcart" data-status="1">加入购物车</button>
<button class="w50 fl_l white" style="background: #ec612a;padding:0;font-size: 15px;line-height: 50px;color: #fff;" bindtap="showAttribute" type="default" data-type="buynow" data-status="1">立刻购买</button>
<button class="w50 fl_l white" style="background: #FC9696;font-size: 15px;line-height: 50px;color: #fff;padding:0;" bindtap="showAttribute" type="default" data-type="addcart" data-status="1">加入购物车</button>
<button class="w50 fl_l white" style="background: #FB5657;padding:0;font-size: 15px;line-height: 50px;color: #fff;" bindtap="showAttribute" type="default" data-type="buynow" data-status="1">立刻购买</button>
</view>
</block>
</view>

105
pages/product/detail.wxss

@ -8,7 +8,7 @@ page{
color: #d9002f;
font-size: 32rpx
}
.go_cart {
.service {
position: relative;
}
.bg {
@ -25,12 +25,12 @@ page{
}
.df_1 {
-webkit-box-flex:1;
-webkit-flex:1;
-ms-flex:1;
flex:1;
-webkit-tap-highlight-color:transparent;
margin-left: 0;
-webkit-box-flex:1;
-webkit-flex:1;
-ms-flex:1;
flex:1;
-webkit-tap-highlight-color:transparent;
margin-left: 0;
}
.fuhao{
font-size: 16px;
@ -343,8 +343,7 @@ margin-left: 0;
width: 28%;
height: 200rpx;
border:1px solid #ddd;
border-radius:10rpx;
border-radius:10rpx;
}
.drawer_desc{
@ -632,19 +631,19 @@ border: none;
}
.hdname {
display:-webkit-box !important;
overflow:hidden;
text-overflow: ellipsis;
word-break: break-all;
display:-webkit-box !important;
overflow:hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
}
.kffd{
position: fixed;
top: 10%;
right: 0;
height: 30px;
width: 75px;
display: flex;
flex-direction: row;
top: 20rpx;
right: 30rpx;
z-index:999;
}
.comment_box{
@ -703,13 +702,14 @@ word-break: break-all;
}
.qgx{
width: 100%;
height: 2rpx;
background: #eee;
height: 20rpx;
background: #F4F5F6;
}
.kd_xl{
width:90%;
margin:auto;
padding-bottom:5px;
padding-top: 20rpx;
padding-bottom:10px;
display:flex;
justify-content:space-between;
}
@ -811,7 +811,7 @@ button[class="baocun"]::after{
bottom:0;
left:0;
z-index:2000;
background:#fafafa;
background:#fafafa;
opacity:1;
}
.sp_text{
@ -886,7 +886,6 @@ button[class="baocun"]::after{
}
/**index.wxss**/
.orange {
@ -935,7 +934,7 @@ button[class="baocun"]::after{
background-color: #efefef;
border-top: 1px solid #ccc;
bottom: 0rpx;
_position: absolute;
position: absolute;
}
.buttonPaddingStyle {
padding-left:10px;
@ -947,3 +946,63 @@ button[class="baocun"]::after{
.textStyle {
font-size:14px;
}
/* 店铺 */
.shop_list {
/* height: 230rpx; */
border-bottom: 20rpx solid #F4F5F6;
}
.shop_top{
display: flex;
align-items: center;
margin-top: 20rpx;
height: 120;
}
.shop_top image{
margin-left: 20rpx;
width: 90rpx;
height: 90rpx;
}
.shop_top text{
margin-left: 25rpx;
font-size: 32rpx;
height: 50rpx;
color: black;
}
.shop_top_btn{
position: absolute;
right: 30rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
line-height: 40rpx;
width: 150rpx;
height: 50rpx;
border-radius: 25rpx;
color:white;
box-sizing: border-box;
background: linear-gradient(90deg,#f6c800,#f88e28);
}
.shop_bottom{
flex: 1;
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 20rpx 110rpx;
}
.bottom_item{
display: flex;
flex-direction: column;
align-items: center;
margin-top: 24rpx;
}
.bottom_item view{
font-size: 28rpx;
line-height: 22rpx;
color: black;
}
.bottom_item text{
font-size: 24rpx;
color: #999999;
margin-top: 14rpx;
}

6
pages/return_goods/index.wxml

@ -129,13 +129,13 @@
<view class='thxq'>退货联系人:{{name}}</view>
<view class='thxq'>退货联系电话:{{phone}}</view>
<view class='thxq' style='padding-top:0;'>
<form bindsubmit="kdtj" report-submit="true">
<form bindsubmit="kdtj">
<view class='Withdraw'>
<view class="section" style="width: 100%;">
<picker bindchange="bindPickerChange" value="{{index}}" range="{{exp}}">
<view class="picker">
快递名称:
<view style='display:inline-block;float:right;margin-top:3px;'>
<view style='display:inline-block;margin-top:3px;'>
<image style='width:40rpx;height:40rpx;' src='../../images/xjt.png'></image>
</view>
<text style='margin-left: 10px;'>{{express[index].kuaidi_name}}</text>
@ -156,7 +156,7 @@
<view>联系电话:</view>
<input class='cash' name='lxdh' maxlength='11' value='' placeholder="" type='number'></input>
</view>
<button class="pay_foot" style='color:#fff;background:{{bgcolor}};border:1px solid {{bgcolor}};border-radius:30px;magin:0;font-size:14px;padding:0;width:90px;height:33px;line-height:32px;' formType="submit">提交</button>
<button class="pay_foot" style='color:#fff;background:{{bgcolor}};border:1px solid {{bgcolor}};border-radius:30px;margin:0;font-size:14px;padding:0;width:90px;height:33px;line-height:32px;' formType="submit">提交</button>
</form>
</view>
</view>

2
pages/return_goods/return_goods.wxml

@ -1,6 +1,6 @@
<view class="w100">
<view class="p_all">请填写售后信息</view>
<form bindsubmit="submitReturnData" report-submit="true" >
<form bindsubmit="submitReturnData">
<view class="p_all01 mt10 bg" bindtap="actionSheetTap">
<view class="text">
<text class='t_3'>选择售后类型: </text>{{itemList_text}}

6
pages/shop/shop.js

@ -12,8 +12,8 @@ Page({
mch_arr:[], //店铺分类列表
mch_data:[], //店铺分类总数据
i_showFl:0,//选择的分类
latitude: 28.227965,
longitude: 112.951227,
latitude: 28.23529,
longitude: 112.93134,
index: 0,
cid: ''
},
@ -85,7 +85,7 @@ Page({
navToStore: function (e) {
var info = e.currentTarget.dataset.info
wx.navigateTo({
url: '/pagesA/store/store?shop_id=' + info.shop_id,
url: '/pages/store/store?shopId=' + info.shop_id,
})
},
/**

85
pages/store/myStore.js

@ -0,0 +1,85 @@
// pages/store/myStore.js
var app = getApp();
var WXAPI = require('../../utils/server.js');
Page({
/**
* 页面的初始数据
*/
data: {
shop_info: {},
},
// 数据加载
reloadData: function (options) {
var that = this;
var shopId = options.shopId;
WXAPI.seemystore({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
shop_id: shopId,
}).then(res => {
if (res.code == 200) {
var data = res.data;
that.setData({
shop_info: data.list[0],
})
}
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.reloadData(options);
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

6
pages/store/myStore.json

@ -0,0 +1,6 @@
{
"usingComponents": {},
"navigationBarBackgroundColor": "#FA5151",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "查看门店信息"
}

14
pages/store/myStore.wxml

@ -0,0 +1,14 @@
<!--pages/store/myStore.wxml-->
<view class="container">
<view class="store-item-top">
<view>{{ shop_info.name }}</view>
<view class="store-item-disc">地址:{{ shop_info.sheng }}{{ shop_info.shi }}{{ shop_info.xian }}{{ shop_info.address }}</view>
<view class="store-item-bottom">
<view>营业时间:{{ shop_info.business_hours }}</view>
<view>联系电话:{{ shop_info.mobile }}</view>
</view>
</view>
</view>

38
pages/store/myStore.wxss

@ -0,0 +1,38 @@
/* pages/store/myStore.wxss */
.container {
background-color: #F6F6F6;
/* min-height: 100vh; */
}
.store-item-top {
display: flex;
flex-direction: column;
width: 100vw;
background: white;
box-sizing: border-box;
padding: 30rpx 24rpx 30rpx 28rpx;
font-size: 32rpx;
color: black;
margin-bottom: 20rpx;
}
.store-item-disc{
font-size: 28rpx;
line-height: 32rpx;
color: #666666;
margin-top: 16rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.store-item-bottom{
display: flex;
justify-content: space-between;
align-items: center;
color: #666666;
font-size: 28rpx;
margin-top: 5rpx;
}

77
pages/store/store.js

@ -1,18 +1,91 @@
// pages/store/store.js
var app = getApp();
var WXAPI = require('../../utils/server.js');
Page({
/**
* 页面的初始数据
*/
data: {
animation: {}, // 动画
animation_mask: {}, // 动画
showModalStatus: false, // modal是否需要渲染
currentIndex: 0,
navTab: [{'type':'推荐','status':'','num':0},
{'type':'普通商品','status':'payment','num':0},
{'type':'预售商品','status':'send','num':0},
{'type':'商品分类','status':'receipt','num':0}],
currentStatus: '',
listArray: [],
page: 1,
shop: {},
shop_name: '',
shop_logo: '',
goods_list: [],
shop_info: {},
type: 1,
shopId: '',
},
switchTab: function(e) {
var dataset = e.currentTarget.dataset
this.setData({
currentIndex: dataset.idx,
currentStatus: dataset.item.status,
type: dataset.idx==2?4:dataset.idx==3?3:dataset.idx+1
});
this.reloadData(this.data.shopId);
},
// 数据加载
reloadData: function(shopId) {
var that = this;
WXAPI.storeHome({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
shop_id: shopId,
shop_list_id: '',
type: that.data.type,
latitude: 28.23529,
longitude: 112.93134,
}).then(res => {
if (res.code == 200) {
var data = res.data;
that.setData({
shop: data,
shop_name: data.shop_name,
shop_logo: data.shop_logo,
shop_info: data.shop_list[0],
goods_list: data.list,
})
}
});
},
navToStore() {
var info = this.data.shop_info
wx.navigateTo({
url: '/pages/store/myStore?shopId='+info.id,
})
},
shopping_j: function(e) {
},
navToList: function (e) {
console.log(e)
var that = this
var info = e.currentTarget.dataset.info;
wx.navigateTo({
url: '/pages/listdetail/listdetail?id='+info.cid+'&title='+info.pname,
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData({
shopId: options.shopId
});
this.reloadData(options.shopId);
},
/**

5
pages/store/store.json

@ -1,3 +1,6 @@
{
"usingComponents": {}
"usingComponents": {},
"navigationBarBackgroundColor": "#FA5151",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "店铺主页"
}

65
pages/store/store.wxml

@ -1,2 +1,65 @@
<!--pages/store/store.wxml-->
<text>pages/store/store.wxml</text>
<view class="container">
<view class="storeTop">
<view class="storeTop_title">
<view class="storeTopLeft">
<image src="{{shop_logo}}" mode="" />
<view class="storeTopLeftText">
<view class="storeName">
{{ shop_name }}
<view class="is_open" wx:if="{{shop.is_open == 2}}">已关闭</view>
<view class="collectionBtn" bindtap="collStore">
<image src="{{collection_status == 0?mch_sc:mch_sch}}" mode="" />
</view>
</view>
<view class="storeSellNum">
{{ shop.quantity_on_sale }}在售商品 |
已售{{ shop.quantity_sold}}件 |
{{ shop.collection_num }}收藏
</view>
</view>
</view>
</view>
<view class="storeTop_bottom">
<view class="addressBox">
<image src="/images/icon_dz.png" mode="widthFix" style='width:48rpx;' />
<text>{{shop_info.sheng}}{{shop_info.shi}}{{shop_info.xian}}{{shop_info.address}}({{shop.distance}}km)</text>
</view>
<view class="seeStore" bindtap="navToStore">
查看门店信息
<image src="/images/blueRight.png" mode="" />
</view>
</view>
</view>
<view class="tab-view">
<view class="tab-item{{currentIndex==idx?'Active':''}}" wx:key="key" wx:for="{{navTab}}" wx:for-index="idx" wx:for-item="item" data-idx='{{idx}}' data-item='{{item}}' bindtap="switchTab">{{item.type}}
<view class="tab-line{{currentIndex==idx?'Active':''}}"></view>
<text class="tab-badge" hidden="{{item.num == 0}}">{{item.num}}</text>
</view>
</view>
<scroll-view class="list-table" scroll-y="true">
<block wx:if="{{type!=3}}">
<view class="list-cell" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}">
<view class="goods_view">
<image class="goods_img" lazy-load src="{{item.imgurl}}" />
<view wx:if="{{item.status == 3}}" class="dowmPro">已失效</view>
<view wx:elif="{{item.stockNum == 0}}" class="dowmPro">已售罄</view>
</view>
<view class="overtitle">{{ item.product_title }}</view>
<view class="goods_mun">
<view class="goods_price">
<view class='price'>¥{{item.vip_yprice}}</view>
</view>
<image wx:if="{{item.is_open == 1}}" bindtap="shopping_j" src="/images/goods_shopImg.png" />
<image wx:else src="" />
</view>
</view>
</block>
<block wx:else>
<view class="list-label" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}" bindtap="navToList">
<view class="title">{{item.pname}}</view>
<image src="/images/x_right.png" />
</view>
</block>
</scroll-view>
</view>

271
pages/store/store.wxss

@ -1 +1,270 @@
/* pages/store/store.wxss */
/* pages/store/store.wxss */
.container {
background-color: #F6F6F6;
/* min-height: 100vh; */
}
.storeTop {
background-color: #FA5151;
padding: 30rpx;
width: 100%;
}
.storeTop_title {
display: flex;
justify-content: space-between;
}
.storeTopLeft {
flex: 1;
display: flex;
justify-content: space-between;
}
.storeTopLeft image {
width: 100rpx;
height: 100rpx;
}
.storeTopLeftText {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-left: 20rpx;
padding: 11rpx 0;
}
.storeTop_content {
padding-top: 28rpx;
}
.storeTop_content_top {
display: flex;
align-items: center;
font-size: 26rpx;
color: #777777;
}
.storeTop_content_bottom {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
font-size: 24rpx;
color: #b8b8b8;
overflow: hidden;
transition: all 0.3s linear;
}
.storeTop_content_bottom p {
padding-top: 16rpx;
}
.storeTop_content img {
width: 22rpx;
height: 12rpx;
margin-left: 9rpx;
}
.storeName {
display: flex;
align-items: center;
font-size: 30rpx;
line-height: 30rpx;
color: white;
font-weight: 600;
}
.storeSellNum {
font-size: 22rpx;
line-height: 22rpx;
color: white;
}
.storeTopRight {
font-size: 22rpx;
color: #fff;
}
.storeTopRight img {
width: 26rpx;
height: 24rpx;
}
.collectionBtn {
display: flex;
align-items: center;
justify-content: center;
width: 33rpx;
height: 31rpx;
margin-left: auto;
padding: 0 20rpx;
box-sizing: content-box;
}
.collectionBtn img,.shareBtn img{
width: 100%;
height: 100%;
}
.storeTop_bottom{
display: flex;
align-items: center;
margin-top: 25rpx;
}
.addressBox{
flex: 1;
display: flex;
align-items: center;
margin-right: 150rpx;
color: rgba(255, 255, 255, 0.7);
}
.addressBox image{
width: 24rpx;
height: 31rpx;
}
.addressBox text{
margin-left: 10rpx;
font-size: 24rpx;
line-height: 24rpx;
}
.seeStore{
display: flex;
align-items: center;
font-size: 24rpx;
width: 208rpx;
height: 60rpx;
background: #ffffff;
border-radius: 30rpx 0 0 30rpx;
margin-right: 25rpx;
padding: 0 20rpx 0 25rpx;
box-sizing: border-box;
color: #FA5151;
}
.seeStore image{
width: 12rpx;
height: 22rpx;
margin-left: auto;
}
.tab-view{
/* position: fixed; */
width: 100%;
height: 100rpx;
background-color: #F6F6F6;
white-space: nowrap;
}
.tab-itemActive{
color: #FA5151;
width: 25%;
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 30rpx;
font-weight: bold;
display: inline-block;
}
.tab-item {
color: #888888;
width: 25%;
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 30rpx;
display: inline-block;
}
.tab-lineActive{
width: 78rpx;
height: 6rpx;
margin-top: -10rpx;
margin-left: 31%;
background-color: #FA5151;
z-index: 655;
}
.tab-badge{
position: absolute;
margin-top: -80rpx;
margin-left: 45rpx;
width: 35rpx;
height: 35rpx;
border-radius: 17.5rpx;
line-height: 35rpx;
font-size: 28rpx;
text-align: center;
font-weight: normal;
color: white;
background-color: red;
}
.tab-line{
width: 100%;
height: 2rpx;
margin-top: -8rpx;
background-color: #F6F6F6;
}
.list-table {
margin-top:5rpx;
width: 100%;
padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
}
.list-cell {
display: inline-table;
width: 46%;
margin:5rpx 0rpx 20rpx 20rpx;
padding-bottom: 5rpx;
background-color: white;
border-radius: 10rpx;
overflow: hidden;
}
.goods_view {
width: 345rpx;
height: 345rpx;
}
.goods_img{
width:345rpx;
height:345rpx;
}
.dowmPro {
width: 120rpx;
height: 120rpx;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.6);
position: absolute;
top: 50%;
left: 25%;
transform: translate(-50%, -50%);
color: #FFFFFF;
font-size: 26rpx;
line-height: 120rpx;
text-align: center;
}
.overtitle {
font-size: 30rpx;
line-height: 30rpx;
margin-top: 5rpx!important;
margin-left: 25rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.goods_mun {
display: flex;
align-items: center;
margin-top: 10rpx;
padding: 0rpx 20rpx 20rpx 25rpx;
}
.goods_mun image{
width: 58rpx;
height: 58rpx;
margin-left: auto;
}
.goods_mun .price{
font-size: 32rpx;
line-height: 32rpx;
font-weight: bold;
color: #FA5151;
}
.list-label{
margin: 0rpx 20rpx 20rpx 20rpx;
height:100rpx;
border-radius: 10rpx;
overflow: hidden;
background-color: white;
display: flex;
align-items:center;
}
.list-label .title{
margin-left: 20rpx;
font-size: 32rpx;
color: black;
}
.list-label image{
position: absolute;
right: 40rpx;
width: 25rpx;
height: 25rpx;
}

11
pages/user/user.js

@ -9,11 +9,12 @@ Page({
// icon: 'icon-user-bangding.png',
// text: '完善资料',
// url: 'bangding/bangding'
// }, {
// icon: 'wdsc.png',
// text: '我的收藏',
// url: 'collection/collection'
// },
// },
{
icon: 'wdsc.png',
text: '我的收藏',
url: 'collection/collection'
},
// {
// icon: 'zj.png',
// text: '历史记录',

33
utils/server.js

@ -75,6 +75,12 @@ module.exports = {
searchIndex: (data) => { //分类页
return requestServer('&action=search&app=index', 'post', data)
},
listdetail: (data) => { //分类详情
return requestServer('&action=search&app=listdetail', 'post', data)
},
searchList: (data) => { //分类搜索
return requestServer('&action=search&app=search', 'post', data)
},
/* 购物车 */
appCart: (data) => { //
return requestServer('&action=app&app=cart', 'post', data)
@ -153,6 +159,27 @@ module.exports = {
deleteOrder: (data) => { //删除订单
return requestServer('&action=order&app=del_order', 'post', data)
},
footprint: (data) => { //历史足迹
return requestServer('&action=footprint&app=index', 'post', data)
},
favorites: (data) => { //我的收藏
return requestServer('&action=addFavorites&app=collection', 'post', data)
},
addFavoritesIndex: (data) => { //添加收藏
return requestServer('&action=addFavorites&app=index', 'post', data)
},
removeFavorites: (data) => { //取消收藏
return requestServer('&action=addFavorites&app=removeFavorites', 'post', data)
},
delallFavorites: (data) => { //清空收藏
return requestServer('&action=addFavorites&app=alldel', 'post', data)
},
storeHome: (data) => { //店铺主页
return requestServer('&action=mch&app=store_homepage', 'post', data)
},
seemystore: (data) => { //查看店铺信息
return requestServer('&action=mch&app=see_my_store', 'post', data)
},
/* -------------------- */
@ -211,11 +238,5 @@ module.exports = {
userPerfect: (data) => { //
return requestServer('&action=user&m=perfect', 'post', data)
},
addFavoritesIndex: (data) => { //
return requestServer('&action=addFavorites&m=index', 'post', data)
},
removeFavorites: (data) => { //
return requestServer('&action=addFavorites&m=removeFavorites', 'post', data)
},
}

2
wxSearch/wxSearch.wxml

@ -27,7 +27,7 @@
</view>
<view style='clear:both;'></view>
<view wx:if="{{wxSearchData.his[0]}}" class="wxSearchKeyList">
<block wx:for="{{wxSearchData.his}}" wx:key="wxSearchData.his">
<block wx:for="{{wxSearchData.his}}" wx:key="his">
<view class="wxSearchKeyItem">
<text class="wxSearchHistoryItemText" bindtap="wxSearchKeyTap" data-key="{{item}}">{{item}}</text>
</view>

Loading…
Cancel
Save