Browse Source

首页社区自查样式调整,社区自查跳转页面参数调整

data-page-V4.3.1
mk 1 year ago
parent
commit
1056d05fb3
  1. 2
      pages/index/index.js
  2. 11
      pages/index/index.wxml
  3. 14
      pages/index/index.wxss
  4. 3
      project.config.json
  5. 1
      subpages/communitySelfInsp/pages/synthesis/synthesis.js

2
pages/index/index.js

@ -83,7 +83,7 @@ toDetaill(e){
}, },
toSynthesis(){ toSynthesis(){
wx.navigateTo({ wx.navigateTo({
url: `/subpages/communitySelfInsp/pages/synthesis/synthesis?inspRecordId=${this.data.communitySelfInspTop.id}&qrCodeImgUrl=${this.data.communitySelfInspTop.qrCodeImgUrl}&agencyName=${this.data.communitySelfInspTop.agencyName}&monthName=${this.data.communitySelfInspTop.monthName}&questionnaireUrl=${this.data.communitySelfInspTop.questionnaireUrl}`, url: `/subpages/communitySelfInsp/pages/synthesis/synthesis?inspRecordId=${encodeURIComponent(this.data.communitySelfInspTop.id)}&qrCodeImgUrl=${encodeURIComponent(this.data.communitySelfInspTop.qrCodeImgUrl)}&agencyName=${encodeURIComponent(this.data.communitySelfInspTop.agencyName)}&monthName=${encodeURIComponent(this.data.communitySelfInspTop.monthName)}&questionnaireUrl=${encodeURIComponent(this.data.communitySelfInspTop.questionnaireUrl)}&status=${encodeURIComponent(this.data.communitySelfInspTop.status)}`,
}) })
}, },
toHistoryQuery(){ toHistoryQuery(){

11
pages/index/index.wxml

@ -80,9 +80,11 @@
<view class="bg_new_box"> <view class="bg_new_box">
<block wx:if="{{communitySelfInspTop.monthName}}"> <block wx:if="{{communitySelfInspTop.monthName}}">
<!-- <block wx:if='true'> --> <!-- <block wx:if='true'> -->
<view class="new_h2" bind:tap="toSynthesis" > <view>
{{communitySelfInspTop.agencyName}}{{communitySelfInspTop.monthName}}月份满意度自查 <view class="new_h2" bind:tap="toSynthesis" >
</view> {{communitySelfInspTop.agencyName}}{{communitySelfInspTop.monthName}}月份满意度自查
</view>
</view>
<view class="new_submitt">已提交 <b>{{communitySelfInspTop.personQty?communitySelfInspTop.personQty:'--'}}</b> 人</view> <view class="new_submitt">已提交 <b>{{communitySelfInspTop.personQty?communitySelfInspTop.personQty:'--'}}</b> 人</view>
<view class="button_a"> <view class="button_a">
<button class="btn_fx" bind:tap="handelClickShare" data-item="{{communitySelfInspTop}}" open-type="share" >一键分享</button> <button class="btn_fx" bind:tap="handelClickShare" data-item="{{communitySelfInspTop}}" open-type="share" >一键分享</button>
@ -95,10 +97,9 @@
未创建{{curMonth}}月份满意度自查 未创建{{curMonth}}月份满意度自查
</view> </view>
<view class="bg_new_right"> <view class="bg_new_right">
<text class="tag" wx:if="{{communitySelfInspTop.monthName}}">进行中</text>
<image src="../../images/work/map.png" mode="" style="max-height: 200rpx;width: 200rpx;"/> <image src="../../images/work/map.png" mode="" style="max-height: 200rpx;width: 200rpx;"/>
</view> </view>
<text class="tag" wx:if="{{communitySelfInspTop.monthName}}">进行中</text>
</view> </view>
<!-- --> <!-- -->
</view> </view>

14
pages/index/index.wxss

@ -1033,6 +1033,20 @@ line-height: 40rpx;
transform: translateY(-50%); transform: translateY(-50%);
right: 0; right: 0;
} }
.bg_new_box .tag{
display: inline-block;
position: absolute;
top: 0;
right: 0;
background: #FFEFDB;
border-radius: 0rpx 10rpx 0rpx 10rpx;
padding: 10rpx 26rpx;
box-sizing: border-box;
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FF783C;
}
.new_h2{ .new_h2{
margin-top: 30rpx; margin-top: 30rpx;
margin-left: 30rpx; margin-left: 30rpx;

3
project.config.json

@ -46,7 +46,8 @@
"minifyWXML": true, "minifyWXML": true,
"showES6CompileOption": false, "showES6CompileOption": false,
"useCompilerPlugins": false, "useCompilerPlugins": false,
"condition": false "condition": false,
"ignoreUploadUnusedFiles": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.19.4", "libVersion": "2.19.4",

1
subpages/communitySelfInsp/pages/synthesis/synthesis.js

@ -34,6 +34,7 @@ Page({
questionnaireUrl:decodeURIComponent(options.questionnaireUrl), questionnaireUrl:decodeURIComponent(options.questionnaireUrl),
status:decodeURIComponent(options.status) status:decodeURIComponent(options.status)
}) })
console.log(this.data.status);
// 获取当前日期 // 获取当前日期
const currentDate = new Date(); const currentDate = new Date();
const currentMonth = currentDate.getMonth() + 1; const currentMonth = currentDate.getMonth() + 1;

Loading…
Cancel
Save