From 261d3268cdc1723b43f326df0b770398b9770074 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期五, 05 七月 2024 16:20:23 +0800 Subject: [PATCH] fix:首页样式问题 --- pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue | 35 +++++++++++++++++++++++------------ 1 files changed, 23 insertions(+), 12 deletions(-) diff --git a/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue b/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue index 6113ac0..c629314 100644 --- a/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue +++ b/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue @@ -2,7 +2,7 @@ <view> <view class="bangfang-btns"> <view class="btn" v-for="(item,index) in bangfangList" :key="index"> - <u-button type="primary" @click="handleBangfangClick">{{item.name}}</u-button> + <u-button type="primary" @click="handleBangfangClick(item)">{{item.name}}</u-button> </view> </view> <tab-bar :current="1"></tab-bar> @@ -11,6 +11,7 @@ </template> <script> +import { BaseUrl } from '@/api/request.js' export default { name: "zhijian-bangfang", data() { @@ -31,19 +32,29 @@ }) }, handleBangfangClick(item) { - // this.$reqPost('applyWeight',{tmId:this.getWeightHouseObj.tmId,houseId:item.id},'params').then(res => { - let tmId = '1808295976202133505' - let houseId = '1678897489526169602' - this.$reqPost('applyWeight',{tmId:tmId,houseId:houseId},'params').then(res => { - console.log(res,'閫夋嫨纾呮埧====') - if(res.code == 0) { - uni.navigateTo({ - url: `/pages/driver-page/driver-index/bill-of-lading-details/nocarNoWeighingDevice/nocarNoWeighingDevice?tmId=${tmId}&houseId=${houseId}` - }) - }else { - this.$u.toast(res.msg); + console.log(item,'鐐瑰嚮纾呮埧-----') + uni.request({ + url: `${BaseUrl}/wrzs/jccoalweighhouse/getTmTaskCoalNoCar/${item.id}`, + method: 'GET', + header: { + 'content-type': 'application/x-www-form-urlencoded', + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), + }, + success: (res) => { + console.log(res,'res.datra----------') + } }) + // this.$reqGet('getTmTaskCoalNoCar',{houseId:item.id}).then(res => { + // console.log(res,'閫夋嫨纾呮埧====') + // if(res.code == 0) { + // uni.navigateTo({ + // url: `/pages/driver-page/driver-index/bill-of-lading-details/nocarNoWeighingDevice/nocarNoWeighingDevice?houseId=${houseId}` + // }) + // }else { + // this.$u.toast(res.msg); + // } + // }) } } } -- Gitblit v1.9.1