Browse Source

打卡成功提示,居民满意度调查跳转填表单

jw-featrue-zhanlibiao
mk 2 years ago
parent
commit
a9df9623fa
  1. 2
      pages/work/work.js
  2. 13
      pages/work/work.wxss
  3. 13
      subpages/searchResult/pages/punchCard/punchCard.js
  4. 2
      subpages/searchResult/pages/punchCard/punchCard.wxml

2
pages/work/work.js

@ -61,6 +61,7 @@ Page({
communitySelfInspTop:res.data.list.splice(0,1)[0], communitySelfInspTop:res.data.list.splice(0,1)[0],
communitySelfInspList:res.data.list.splice(0,2), communitySelfInspList:res.data.list.splice(0,2),
}) })
app.globalData.questionnaireUrl = this.data.communitySelfInspTop.questionnaireUrl
}).catch(err=>{ }).catch(err=>{
wx.hideLoading() wx.hideLoading()
console.log(err); console.log(err);
@ -82,6 +83,7 @@ Page({
this.setData({ this.setData({
SearchRecordsList:wx.getStorageSync('searchRecords') || [] SearchRecordsList:wx.getStorageSync('searchRecords') || []
}) })
this.getInspRecord()
}, },
/** /**

13
pages/work/work.wxss

@ -347,7 +347,6 @@ page {
} }
.body .bto .content{ .body .bto .content{
border-radius: 20rpx; border-radius: 20rpx;
/* */
border-image: linear-gradient(0deg, #E7F1FF, #E5EDFB) 10 10; border-image: linear-gradient(0deg, #E7F1FF, #E5EDFB) 10 10;
background: rgba(246,249,254,0.72); background: rgba(246,249,254,0.72);
border: 1px solid #E7F1FF; border: 1px solid #E7F1FF;
@ -420,18 +419,22 @@ page {
.body .bto .content .bg_box .bg_left .submit b{ .body .bto .content .bg_box .bg_left .submit b{
color:#3A80E7 ; color:#3A80E7 ;
} }
.body .bto .content .bg_box .bg_right { .body .bto .content .bg_box .bg_right {
position: relative; position: relative;
width: 160rpx; width: 160rpx;
height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
/* 移除下面的固定高度 */
/* height: 186rpx; */
} }
.body .bto .content .bg_box .bg_right image{ .body .bto .content .bg_box .bg_right image{
width: 160rpx; width: 180rpx;
height: 160rpx; height: 180rpx;
position: relative; position: relative;
top: 80rpx; top: 10rpx;
} }
.body .bto .content .bg_box .bg_right .tag{ .body .bto .content .bg_box .bg_right .tag{
display: inline-block; display: inline-block;

13
subpages/searchResult/pages/punchCard/punchCard.js

@ -1,7 +1,7 @@
// subpages/searchResult/pages/punchCard/punchCard.js // subpages/searchResult/pages/punchCard/punchCard.js
import api from "../../../../utils/api" import api from "../../../../utils/api"
const QQMapWX = require('../../../../utils/qqmap-wx-jssdk') const QQMapWX = require('../../../../utils/qqmap-wx-jssdk')
const app = getApp()
var timerId= null; var timerId= null;
Page({ Page({
@ -73,9 +73,12 @@ Page({
punchFlag:!this.data.punchFlag, punchFlag:!this.data.punchFlag,
animationClass:'animate' animationClass:'animate'
}) })
console.log(this.data.animationClass);
setTimeout(() => { setTimeout(() => {
this.setData({ animationClass: '' }); this.setData({ animationClass: '' });
wx.showToast({
title: '打卡成功',
icon:'none'
})
}, 1500); }, 1500);
}, },
toAddResi(){ toAddResi(){
@ -83,6 +86,12 @@ Page({
url: `/subpages/addResi/pages/addResi/addResi?type=edit&resiId=${this.data.resiId}`, url: `/subpages/addResi/pages/addResi/addResi?type=edit&resiId=${this.data.resiId}`,
}) })
}, },
toWebView(){
console.log(app.globalData);
wx.navigateTo({
url: '/pages/webView/webView?url=' + app.globalData.questionnaireUrl,
})
},
toEvent(){ toEvent(){
let obj ={ let obj ={
resiId : this.data.resiId, resiId : this.data.resiId,

2
subpages/searchResult/pages/punchCard/punchCard.wxml

@ -41,6 +41,6 @@
<view class="card"> <view class="card">
<view class="title">相关操作</view> <view class="title">相关操作</view>
<view class="blue btn" bind:tap="toAddResi" style="margin-top: 40rpx ; ">修改居民信息</view> <view class="blue btn" bind:tap="toAddResi" style="margin-top: 40rpx ; ">修改居民信息</view>
<view class="yellow btn">满意度调查</view> <view class="yellow btn" bind:tap="toWebView">满意度调查</view>
<view class="green btn" bind:tap="toEvent">上报居民诉求</view> <view class="green btn" bind:tap="toEvent">上报居民诉求</view>
</view> </view>
Loading…
Cancel
Save