first commit
This commit is contained in:
@@ -0,0 +1,421 @@
|
||||
<!--#
|
||||
layout("/mobile/platform.html"){
|
||||
#-->
|
||||
|
||||
<style>
|
||||
#app {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.van-sidebar-item {
|
||||
color: rgba(69, 90, 100, 0.6);
|
||||
font-weight: normal;
|
||||
margin: 0 10px;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #f7f7f7;
|
||||
}
|
||||
|
||||
.icon_text {
|
||||
font-size: 14px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.v-header {
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
#v-back {
|
||||
background: url("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01d1ed570f33cd32f875a8390b850f.jpg%401280w_1l_2o_100sh.png&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1638425547&t=55618f9dea9872dc3c0c1ece65ea96d5") no-repeat;
|
||||
background-size: cover;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
#v-back2 {
|
||||
background: url("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01d1ed570f33cd32f875a8390b850f.jpg%401280w_1l_2o_100sh.png&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1638425547&t=55618f9dea9872dc3c0c1ece65ea96d5") no-repeat;
|
||||
background-size: 100% 100%;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.user_info {
|
||||
position: relative;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.user_avatar {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
transform: translate(0, -50%);
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.disabled-row img {
|
||||
filter: grayscale(1);
|
||||
}
|
||||
|
||||
.disabled-row .van-grid-item {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.oneDisabled {
|
||||
filter: grayscale(1);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.van-grid-item__content {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div id="app" v-cloak>
|
||||
<div class="user_info">
|
||||
<van-row style="height: 200px">
|
||||
<van-image
|
||||
width="100%"
|
||||
height="200px"
|
||||
src="/back2.png"
|
||||
></van-image>
|
||||
</van-row>
|
||||
|
||||
<van-row class="user_avatar" style="height: 80px">
|
||||
<van-col span="6" class="text-center">
|
||||
<van-image
|
||||
round
|
||||
width="70"
|
||||
height="70"
|
||||
:src="avatar"
|
||||
></van-image>
|
||||
</van-col>
|
||||
<van-col span="18">
|
||||
<div style="height: 40px;line-height: 40px">
|
||||
<span style="font-size: 22px; color: white">
|
||||
${@shiro.getPrincipalProperty('username')}
|
||||
</span>
|
||||
<span style="color: white">
|
||||
${@shiro.getPrincipalProperty('loginname')}
|
||||
</span>
|
||||
</div>
|
||||
<div class="van-ellipsis" style="height: 40px;line-height: 40px;font-size: 14px;color: #969799">
|
||||
<!--#if(@shiro.getPrincipalProperty('union')!=null){#-->
|
||||
${@shiro.getPrincipalProperty('union').getUnionname()}
|
||||
<!--#}#-->
|
||||
</div>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</div>
|
||||
|
||||
<div v-if="paramType === '会员管理'">
|
||||
<div v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('public')||@shiro.hasRole('H01')}"
|
||||
class="van-sidebar-item van-sidebar-item--select">
|
||||
会员管理
|
||||
</div>
|
||||
<van-grid :column-num="3" :border="false">
|
||||
<van-grid-item v-if="${@shiro.hasRole('H01')}" url="/mobile/member/detail">
|
||||
<image src="/assets/mobile/icon/member/da.png"></image>
|
||||
<span class="icon_text"> 会员档案</span>
|
||||
</van-grid-item>
|
||||
|
||||
<van-grid-item v-if="${@shiro.lacksRole('H01')}" url="/mobile/member/apply">
|
||||
<image src="/assets/mobile/icon/member/apply.png"></image>
|
||||
<span class="icon_text"> 申请入会</span>
|
||||
</van-grid-item>
|
||||
|
||||
<van-grid-item v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('H04')||@shiro.hasRole('A06')}"
|
||||
url="/mobile/member/audit">
|
||||
<image src="/assets/mobile/icon/member/audit.png"></image>
|
||||
<span class="icon_text"> 会员审核</span>
|
||||
</van-grid-item>
|
||||
|
||||
<van-grid-item url="/mobile/member/dashBoard/index">
|
||||
<image src="/assets/mobile/icon/member/dashboard.png"></image>
|
||||
<span class="icon_text"> 会员看板</span>
|
||||
</van-grid-item>
|
||||
|
||||
</van-grid>
|
||||
</div>
|
||||
|
||||
<div v-if="paramType === '提案管理'">
|
||||
<van-row
|
||||
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('tamange')||@shiro.hasRole('jdhdb01') || @shiro.hasRole('jdh12')}">
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
民主管理
|
||||
</div>
|
||||
<van-grid
|
||||
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('tamange')||@shiro.hasRole('jdhdbt01')||@shiro.hasRole('jdhdb01') || @shiro.hasRole('jdh12')}"
|
||||
:border="false" :column-num="3">
|
||||
<van-grid-item v-if="${@shiro.hasRole('jdhdb01')}"
|
||||
url="/platform/mobile/proposal/compose">
|
||||
<image src="/assets/mobile/icon/proposal/myProposal.png"></image>
|
||||
<span class="icon_text">个人提案阅览</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item v-if="${@shiro.hasRole('jdhdb01')}"
|
||||
url="/platform/mobile/proposal/seconded">
|
||||
<image src="/assets/mobile/icon/proposal/fy.png"></image>
|
||||
<span class="icon_text">附议提案</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item
|
||||
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('tamange')||@shiro.hasRole('jdhdbt01')}"
|
||||
url="/platform/mobile/proposal/delegation">
|
||||
<image style="width: 59px" src="/assets/mobile/icon/proposal/tz.png"></image>
|
||||
<span class="icon_text">团长审议</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('tamange')}"
|
||||
url="/platform/mobile/proposal/integrated">
|
||||
<image src="/assets/mobile/icon/proposal/search.png"></image>
|
||||
<span class="icon_text">提案查询</span>
|
||||
</van-grid-item>
|
||||
|
||||
<van-grid-item v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('tamange')}"
|
||||
url="/mobile/proposal/delegate/index">
|
||||
<image src="/assets/mobile/icon/proposal/cx.png"></image>
|
||||
<span class="icon_text">代表查询</span>
|
||||
</van-grid-item>
|
||||
|
||||
<!-- <van-grid-item url="/mobile/proposal/analysis/index">-->
|
||||
<!-- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"-->
|
||||
<!-- "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-->
|
||||
<!-- <svg t="1598769687916" class="icon" viewBox="0 0 1024 1024" version="1.1"-->
|
||||
<!-- xmlns="http://www.w3.org/2000/svg" p-id="1332" width="32" height="32"-->
|
||||
<!-- xmlns:xlink="http://www.w3.org/1999/xlink">-->
|
||||
<!-- <defs>-->
|
||||
<!-- <style type="text/css"></style>-->
|
||||
<!-- </defs>-->
|
||||
<!-- <path d="M283.84768 275.52256h473.088c37.376 0 67.584 30.208 67.584 67.584v439.296c0 37.376-30.208 67.584-67.584 67.584h-473.088c-37.376 0-67.584-30.208-67.584-67.584v-439.296c0-37.376 30.208-67.584 67.584-67.584z"-->
|
||||
<!-- fill="#CAE4FF" p-id="1333"></path>-->
|
||||
<!-- <path d="M253.9008 716.1856c-15.872 0-28.672-12.8-28.672-28.16 0-7.68 3.072-14.848 8.192-20.48l175.616-175.616c11.264-11.264 29.184-11.264 40.448 0l103.424 103.424 125.44-125.44-49.664-49.664 152.064-25.088-10.752 166.912-51.2-51.2-143.36 142.848c-0.512 1.024-1.536 2.048-2.56 2.56-11.264 11.264-29.184 11.264-40.448 0l-103.424-103.424-155.648 155.648c-4.608 4.608-12.288 7.68-19.456 7.68z"-->
|
||||
<!-- fill="#0972E7" p-id="1334"></path>-->
|
||||
<!-- <path d="M163.7888 983.4496c-37.376 0-67.072-30.208-67.584-67.584V208.2816c0-37.376 30.208-67.072 67.584-67.584h95.744v-81.92c0-15.872 12.8-28.672 28.672-28.16 15.872 0 28.16 12.8 28.16 28.16v81.92h172.544v-81.92c0-15.872 12.8-28.672 28.16-28.672 15.872 0 28.672 12.8 28.672 28.16v81.92h173.056v-81.92c0-15.872 12.8-28.672 28.16-28.672 15.872 0 28.672 12.8 28.672 28.16v81.92h95.744c37.376 0 67.072 30.208 67.584 67.584v708.096c0 37.376-30.208 67.072-67.584 67.584l-707.584 0.512z m704-71.168V212.3776H167.8848v699.904h699.904z"-->
|
||||
<!-- fill="#0972E7" p-id="1335"></path>-->
|
||||
<!-- </svg>-->
|
||||
<!-- <span class="icon_text"> 提案分析</span>-->
|
||||
<!-- </van-grid-item>-->
|
||||
</van-grid>
|
||||
</van-row>
|
||||
</div>
|
||||
|
||||
<div v-if="paramType === '活动管理'">
|
||||
<van-row>
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
品牌活动
|
||||
</div>
|
||||
<van-grid :border="false" :column-num="3">
|
||||
<van-grid-item url="/platform/mobile/trainSignUpActivity/trainList">
|
||||
<image src="/assets/mobile/icon/train/train.png"></image>
|
||||
<span class="icon_text">品牌活动报名</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item url="/platform/mobile/trainSignUpActivity/trainList?type=my">
|
||||
<image src="/assets/mobile/icon/train/my.png"></image>
|
||||
<span class="icon_text">我的活动</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item url="/platform/mobile/trainSignUpActivityScannerQrCode"
|
||||
v-if="${@shiro.hasRole('codeScanner')}">
|
||||
<image src="/assets/mobile/icon/train/my.png"></image>
|
||||
<span class="icon_text">扫一扫</span>
|
||||
</van-grid-item>
|
||||
|
||||
</van-grid>
|
||||
</van-row>
|
||||
<van-row>
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
文体活动
|
||||
</div>
|
||||
<van-grid :border="false" :column-num="3">
|
||||
<van-grid-item url="/mobile/activity/Sports/list/activityList">
|
||||
<image src="/assets/mobile/svg/activity/bm.svg"></image>
|
||||
<span style="font-size: 12px;margin-top: 10px">体育活动报名</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item url="/mobile/activity/unionActivity">
|
||||
<image src="/assets/mobile/icon/activity/bm.png"></image>
|
||||
<span class="icon_text">校活动报名</span>
|
||||
</van-grid-item>
|
||||
<!--<van-grid-item @click="toWxJsz">
|
||||
<image src="/assets/mobile/svg/activity/jsz.svg"></image>
|
||||
<span class="icon_text">健身走</span>
|
||||
</van-grid-item>-->
|
||||
</van-grid>
|
||||
</van-row>
|
||||
<van-row>
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
特色活动
|
||||
</div>
|
||||
<van-grid :border="false" :column-num="3">
|
||||
<van-grid-item url="/mobile/question/h5/list?type=1">
|
||||
<image src="/assets/mobile/icon/question/dati.png"></image>
|
||||
<span class="icon_text">在线调查</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item url="/mobile/question/h5/list?type=2">
|
||||
<image src="/assets/mobile/icon/question/zxdc.png"></image>
|
||||
<span class="icon_text">知识竞答</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item url="/mobile/question/h5/list?type=4">
|
||||
<image src="/assets/mobile/icon/question/yxxz.png"></image>
|
||||
<span class="icon_text">意向选择</span>
|
||||
</van-grid-item>
|
||||
|
||||
</van-grid>
|
||||
</van-row>
|
||||
<van-row>
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
场地预约
|
||||
</div>
|
||||
<van-grid :border="false" :column-num="3">
|
||||
<van-grid-item url="/mobile/activity/site/info">
|
||||
<image src="/assets/mobile/icon/site/apply.png"></image>
|
||||
<span class="icon_text">场地预约</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item url="/mobile/activity/site/info/my">
|
||||
<image src="/assets/mobile/icon/site/my.png"></image>
|
||||
<span class="icon_text">我的预约</span>
|
||||
</van-grid-item>
|
||||
<van-grid-item url="/mobile/activity/site/audit"
|
||||
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('gh10')||@shiro.hasRole('xghng')||@shiro.hasRole('siteManage')||@shiro.hasRole('A06')||@shiro.hasRole('H04')}">
|
||||
<image src="/assets/mobile/icon/site/audit.png"></image>
|
||||
<span class="icon_text">场地预约审核</span>
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
</van-row>
|
||||
</div>
|
||||
|
||||
<div v-if="paramType === '福利慰问'">
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
职工慰问
|
||||
</div>
|
||||
<van-grid :border="false" :column-num="3">
|
||||
<template v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('H04')||@shiro.hasRole('H01')}">
|
||||
<van-grid-item url="/mobile/condolence/apply/for">
|
||||
<image src="/assets/mobile/icon/condolence/apply.png"></image>
|
||||
<span class="icon_text">慰问申请</span>
|
||||
</van-grid-item>
|
||||
|
||||
<van-grid-item url="/mobile/condolence/apply">
|
||||
<image src="/assets/mobile/icon/condolence/list.png"></image>
|
||||
<span class="icon_text">慰问记录</span>
|
||||
</van-grid-item>
|
||||
</template>
|
||||
<van-grid-item
|
||||
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('H04')||@shiro.hasRole('A06')||@shiro.hasRole('xghkj')}"
|
||||
url="/mobile/condolence/audit">
|
||||
<image src="/assets/mobile/icon/condolence/audit.png"></image>
|
||||
<span class="icon_text">慰问审核</span>
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
职工福利
|
||||
</div>
|
||||
<van-grid :border="false" :column-num="3">
|
||||
<van-grid-item url="/mobile/welfare/list/index">
|
||||
<image src="/assets/mobile/icon/contribution/fl.png"></image>
|
||||
<span class="icon_text">职工福利</span>
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
</div>
|
||||
|
||||
<div v-if="paramType === '大病互助'"></div>
|
||||
<div v-if="paramType === '建言献策'">
|
||||
<div class="van-sidebar-item van-sidebar-item--select">
|
||||
疗休养
|
||||
</div>
|
||||
<van-grid :border="false" :column-num="3">
|
||||
<van-grid-item url="/platform/mobile/theRapyRecuperation/index">
|
||||
<image src="/assets/mobile/svg/proposal/cx.svg"></image>
|
||||
<span class="icon_text"> 疗休养</span>
|
||||
</van-grid-item>
|
||||
|
||||
<van-grid-item url="/platform/mobile/theRapyRecuperation/myRecuperation">
|
||||
<image src="/assets/mobile/svg/proposal/cx.svg"></image>
|
||||
<span class="icon_text"> 我的疗休养</span>
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://res.wx.qq.com/open/js/cloudbase/1.1.0/cloud.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
function getQueryString(name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (r != null) return decodeURI(r[2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
const vue = new Vue({
|
||||
el: '#app',
|
||||
data() {
|
||||
return {
|
||||
sex: '${@shiro.getPrincipalProperty("sex")}',
|
||||
avatar: '',
|
||||
paramType: getQueryString('type'),
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
loginOut() {
|
||||
window.location.href = "/mobile/login/out"
|
||||
},
|
||||
async toWxJsz() {
|
||||
const loginName = "${@shiro.getPrincipalProperty('loginname')}"
|
||||
const userName = "${@shiro.getPrincipalProperty('username')}"
|
||||
const query = 'loginName=' + encodeURIComponent(loginName) + '&userName=' + encodeURIComponent(userName)
|
||||
|
||||
let cloud = new window.cloud.Cloud({
|
||||
identityless: true, // true表示是未登录模式
|
||||
resourceAppid: 'wx9c693357de44cf59', // 小程序AppID
|
||||
resourceEnv: 'unionpal-0ge58oan8d6fa30e', // 云环境环境ID
|
||||
})
|
||||
await cloud.init(); // 云函数初始化
|
||||
/*const res = await cloud.callFunction({
|
||||
name: 'urlscheme', //提供UrlScheme服务的云函数名称
|
||||
data: {
|
||||
path: '/pages/login/login', // 想跳转的小程序路径
|
||||
query: query, // 地址栏query参数,可在微信 onLoad: function (options) {}生命周期里options接收这些参数
|
||||
} //向这个云函数中传入的自定义参数,注意:path地址前后/不能多加或者少加,query参数里不能有转义字符如果有需要解码
|
||||
});
|
||||
|
||||
console.log(res, '云函数返回数据');
|
||||
if (res && res.result.errCode == 0) {
|
||||
location.href = res.result.openlink; // 跳转
|
||||
} else {
|
||||
console.log(res.errMsg);
|
||||
}*/
|
||||
const res = await cloud.callFunction({
|
||||
name: 'urllink', //提供UrlScheme服务的云函数名称
|
||||
data: {
|
||||
path: '/pages/login/login', // 想跳转的小程序路径
|
||||
query: query, // 地址栏query参数,可在微信 onLoad: function (options) {}生命周期里options接收这些参数
|
||||
} //向这个云函数中传入的自定义参数,注意:path地址前后/不能多加或者少加,query参数里不能有转义字符如果有需要解码
|
||||
});
|
||||
/* alert(JSON.stringify(res))
|
||||
alert(res.result.urlLink)*/
|
||||
console.log(res, '云函数返回数据');
|
||||
if (res && res.result.errCode === 0) {
|
||||
location.href = res.result.urlLink
|
||||
// window.open(res.result.urlLink)
|
||||
} else {
|
||||
console.log(res.errMsg);
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.avatar = this.sex === '女' ? '/avatar_girl.svg' : '/avatar_boy.svg'
|
||||
// const FILE_DOMAIN = "${AppFileDomain!}"
|
||||
// const userAvatar = "${@shiro.getPrincipalProperty('avatar')}"
|
||||
// console.log(userAvatar)
|
||||
// if (userAvatar) {
|
||||
// this.avatar = FILE_DOMAIN + "${@shiro.getPrincipalProperty('avatar')}"
|
||||
// } else {
|
||||
// this.avatar = this.sex === '女' ? '/avatar_girl.svg' : '/avatar_boy.svg'
|
||||
// }
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user