Compare commits

...

3 Commits
main ... dev

Author SHA1 Message Date
zmj
802e6f1f86 对公账户 2023-12-28 23:38:18 +08:00
zmj
8df64e5616 首页任务通知 2023-12-25 00:20:29 +08:00
chenbo
c992731a78 add 任务执行人 2023-12-21 14:03:00 +08:00
6 changed files with 414 additions and 370 deletions

View File

@ -5,3 +5,6 @@ import oahttp from "@/utils/oahttp.js";
*/ */
export const noticeList = (data) => oahttp.get('/article/lists', data) export const noticeList = (data) => oahttp.get('/article/lists', data)
export const noticeDetail = (data) => oahttp.get('/article/detail', data) export const noticeDetail = (data) => oahttp.get('/article/detail', data)
// 任务通知
export const taskStartNoticeApi = (data) => oahttp.get('/task/taskStartNotice', data)

View File

@ -95,6 +95,16 @@
<text>任务金额 :</text> <text>任务金额 :</text>
<text> {{ datas.money + "元" || "0.00" }} </text> <text> {{ datas.money + "元" || "0.00" }} </text>
</view> </view>
<view class="">
<text>执行人 :</text>
<text v-if="datas.director_uid != 0"> {{ datas.directorInfo.nickname}} </text>
<text v-if="datas.director_uid == 0"> 指定人员 </text>
</view>
<!-- <view class="">
<text>任务进度 :</text>
<u-line-progress :percentage="30" :activeColor="taskProgressColor(30)"></u-line-progress>
</view> -->
</view> </view>
</view> </view>
</view> </view>
@ -168,6 +178,14 @@
}, },
methods: { methods: {
taskProgressColor(value) {
if (value < 100) return "#FF7C32"
else {
return '#1BA035'
}
},
navTo(url) { navTo(url) {
if (url) { if (url) {
uni.showLoading({ uni.showLoading({

View File

@ -2,8 +2,8 @@ let httpApiThree;
let httpApi; // 总域名 let httpApi; // 总域名
let httpApiTwo; // 物流系统域名 let httpApiTwo; // 物流系统域名
const env = 'dev'; // 开发 // const env = 'dev'; // 开发
// const env = 'prod'; // 生产 const env = 'prod'; // 生产
// const env = 'prew'; // 预上线 // const env = 'prew'; // 预上线
// const env = 'local'; // 本地 // const env = 'local'; // 本地
@ -19,9 +19,9 @@ switch (env) {
httpApiTwo = 'https://preview-logistics.lihaink.cn' //预上线 httpApiTwo = 'https://preview-logistics.lihaink.cn' //预上线
break; break;
case 'local': case 'local':
httpApi = 'http://192.168.1.20:8000' //预上线 httpApi = 'http://127.0.0.1:8000' //预上线
httpApiThree = 'http://192.168.1.20:8000' //预上线 httpApiThree = 'http://127.0.0.1:8000' //预上线
httpApiTwo = 'http://192.168.1.20:8000' //预上线 httpApiTwo = 'http://127.0.0.1:8000' //预上线
break; break;
default: default:
httpApi = 'https://ceshi-worker-task.lihaink.cn' //测试 httpApi = 'https://ceshi-worker-task.lihaink.cn' //测试

View File

@ -3,8 +3,8 @@
// "appid" : "__UNI__3A527D1", // "appid" : "__UNI__3A527D1",
"appid": "__UNI__B5B1EDD", "appid": "__UNI__B5B1EDD",
"description": "", "description": "",
"versionName" : "1.2.7", "versionName": "1.2.8",
"versionCode" : 127, "versionCode": 128,
"transformPx": false, "transformPx": false,
/* 5+App */ /* 5+App */
"app-plus": { "app-plus": {

View File

@ -76,8 +76,14 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 任务通知 -->
<view class="" style="width: 694.74rpx;margin: 0 auto;" v-if="taskNotice">
<u-notice-bar :text="taskNotice" mode="closable" scrollable url="/pages/bar/bar"></u-notice-bar>
</view>
<!-- 片区经理聊天 --> <!-- 片区经理聊天 -->
<view class="chat" @click="navTo('/subpkg/chatMang/index')" style="margin-top: 130rpx;"> <view class="chat" @click="navTo('/subpkg/chatMang/index')" style="margin-top: 10rpx;">
<view class="chat-l"> <view class="chat-l">
<u--image shape="circle" :showLoading="true" :src="managerInfo.manager_avatar" width="91rpx" <u--image shape="circle" :showLoading="true" :src="managerInfo.manager_avatar" width="91rpx"
height="91rpx"></u--image> height="91rpx"></u--image>
@ -188,7 +194,8 @@
oaHomeData oaHomeData
} from "@/static/server/server.js"; } from "@/static/server/server.js";
import { import {
noticeList noticeList,
taskStartNoticeApi
} from "@/api/notice.js"; } from "@/api/notice.js";
import { import {
getAreaManagerApi getAreaManagerApi
@ -219,7 +226,7 @@
}, },
data() { data() {
return { return {
taskNotice: '',
brange: 0, brange: 0,
options: { options: {
data: '', data: '',
@ -270,6 +277,7 @@
}; };
}, },
async onLoad() { async onLoad() {
this.getTaskNotice()
// console.log('asdashg') // console.log('asdashg')
if (uni.getStorageSync('USER_INFO')) { if (uni.getStorageSync('USER_INFO')) {
let userData = JSON.parse(uni.getStorageSync('USER_INFO')) let userData = JSON.parse(uni.getStorageSync('USER_INFO'))
@ -277,11 +285,12 @@
this.initUserInfo(userData); this.initUserInfo(userData);
// console.log(545) // console.log(545)
} }
console.log(7787878)
await this.$onLaunched; await this.$onLaunched;
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) {
@ -330,7 +339,6 @@
let user_id = JSON.parse(uni.getStorageSync("USER_INFO")).id let user_id = JSON.parse(uni.getStorageSync("USER_INFO")).id
this.getOrderList(); this.getOrderList();
console.log("show")
getAreaManagerApi({ getAreaManagerApi({
user_id user_id
}).then(res => { }).then(res => {
@ -414,6 +422,14 @@
} }
}, },
methods: { methods: {
//
async getTaskNotice() {
let res = await taskStartNoticeApi()
this.taskNotice = res.data?.template?.title ?
`您的${res.data.template.title}任务即将于${res.data.template.cron_time}日开始` : ""
},
// //
noticeFn() { noticeFn() {
jpushModule.addNotificationListener(res => { jpushModule.addNotificationListener(res => {
@ -600,6 +616,9 @@
await this.getOrderList(); await this.getOrderList();
await this.$store.dispatch('initConfig'); await this.$store.dispatch('initConfig');
await this.getApproveList(); await this.getApproveList();
await this.getTaskNotice();
// this.getIndexList() // this.getIndexList()
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
}, },

View File

@ -87,14 +87,18 @@
</view> </view>
<view class="body"> <view class="body">
<view class="b_item"> <view class="b_item">
<view>开户银行名称:</view> <view>对公账号:</view>
<view>{{extend.bank_code}}</view>
</view>
<view class="b_item">
<view>开户行名称:</view>
<view>{{extend.bank_username}}</view> <view>{{extend.bank_username}}</view>
</view> </view>
<view class="b_item"> <view class="b_item">
<view>银行卡号:</view> <view>开户行地址:</view>
<view>{{extend.bank_opening}}</view> <view>{{extend.bank_opening}}</view>
</view> </view>
<view class="b_item"> <!-- <view class="b_item">
<view>银行卡正面:</view> <view>银行卡正面:</view>
</view> </view>
<image @click="priview(extend.bank_front)" :src="extend.bank_front"></image> <image @click="priview(extend.bank_front)" :src="extend.bank_front"></image>
@ -109,7 +113,7 @@
<view class="b_item"> <view class="b_item">
<view>身份证反面:</view> <view>身份证反面:</view>
</view> </view>
<image @click="priview(extend.cardno_back)" :src="extend.cardno_back"></image> <image @click="priview(extend.cardno_back)" :src="extend.cardno_back"></image> -->
</view> </view>
</view> </view>
</view> </view>