优化新产品列表进入产品详情

master
chen 2022-03-23 08:47:55 +08:00
parent eaeb85862c
commit d12090cc5d
6 changed files with 72 additions and 58 deletions

View File

@ -72,7 +72,7 @@
"path": "pages/repairsPage/repairsPage", "path": "pages/repairsPage/repairsPage",
"style": { "style": {
"navigationBarTitleText": "添加修", "navigationBarTitleText": "添加修",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }

View File

@ -1,22 +1,20 @@
<template> <template>
<view class="content"> <view class="content">
<view class="repairs-nav"> <status-nav navBarTitle="添加报修" returnColor="#c2c2c2"></status-nav>
<container-subgroup>
<view slot="content" style="margin: 0 -30rpx;">
<view class="repairs-nav" style="margin-top: -30rpx;">
<view class="li" @click="repairsNavFun(index)" :class="item.state?'on':''" v-for="(item,index) in navDataState"> <view class="li" @click="repairsNavFun(index)" :class="item.state?'on':''" v-for="(item,index) in navDataState">
{{item.title}} {{item.title}}
</view> </view>
</view> </view>
<view class="repairs-hint padding"> <view class="repairs-hint padding">
<image class="icon" src="../../static/iocn/lp.png" mode="aspectFill"></image> <image class="icon" src="../../static/iocn/lp.png" mode="aspectFill"></image>
<view class="text"> <view class="text">
请务必拍好故障照片或视频上传,便于技术工程师作为判断依据,带齐 相关维保设备高效为您提供服务 请务必拍好故障照片或视频上传,便于技术工程师作为判断依据,带齐 相关维保设备高效为您提供服务
</view> </view>
</view> </view>
<view class="fault-type-title padding">故障类型</view>
<view class="fault-type-title padding">
故障类型
</view>
<view class="padding fault-type-content"> <view class="padding fault-type-content">
<view class="li" :class="item.state?'on':''" v-for="(item,index) in faultTypeData"> <view class="li" :class="item.state?'on':''" v-for="(item,index) in faultTypeData">
{{item.title}} {{item.title}}
@ -59,6 +57,8 @@
<button class="submit-button" type="default">提交故障申报</button> <button class="submit-button" type="default">提交故障申报</button>
</view> </view>
</view>
</container-subgroup>
</view> </view>
</template> </template>

View File

@ -46,7 +46,7 @@
<view class="home-fun-box"> <view class="home-fun-box">
<view class="fun-title col3 fon28 disac bold">故障报修</view> <view class="fun-title col3 fon28 disac bold">故障报修</view>
<view class="disac mar-s30"> <view class="disac mar-s30">
<view class="disjcac fc width25" v-for="(item,index) in repairList" :key="index"> <view @tap="goFaultRepair(index)" class="disjcac fc width25" v-for="(item,index) in repairList" :key="index">
<image :style="{width: [58,58,50][index]+'rpx',height:[53,56,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image> <image :style="{width: [58,58,50][index]+'rpx',height:[53,56,58][index] + 'rpx'}" style="width: 58rpx;height: 53rpx;" :src="item.imgsrc" mode="widthFix"></image>
<view class="fon24 col3 mar-s10">{{item.title}}</view> <view class="fon24 col3 mar-s10">{{item.title}}</view>
</view> </view>
@ -323,6 +323,20 @@
goNoticeDetail(e){ goNoticeDetail(e){
console.log(e); console.log(e);
}, },
//
goFaultRepair(index){
if(index!=2) {
let faultRepairUrls = [
'/pages/repairsPage/repairsPage',
'/pages/workOrder/workOrderLlsit',
];
uni.navigateTo({
url:faultRepairUrls[index]
})
} else {
this.$toolAll.tools.showToast('已催单成功')
}
},
// //
otherEv(index) { otherEv(index) {
let otherUrls = [ let otherUrls = [

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="content"> <view class="content">
<statusNav navBarTitle="工单列表"></statusNav> <status-nav navBarTitle="工单列表" returnColor="#c2c2c2"></status-nav>
<view class="project-list-input"> <view class="project-list-input">
<input type="text" class="int" value="" placeholder="请输入关键字" /> <input type="text" class="int" value="" placeholder="请输入关键字" />
<image class="search" src="../../static/iocn/ss.png" mode=""></image> <image class="search" src="../../static/iocn/ss.png" mode=""></image>

View File

@ -35,7 +35,7 @@
// //
goDetail(index){ goDetail(index){
uni.navigateTo({ uni.navigateTo({
url:'/pagesB/plan-fault-product-detail/detail' url:'/pagesB/plan-fault-product-detail/detail?index=2'
}) })
} }
} }

View File

@ -24,7 +24,7 @@
} }
}, },
onLoad(op) { onLoad(op) {
this.detailTitle = `${['方案详情','详情概述'][op.index*1]}`; this.detailTitle = `${['方案详情','详情概述','产品详情'][op.index*1]}`;
}, },
methods: { methods: {
// //