Browse Source

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

jw-featrue-zhanlibiao
mk 2 years ago
parent
commit
a9df9623fa
  1. 2
      pages/work/work.js
  2. 15
      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],
communitySelfInspList:res.data.list.splice(0,2),
})
app.globalData.questionnaireUrl = this.data.communitySelfInspTop.questionnaireUrl
}).catch(err=>{
wx.hideLoading()
console.log(err);
@ -82,6 +83,7 @@ Page({
this.setData({
SearchRecordsList:wx.getStorageSync('searchRecords') || []
})
this.getInspRecord()
},
/**

15
pages/work/work.wxss

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

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

@ -1,7 +1,7 @@
// subpages/searchResult/pages/punchCard/punchCard.js
import api from "../../../../utils/api"
const QQMapWX = require('../../../../utils/qqmap-wx-jssdk')
const app = getApp()
var timerId= null;
Page({
@ -73,9 +73,12 @@ Page({
punchFlag:!this.data.punchFlag,
animationClass:'animate'
})
console.log(this.data.animationClass);
setTimeout(() => {
this.setData({ animationClass: '' });
wx.showToast({
title: '打卡成功',
icon:'none'
})
}, 1500);
},
toAddResi(){
@ -83,6 +86,12 @@ Page({
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(){
let obj ={
resiId : this.data.resiId,

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

@ -41,6 +41,6 @@
<view class="card">
<view class="title">相关操作</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>
Loading…
Cancel
Save