This commit is contained in:
2024-08-26 22:56:29 +08:00
parent 3a160fabfe
commit 2cdbd5c22d
18 changed files with 4968 additions and 484 deletions

View File

@@ -1,4 +1,10 @@
// pages/details/details.js
const request = require('../../utils/request')
const ui = require('../../utils/ui')
const wxParse = require("../../wxParse/wxParse.js");
Page({
/**
@@ -6,15 +12,127 @@ Page({
*/
data: {
navTitle: "详情",
date: "",
title: "",
content: "",
aid: 0,
isDow: false,
ext_download_link: ""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
let that = this;
if (!options.aid) {
wx.navigateBack()
this.triggerEvent('onBack')
}
that.setData({
aid: options.aid
})
that.GetDetailsInfo()
console.log(options);
//
},
initContent() {
let that = this;
console.log(that.data.content);
if (that.data.content.length > 0) {
wxParse.wxParse('content', 'html', that.data.content, that, 0);
}
},
GetDetailsInfo() {
let that = this;
request.request({
method: "GET",
// https://app.19year.cn/api.php/doc/details?id=51
url: "/api.php/doc/details?id=" + that.data.aid
}).then(res => {
if (res.data.code === 1) {
that.setData({
title: res.data.data.title,
date: res.data.data.date,
content: res.data.data.content,
ext_download_link: res.data.data.ext_download_link,
})
if (res.data.data.ext_download_link.length > 0) {
that.setData({
isDow: true
})
}
that.initContent()
}
}).catch(err => {
console.log('ERROR')
});
},
downloadFileOpen() {
let that = this;
let link = that.data.ext_download_link
wx.setClipboardData({
data: link,
success: function (res) {
wx.getClipboardData({
success: function (res) {
wx.showToast({
title: '复制成功'
})
}
})
}
})
//复制到剪切板
// wx.setClipboardData({
// data: link,
// success(res) {
// console.log('copy success');
// //获取剪切板的纸
// // wx.getClipboardData({
// // success(res) {
// // console.log(res) // data
// // that.copyContent = res.data
// // }
// // })
// }
// })
// wx.showLoading({
// title: '下载中',
// })
//下载文件
// wx.downloadFile({
// url: link,
// success (res) {
// if (res.statusCode === 200) {
// const filePath = res.tempFilePath
// wx.openDocument({
// filePath: filePath,
// showMenu:true, //关键点
// success: function (res) {
// console.log('打开文档成功')
// }
// })
// }
// }
// })
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@@ -1,19 +1,24 @@
<list-nav-bar title="WeixinWeixinWeixin" background="#3c8bf6" showNavBtn="{{true}}"></list-nav-bar>
<import src="../../wxParse/wxParse.wxml"></import>
<list-nav-bar title="{{navTitle}}" background="#3c8bf6" showNavBtn="{{true}}"></list-nav-bar>
<scroll-view style="height: 100%;overflow:hidden;" scroll-y type="list">
<view class="container">
<view class="title">
<text>快速操作手册试用版</text>
<text class="date">2024.08.14 15:26</text>
<text>{{title}}</text>
<text class="date">{{date}}</text>
</view>
<view class="content">
<view class="text">
北京欧华莱菌科技有限公司自1993年创建以来在中国市场推广超声波封口焊接设备致力于传播先进技术为众多的国内大型知名企业提供高品质焊接技术成为中国企业走向世界舞台不可或缺的坚实后盾。先后为中国的制冷业汽车制造业电子元器件塑料件手机电池及汽车气囊业提供各类先进的焊接设备提供及时优质的条件保障和售后服务为客户在生产效率及成本控制上作出巨大贡献得到广大用户的认可取得客户的信任并得到广泛的应用伴随中国驰名品牌的发展而发展成长而成长。经过我们不懈的努力30多年来国内使用我公司提供的设备和技术的公司达到80多家目前有超过500台各类设备在国内的制冷及其他领域广泛使用。北京欧华莱菌科技有限公司自1993年创建以来在中国市场推广超声波封口焊接设备致力于传播先进技术为众多的国内大型知名企业提供高品质焊接技术成为中国企业走向世界舞台不可或缺的坚实后盾。先后为中国的制冷业汽车制造业电子元器件塑料件手机电池及汽车气囊业提供各类先进的焊接设备提供及时优质的条件保障和售后服务为客户在生产效率及成本控制上作出巨大贡献得到广大用户的认可取得客户的信任并得到广泛的应用伴随中国驰名品牌的发展而发展成长而成长。经过我们不懈的努力30多年来国内使用我公司提供的设备和技术的公司达到80多家目前有超过500台各类设备在国内的制冷及其他领域广泛使用。北京欧华莱菌科技有限公司自1993年创建以来在中国市场推广超声波封口焊接设备致力于传播先进技术为众多的国内大型知名企业提供高品质焊接技术成为中国企业走向世界舞台不可或缺的坚实后盾。先后为中国的制冷业汽车制造业电子元器件塑料件手机电池及汽车气囊业提供各类先进的焊接设备提供及时优质的条件保障和售后服务为客户在生产效率及成本控制上作出巨大贡献得到广大用户的认可取得客户的信任并得到广泛的应用伴随中国驰名品牌的发展而发展成长而成长。经过我们不懈的努力30多年来国内使用我公司提供的设备和技术的公司达到80多家目前有超过500台各类设备在国内的制冷及其他领域广泛使用。
<!-- {{content}} -->
<!-- <template is="wxParse" data="{{wxParseData:content}}"></template> -->
<template is="wxParse" data="{{wxParseData:content.nodes}}"/>
</view>
</view>
</view>
</scroll-view>
<view class='btn-view'>
<button style="background: #3c8bf6;;border-radius: 60rpx;width: 85%;color: #fff;font-size: 30rpx;font-weight: normal;">附件下载</button>
<view class='btn-view' wx:if="{{isDow}}">
<button bind:tap="downloadFileOpen" style="background: #3c8bf6;;border-radius: 60rpx;width: 85%;color: #fff;font-size: 30rpx;font-weight: normal;">附件下载</button>
</view>

View File

@@ -1,3 +1,4 @@
@import "../../wxParse/wxParse.wxss";
page {
height: 100vh;

View File

@@ -1,145 +0,0 @@
<view class="container">
<view class="header-background"></view>
<view class="search-box">
<view class="search">
<view class="search_in">
<image src="../../images/search.png"></image>
<input type="text" placeholder="请输入故障代码或关键词" />
</view>
</view>
</view>
<!-- 故障码快速查询 -->
<view class="quick-search-box">
<view class="quick-search">
<view class="section-title">故障码快速查询</view>
<view class="code-grid">
<block wx:for="{{codes}}" wx:key="index">
<view class="code-button">{{item}}</view>
</block>
</view>
<view class="pagination">
<button class="pagination-button btn-disabled">上一页</button>
<button class="pagination-button btn-background">下一页</button>
</view>
</view>
</view>
<view class="group-item-box">
<view class="group-item">
<view class="group-item-header">
<view class="group-item-header-tip"></view>
<view class="group-item-header-title">常见问题解决</view>
<view class="group-item-header-tip">
<view class="group-item-header-tip-txt">全部</view>
<image class="group-item-header-tip-image" src="../../images/jt.png"></image>
</view>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
</view>
</view>
<view class="group-item-box">
<view class="group-item">
<view class="group-item-header">
<view class="group-item-header-tip"></view>
<view class="group-item-header-title">常见问题解决</view>
<view class="group-item-header-tip">
<view class="group-item-header-tip-txt">全部</view>
<image class="group-item-header-tip-image" src="../../images/jt.png"></image>
</view>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
</view>
</view>
<view class="group-item-box">
<view class="group-item">
<view class="group-item-header">
<view class="group-item-header-tip"></view>
<view class="group-item-header-title">常见问题解决</view>
<view class="group-item-header-tip">
<view class="group-item-header-tip-txt">全部</view>
<image class="group-item-header-tip-image" src="../../images/jt.png"></image>
</view>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
</view>
</view>
<view class="group-item-box">
<view class="group-item">
<view class="group-item-header">
<view class="group-item-header-tip"></view>
<view class="group-item-header-title">常见问题解决</view>
<view class="group-item-header-tip">
<view class="group-item-header-tip-txt">全部</view>
<image class="group-item-header-tip-image" src="../../images/jt.png"></image>
</view>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
<view class="group-txt-item">
<text class="group-txt-item-bullet">•</text>
<text class="group-txt-item-text">超出焊接时间</text>
<text class="group-txt-item-text-time">08.04 00:48</text>
</view>
</view>
</view>
</view>

View File

@@ -158,7 +158,7 @@
</view>
</view> -->
<view class="copyright">iuu by © 2017-2024版权所有</view>
<!-- <view class="copyright">iuu by © 2017-2024版权所有</view> -->
</view>
</scroll-view>

View File

@@ -3,179 +3,178 @@ const request = require('../../utils/request')
const ui = require('../../utils/ui')
Page({
/**
* 页面的初始数据
*/
data: {
categoryName: "",
categoryId: 0,
total_count: 0,
total_pages: 0,
has_next: false,
has_next: false,
current_page: 1,
list: []
},
/**
* 页面的初始数据
*/
data: {
categoryName: "",
categoryId: 0,
total_count: 0,
total_pages: 0,
has_next: false,
has_next: false,
current_page: 1,
list: [],
scrollHeight:0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
let that = this;
if (!options.cid) {
wx.navigateBack()
this.triggerEvent('onBack')
}
that.setData({
categoryId: options.cid
})
that.GetCategoryInfo()
that.GetList()
},
GetCategoryInfo() {
let that = this;
request.request({
method: "GET",
url: "/api.php/doc/category_info?cid=" + that.data.categoryId
}).then(res => {
if (res.data.code === 1) {
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
let that = this;
if (!options.cid) {
wx.navigateBack()
this.triggerEvent('onBack')
}
that.setListHeight()
that.setData({
categoryName: res.data.data.data.name,
categoryId: res.data.data.data.scode,
categoryId: options.cid
})
}
}).catch(err => {
console.log('ERROR')
});
},
GetList() {
let that = this;
request.request({
method: "GET",
url: "/api.php/doc/list?cid=" + that.data.categoryId + "&pageSize=16"
}).then(res => {
if (res.data.code === 1) {
that.GetCategoryInfo()
that.GetList()
},
/**
* 设置列表高度
*/
setListHeight: function () {
let that = this;
const windowInfo = wx.getWindowInfo()
that.setData({
list: res.data.data.data,
current_page: res.data.data.current_page,
has_next: res.data.data.has_next,
has_prev: res.data.data.has_prev,
total_count: res.data.data.total_count,
total_pages: res.data.data.total_pages,
})
}
// ui.showToast(res.data.errorMsg)
}).catch(err => {
console.log('ERROR')
});
},
scrollHeight: windowInfo.windowHeight - 90,
});
// wx.getSystemInfo({
// success: function (res) {
// that.setData({
// scrollHeight: res.windowHeight - 90,
// });
// }
// });
},
jumpPage(e) {
let jumpType = e.currentTarget.dataset.jumptype;
console.log(jumpType == 2);
if (jumpType == 2) {
wx.navigateTo({
url: "/pages/details/details?id=1"
})
/**
* 下拉到底加载数据
*/
bindDownLoad() {
let that = this;
// 已经是最后一页
if (that.data.has_next) {
that.setData({
current_page: that.data.current_page + 1
});
this.GetList();
}
},
GetCategoryInfo() {
let that = this;
request.request({
method: "GET",
url: "/api.php/doc/category_info?cid=" + that.data.categoryId
}).then(res => {
if (res.data.code === 1) {
that.setData({
categoryName: res.data.data.data.name,
categoryId: res.data.data.data.scode,
})
}
}).catch(err => {
console.log('ERROR')
});
},
GetList() {
let that = this;
request.request({
method: "GET",
url: "/api.php/doc/list?cid=" + that.data.categoryId + "&pageSize=16&page=" + that.data.current_page
}).then(res => {
if (res.data.code === 1) {
that.setData({
list: that.data.list.concat(res.data.data.data),
current_page: res.data.data.current_page,
has_next: res.data.data.has_next,
has_prev: res.data.data.has_prev,
total_count: res.data.data.total_count,
total_pages: res.data.data.total_pages,
})
}
// ui.showToast(res.data.errorMsg)
}).catch(err => {
console.log('ERROR')
});
},
jumpPage(e) {
let jumpType = e.currentTarget.dataset.jumptype;
// 文章id
let aid = e.currentTarget.dataset.aid;
console.log(jumpType == 2);
if (jumpType == 2 && aid) {
wx.navigateTo({
url: "/pages/details/details?aid="+aid
})
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
console.log(111);
// if (this.data.has_next) {
// that.setData({
// current_page: this.current_page + 1
// })
// //加载下一页
// this.GetList();
// } else {
// ui.showToast({
// icon: "none",
// title: '没有更多数据了'
// })
// }
},
loadData: function () {
wx.request({
url: 'http://test.com', //假的后台接口
method: 'POST',
data: {
pageSize: this.pageSize,
pageNum: this.pageNum,
},
success: function (res) {
this.pageNum = res.data.content.pageNum;
this.totalPage = res.data.content.totalPageNum;
this.resultData = res.data.content.rows;
},
fail: function (res) {
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@@ -2,7 +2,7 @@
<!-- <navigation-bar title="Weixin" back="{{false}}" color="black" background="#3c8bf6"></navigation-bar> -->
<list-nav-bar title="{{categoryName}}" background="#3c8bf6" showNavBtn="{{true}}"></list-nav-bar>
<scroll-view style="height: 100%; overflow:hidden;" scroll-y type="list">
<scroll-view bindscrolltolower="bindDownLoad" style="height: {{scrollHeight}}px; overflow:hidden;" scroll-y type="list">
<view class="container">
<block wx:for="{{list}}" wx:for-index="index" wx:for-item="itemArt">
<view class="card" bind:tap="jumpPage" data-aid="{{itemArt.id}}" data-jumpType="2">
@@ -11,7 +11,6 @@
<text class="title">{{itemArt.title}}</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>

View File

@@ -1,4 +1,7 @@
// pages/list/list.js
const request = require('../../utils/request')
const ui = require('../../utils/ui')
Page({
/**
@@ -6,15 +9,25 @@ Page({
*/
data: {
searchName : "",
title:"搜索",
total_count: 0,
total_pages: 0,
has_next: false,
has_next: false,
current_page: 1,
list: [],
scrollHeight:0
},
jumpPage(e) {
let jumpType = e.currentTarget.dataset.jumptype;
let aid = e.currentTarget.dataset.aid;
console.log(jumpType == 2);
if (jumpType == 2) {
wx.navigateTo({
url: "/pages/details/details?id=1"
url: "/pages/details/details?aid=" +aid
})
}
// wx.navigateTo({
@@ -23,13 +36,78 @@ Page({
},
GetList() {
let that = this;
request.request({
method: "GET",
url: "/api.php/doc/list?keyword=" + that.data.searchName + "&pageSize=16&page=" + that.data.current_page
}).then(res => {
if (res.data.code === 1) {
that.setData({
list: that.data.list.concat(res.data.data.data),
current_page: res.data.data.current_page,
has_next: res.data.data.has_next,
has_prev: res.data.data.has_prev,
total_count: res.data.data.total_count,
total_pages: res.data.data.total_pages,
})
}
// ui.showToast(res.data.errorMsg)
}).catch(err => {
console.log('ERROR')
});
},
/**
* 设置列表高度
*/
setListHeight: function () {
let that = this;
const windowInfo = wx.getWindowInfo()
that.setData({
scrollHeight: windowInfo.windowHeight - 90,
});
// wx.getSystemInfo({
// success: function (res) {
// that.setData({
// scrollHeight: res.windowHeight - 90,
// });
// }
// });
},
/**
* 下拉到底加载数据
*/
bindDownLoad() {
let that = this;
// 已经是最后一页
if (that.data.has_next) {
that.setData({
current_page: that.data.current_page + 1
});
this.GetList();
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
let that = this;
if (!options.search) {
wx.navigateBack()
this.triggerEvent('onBack')
}
console.log(options);
that.setData({searchName:options.search})
that.setListHeight()
that.GetList()
// that.data.searchName = options.search;
// if (that.sea)
// console.log(options);

View File

@@ -1,22 +1,7 @@
<!-- <list-nav-bar title="Weixin" back="{{false}}" color="black" background="#3c8bf6"></list-nav-bar> -->
<!-- <navigation-bar title="Weixin" back="{{false}}" color="black" background="#3c8bf6"></navigation-bar> -->
<list-nav-bar title="WeixinWeixinWeixin" background="#3c8bf6" showNavBtn="{{true}}"></list-nav-bar>
<!-- <view class="index-search-box dis-flex">
<view class="index-cont-search">
<icon class="text-center" color="rgba(0,0,0,0.4)" size="15" type="search"></icon>
<text>搜索商品</text>
</view>
</navigator>
<view bindtap="onChangeShowState" class="list-right f-28">
<text class="iconfont icon-tubiao_kuaizhuangpailie" wx:if="{{showView}}"></text>
<text class="iconfont icon-tubiao_liebiaopailie" wx:else></text>
</view>
</view> -->
<list-nav-bar title="{{title}}" background="#3c8bf6" showNavBtn="{{true}}"></list-nav-bar>
<view class="search-box">
<navigator hover-class="none" openType="navigateBack" url="../search/index">
@@ -30,149 +15,20 @@
</navigator>
</view>
<scroll-view style="height: 100%;overflow:hidden;" scroll-y type="list">
<scroll-view bindscrolltolower="bindDownLoad" style="height: {{scrollHeight}}px;overflow:hidden;" scroll-y type="list">
<view class="container">
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
<block wx:for="{{list}}" wx:for-index="index" wx:for-item="itemArt">
<view class="card" bind:tap="jumpPage" data-aid="{{itemArt.id}}" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">{{itemArt.title}}</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
<view class="card" bind:tap="jumpPage" data-jumpType="2">
<view class="card-header">
<view class="dot"></view>
<text class="title">超出焊接时间</text>
</view>
<view class="details">
<!-- 查看详情 -->
<text class="group-item-header-tip-txt">查看详情</text>
<image class="details-icon" src="../../images/jt.png"></image>
</view>
</view>
</block>
</view>
</scroll-view>

View File

@@ -65,7 +65,7 @@ Page({
/**
* 清空最近搜索记录
*/
clearSearch: function () {
clearSearch() {
wx.removeStorageSync('recentSearch');
this.getRecentSearch();
},
@@ -73,7 +73,7 @@ Page({
/**
* 跳转到最近搜索
*/
goSearch: function (e) {
goSearch(e) {
console.log(e.target.dataset.text);
wx.navigateTo({
url: '../s-list/s-list?search=' + e.target.dataset.text,