Browse Source

upload

master
HolyKnightIX 1 year ago
parent
commit
5524207f1f
5 changed files with 36 additions and 13 deletions
  1. BIN
      miniprogram/asset/image/image.zip
  2. +4
    -4
      miniprogram/pages/index/index.js
  3. +1
    -1
      miniprogram/pages/index/index.wxml
  4. +29
    -6
      miniprogram/pages/selections/selections.js
  5. +2
    -2
      miniprogram/pages/selections/selections.wxml

BIN
miniprogram/asset/image/image.zip View File


+ 4
- 4
miniprogram/pages/index/index.js View File

@@ -125,12 +125,12 @@ Page({
},

goToChat() {
// wx.navigateTo({
// url: '/pages/chat/chat',
// })
wx.navigateTo({
url: '/pages/selections/selections',
url: '/pages/chat/chat',
})
// wx.navigateTo({
// url: '/pages/selections/selections',
// })
},

checkCheatCode(e) {


+ 1
- 1
miniprogram/pages/index/index.wxml View File

@@ -53,7 +53,7 @@
<text bindtap="checkUserProtocol" style="margin-right: 20rpx;">用户协议</text>
<text bindtap="checkPayHistory">延续历史</text>
</view>
<button type="primary" bindtap="goToChat">延续使用</button>
<button type="primary" bindtap="goToBuy">延续使用</button>
</block>

<!-- <block wx:if="{{userInfo.phone && userInfo.isMember == 0 && userInfo.isValid == 0}}">


+ 29
- 6
miniprogram/pages/selections/selections.js View File

@@ -12,46 +12,69 @@ Page({
{
id: 0,
imgUrl: "../../asset/image/Audi-RS7-item.png",
title: "标题",
name: "标题",
detail: "简述简述简述"
},
{
id: 1,
id: '1',
imgUrl: "../../asset/image/Audi-RS7-item.png",
title: "标题",
name: "标题",
detail: "简述简述简述"
},
{
id: 2,
imgUrl: "../../asset/image/Audi-RS7-item.png",
title: "标题",
name: "标题",
detail: "简述简述简述"
},
{
id: 3,
imgUrl: "../../asset/image/Audi-RS7-item.png",
title: "标题",
name: "标题",
detail: "简述简述简述"
},
{
id: 4,
imgUrl: "../../asset/image/Audi-RS7-item.png",
title: "标题",
name: "标题",
detail: "简述简述简述"
},
]
},

getList() {
const that = this
request.get({
url: '/api/promote/list'
}).then(res => {
console.log(res, 'res');
// if (res.data) {
// that.setData({
// list: res.data
// })
// }
}).catch(err => {
console.log(err, 'err');
})
},

getTypeList(id) {
const that = this
return request.get({
url: `/api/promote/titleList?typeId=${id}`
})
},

goDetail(e) {
const id = e.currentTarget.dataset.id
this.getTypeList(id)
.then(res => {
console.log(res, 'res');
}).catch(err => {
console.log(err, 'err');
})
},

/**
* 生命周期函数--监听页面加载
*/


+ 2
- 2
miniprogram/pages/selections/selections.wxml View File

@@ -5,10 +5,10 @@
</view>

<view class="artList">
<view wx:for="{{ list }}" wx:key="id" class="artItem">
<view wx:for="{{ list }}" wx:key="id" class="artItem" bindtap="goDetail" data-id="{{ item.id }}">
<image src="{{ item.imgUrl }}" mode="widthFix" />
<view class="textArea">
<view>{{ item.title }}</view>
<view>{{ item.name }}</view>
<view>{{ item.detail }}</view>
</view>
</view>


Loading…
Cancel
Save