Browse Source

双实录入相关

release
zhaoyongnian 4 years ago
parent
commit
dc69d60e0a
  1. 7
      app.json
  2. 4
      pages/index/index.js
  3. 2
      pages/index/index.wxml
  4. 69
      subpages/information/pages/index/index.js
  5. 3
      subpages/information/pages/index/index.json
  6. 3
      subpages/information/pages/index/index.wxml
  7. 1
      subpages/information/pages/index/index.wxss

7
app.json

@ -79,6 +79,13 @@
"pages/index/index", "pages/index/index",
"pages/historyDetail/historyDetail" "pages/historyDetail/historyDetail"
] ]
},
{
"root": "subpages/information",
"name": "information",
"pages": [
"pages/index/index"
]
} }
], ],
"preloadRule": { "preloadRule": {

4
pages/index/index.js

@ -224,6 +224,10 @@ Page({
this.toPlugin() this.toPlugin()
} else if (navCode == 'wgy_02') { } else if (navCode == 'wgy_02') {
this.toWanggeyuan() this.toWanggeyuan()
} else if (navCode.indexOf('plugin-h5') != -1) { // 如果包含plugin-h5 说明是h5 页面
wx.navigateTo({
url: `/subpages/information/pages/index/index?url=`+encodeURIComponent(e.currentTarget.dataset.remark)
})
} }
break break
default: default:

2
pages/index/index.wxml

@ -59,7 +59,7 @@
<view class="detailed-name">{{itemPanel.mainLabel}}</view> <view class="detailed-name">{{itemPanel.mainLabel}}</view>
<view class="sudoku"> <view class="sudoku">
<view class="content"> <view class="content">
<view wx:for="{{itemPanel.childNav}}" wx:for-index="index" wx:for-item="itemChild" data-state="{{index}}" data-tmp="{{itemPanel.templateInfo.templateCode}}" data-navcode="{{itemChild.navCode}}" bindtap="toTabs" hover-stay-time="150" hover-class="grid-hover" class="item"> <view wx:for="{{itemPanel.childNav}}" wx:for-index="index" wx:for-item="itemChild" data-state="{{index}}" data-tmp="{{itemPanel.templateInfo.templateCode}}" data-navcode="{{itemChild.navCode}}" data-remark="{{itemChild.remark}}" bindtap="toTabs" hover-stay-time="150" hover-class="grid-hover" class="item">
<image src="{{itemChild.icon}}" /> <image src="{{itemChild.icon}}" />
<view class="name">{{itemChild.label}}</view> <view class="name">{{itemChild.label}}</view>
<!-- 书记在线特殊处理 --> <!-- 书记在线特殊处理 -->

69
subpages/information/pages/index/index.js

@ -0,0 +1,69 @@
// subpages/integralCentre/pages/eshop/eshop.js
Page({
/**
* 页面的初始数据
*/
data: {
webUrl: ''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
webUrl: `${decodeURIComponent(options.url)}&Authorization=${wx.getStorageSync('token')}`
})
// console.log(this.data.webUrl)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

3
subpages/information/pages/index/index.json

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

3
subpages/information/pages/index/index.wxml

@ -0,0 +1,3 @@
<view class="container">
<web-view src="{{webUrl}}"></web-view>
</view>

1
subpages/information/pages/index/index.wxss

@ -0,0 +1 @@
/* subpages/information/pages/index/index.wxss */
Loading…
Cancel
Save