From 40dc056ee18ca3032838880fe15e54fbebd0911a Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Tue, 22 Mar 2022 18:15:22 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E(=E8=A7=A3=E5=86=B3?=
=?UTF-8?q?=E6=96=B9=E6=A1=88=E3=80=81=E5=B8=B8=E8=A7=81=E6=95=85=E9=9A=9C?=
=?UTF-8?q?)=E5=88=97=E8=A1=A8=E9=A1=B5=E3=80=81=E6=96=B0=E4=BA=A7?=
=?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E9=A1=B5=E3=80=81(=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E6=A6=82=E8=BF=B0=E3=80=81=E6=96=B9=E6=A1=88=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E3=80=81=E4=BA=A7=E5=93=81=E8=AF=A6=E6=83=85)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 12 +++-
commons/base.css | 21 +++----
components/status-nav.vue | 2 +-
jsFile/requst.js | 1 +
jsFile/tools.js | 2 +-
pages.json | 32 ++++++++++-
pages/guide-page/guide-page.vue | 2 +-
pages/login/login.vue | 3 +-
pages/register/register.vue | 2 +-
pages/tabbar/my/my.vue | 25 ++++++--
pages/tabbar/pagehome/pagehome.vue | 39 ++++++++++---
pagesB/new-product/new-product.vue | 47 +++++++++++++++
pagesB/plan-fault-product-detail/detail.vue | 42 ++++++++++++++
pagesB/plan-fault/plan-fault.vue | 60 ++++++++++++++++++++
pagesB/set-up/set-up.vue | 8 +--
static/public/icon-plan-fire.png | Bin 0 -> 2642 bytes
16 files changed, 261 insertions(+), 37 deletions(-)
create mode 100644 pagesB/new-product/new-product.vue
create mode 100644 pagesB/plan-fault-product-detail/detail.vue
create mode 100644 pagesB/plan-fault/plan-fault.vue
create mode 100644 static/public/icon-plan-fire.png
diff --git a/App.vue b/App.vue
index 92ac298..3cd4cd1 100644
--- a/App.vue
+++ b/App.vue
@@ -8,9 +8,17 @@
// 优先于show方法
onLaunch: function() {
// 配置全局域名
- uni.setStorageSync('hostapi','/web');
+ // #ifdef APP-PLUS
+ uni.setStorageSync('hostapi','http://maintain.7and5.cn');
+ // #endif
+ // #ifdef MP-WEIXIN
+ uni.setStorageSync('hostapi','http://maintain.7and5.cn');
+ // #endif
+ // #ifdef H5
+ uni.setStorageSync('hostapi','/web');
+ // #endif
// 设置主色调
- uni.setStorageSync('publicColor','#000000');
+ // uni.setStorageSync('publicColor','#000000');
},
onShow: function() {
if(uni.getStorageSync('phone_active')){
diff --git a/commons/base.css b/commons/base.css
index aefcaf5..525bf77 100644
--- a/commons/base.css
+++ b/commons/base.css
@@ -103,6 +103,13 @@ button:after{content: none!important;}
.clips1{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
.clips2{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
.clips3{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
+.clips4{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 4;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
+.clips5{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 5;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
+.clips6{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 6;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
+.clips7{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 7;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
+.clips8{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 8;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
+.clips9{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 9;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
+.clips10{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 10;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
/* 字体大小 */
@@ -153,13 +160,14 @@ button:after{content: none!important;}
.colB3{color: #B3B3B3;}
.col5b{color: #5B5B5B;}
.colpeili{color: #868695;}
-/* 佩丽字体颜色 */
-.peili-colorRed{color: #fe2525;}
/* 字体位置 */
-.tc{text-align: center;}
.tright{text-align: right;}
+.tcenter{text-align: center;}
+
+/* 文字空两格 */
+.tindent{text-indent: 2em;}
/* 行间距 */
.linh40{line-height: 40rpx;}
@@ -171,8 +179,6 @@ button:after{content: none!important;}
.bold{font-weight: bold;}
.bold400{font-weight: 400;}
.bold500{font-weight: 500;}
-.font5{font-weight: 500;}
-.font4{font-weight: 400;}
/* 背景颜色 */
@@ -183,13 +189,8 @@ button:after{content: none!important;}
.bcf8{background: #F85050;}
.bacf5{background: #F5F5F5;}
.bacf6{background-color: #f6f6f6;}
-/* 佩丽商城背景色 */
-.peili-backColor{background-color: #fe2525;}
-/* 文本居中方式 */
-.tcenter{text-align: center;}
-
/* 圆角 */
.radius10{border-radius: 10rpx;}
diff --git a/components/status-nav.vue b/components/status-nav.vue
index aacf212..b0ed12c 100644
--- a/components/status-nav.vue
+++ b/components/status-nav.vue
@@ -92,7 +92,7 @@
},
data(){
return {
- statusBarHeight: uni.getStorageSync('statusBar'),
+ statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
ifNet:true ,// 是否有网络
netText:'当前无网络',
netTimer:null
diff --git a/jsFile/requst.js b/jsFile/requst.js
index 240f831..495f9b1 100644
--- a/jsFile/requst.js
+++ b/jsFile/requst.js
@@ -97,6 +97,7 @@ const request = (method, url, options) => {
},
complete: rest => {
// 是否成功,都会执行
+ console.log(rest,100);
}
})
})
diff --git a/jsFile/tools.js b/jsFile/tools.js
index e51524c..118ef71 100644
--- a/jsFile/tools.js
+++ b/jsFile/tools.js
@@ -437,7 +437,7 @@ const tools = {
currentContext(){
// #ifdef APP-PLUS
if(uni.getSystemInfoSync().platform != "devtools"){//devtools:开发版 值域为:ios、android、mac(3.1.10+)、windows(3.1.10+)、linux(3.1.10+)
- console.log = () =>{}
+ // console.log = () =>{}
}
// #endif
// 微信小程序原生API性能优化
diff --git a/pages.json b/pages.json
index 8a5ad96..a952d48 100644
--- a/pages.json
+++ b/pages.json
@@ -14,7 +14,8 @@
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "",
- "navigationStyle": "custom" //禁用原生导航栏,微信小程序可用
+ "navigationStyle": "custom" ,//禁用原生导航栏,微信小程序可用
+ "navigationBarTextStyle": "white"
}
}, {
"path": "pages/tabbar/pagehome/pagehome",
@@ -219,7 +220,34 @@
"enablePullDownRefresh": false
}
- }]
+ } ,{
+ "path" : "new-product/new-product",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ,{
+ "path" : "plan-fault/plan-fault",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ,{
+ "path" : "plan-fault-product-detail/detail",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ]
}
],
diff --git a/pages/guide-page/guide-page.vue b/pages/guide-page/guide-page.vue
index 39e088c..26d9513 100644
--- a/pages/guide-page/guide-page.vue
+++ b/pages/guide-page/guide-page.vue
@@ -62,5 +62,5 @@
diff --git a/pages/login/login.vue b/pages/login/login.vue
index a9df0a5..e6a7b2f 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -92,7 +92,6 @@
affiliation: this.login_unitName // 单位名称
}
this.$requst.post('/universal/api.login/login',params).then(res=>{
- this.login_unitName = 95
if(res.code==1) {
this.$toolAll.tools.showToast('登录成功');
// 缓存token和角色类型
@@ -250,5 +249,5 @@
}
diff --git a/pages/register/register.vue b/pages/register/register.vue
index 02c3d46..6986833 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -275,5 +275,5 @@
diff --git a/pages/tabbar/my/my.vue b/pages/tabbar/my/my.vue
index b216166..d03f410 100644
--- a/pages/tabbar/my/my.vue
+++ b/pages/tabbar/my/my.vue
@@ -1,13 +1,14 @@
-
-
+
+
+
个人中心
-
+
-
+
-
+
@@ -63,6 +64,7 @@
components:{statusNavSlot,cmdProgress,'foot-tab' :footTabOne},
data() {
return {
+ newHeight: uni.getSystemInfoSync().statusBarHeight + 50,
backgroudColor:'rgba(255,255,255,0)',
newColor:'rgba(255,255,255,1)',
headList:[
@@ -110,6 +112,13 @@
this.$toolAll.tools.showToast('退出成功');
// 清除所有缓存
uni.clearStorageSync();
+ // 配置全局域名
+ // #ifdef APP-PLUS
+ uni.setStorageSync('hostapi','http://maintain.7and5.cn');
+ // #endif
+ // #ifdef H5
+ uni.setStorageSync('hostapi','/web');
+ // #endif
setTimeout(()=>{
uni.reLaunch({
url:'/pages/login/login'
@@ -142,6 +151,12 @@
uni.navigateTo({
url:urls[index]
})
+ },
+ // 前往设置页面
+ goSetUp(){
+ uni.navigateTo({
+ url:'/pagesB/set-up/set-up'
+ })
}
}
}
diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue
index c83f8f1..295bbc2 100644
--- a/pages/tabbar/pagehome/pagehome.vue
+++ b/pages/tabbar/pagehome/pagehome.vue
@@ -163,7 +163,7 @@
其他
-
+
{{item.title}}
@@ -172,7 +172,7 @@
-
+
畅想智能-场景化设计
解决方案Solution
@@ -182,9 +182,9 @@
-
+
- {{item.title}}
+ {{item.title}}
@@ -192,8 +192,8 @@
- 常见故障Common faults
-
+ 常见故障Common faults
+
{{item.title}}
{{item.content}}
@@ -224,7 +224,7 @@
},
data() {
return {
- role: 3, // 0:表示客户 1:表示工程师 2:表示客服 3:业务员
+ role: 0, // 0:表示客户 1:表示工程师 2:表示客服 3:业务员
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
messageNumber: 16 ,// 消息数量
noticeList:['2021年11月06日公司团建,维修服务暂停一天服务暂停一天服务暂停一天。','51akslfj;dkpiojasdjf;j1ij'],//公告
@@ -322,7 +322,30 @@
methods: {
goNoticeDetail(e){
console.log(e);
- }
+ },
+ // 其他分类下的点击事件
+ otherEv(index) {
+ let otherUrls = [
+ '',
+ '',
+ '/pagesB/new-product/new-product',
+ ];
+ uni.navigateTo({
+ url:otherUrls[index]
+ })
+ },
+ // 前往解决方案、常见故障列表
+ goPlant(index){
+ uni.navigateTo({
+ url:`/pagesB/plan-fault/plan-fault?index=${index}`
+ })
+ },
+ // 前往解决方案详情、常见故障详情
+ goDetail(index) {
+ uni.navigateTo({
+ url:`/pagesB/plan-fault-product-detail/detail?index=${index}`
+ })
+ },
}
}
diff --git a/pagesB/new-product/new-product.vue b/pagesB/new-product/new-product.vue
new file mode 100644
index 0000000..9b4b0f3
--- /dev/null
+++ b/pagesB/new-product/new-product.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+ 智能会议平板交互电子白板会议一体机视 频会议多媒体教学培训
+
+ 联系在线客服
+
+
+ 起订量:1台起批
+ 1135想采购
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pagesB/plan-fault-product-detail/detail.vue b/pagesB/plan-fault-product-detail/detail.vue
new file mode 100644
index 0000000..ed5d4e1
--- /dev/null
+++ b/pagesB/plan-fault-product-detail/detail.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+ 智能会议平板交互电子白板会议一体机 视频会议多媒体教学培训
+ 2022-01-05 12:59
+
+
+ 霜降,是二十四节气中的第十八个节气,秋季的最后一个节气。斗指戌;太阳黄经为210°;于每年公历10月23—24日交
+
+
+
+
+
+
+
+
+
+
diff --git a/pagesB/plan-fault/plan-fault.vue b/pagesB/plan-fault/plan-fault.vue
new file mode 100644
index 0000000..f1dda3e
--- /dev/null
+++ b/pagesB/plan-fault/plan-fault.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+ 小型会议室解决方案小
+ 课程的内容课程的内容课程的内容课程的内容课程的内容课程的内容课程的内容课程....
+
+
+
+ 热度:
+
+ 344人已查阅
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pagesB/set-up/set-up.vue b/pagesB/set-up/set-up.vue
index a0c08b2..584c9c2 100644
--- a/pagesB/set-up/set-up.vue
+++ b/pagesB/set-up/set-up.vue
@@ -17,7 +17,7 @@
清除缓存
- {{cacheSize}} KB
+ {{cacheSize}}
上门服务条款
@@ -83,11 +83,11 @@
plus.cache.calculate(function(size) { //size是多少个字节单位是b
//做下面相应的处理
if (size < 1024) {
- self.cacheSize = size + 'B';
+ self.cacheSize = size + ' B';
} else if (size / 1024 >= 1 && size / 1024 / 1024 < 1) {
- self.cacheSize = Math.floor(size / 1024 * 100) / 100 + 'KB';
+ self.cacheSize = Math.floor(size / 1024 * 100) / 100 + ' KB';
} else if (size / 1024 / 1024 >= 1) {
- self.cacheSize = Math.floor(size / 1024 / 1024 * 100) / 100 + 'M';
+ self.cacheSize = Math.floor(size / 1024 / 1024 * 100) / 100 + ' M';
}
});
// #endif
diff --git a/static/public/icon-plan-fire.png b/static/public/icon-plan-fire.png
new file mode 100644
index 0000000000000000000000000000000000000000..129fc723927e17f0cc3ac90ec75706622d20304c
GIT binary patch
literal 2642
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
literal 0
HcmV?d00001
From d12090cc5d9b98b9fc0b5d2e1764f299d883c1b3 Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Wed, 23 Mar 2022 08:47:55 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=B0=E4=BA=A7?=
=?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E8=BF=9B=E5=85=A5=E4=BA=A7=E5=93=81?=
=?UTF-8?q?=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 2 +-
pages/repairsPage/repairsPage.vue | 106 ++++++++++----------
pages/tabbar/pagehome/pagehome.vue | 16 ++-
pages/workOrder/workOrderLlsit.vue | 2 +-
pagesB/new-product/new-product.vue | 2 +-
pagesB/plan-fault-product-detail/detail.vue | 2 +-
6 files changed, 72 insertions(+), 58 deletions(-)
diff --git a/pages.json b/pages.json
index 45906c3..8640ea7 100644
--- a/pages.json
+++ b/pages.json
@@ -72,7 +72,7 @@
"path": "pages/repairsPage/repairsPage",
"style": {
- "navigationBarTitleText": "添加保修",
+ "navigationBarTitleText": "添加报修",
"enablePullDownRefresh": false
}
diff --git a/pages/repairsPage/repairsPage.vue b/pages/repairsPage/repairsPage.vue
index 12ce81c..0056e0c 100644
--- a/pages/repairsPage/repairsPage.vue
+++ b/pages/repairsPage/repairsPage.vue
@@ -1,65 +1,65 @@
-
-
- {{item.title}}
-
-
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+ 请务必拍好故障照片或视频上传,便于技术工程师作为判断依据,带齐 相关维保设备。高效为您提供服务。
+
+
+ 故障类型:
+
+
+ {{item.title}}
+
+
-
-
-
- 请务必拍好故障照片或视频上传,便于技术工程师作为判断依据,带齐 相关维保设备。高效为您提供服务。
-
-
+
+
+
+
+ 请填写设备名称和型号或扫描二维码
+
+
+
+
+ 请填写设备名称和型号
+
+
+
+
+
+ 添加故障图片
+
+
-
- 故障类型:
-
+
-
-
- {{item.title}}
-
-
+
-
-
-
-
- 请填写设备名称和型号或扫描二维码
-
-
-
-
- 请填写设备名称和型号
-
-
-
-
-
- 添加故障图片
-
-
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue
index 295bbc2..654e22a 100644
--- a/pages/tabbar/pagehome/pagehome.vue
+++ b/pages/tabbar/pagehome/pagehome.vue
@@ -46,7 +46,7 @@
故障报修
-
+
{{item.title}}
@@ -323,6 +323,20 @@
goNoticeDetail(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) {
let otherUrls = [
diff --git a/pages/workOrder/workOrderLlsit.vue b/pages/workOrder/workOrderLlsit.vue
index 2f71f52..8a2ac5f 100644
--- a/pages/workOrder/workOrderLlsit.vue
+++ b/pages/workOrder/workOrderLlsit.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pagesB/new-product/new-product.vue b/pagesB/new-product/new-product.vue
index 9b4b0f3..da5b0ce 100644
--- a/pagesB/new-product/new-product.vue
+++ b/pagesB/new-product/new-product.vue
@@ -35,7 +35,7 @@
// 去新产品详情
goDetail(index){
uni.navigateTo({
- url:'/pagesB/plan-fault-product-detail/detail'
+ url:'/pagesB/plan-fault-product-detail/detail?index=2'
})
}
}
diff --git a/pagesB/plan-fault-product-detail/detail.vue b/pagesB/plan-fault-product-detail/detail.vue
index ed5d4e1..798332b 100644
--- a/pagesB/plan-fault-product-detail/detail.vue
+++ b/pagesB/plan-fault-product-detail/detail.vue
@@ -24,7 +24,7 @@
}
},
onLoad(op) {
- this.detailTitle = `${['方案详情','详情概述'][op.index*1]}`;
+ this.detailTitle = `${['方案详情','详情概述','产品详情'][op.index*1]}`;
},
methods: {
// 去新产品详情