添加的功能:查看推广码对应的结算记录
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { baseUrl } from "../../../request"
|
||||
import { globalImgUrl } from "../../../request"
|
||||
|
||||
// pages/projectModule/userProject/userProject.js
|
||||
Page({
|
||||
@ -8,6 +9,7 @@ Page({
|
||||
*/
|
||||
|
||||
data: {
|
||||
globalImgUrl,
|
||||
userProjectList: [],
|
||||
},
|
||||
|
||||
@ -20,11 +22,9 @@ Page({
|
||||
|
||||
// 结算记录
|
||||
gotoSubSettlement(e) {
|
||||
|
||||
const projectId = e.currentTarget.dataset.id;
|
||||
const url = e.currentTarget.dataset.url;
|
||||
const name = e.currentTarget.dataset.name;
|
||||
|
||||
wx.navigateTo({
|
||||
url: `/pages/projectModule/settlement/settlement?id=${projectId}&picurl=${url}&name=${name}`,
|
||||
})
|
||||
@ -53,6 +53,7 @@ Page({
|
||||
gotoProjectDetail(e){
|
||||
// 获取data-id中的值
|
||||
const projectId = e.currentTarget.dataset.id;
|
||||
console.log('项目id =============>', projectId)
|
||||
wx.navigateTo({
|
||||
url: `/pages/projectModule/projectDetail/projectDetail?id=${projectId}&isPromo=0`,
|
||||
})
|
||||
|
@ -1,11 +1,11 @@
|
||||
<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" bind:tap="gotoProjectDetail" data-id="{{ item.projectId }}">
|
||||
<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
|
||||
class="shrink-0 image"
|
||||
src="{{ item.projectImage }}"
|
||||
src="{{ globalImgUrl + item.projectImage }}"
|
||||
/>
|
||||
<view class="ml-18 flex-col shrink-0 group">
|
||||
<text class="font">{{ item.projectName }}</text>
|
||||
@ -18,14 +18,14 @@
|
||||
/>
|
||||
</view>
|
||||
<view class="mt-14 flex-row group_2 equal-division">
|
||||
<view class="flex-row justify-center items-center section equal-division-item" data-id="{{ item.projectId }}"catch:tap="stopEventPropagation">
|
||||
<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.projectId }}" data-url="{{ item.projectImage }}" data-name="{{ item.projectName }}">
|
||||
<view class="ml-14 flex-row items-center section equal-division-item_2" catch:tap="gotoSubSettlement" data-id="{{ item.projectId }}" data-url="{{ item.projectImage }}" data-name="{{ item.projectName }}">
|
||||
<image
|
||||
class="shrink-0 image_4"
|
||||
src="./images/jsmx.png"
|
||||
|
Reference in New Issue
Block a user