33 changed files with 812 additions and 217 deletions
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 3.5 KiB |
@ -1,144 +1,155 @@ |
|||||
{ |
{ |
||||
"description": "项目配置文件", |
"description": "项目配置文件", |
||||
"packOptions": { |
"packOptions": { |
||||
"ignore": [] |
"ignore": [] |
||||
}, |
}, |
||||
"setting": { |
"setting": { |
||||
"urlCheck": false, |
"urlCheck": false, |
||||
"es6": true, |
"es6": true, |
||||
"postcss": true, |
"postcss": true, |
||||
"preloadBackgroundData": false, |
"preloadBackgroundData": false, |
||||
"minified": true, |
"minified": true, |
||||
"newFeature": true, |
"newFeature": true, |
||||
"coverView": true, |
"coverView": true, |
||||
"autoAudits": false, |
"autoAudits": false, |
||||
"showShadowRootInWxmlPanel": true, |
"showShadowRootInWxmlPanel": true, |
||||
"scopeDataCheck": false, |
"scopeDataCheck": false, |
||||
"checkInvalidKey": true, |
"checkInvalidKey": true, |
||||
"checkSiteMap": true, |
"checkSiteMap": true, |
||||
"uploadWithSourceMap": true, |
"uploadWithSourceMap": true, |
||||
"babelSetting": { |
"compileHotReLoad": false, |
||||
"ignore": [], |
"useMultiFrameRuntime": false, |
||||
"disablePlugins": [], |
"useApiHook": true, |
||||
"outputPath": "" |
"babelSetting": { |
||||
}, |
"ignore": [], |
||||
"useCompilerModule": false, |
"disablePlugins": [], |
||||
"userConfirmedUseCompilerModuleSwitch": false, |
"outputPath": "" |
||||
"compileHotReLoad": false, |
}, |
||||
"useIsolateContext": true |
"useIsolateContext": true, |
||||
}, |
"useCompilerModule": false, |
||||
"compileType": "miniprogram", |
"userConfirmedUseCompilerModuleSwitch": false, |
||||
"libVersion": "2.8.2", |
"packNpmManually": false, |
||||
"appid": "wx6dcf544cdae7d4ec", |
"packNpmRelationList": [] |
||||
"projectname": "%E7%B2%BE%E8%87%B4%E9%94%A6%E6%B0%B4-%E5%B1%85%E6%B0%9 1%E7%AB%AF", |
}, |
||||
"debugOptions": { |
"compileType": "miniprogram", |
||||
"hidedInDevtools": [] |
"libVersion": "2.8.2", |
||||
}, |
"appid": "wx6dcf544cdae7d4ec", |
||||
"isGameTourist": false, |
"projectname": "%E7%B2%BE%E8%87%B4%E9%94%A6%E6%B0%B4-%E5%B1%85%E6%B0%9 1%E7%AB%AF", |
||||
"simulatorType": "wechat", |
"debugOptions": { |
||||
"simulatorPluginLibVersion": {}, |
"hidedInDevtools": [] |
||||
"condition": { |
}, |
||||
"search": { |
"isGameTourist": false, |
||||
"current": -1, |
"simulatorType": "wechat", |
||||
"list": [] |
"simulatorPluginLibVersion": {}, |
||||
}, |
"condition": { |
||||
"conversation": { |
"search": { |
||||
"current": -1, |
"current": -1, |
||||
"list": [] |
"list": [] |
||||
}, |
}, |
||||
"plugin": { |
"conversation": { |
||||
"current": -1, |
"current": -1, |
||||
"list": [] |
"list": [] |
||||
}, |
}, |
||||
"game": { |
"plugin": { |
||||
"currentL": -1, |
"current": -1, |
||||
"list": [] |
"list": [] |
||||
}, |
}, |
||||
"gamePlugin": { |
"game": { |
||||
"current": -1, |
"currentL": -1, |
||||
"list": [] |
"list": [] |
||||
}, |
}, |
||||
"miniprogram": { |
"gamePlugin": { |
||||
"current": -1, |
"current": -1, |
||||
"list": [ |
"list": [] |
||||
{ |
}, |
||||
"id": 0, |
"miniprogram": { |
||||
"name": "pages/formid/formid", |
"current": -1, |
||||
"pathName": "pages/formid/formid", |
"list": [ |
||||
"query": "gid=1233592630168813569", |
{ |
||||
"scene": 1011 |
"id": 0, |
||||
}, |
"name": "pages/formid/formid", |
||||
{ |
"pathName": "pages/formid/formid", |
||||
"id": 1, |
"query": "gid=1233592630168813569", |
||||
"name": "pages/indexNew/indexNew", |
"scene": 1011 |
||||
"pathName": "pages/indexNew/indexNew", |
}, |
||||
"query": "scene=1233592247862198274", |
{ |
||||
"scene": 1011 |
"id": 1, |
||||
}, |
"name": "pages/indexNew/indexNew", |
||||
{ |
"pathName": "pages/indexNew/indexNew", |
||||
"id": 2, |
"query": "scene=1233592247862198274", |
||||
"name": "网格长注册", |
"scene": 1011 |
||||
"pathName": "pages/index/index", |
}, |
||||
"query": "scene=gridLeader", |
{ |
||||
"scene": 1011 |
"id": 2, |
||||
}, |
"name": "网格长注册", |
||||
{ |
"pathName": "pages/index/index", |
||||
"id": 3, |
"query": "scene=gridLeader", |
||||
"name": "subpages/home/pages/newsDetail/newsDetail", |
"scene": 1011 |
||||
"pathName": "subpages/home/pages/newsDetail/newsDetail", |
}, |
||||
"query": "id=7c8bc749ff4b6380bf1d902c0bde0ba&defaultGridId=1233592630168813569", |
{ |
||||
"scene": null |
"id": 3, |
||||
}, |
"name": "subpages/home/pages/newsDetail/newsDetail", |
||||
{ |
"pathName": "subpages/home/pages/newsDetail/newsDetail", |
||||
"id": -1, |
"query": "id=7c8bc749ff4b6380bf1d902c0bde0ba&defaultGridId=1233592630168813569", |
||||
"name": "社群列表", |
"scene": null |
||||
"pathName": "subpages/associationNew/pages/associationlist/associationlist", |
}, |
||||
"query": "", |
{ |
||||
"scene": null |
"id": -1, |
||||
}, |
"name": "社群列表", |
||||
{ |
"pathName": "subpages/associationNew/pages/associationlist/associationlist", |
||||
"id": 5, |
"query": "", |
||||
"name": "数据端跳转", |
"scene": null |
||||
"pathName": "pages/indexNew/indexNew", |
}, |
||||
"query": "scene=1277169327606366209&from=analysis", |
{ |
||||
"scene": null |
"id": 5, |
||||
}, |
"name": "数据端跳转", |
||||
{ |
"pathName": "pages/indexNew/indexNew", |
||||
"id": 6, |
"query": "scene=1277169327606366209&from=analysis", |
||||
"name": "工作端跳转", |
"scene": null |
||||
"pathName": "pages/indexNew/indexNew", |
}, |
||||
"query": "scene=1280737901335838721&from=work", |
{ |
||||
"scene": null |
"id": 6, |
||||
}, |
"name": "工作端跳转", |
||||
{ |
"pathName": "pages/indexNew/indexNew", |
||||
"id": -1, |
"query": "scene=1280737901335838721&from=work", |
||||
"name": "锦水档案", |
"scene": null |
||||
"pathName": "subpages/understandJs/pages/archives/archives", |
}, |
||||
"query": "", |
{ |
||||
"scene": null |
"id": -1, |
||||
}, |
"name": "锦水档案", |
||||
{ |
"pathName": "subpages/understandJs/pages/archives/archives", |
||||
"id": 8, |
"query": "", |
||||
"name": "搜索页面", |
"scene": null |
||||
"pathName": "subpages/oneKeyService/pages/search/search", |
}, |
||||
"query": "", |
{ |
||||
"scene": null |
"id": 8, |
||||
}, |
"name": "搜索页面", |
||||
{ |
"pathName": "subpages/oneKeyService/pages/search/search", |
||||
"id": -1, |
"query": "", |
||||
"name": "注册页面", |
"scene": null |
||||
"pathName": "pages/toRegister/toRegister", |
}, |
||||
"query": "", |
{ |
||||
"scene": null |
"id": -1, |
||||
}, |
"name": "注册页面", |
||||
{ |
"pathName": "pages/toRegister/toRegister", |
||||
"id": -1, |
"query": "", |
||||
"name": "subpages/heart/pages/leaderboardNew/leaderboardNew", |
"scene": null |
||||
"pathName": "subpages/heart/pages/leaderboardNew/leaderboardNew", |
}, |
||||
"query": "", |
{ |
||||
"scene": null |
"id": -1, |
||||
} |
"name": "subpages/heart/pages/leaderboardNew/leaderboardNew", |
||||
] |
"pathName": "subpages/heart/pages/leaderboardNew/leaderboardNew", |
||||
} |
"query": "", |
||||
} |
"scene": null |
||||
|
}, |
||||
|
{ |
||||
|
"id": -1, |
||||
|
"name": "我有事说", |
||||
|
"pathName": "pages/discussion/discussion", |
||||
|
"query": "", |
||||
|
"scene": null |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
} |
||||
} |
} |
@ -0,0 +1,91 @@ |
|||||
|
Component({ |
||||
|
data: { |
||||
|
visible: false, |
||||
|
textareaValue: '' |
||||
|
}, |
||||
|
properties: { |
||||
|
noticeVerifyVisible: { |
||||
|
type: Boolean, |
||||
|
value: false, |
||||
|
observer: function (newValue) { |
||||
|
this.setData({ |
||||
|
visible: !this.data.visible |
||||
|
}) |
||||
|
} |
||||
|
}, |
||||
|
title: { |
||||
|
type: String, |
||||
|
value: '' |
||||
|
}, |
||||
|
cancelText: { |
||||
|
type: String, |
||||
|
value: '' |
||||
|
}, |
||||
|
confirmText: { |
||||
|
type: String, |
||||
|
value: '' |
||||
|
}, |
||||
|
tipVisible: { |
||||
|
type: Boolean, |
||||
|
value: false |
||||
|
}, |
||||
|
tipValue: { |
||||
|
type: String, |
||||
|
value: '*请输入屏蔽该话题的原因' |
||||
|
} |
||||
|
}, |
||||
|
lifetimes: { |
||||
|
attached () { |
||||
|
console.log('notice-verify') |
||||
|
}, |
||||
|
deattached () { |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
pageLifetimes: { |
||||
|
show () { |
||||
|
|
||||
|
}, |
||||
|
hide () { |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
close () { |
||||
|
this.triggerEvent('close', {data: this.data.textareaValue}) |
||||
|
this.setData({ |
||||
|
// visible: !this.data.visible,
|
||||
|
textareaValue: '' |
||||
|
}) |
||||
|
}, |
||||
|
confirm () { |
||||
|
if (this.data.textareaValue === '') { |
||||
|
wx.showToast({ |
||||
|
title: '原因不能为空', |
||||
|
icon: 'none', |
||||
|
duration: 2000 |
||||
|
}) |
||||
|
return false |
||||
|
} |
||||
|
this.triggerEvent('confirm', {data: this.data.textareaValue}) |
||||
|
this.setData({ |
||||
|
// visible: !this.data.visible,
|
||||
|
textareaValue: '' |
||||
|
}) |
||||
|
}, |
||||
|
textareaInput (e) { |
||||
|
this.setData({ |
||||
|
textareaValue: e.detail.value |
||||
|
}) |
||||
|
// console.log(this.data.textareaValue)
|
||||
|
}, |
||||
|
closeDialog () { |
||||
|
this.setData({ |
||||
|
visible: !this.data.visible |
||||
|
}) |
||||
|
}, |
||||
|
move () { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
}) |
@ -0,0 +1,3 @@ |
|||||
|
{ |
||||
|
"component": true |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
<view class="notice-verify" wx:if="{{visible}}" capture-catch:touchmove="move"> |
||||
|
<view class="content"> |
||||
|
<view class="close" bindtap="closeDialog"> |
||||
|
<!-- <image src="../../images/delete.png" /> --> |
||||
|
</view> |
||||
|
<view class="title">{{title}}</view> |
||||
|
<view class="textarea"> |
||||
|
<textarea value="{{textareaValue}}" bindinput="textareaInput" placeholder-class="textarea-placeholder" placeholder="屏蔽原因(必填 100字以内)" maxlength="100"/> |
||||
|
</view> |
||||
|
<view class="note" wx:if="{{tipVisible}}">{{tipValue}}</view> |
||||
|
<view class="footer"> |
||||
|
<view class="unpass" wx:if="{{cancelText != ''}}" bindtap="close">{{cancelText}}</view> |
||||
|
<view class="pass" wx:if="{{confirmText != ''}}" bindtap="confirm">{{confirmText}}</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
@ -0,0 +1,100 @@ |
|||||
|
.notice-verify { |
||||
|
width: 100%; |
||||
|
height: 100vh; |
||||
|
position: fixed; |
||||
|
left: 0; |
||||
|
top: 0; |
||||
|
background: rgba(0,0,0,0.3); |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
z-index: 1000; |
||||
|
} |
||||
|
.notice-verify .content { |
||||
|
width: 610rpx; |
||||
|
height: auto; |
||||
|
border-radius: 16rpx; |
||||
|
background: #fff; |
||||
|
box-sizing: border-box; |
||||
|
padding: 0 30rpx; |
||||
|
} |
||||
|
.notice-verify .content .close { |
||||
|
width: 100%; |
||||
|
height: 62rpx; |
||||
|
display: flex; |
||||
|
justify-content: flex-end; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.notice-verify .content .close image { |
||||
|
width: 40rpx; |
||||
|
height: 40rpx; |
||||
|
object-fit:cover; |
||||
|
position: relative; |
||||
|
left: 7px; |
||||
|
top: 2px; |
||||
|
} |
||||
|
.notice-verify .content .title { |
||||
|
font-size: 40rpx; |
||||
|
color: #333; |
||||
|
line-height: 57rpx; |
||||
|
height: 57rpx; |
||||
|
width:100%; |
||||
|
text-align:center; |
||||
|
margin-bottom: 26rpx; |
||||
|
} |
||||
|
.notice-verify .content .textarea { |
||||
|
width: 100%; |
||||
|
height: 345rpx; |
||||
|
border-radius: 16rpx; |
||||
|
background: #f7f7f7; |
||||
|
box-sizing: border-box; |
||||
|
padding: 27rpx 17rpx 0; |
||||
|
margin-bottom: 20rpx; |
||||
|
} |
||||
|
.notice-verify .content .textarea textarea { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
font-size: 32rpx; |
||||
|
line-height: 44rpx; |
||||
|
color: #666; |
||||
|
} |
||||
|
.notice-verify .content .textarea .textarea-placeholder { |
||||
|
font-size: 28rpx; |
||||
|
color: #999; |
||||
|
line-height: 40rpx; |
||||
|
} |
||||
|
.notice-verify .content .note { |
||||
|
font-size: 24rpx; |
||||
|
color: #999; |
||||
|
height:58rpx; |
||||
|
line-height: 58rpx; |
||||
|
} |
||||
|
.notice-verify .content .footer { |
||||
|
width: 100%; |
||||
|
height: 107rpx; |
||||
|
box-sizing: border-box; |
||||
|
padding: 15rpx 0; |
||||
|
display: flex; |
||||
|
justify-content: space-around; |
||||
|
align-items: center; |
||||
|
border-top: 1rpx solid #eaeaea; |
||||
|
} |
||||
|
.notice-verify .content .unpass { |
||||
|
height: 100%; |
||||
|
line-height: 77rpx; |
||||
|
font-size: 36rpx; |
||||
|
flex: 1; |
||||
|
color: #999; |
||||
|
text-align: center; |
||||
|
} |
||||
|
.notice-verify .content .unpass + .pass { |
||||
|
border-left: 1rpx solid #eaeaea; |
||||
|
} |
||||
|
.notice-verify .content .pass { |
||||
|
height: 100%; |
||||
|
line-height: 77rpx; |
||||
|
font-size: 36rpx; |
||||
|
flex: 1; |
||||
|
color: #04BCA0; |
||||
|
text-align: center; |
||||
|
} |
After Width: | Height: | Size: 485 B |
Loading…
Reference in new issue