This commit is contained in:
weipengfei 2023-08-28 18:24:47 +08:00
parent c758da2df4
commit efb1b7dd9e
13 changed files with 564 additions and 399 deletions

34
App.vue
View File

@ -7,15 +7,15 @@
onLaunch: async function() { onLaunch: async function() {
console.log('App Launch') console.log('App Launch')
this.$store.dispatch('initConfig'); this.$store.dispatch('initConfig');
try { try {
if (!this.$store.state.app.token) uni.redirectTo({ if (!this.$store.state.app.token) uni.reLaunch({
url: '/pages/oaLogin/oaLogin' url: '/pages/oaLogin/oaLogin'
}) })
} catch (e) { } catch (e) {
uni.redirectTo({ uni.reLaunch({
url: '/pages/oaLogin/oaLogin' url: '/pages/oaLogin/oaLogin'
}) })
} }
}, },
onShow: function() { onShow: function() {
const audioContext = uni.createInnerAudioContext() const audioContext = uni.createInnerAudioContext()
@ -38,14 +38,14 @@
} }
}) })
// //
// Updater.update({ Updater.update({
// title: '', title: '发现新版本',
// content: '1. UI\n2. UI\n3. UI\n4. UI\n', content: '1. 我们更新了新的UI设计\n2. 我们更新了新的UI设计\n3. 我们更新了新的UI设计\n4. 我们更新了新的UI设计\n',
// versionName: '1.3.6', versionName: '1.3.6',
// downUrl: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/__UNI__B5B1EDD__20230816174515.apk', downUrl: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/__UNI__B5B1EDD__20230816174515.apk',
// force: false, // force: false, //
// quiet: true // quiet: false //
// }) })
// #endif // #endif
console.log('App Show') console.log('App Show')
}, },

View File

@ -149,7 +149,9 @@
this.navTo(`/subpkg/property/vehicle?task_id=${this.$props.datas?.id}`) this.navTo(`/subpkg/property/vehicle?task_id=${this.$props.datas?.id}`)
} else if(this.$props.datas.type == 33){ } else if(this.$props.datas.type == 33){
this.navTo(`/subpkg/blockTransaction/blockTransaction?task_id=${this.$props.datas?.id}`) this.navTo(`/subpkg/blockTransaction/blockTransaction?task_id=${this.$props.datas?.id}`)
} else if(this.$props.datas.type == 35){ }else if(this.$props.datas.type == 34){
this.navTo(`/subpkg/otherTask/otherTask?task_id=${this.$props.datas?.id}`)
}else if(this.$props.datas.type == 35){
this.navTo(`/subpkg/buyShare/buyShare?task_id=${this.$props.datas?.id}`) this.navTo(`/subpkg/buyShare/buyShare?task_id=${this.$props.datas?.id}`)
} }
else this.navTo(''); else this.navTo('');

View File

@ -15,6 +15,7 @@ Vue.use(company)
// initRouter() // initRouter()
// #ifndef VUE3 // #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'
Vue.config.productionTip = false Vue.config.productionTip = false

View File

@ -134,7 +134,7 @@
} }
}, { }, {
"path": "pages/updatePasswprd/updatePasswprd", "path": "pages/updatePassword/updatePassword",
"style": { "style": {
"navigationBarTitleText": "修改密码", "navigationBarTitleText": "修改密码",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
@ -159,6 +159,15 @@
"disableScroll": true, "disableScroll": true,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, {
"path": "pages/moreFun/moreFun",
"style": {
"navigationBarTitleText": "更多功能",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
} }
], ],
"subPackages": [{ "subPackages": [{
@ -229,333 +238,340 @@
"root": "subpkg", "root": "subpkg",
"name": "subpkg", "name": "subpkg",
"pages": [{ "pages": [{
"path": "personnel/personnel", "path": "personnel/personnel",
"style": { "style": {
"navigationBarTitleText": "人员管理", "navigationBarTitleText": "人员管理",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "finance/finance", "path": "finance/finance",
"style": { "style": {
"navigationBarTitleText": "财务管理", "navigationBarTitleText": "财务管理",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "topUp/topUp", "path": "topUp/topUp",
"style": { "style": {
"navigationBarTitleText": "账户充值", "navigationBarTitleText": "账户充值",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"app-plus": { "app-plus": {
"titleNView": { "titleNView": {
"buttons": [{ "buttons": [{
"color": "#fff", "color": "#fff",
"text": "充值记录", "text": "充值记录",
"fontSize": "15", "fontSize": "15",
"width": "90" "width": "90"
}] }]
}
} }
} }
}
}, { }, {
"path": "contract/contract", "path": "contract/contract",
"style": { "style": {
"navigationBarTitleText": "合同管理", "navigationBarTitleText": "合同管理",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0022C7", "navigationBarBackgroundColor": "#0022C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "contractDetail/contractDetail", "path": "contractDetail/contractDetail",
"style": { "style": {
"navigationBarTitleText": "合同详情", "navigationBarTitleText": "合同详情",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "pdfView/pdfView", "path": "pdfView/pdfView",
"style": { "style": {
"navigationBarTitleText": "合同内容", "navigationBarTitleText": "合同内容",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "companyInfo/companyInfo", "path": "companyInfo/companyInfo",
"style": { "style": {
"navigationBarTitleText": "公司信息", "navigationBarTitleText": "公司信息",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "companySign/companySign", "path": "companySign/companySign",
"style": { "style": {
"navigationBarTitleText": "签约公司详情", "navigationBarTitleText": "签约公司详情",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "personnelDetails/personnelDetails", "path": "personnelDetails/personnelDetails",
"style": { "style": {
"navigationBarTitleText": "人员详细信息", "navigationBarTitleText": "人员详细信息",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "orderDetail/orderDetail", "path": "orderDetail/orderDetail",
"style": { "style": {
"navigationBarTitleText": "流水详情", "navigationBarTitleText": "流水详情",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, { }, {
"path": "withdrawDeposit/withdrawDeposit", "path": "withdrawDeposit/withdrawDeposit",
"style": { "style": {
"navigationBarTitleText": "提现余额", "navigationBarTitleText": "提现余额",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"app-plus": { "app-plus": {
"titleNView": { "titleNView": {
"buttons": [{ "buttons": [{
"color": "#fff", "color": "#fff",
"text": "提现记录", "text": "提现记录",
"fontSize": "15", "fontSize": "15",
"width": "90" "width": "90"
}] }]
}
} }
} }
}, {
"path": "withdrawList/withdrawList",
"style": {
"navigationBarTitleText": "提现记录",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "noticeList/noticeList",
"style": {
"navigationBarTitleText": "公告列表",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "topUpList/topUpList",
"style": {
"navigationBarTitleText": "充值记录",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "companyAdmin/companyAdmin",
"style": {
"navigationBarTitleText": "公司管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "newPersonnel/newPersonnel",
"style": {
"navigationBarTitleText": "新增人员",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "archives/archives",
"style": {
"navigationBarTitleText": "档案管理",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "newArchives/newArchives",
"style": {
"navigationBarTitleText": "信息登记",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "updateArchives/updateArchives",
"style": {
"navigationBarTitleText": "信息更新",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "fixedAssets/fixedAssets",
"style": {
"navigationBarTitleText": "固定资产",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "taskAdmin/taskAdmin",
"style": {
"navigationBarTitleText": "任务管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "archivesDetail/archivesDetail",
"style": {
"navigationBarTitleText": "档案详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "captain/captain",
"style": {
"navigationBarTitleText": "队长列表",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "companyFinance/companyFinance",
"style": {
"navigationBarTitleText": "公司财务",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "companyUnsign/companyUnsign",
"style": {
"navigationBarTitleText": "未签约公司列表",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "submit/submit",
"style": {
"navigationBarTitleText": "提交审核",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "dispatching/dispatching",
"style": {
"navigationBarTitleText": "任务:宣传配送",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "blockTransaction/blockTransaction",
"style": {
"navigationBarTitleText": "任务:片区交易",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "fileTask/fileTask",
"style": {
"navigationBarTitleText": "已更新商机",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/index",
"style": {
"navigationBarTitleText": "资产管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/chosseCompany",
"style": {
"navigationBarTitleText": "选择公司",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/vehicle",
"style": {
"navigationBarTitleText": "三轮车游走",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/vehicle_a",
"style": {
"navigationBarTitleText": "三轮车详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
} }
, { }, {
"path": "buyShare/buyShare", "path": "withdrawList/withdrawList",
"style": { "style": {
"navigationBarTitleText": "任务:入股任务", "navigationBarTitleText": "提现记录",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7", "navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
}
} }
]
}, {
"path": "noticeList/noticeList",
"style": {
"navigationBarTitleText": "公告列表",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "topUpList/topUpList",
"style": {
"navigationBarTitleText": "充值记录",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "companyAdmin/companyAdmin",
"style": {
"navigationBarTitleText": "公司管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "newPersonnel/newPersonnel",
"style": {
"navigationBarTitleText": "新增人员",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "archives/archives",
"style": {
"navigationBarTitleText": "档案管理",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "newArchives/newArchives",
"style": {
"navigationBarTitleText": "信息登记",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "updateArchives/updateArchives",
"style": {
"navigationBarTitleText": "信息更新",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "fixedAssets/fixedAssets",
"style": {
"navigationBarTitleText": "固定资产",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "taskAdmin/taskAdmin",
"style": {
"navigationBarTitleText": "任务管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "archivesDetail/archivesDetail",
"style": {
"navigationBarTitleText": "档案详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "captain/captain",
"style": {
"navigationBarTitleText": "队长列表",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "companyFinance/companyFinance",
"style": {
"navigationBarTitleText": "公司财务",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "companyUnsign/companyUnsign",
"style": {
"navigationBarTitleText": "未签约公司列表",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "submit/submit",
"style": {
"navigationBarTitleText": "提交审核",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "dispatching/dispatching",
"style": {
"navigationBarTitleText": "任务:宣传配送",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "blockTransaction/blockTransaction",
"style": {
"navigationBarTitleText": "任务:片区交易",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "fileTask/fileTask",
"style": {
"navigationBarTitleText": "已更新商机",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/index",
"style": {
"navigationBarTitleText": "资产管理",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/chosseCompany",
"style": {
"navigationBarTitleText": "选择公司",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/vehicle",
"style": {
"navigationBarTitleText": "三轮车游走",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "property/vehicle_a",
"style": {
"navigationBarTitleText": "三轮车详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "buyShare/buyShare",
"style": {
"navigationBarTitleText": "任务:入股任务",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}, {
"path": "otherTask/otherTask",
"style": {
"navigationBarTitleText": "任务:其他任务",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#0122C7",
"navigationBarTextStyle": "white"
}
}]
}], }],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",

67
pages/moreFun/moreFun.vue Normal file
View File

@ -0,0 +1,67 @@
<template>
<view>
<view class="fast_track">
<block v-for="(item, index) in oaHomeData" :key="item.id">
<view class="track_item" @click="navTwo(item.paths, index)">
<u--image
:showLoading="true"
:src="item.icon"
mode="widthFix"
width="77.19rpx"
height="77.19rpx"
></u--image>
<view class="title">{{ item.name }}</view>
</view>
</block>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
computed:{
oaHomeData(){
let arr = [];
this.$store.state.config?.config?.menu?.forEach((item)=>{
if(item.paths.includes('pages/oaHome/oaHome')){
arr=item.children;
}
})
return arr;
}
}
}
</script>
<style lang="scss">
.fast_track {
width: 694rpx;
// height: 331rpx;
display: flex;
flex-wrap: wrap;
justify-content: left;
align-content: space-between;
margin: 28rpx auto;
padding: 15rpx 38.6rpx;
background-color: #fff;
border-radius: 12px;
.track_item {
width: 154.39rpx;
font-size: 24.56rpx;
margin: 25rpx 0;
display: flex;
flex-direction: column;
align-items: center;
.title {
margin-top: 14.04rpx;
}
}
}
</style>

View File

@ -95,8 +95,8 @@
</view> </view>
<view class="fast_track"> <view class="fast_track">
<block v-for="(item, index) in oaHomeData" :key="index"> <block v-for="(item, index) in oaHomeData" :key="item.id">
<view class="track_item" @click="navTwo(item.url, index)"> <view class="track_item" @click="navTwo(item.paths, index)">
<u--image <u--image
:showLoading="true" :showLoading="true"
:src="item.icon" :src="item.icon"
@ -104,7 +104,7 @@
width="77.19rpx" width="77.19rpx"
height="77.19rpx" height="77.19rpx"
></u--image> ></u--image>
<view class="title">{{ item.text }}</view> <view class="title">{{ item.name }}</view>
</view> </view>
</block> </block>
</view> </view>
@ -217,7 +217,7 @@ export default {
is_captain: 0, is_captain: 0,
notArr: [], notArr: [],
orderList: [], orderList: [],
oaHomeData: [], // oaHomeData: [],
src: "https://cdn.uviewui.com/uview/album/1.jpg", src: "https://cdn.uviewui.com/uview/album/1.jpg",
assessData: [{ assessData: [{
num: "0", num: "0",
@ -256,7 +256,6 @@ export default {
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
this.options.data = bj; this.options.data = bj;
//#ifdef APP-PLUS //#ifdef APP-PLUS
let that = this; let that = this;
jpushModule.addNotificationListener(function (result) { jpushModule.addNotificationListener(function (result) {
if (!that.notArr.includes(result.messageID)) { if (!that.notArr.includes(result.messageID)) {
@ -275,26 +274,30 @@ export default {
this.getApproveList(); this.getApproveList();
this.initUserInfo(); this.initUserInfo();
this.showToask(); this.showToask();
this.initOaHomeDada(); // this.initOaHomeDada();
this.getOrderList(); this.getOrderList();
}, },
computed: {}, computed: {
oaHomeData(){
const route = getCurrentPages()[0]?.route;
let arr = [];
this.$store.state.config?.config?.menu?.forEach((item)=>{
if(item.paths.includes(route)){
arr=item.children;
}
})
if(arr.length>=8){
arr = arr.slice(0, 7);
let obj = this.$store.state.config?.config?.menu?.find(item=>item.paths.includes('/pages/moreFun/moreFun'));
arr.push(obj);
}
return arr;
}
},
methods: { methods: {
test () { test () {
this.$refs.globalPopup.showPopu(); this.$refs.globalPopup.showPopu();
}, },
// test() {
// wx.chooseMessageFile({
// count: 1, //
// type: 'all', //,all
// //type:'video',//
// //type:'image',//
// success(res) {
// const tempFilePaths = res.tempFiles
// console.log(res);
// }
// })
// },
async getOrderList () { async getOrderList () {
console.log("列表") console.log("列表")
let id = JSON.parse(uni.getStorageSync("USER_INFO")).id || ""; let id = JSON.parse(uni.getStorageSync("USER_INFO")).id || "";

View File

@ -132,7 +132,7 @@
} }
}) })
} else uni.navigateTo({ } else uni.navigateTo({
url: '/pages/updatePasswprd/updatePasswprd' url: '/pages/updatePassword/updatePassword'
}); });
}, },
initTerminal() { initTerminal() {

View File

@ -49,7 +49,7 @@
<view class="other_guide"> <view class="other_guide">
<block v-for="(item,i) in myOaData" :key="i"> <block v-for="(item,i) in myOaData" :key="i">
<view class="other_item flex_a_c_j_sb" @click="navTo(item.url)"> <view class="other_item flex_a_c_j_sb" @click="navTo(item.paths)">
<view class="flex_a_c left"> <view class="flex_a_c left">
<!-- <view class="iconfont2" :class="item.icon"></view> --> <!-- <view class="iconfont2" :class="item.icon"></view> -->
<image :src="item.icon"></image> <image :src="item.icon"></image>
@ -95,7 +95,7 @@
options: { options: {
data: '', data: '',
}, },
myOaData: myOaData, // myOaData: [],
src: 'https://cdn.uviewui.com/uview/album/1.jpg', src: 'https://cdn.uviewui.com/uview/album/1.jpg',
modelShow: false modelShow: false
} }
@ -122,7 +122,17 @@
} }
} }
}; };
} },
myOaData(){
const route = getCurrentPages()[0]?.route;
let arr = [];
this.$store.state.config?.config?.menu?.forEach((item)=>{
if(item.paths.includes(route)){
arr=item.children;
}
})
return arr;
}
}, },
watch:{ watch:{
modelShow: function(n,o){ modelShow: function(n,o){
@ -167,16 +177,9 @@
success() { success() {
uni.hideLoading() uni.hideLoading()
}, },
fail () { fail (e) {
uni.switchTab({ uni.hideLoading()
url: url, console.log(e);
success() {
uni.hideLoading()
},
fail() {
uni.hideLoading()
}
});
}, },
}) })
}else Toast('暂未开放') }else Toast('暂未开放')

View File

@ -188,96 +188,96 @@ export const quickLink = [{
// oaHOme快速入口数据 // oaHOme快速入口数据
export const oaHomeData = [{ export const oaHomeData = [{
text: '公司信息', name: '公司信息',
icon: '../../static/img/home/GSXX.png', icon: '../../static/img/home/GSXX.png',
url: '/subpkg/companyInfo/companyInfo', paths: '/subpkg/companyInfo/companyInfo',
admin: true admin: true
}, },
{ {
text: '人员管理', name: '人员管理',
icon: '../../static/img/home/RYGL.png', icon: '../../static/img/home/RYGL.png',
url: '/subpkg/personnel/personnel', paths: '/subpkg/personnel/personnel',
admin: true admin: true
}, },
{ {
text: '固定资产', name: '固定资产',
icon: '../../static/img/home/GDZC.png', icon: '../../static/img/home/GDZC.png',
url: '/subpkg/property/index', paths: '/subpkg/property/index',
admin: true admin: true
}, },
{ {
text: '合同管理', name: '合同管理',
icon: '../../static/img/home/HTGL.png', icon: '../../static/img/home/HTGL.png',
url: '/subpkg/contract/contract' paths: '/subpkg/contract/contract'
}, },
// { // {
// text: '公司管理', // name: '公司管理',
// icon: '../../static/img/home/GSXX.png', // icon: '../../static/img/home/GSXX.png',
// url: '/subpkg/companyAdmin/companyAdmin', // paths: '/subpkg/companyAdmin/companyAdmin',
// admin: true // admin: true
// }, // },
{ {
text: '任务管理', name: '任务管理',
icon: '../../static/img/home/RWGL.png', icon: '../../static/img/home/RWGL.png',
url: '/subpkg/taskAdmin/taskAdmin', paths: '/subpkg/taskAdmin/taskAdmin',
}, },
{ {
text: '档案管理', name: '档案管理',
icon: '../../static/img/home/DAGL.png', icon: '../../static/img/home/DAGL.png',
url: '/subpkg/captain/captain', paths: '/subpkg/captain/captain',
admin: true admin: true
}, },
{ {
text: '档案管理', name: '档案管理',
icon: '../../static/img/home/DAGL.png', icon: '../../static/img/home/DAGL.png',
url: '/subpkg/archives/archives', paths: '/subpkg/archives/archives',
captain: true captain: true
}, },
// { // {
// text: '片区经理', // name: '片区经理',
// icon: '../../static/img/home/GRCW.png', // icon: '../../static/img/home/GRCW.png',
// url: '/pages/oaManager/oaManager', // paths: '/pages/oaManager/oaManager',
// admin: true // admin: true
// }, // },
{ {
text: '个人财务', name: '个人财务',
icon: '../../static/img/home/GRCW.png', icon: '../../static/img/home/GRCW.png',
url: '/subpkg/finance/finance' paths: '/subpkg/finance/finance'
}, },
{ {
text: '待取驿站', name: '待取驿站',
icon: '../../static/img/home/YZ.png', icon: '../../static/img/home/YZ.png',
url: '/pages/logistics/post', paths: '/pages/logistics/post',
// captain: true // captain: true
}, },
// { // {
// text: '出差申请', // name: '出差申请',
// icon: prefix + 'oa/ccsq@2x.png' // icon: prefix + 'oa/ccsq@2x.png'
// }, // },
// { // {
// text: '外出申请', // name: '外出申请',
// icon: prefix + 'oa/wcsq@2x.png' // icon: prefix + 'oa/wcsq@2x.png'
// }, // },
// { // {
// text: '采购申请', // name: '采购申请',
// icon: prefix + 'oa/cgsq@2x.png' // icon: prefix + 'oa/cgsq@2x.png'
// }, // },
// { // {
// text: '物品维修', // name: '物品维修',
// icon: prefix + 'oa/bxsq@2x.png' // icon: prefix + 'oa/bxsq@2x.png'
// }, // },
// { // {
// text: '用章申请', // name: '用章申请',
// icon: prefix + 'oa/yzsq@2x.png' // icon: prefix + 'oa/yzsq@2x.png'
// }, // },
// { // {
// text: '报销申请', // name: '报销申请',
// icon: prefix + 'oa/gengduo@2x.png' // icon: prefix + 'oa/gengduo@2x.png'
// }, // },
{ {
text: '更多', name: '更多',
icon: prefix + 'oa/wpwx@2x.png', icon: prefix + 'oa/wpwx@2x.png',
url: '/pages/views/application' paths: '/pages/views/application'
} }
] ]
@ -396,7 +396,7 @@ export const myOaData = [
{ {
name: '安全设置', name: '安全设置',
icon: '../../static/icons/setting.png', icon: '../../static/icons/setting.png',
url: '/pages/updatePasswprd/updatePasswprd' url: '/pages/updatePassword/updatePassword'
}, },
// { // {
// name: '管理后台', // name: '管理后台',

View File

@ -10,10 +10,9 @@
</view> </view>
</view> --> </view> -->
<view class="contract_list"> <view class="contract_list">
<view class="item" v-for="(item,index) in list" :key="item.id" <view class="item">
@click="navTo('/subpkg/contractDetail/contractDetail?id='+item.id)">
<view class="personnel_list"> <view class="personnel_list">
<view class="cards"> <view class="cards" v-for="(item,index) in list" :key="item.id" @click="navTo('/subpkg/contractDetail/contractDetail?id='+item.id)">
<view class="cards_head"> <view class="cards_head">
<text style="font-size: 32rpx">电子合同</text> <text style="font-size: 32rpx">电子合同</text>
</view> </view>
@ -250,7 +249,7 @@
.personnel_list { .personnel_list {
padding: 28rpx 0; padding: 28rpx 0;
margin-bottom: 130rpx; // margin-bottom: 130rpx;
.cards { .cards {
margin: 0 auto; margin: 0 auto;

View File

@ -0,0 +1,74 @@
<template>
<view style="padding-top: 28rpx;">
<view class="card">
<view class="title">任务名称: 入股任务</view>
<u-line style="margin: 14rpx 0;"></u-line>
<view class="text">阶段类型: 单次</view>
<view class="text" style="color: #FF7C32;">任务金额: 3000</view>
</view>
<view class="card">
<view class="title">任务描述</view>
<u-line style="margin: 14rpx 0;"></u-line>
<view class="text">完成公司分配入股任务时限30日内完成公司分配入股任务时限30日内完成公司分配入股任务时限30日内</view>
</view>
<view class="card">
<view class="title">完成任务</view>
<u-line style="margin: 14rpx 0;"></u-line>
<u--textarea v-model="formData.text" placeholder="请输入内容" style="font-size: 28rpx;" autoHeight></u--textarea>
</view>
<mybtn text="完成任务"></mybtn>
</view>
</template>
<script>
export default {
data() {
return {
task_id: -1,
formData: {
text: ''
}
};
},
onLoad(options) {
this.task_id = options.task_id;
},
methods:{
navTo (url) {
if(url){
uni.showLoading({
title: '加载中',
mask: true
});
uni.navigateTo({
url: url,
success() {
uni.hideLoading()
}
})
}else Toast('暂未开放')
},
}
}
</script>
<style lang="scss">
.card {
margin: 0 auto;
margin-bottom: 28rpx;
width: 694rpx;
background: #FFFFFF;
border-radius: 14rpx;
padding: 28rpx;
.title {
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.text {
line-height: 50rpx;
}
}
</style>

View File

@ -13,7 +13,7 @@
<view class="price"> <view class="price">
<view class="title">充值金额</view> <view class="title">充值金额</view>
<view class="tab"> <view class="tab">
<view v-if="task_id>0" class="item active" style="margin: 0;">{{3000}}</view> <view v-if="task_id>0" class="item active" style="margin: 0;">3000元</view>
<view v-else class="item" :class="index==changeMoney?'active':''" @click="changePrice(index)" <view v-else class="item" :class="index==changeMoney?'active':''" @click="changePrice(index)"
v-for="(item, index) in priceList" :key="index">{{item}}</view> v-for="(item, index) in priceList" :key="index">{{item}}</view>
</view> </view>