Browse Source

问卷调查

master
mk 2 years ago
parent
commit
e53f8708c9
  1. 5
      app.json
  2. BIN
      images/dcwj.gif
  3. 66
      pages/dForm/form.js
  4. 3
      pages/dForm/form.json
  5. 5
      pages/dForm/form.wxml
  6. 1
      pages/dForm/form.wxss
  7. 8
      pages/indexNew/indexNew.js
  8. 4
      pages/indexNew/indexNew.wxml

5
app.json

@ -15,7 +15,8 @@
"pages/accept/accept", "pages/accept/accept",
"pages/gridLeaderRegister/gridLeaderRegister", "pages/gridLeaderRegister/gridLeaderRegister",
"pages/heart/heart", "pages/heart/heart",
"pages/heartNew/heartNew" "pages/heartNew/heartNew",
"pages/dForm/form"
], ],
"subPackages": [ "subPackages": [
{ {
@ -208,7 +209,7 @@
} }
}, },
"sitemapLocation": "sitemap.json", "sitemapLocation": "sitemap.json",
"requiredPrivateInfos":[ "requiredPrivateInfos": [
"getLocation" "getLocation"
] ]
} }

BIN
images/dcwj.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

66
pages/dForm/form.js

@ -0,0 +1,66 @@
// pages/dForm/form.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

3
pages/dForm/form.json

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

5
pages/dForm/form.wxml

@ -0,0 +1,5 @@
<!--pages/dForm/form.wxml-->
<view>
<web-view src="https://epdc-jinshui-questionnaire.elinkservice.cn/s/e9856151b12c40d1aea4ded45e74f786"></web-view>
</view>

1
pages/dForm/form.wxss

@ -0,0 +1 @@
/* pages/dForm/form.wxss */

8
pages/indexNew/indexNew.js

@ -87,7 +87,8 @@ Page({
shouye: {}, shouye: {},
cgmy: {}, cgmy: {},
tabRightList: [], //拼团购和顺道捎 tabRightList: [], //拼团购和顺道捎
voterConfigImgUrl: "" // 选民登记 voterConfigImgUrl: "", // 选民登记
webSrc:""
}, },
onShow: function () { onShow: function () {
if (wx.getStorageSync("token") != "" && wx.getStorageSync("token") != undefined && wx.getStorageSync("token") != null) { if (wx.getStorageSync("token") != "" && wx.getStorageSync("token") != undefined && wx.getStorageSync("token") != null) {
@ -850,6 +851,11 @@ Page({
url: '/subpages/voter/pages/register/register' url: '/subpages/voter/pages/register/register'
}) })
}, },
toForm(){
wx.navigateTo({
url: "../dForm/form"
})
},
// 首页选民登记入口配置 // 首页选民登记入口配置
getVoterConfig() { getVoterConfig() {
api.getVoterConfig().then(res => { api.getVoterConfig().then(res => {

4
pages/indexNew/indexNew.wxml

@ -177,7 +177,9 @@
<!-- 加载更多提示 --> <!-- 加载更多提示 -->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more> <load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
</view> </view>
<move-btn wx:if="{{cgmy.id}}" area-top="120" area-height="90%" button-top="820" button-left="600" button-width="140" button-height="140" img-url="{{cgmy.imgUrl}}" bindmovebtnCallBack="toCgmy"></move-btn> <move-btn wx:if="{{cgmy.id}}" area-top="120" area-height="90%" button-top="820" button-left="600" button-width="140" button-height="140" img-url="{{cgmy.imgUrl}}" bindmovebtnCallBack="toCgmy"></move-btn>
<move-btn area-top="120" area-height="90%" button-top="820" button-left="600" button-width="140" button-height="140" img-url="../../images/dcwj.gif" bindmovebtnCallBack="toForm"></move-btn>
<move-btn wx:if="{{sxjs.id}}" button-top="700" area-top="120" area-height="90%" img-url="{{sxjs.imgUrl}}" bindmovebtnCallBack="toSxjs"></move-btn> <move-btn wx:if="{{sxjs.id}}" button-top="700" area-top="120" area-height="90%" img-url="{{sxjs.imgUrl}}" bindmovebtnCallBack="toSxjs"></move-btn>
<move-btn wx:if="{{shouye.id}}" area-top="120" area-height="90%" button-top="820" button-left="600" button-width="140" button-height="140" img-url="{{shouye.imgUrl}}" bindmovebtnCallBack="toShouye"></move-btn> <move-btn wx:if="{{shouye.id}}" area-top="120" area-height="90%" button-top="820" button-left="600" button-width="140" button-height="140" img-url="{{shouye.imgUrl}}" bindmovebtnCallBack="toShouye"></move-btn>
<move-btn wx:if="{{voterConfigImgUrl}}" area-top="120" area-height="90%" button-top="1080" button-left="600" button-width="186" button-height="150" img-url="{{voterConfigImgUrl}}" bindmovebtnCallBack="navigateToVoter"></move-btn> <move-btn wx:if="{{voterConfigImgUrl}}" area-top="120" area-height="90%" button-top="1080" button-left="600" button-width="186" button-height="150" img-url="{{voterConfigImgUrl}}" bindmovebtnCallBack="navigateToVoter"></move-btn>
@ -185,4 +187,4 @@
<!-- 签到后提醒 --> <!-- 签到后提醒 -->
<wux-popup visible="{{visible}}" title="{{signCode === 0 ? '签到成功' : '签到失败'}}" content="{{signMsg}}" bind:close="onClose"> <wux-popup visible="{{visible}}" title="{{signCode === 0 ? '签到成功' : '签到失败'}}" content="{{signMsg}}" bind:close="onClose">
<view slot="footer" class="popup__button" bindtap="onClose">确定</view> <view slot="footer" class="popup__button" bindtap="onClose">确定</view>
</wux-popup> </wux-popup>

Loading…
Cancel
Save