commission--yt-commit
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { baseUrl } from "../../../request"
|
||||
|
||||
// pages/projectModule/userProject/userProject.js
|
||||
Page({
|
||||
|
||||
@ -6,18 +8,53 @@ Page({
|
||||
*/
|
||||
|
||||
data: {
|
||||
items: [null, null, null],
|
||||
userProjectList: [],
|
||||
promotionCode: true // 推广码开启
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
this.getProgram();
|
||||
},
|
||||
tiaozhuan(){
|
||||
|
||||
// 结算记录
|
||||
gotoSubSettlement(e) {
|
||||
|
||||
const projectId = e.currentTarget.dataset.id;
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/pages/projectModule/projectDetail/projectDetail',
|
||||
url: `/pages/projectModule/settlement/settlement?id=${projectId}`,
|
||||
})
|
||||
},
|
||||
|
||||
// 获取项目列表
|
||||
getProgram() {
|
||||
wx.request({
|
||||
url: baseUrl + '/project/query/card',
|
||||
method: 'POST',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token')
|
||||
},
|
||||
success: res => {
|
||||
// console.log(res.data);
|
||||
if(res.data.code === 1) {
|
||||
this.setData({
|
||||
userProjectList: res.data.data
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 跳转项目明细
|
||||
gotoProjectDetail(e){
|
||||
// 获取data-id中的值
|
||||
const projectId = e.currentTarget.dataset.id;
|
||||
|
||||
wx.navigateTo({
|
||||
url: `/pages/projectModule/projectDetail/projectDetail?id=${projectId}`,
|
||||
})
|
||||
},
|
||||
/**
|
||||
|
@ -16,18 +16,18 @@
|
||||
class="image_2"
|
||||
src="./images/yjt.png"
|
||||
bind:tap="gotoProjectDetail"
|
||||
data-id="{{ item.projectId }}"
|
||||
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">
|
||||
<view class="flex-row justify-center items-center section equal-division-item" bind:tap="gotoProjectDetail" data-id="{{ item.id }}" data-promotionCode="{{ promotionCode }}">
|
||||
<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">
|
||||
<view class="ml-14 flex-row items-center section equal-division-item_2" bind:tap="gotoSubSettlement" data-id="{{ item.id }}">
|
||||
<image
|
||||
class="shrink-0 image_4"
|
||||
src="./images/jsmx.png"
|
||||
|
Reference in New Issue
Block a user