cxz-lastest-commit
This commit is contained in:
@ -9,7 +9,6 @@ Page({
|
||||
|
||||
data: {
|
||||
userProjectList: [],
|
||||
promotionCode: true,
|
||||
},
|
||||
|
||||
/**
|
||||
@ -32,7 +31,7 @@ Page({
|
||||
// 获取项目列表
|
||||
getProgram() {
|
||||
wx.request({
|
||||
url: baseUrl + '/project/query/card',
|
||||
url: baseUrl + '/project/get/running',
|
||||
method: 'POST',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token')
|
||||
@ -52,12 +51,17 @@ Page({
|
||||
gotoProjectDetail(e){
|
||||
// 获取data-id中的值
|
||||
const projectId = e.currentTarget.dataset.id;
|
||||
const promotionCode = this.data.promotionCode;
|
||||
|
||||
wx.navigateTo({
|
||||
url: `/pages/projectModule/projectDetail/projectDetail?id=${projectId}&promotionCode=${promotionCode}`,
|
||||
url: `/pages/projectModule/projectDetail/projectDetail?id=${projectId}&isPromo=0`,
|
||||
})
|
||||
},
|
||||
// 子元素点击事件,阻止冒泡
|
||||
stopEventPropagation(e) {
|
||||
const projectId = e.currentTarget.dataset.id;
|
||||
wx.navigateTo({
|
||||
url: `/pages/projectModule/projectDetail/projectDetail?id=${projectId}&isPromo=1`,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<view class="flex-col justify-start page">
|
||||
<view class="flex-col list">
|
||||
<view class="flex-col list-item mt-15" wx:for="{{ userProjectList }}" wx:for-item="item" wx:for-index="index" wx:key="index" >
|
||||
<view class="flex-col list-item mt-15" wx:for="{{ userProjectList }}" wx:for-item="item" wx:for-index="index" wx:key="index" bind:tap="gotoProjectDetail" data-id="{{ item.projectId }}">
|
||||
<view class="flex-row justify-between items-center self-stretch">
|
||||
<view class="flex-row items-center">
|
||||
<image
|
||||
@ -15,19 +15,17 @@
|
||||
<image
|
||||
class="image_2"
|
||||
src="./images/yjt.png"
|
||||
bind:tap="gotoProjectDetail"
|
||||
data-id="{{ item.id }}"
|
||||
/>
|
||||
</view>
|
||||
<view class="mt-14 flex-row group_2 equal-division">
|
||||
<view class="flex-row justify-center items-center section equal-division-item" bind:tap="gotoProjectDetail" data-id="{{ item.id }}">
|
||||
<view class="flex-row justify-center items-center section equal-division-item" data-id="{{ item.projectId }}"catch:tap="stopEventPropagation">
|
||||
<image
|
||||
class="image_3"
|
||||
src="./images/tgm.png"
|
||||
/>
|
||||
<text class="ml-4 font_3">推广码</text>
|
||||
</view>
|
||||
<view class="ml-14 flex-row items-center section equal-division-item_2" bind:tap="gotoSubSettlement" data-id="{{ item.id }}">
|
||||
<view class="ml-14 flex-row items-center section equal-division-item_2" bind:tap="gotoSubSettlement" data-id="{{ item.projectId }}">
|
||||
<image
|
||||
class="shrink-0 image_4"
|
||||
src="./images/jsmx.png"
|
||||
|
Reference in New Issue
Block a user