diff --git a/pages/list/theatre/index.js b/pages/list/theatre/index.js
index 97dc1fa..e65e066 100644
--- a/pages/list/theatre/index.js
+++ b/pages/list/theatre/index.js
@@ -9,6 +9,7 @@ Page({
*/
data: {
list:[],
+ tagList: [], // 父标签6
total:1,
type:1,
sort:["","weight","distance","weight","price"],
@@ -27,6 +28,7 @@ Page({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
+ // this.getTags()
this.getList();
},
search:function(e){
@@ -101,6 +103,18 @@ Page({
this.getList();
},
+ // 获取子标签
+ getTags () {
+ commonApi._post("",{
+ tag_id:"6",
+ }).then(res=>{
+ let resData = res.data.list || []
+ this.setData({
+ tagList:resData
+ })
+ })
+ },
+
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/list/theatre/index.wxml b/pages/list/theatre/index.wxml
index 849b02e..95803f5 100644
--- a/pages/list/theatre/index.wxml
+++ b/pages/list/theatre/index.wxml
@@ -1,20 +1,30 @@
-
-
- 综合排序
- 距离最近
- 销量最高
- 价格最低
+
-
+
+
+
-
- {{item.title}}
+
+ {{item.title}}
{{item.subtitle?item.subtitle:""}}
+ {{item.supplier_address}}
- {{item}}
+
¥{{item.price?item.price/100:0}}起
diff --git a/pages/list/theatre/index.wxss b/pages/list/theatre/index.wxss
index bfba264..e663263 100644
--- a/pages/list/theatre/index.wxss
+++ b/pages/list/theatre/index.wxss
@@ -1,56 +1,63 @@
/* pages/list/theatre/index.wxss */
+page{
+ background: white;
+}
+
+.my-header-search{
+ background: white;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+}
+.my-header-search .bg-box .title-header{
+ color: #999;
+}
+.my-header-search .title-header .icon-fanhui1{
+ color: #333 !important;
+}
+.my-header-search .heaimg{
+ width: 100%;
+ display: block;
+}
+
.sale-types {
display: flex;
- justify-content: space-around;
align-items: center;
- height: 86rpx;
- position: fixed;
- left: 0;
- right: 0;
- border-bottom: 1rpx solid #ccc;
- font-size: 29rpx;
- color: #333;
- background: white;
+ overflow-x: auto;
+ overflow-y: hidden;
+ padding:36rpx 27rpx 44rpx;
}
.sale-type {
- position: relative;
- width: 25%;
- text-align: center;
- height: 86rpx;
- line-height: 86rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ font-size: 29rpx;
+ color: #111111;
+ padding: 9rpx 18rpx;
+ flex-shrink: 0;
+ margin-right: 7rpx;
}
.sale-type.active {
- color: #000;
- font-size: 33rpx;
- font-weight: 500;
-}
-.sale-type.active::after {
- content: "1";
- font-size: 0;
- display: block;
- position: absolute;
- width: 46rpx;
- height: 5rpx;
- background: #0B898E;
- border-radius: 3rpx;
- left: 50%;
- margin-left: -23rpx;
- bottom: 0;
+ border-radius: 30rpx;
+ border: 1px solid #0B898E;
+ color: #0B898E;
+ font-weight: bold;
}
+
+
.item {
- margin: 30rpx 25rpx;
+ margin: 0rpx 27rpx 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
- padding: 15rpx 13rpx;
- box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1);
- border-radius: 10rpx;
}
.item image {
- width: 247rpx;
- height: 200rpx;
- margin-right: 30rpx;
- flex-shrink: 0;
+ width: 187rpx;
+ height: 240rpx;
+ background: #D1D7CB;
+ border-radius: 13rpx;
+ margin-right: 30rpx;
+ flex-shrink: 0;
}
.tags {
display: flex;
@@ -70,9 +77,10 @@
text-overflow: ellipsis;
}
.price {
- font-size: 20rpx;
- color: #D62828;
- text-align: right;
+ font-weight: bold;
+ font-size: 21rpx;
+ color: #E52910;
+ text-align: left;
flex: 1;
}
.price text:nth-child(1){
@@ -85,18 +93,24 @@
.price text:nth-child(3){
color: #8D8D8D;
margin-left: 4rpx;
+ font-weight: 500;
}
.info {
flex: 1;
+ width: 1rpx;
}
.info .title {
font-weight: 500;
font-size: 31rpx;
color: #000;
- margin-bottom: 52rpx;
+ margin-bottom: 32rpx;
}
.info .subtitle {
font-size: 24rpx;
color: #999999;
- margin-bottom: 30rpx;
-}
\ No newline at end of file
+ margin-bottom: 19rpx;
+}
+
+
+
+
diff --git a/utils/util.js b/utils/util.js
index aa7c720..49c0b5b 100644
--- a/utils/util.js
+++ b/utils/util.js
@@ -187,6 +187,8 @@ const gotoDetail = (item,isPagePoint) =>{
return
}
+ console.log(item)
+
switch(item.type){
case "tenscenic":