mice2333 3 years ago
parent d39a4c4e8c
commit b2cf89063d

34
package-lock.json generated

@ -1,29 +1,8 @@
{ {
"name": "package.json", "name": "package.json",
"version": "7.15.1", "version": "7.15.1",
"lockfileVersion": 2, "lockfileVersion": 1,
"requires": true, "requires": true,
"packages": {
"": {
"name": "package.json",
"version": "7.15.1",
"license": "ISC",
"dependencies": {
"@vant/area-data": "^1.1.1",
"@vant/weapp": "^1.6.9"
}
},
"node_modules/@vant/area-data": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@vant/area-data/-/area-data-1.1.1.tgz",
"integrity": "sha512-MmXTuSh6YYWSvC112iK2/rZhEfe+3vfh6G9TD1sOTOrtw+H9bAnw8ZOiHdkL6hTUCXV+AJEDbFyFsNLpJxqkoA=="
},
"node_modules/@vant/weapp": {
"version": "1.6.9",
"resolved": "https://registry.npmjs.org/@vant/weapp/-/weapp-1.6.9.tgz",
"integrity": "sha512-d7hvWjs1cjlM4PjEAhBhbtdejqcltbIptw4/qfDC1RZUp+t7eYEDX/aRUZgtPAwTnipRXJPOyQIdf8K9jYUI/g=="
}
},
"dependencies": { "dependencies": {
"@vant/area-data": { "@vant/area-data": {
"version": "1.1.1", "version": "1.1.1",
@ -31,9 +10,14 @@
"integrity": "sha512-MmXTuSh6YYWSvC112iK2/rZhEfe+3vfh6G9TD1sOTOrtw+H9bAnw8ZOiHdkL6hTUCXV+AJEDbFyFsNLpJxqkoA==" "integrity": "sha512-MmXTuSh6YYWSvC112iK2/rZhEfe+3vfh6G9TD1sOTOrtw+H9bAnw8ZOiHdkL6hTUCXV+AJEDbFyFsNLpJxqkoA=="
}, },
"@vant/weapp": { "@vant/weapp": {
"version": "1.6.9", "version": "1.9.2",
"resolved": "https://registry.npmjs.org/@vant/weapp/-/weapp-1.6.9.tgz", "resolved": "https://registry.npmjs.org/@vant/weapp/-/weapp-1.9.2.tgz",
"integrity": "sha512-d7hvWjs1cjlM4PjEAhBhbtdejqcltbIptw4/qfDC1RZUp+t7eYEDX/aRUZgtPAwTnipRXJPOyQIdf8K9jYUI/g==" "integrity": "sha512-brz1JLiXZev4u6cQFyDrGX5xddOHKwKUDgfbUrpqMcpW+dliV4oXMtkDt0rRNfYcEHyfewbvW9O+aas6KJUJYw=="
},
"vant-weapp": {
"version": "0.5.29",
"resolved": "https://registry.npmjs.org/vant-weapp/-/vant-weapp-0.5.29.tgz",
"integrity": "sha512-RMc0Ga914XFwspw2WuOMU8bOHlIkua8X1DoQ/KPnGQzjwT1uEL4S7W186EmaHF1wN2krB9BVd0LdRRt39dGh6Q=="
} }
} }
} }

@ -10,6 +10,7 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@vant/area-data": "^1.1.1", "@vant/area-data": "^1.1.1",
"@vant/weapp": "^1.6.9" "@vant/weapp": "^1.9.2",
"vant-weapp": "^0.5.29"
} }
} }

@ -190,6 +190,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
console.log("sss")
if (!getApp().globalData.city_id) { if (!getApp().globalData.city_id) {
// 默认北京写法 // 默认北京写法
//location_city("beijing").then(res=>{ //location_city("beijing").then(res=>{
@ -236,6 +237,13 @@ Page({
// url: '/pages/index/index/index' // url: '/pages/index/index/index'
// }) // })
wx.stopPullDownRefresh() wx.stopPullDownRefresh()
this.setData({
show_list: [
{ sort_type: '1', list: 'newMake', page: '1', has_more: 'false' },
{ sort_type: '2', list: 'newMake', page: '1', has_more: 'false' },
{ sort_type: '3', list: 'newMake', page: '1', has_more: 'false' },
]
})
this.refresh_info(getApp().globalData.city_id) this.refresh_info(getApp().globalData.city_id)
}, },

@ -76,8 +76,10 @@
<van-icon name="location-o" />{{item.theater_name}} <van-icon name="location-o" />{{item.theater_name}}
</view> </view>
</view> </view>
<van-button color="linear-gradient(90deg, #FF4284 0%, #FF1D42 100%)" round size="mini" custom-class="pop_button" <!-- <van-button color="linear-gradient(90deg, #FF4284 0%, #FF1D42 100%)" round size="mini" custom-class="pop_button"
data-cycle_id="{{item.cycle_id}}" bind:click="nav"> data-cycle_id="{{item.cycle_id}}" bind:click="nav">
¥{{item.lowest_price}}起</van-button> ¥{{item.lowest_price}}起</van-button> -->
<button class="pop_button" data-cycle_id="{{item.cycle_id}}" bindtap="nav">
¥{{item.lowest_price}}起</button>
</view> </view>
</van-popup> </van-popup>

@ -1,4 +1,3 @@
.front { .front {
background-color: #fff; background-color: #fff;
margin-bottom: 20rpx; margin-bottom: 20rpx;
@ -7,6 +6,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.front .title { .front .title {
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
@ -20,6 +20,7 @@ font-weight: bold;
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
} }
._row button::after { ._row button::after {
border: none !important; border: none !important;
padding: 0 !important; padding: 0 !important;
@ -42,6 +43,7 @@ font-weight: bold;
background: #fff; background: #fff;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
._block ._title { ._block ._title {
display: flex; display: flex;
align-items: center; align-items: center;
@ -50,6 +52,7 @@ font-weight: bold;
color: #181818; color: #181818;
padding: 30rpx; padding: 30rpx;
} }
._block ._title ._icon { ._block ._title ._icon {
width: 8rpx; width: 8rpx;
height: 36rpx; height: 36rpx;
@ -57,13 +60,16 @@ padding: 30rpx;
border-radius: 4rpx; border-radius: 4rpx;
margin: 0 20rpx 0 0; margin: 0 20rpx 0 0;
} }
._block ._flex { ._block ._flex {
display: flex; display: flex;
white-space: nowrap; white-space: nowrap;
margin: 0 30rpx; margin: 0 30rpx;
width: 690rpx; width: 690rpx;
} }
._block ._text{ padding: 0 48rpx 30rpx 68rpx;
._block ._text {
padding: 0 48rpx 30rpx 68rpx;
font-size: 28rpx; font-size: 28rpx;
color: #363636; color: #363636;
} }
@ -104,6 +110,7 @@ flex-direction: column;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2); box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
} }
._tip { ._tip {
font-size: 28rpx; font-size: 28rpx;
@ -111,10 +118,12 @@ color: #181818;
flex: 1; flex: 1;
margin: 0 40rpx; margin: 0 40rpx;
} }
._button { ._button {
margin: 0 40rpx; margin: 0 40rpx;
} }
.disabled_ { .disabled_ {
background: #D0D0D0 !important; background: #D0D0D0 !important;
} }
@ -126,9 +135,11 @@ justify-content: center;
font-weight: bold; font-weight: bold;
margin: 30rpx; margin: 30rpx;
} }
.pop_row { .pop_row {
display: flex; display: flex;
} }
._month { ._month {
font-size: 24rpx; font-size: 24rpx;
color: #181818; color: #181818;
@ -136,6 +147,7 @@ margin: 5rpx 10rpx 0 20rpx;
width: 42rpx; width: 42rpx;
white-space: nowrap; white-space: nowrap;
} }
._city { ._city {
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
@ -145,6 +157,7 @@ display: flex;
align-items: center; align-items: center;
margin: 3rpx 10rpx 0 10rpx; margin: 3rpx 10rpx 0 10rpx;
} }
.dot { .dot {
width: 4rpx; width: 4rpx;
height: 4rpx; height: 4rpx;
@ -152,12 +165,22 @@ display: flex;
margin: 5rpx; margin: 5rpx;
border-radius: 50%; border-radius: 50%;
} }
._content { ._content {
flex: 1; flex: 1;
margin: 0 10rpx; margin: 0 10rpx;
font-size: 24rpx; font-size: 24rpx;
color: #181818; color: #181818;
} }
.pop_button{ .pop_button{
width: 128rpx;
height: 44rpx;
line-height: 44rpx;
background: linear-gradient(90deg, #FF4284 0%, #FF1D42 100%);
border-radius: 44rpx;
font-size: 20rpx;
color: #FFFFFF;
margin: 0 20rpx 0 20rpx; margin: 0 20rpx 0 20rpx;
} }

Loading…
Cancel
Save