保存1020

This commit is contained in:
chengdandan 2022-10-20 17:52:26 +08:00
parent cdc45140f8
commit b5d4c218b5
3 changed files with 12 additions and 27 deletions

View File

@ -1,10 +1,10 @@
{
"pages": [
"pages/list/list",
"pages/item/item",
"pages/start/start",
"pages/index/index"
"pages/item/item",
"pages/index/index"

View File

@ -30,13 +30,13 @@ Page({
page: a,
})
},
// changeNext:function () {
// setTimeout(() => {
// wx.redirectTo({
// url:'/pages/item/item'
// })
// }, 2000);
// },
changeNext:function () {
setTimeout(() => {
wx.redirectTo({
url:'/pages/item/item'
})
}, 2000);
},
onLoad: function (options) { // options 为 board页传来的参数
const _this = this;
// 拼接请求url

View File

@ -23,21 +23,14 @@
<block wx:if="{{type === 'us_box'}}">
<navigator url='../item/item?id={{item.id}}'>
<view class='item'>
<!-- <image class='poster' src='{{item.subject.images.small}}'></image> -->
<view class='meta'>
<view class='titContent'>
<text class='title'>{{item.title}}</text>
<text class='titleButton' bindtap="changeNext">详情</text>
</view>
<!-- <text class='sub-title'>{{item.original_title}}({{item.year}})</text> -->
<text class='sub-title'>{{item.year}}</text><text>{{item.content}}</text>
<!-- <view class='artists'>
<text>详情</text>
<text wx:for="{{item.directors}}" wx:key="id">{{item.name}}</text>
</view> -->
<!-- <view class='rating'>
<text>{{item.subject.rating.average}}</text>
</view> -->
</view>
</view>
</navigator>
@ -46,7 +39,7 @@
<block wx:else>
<navigator url='../item/item?id={{ item.id }}'>
<view class='item'>
<!-- <image class='poster' src='{{item.images.small}}'></image> -->
<view class='meta'>
<view class='titContent'>
<text class='title'>{{item.title}}</text>
@ -56,14 +49,6 @@
<text class='sub-year'>{{item.year}}</text><text class='sub-title'>{{item.content}}</text>
</view>
<!-- <view class='artists'>
<text>详情:</text>
<text wx:for="{{item.directors}}" wx:key="id">{{item.name}}</text>
</view> -->
<!-- <view class='rating'>
<text>{{item.rating.average}}</text>
</view> -->
</view>
</view>
</navigator>