update
This commit is contained in:
parent
86fba076cc
commit
f3a17650cd
349
App.vue
349
App.vue
@ -1,181 +1,174 @@
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import util from '@/common/utils'
|
||||
import {
|
||||
mapGetters,
|
||||
mapActions,
|
||||
mapMutations
|
||||
} from 'vuex'
|
||||
export default {
|
||||
import Vue from "vue";
|
||||
import util from "@/common/utils";
|
||||
import { mapGetters, mapActions, mapMutations } from "vuex";
|
||||
export default {
|
||||
computed: {
|
||||
...mapGetters({ user: "getUser" }),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(["memberLogin", "getLoginCode"]),
|
||||
...mapMutations(["setVisitChannels"]),
|
||||
handleGetUserInfo() {
|
||||
wx.request({
|
||||
url: "https://qifu-api.baidubce.com/ip/local/geo/v1/district",
|
||||
success(response) {
|
||||
const data = response.data;
|
||||
// 处理数据
|
||||
let obj = {
|
||||
...data.data,
|
||||
ip: data.ip,
|
||||
};
|
||||
console.log("obj", obj);
|
||||
uni.setStorageSync("userInfo", obj);
|
||||
},
|
||||
fail(error) {
|
||||
// 处理错误
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
onLaunch: function (options) {
|
||||
uni.getSystemInfo({
|
||||
success: function (e) {
|
||||
// #ifndef MP
|
||||
Vue.prototype.StatusBar = e.statusBarHeight;
|
||||
if (e.platform == "android") {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 50;
|
||||
} else {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 45;
|
||||
}
|
||||
// #endif
|
||||
|
||||
computed:{
|
||||
...mapGetters({'user':'getUser'})
|
||||
},
|
||||
methods: {
|
||||
// #ifdef MP-WEIXIN
|
||||
Vue.prototype.StatusBar = e.statusBarHeight;
|
||||
let custom = wx.getMenuButtonBoundingClientRect();
|
||||
Vue.prototype.Custom = custom;
|
||||
Vue.prototype.CustomBar =
|
||||
custom.bottom + custom.top - e.statusBarHeight;
|
||||
Vue.prototype.pageWindowHeight =
|
||||
e.screenHeight - custom.bottom - custom.top + e.statusBarHeight;
|
||||
// #endif
|
||||
},
|
||||
});
|
||||
|
||||
...mapActions(['memberLogin','getLoginCode']),
|
||||
...mapMutations(['setVisitChannels']),
|
||||
handleGetUserInfo(){
|
||||
wx.request({
|
||||
url: 'https://qifu-api.baidubce.com/ip/local/geo/v1/district',
|
||||
success(response) {
|
||||
const data = response.data;
|
||||
// 处理数据
|
||||
let obj = {
|
||||
...data.data,
|
||||
ip: data.ip
|
||||
}
|
||||
console.log('obj',obj)
|
||||
uni.setStorageSync('userInfo',obj)
|
||||
},
|
||||
fail(error) {
|
||||
// 处理错误
|
||||
let _this = this;
|
||||
if (this.user.WeChat_MiniProToken) {
|
||||
this.memberLogin();
|
||||
} else {
|
||||
this.getLoginCode();
|
||||
}
|
||||
|
||||
this.setVisitChannels(options.scene);
|
||||
const updateManager = uni.getUpdateManager();
|
||||
updateManager.onUpdateReady(function (res) {
|
||||
uni.showModal({
|
||||
title: "更新提示",
|
||||
content: "新版本已经准备好,是否重启应用?",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
||||
updateManager.applyUpdate();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
onLaunch: function(options) {
|
||||
uni.getSystemInfo({
|
||||
success: function(e) {
|
||||
// #ifndef MP
|
||||
Vue.prototype.StatusBar = e.statusBarHeight;
|
||||
if (e.platform == 'android') {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 50;
|
||||
} else {
|
||||
Vue.prototype.CustomBar = e.statusBarHeight + 45;
|
||||
};
|
||||
// #endif
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
Vue.prototype.StatusBar = e.statusBarHeight;
|
||||
let custom = wx.getMenuButtonBoundingClientRect();
|
||||
Vue.prototype.Custom = custom;
|
||||
Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
|
||||
Vue.prototype.pageWindowHeight = e.screenHeight-custom.bottom - custom.top + e.statusBarHeight;;
|
||||
// #endif
|
||||
this.handleGetUserInfo();
|
||||
|
||||
this.$util.addUserBehavior({
|
||||
intoRoute: "/" + options.path,
|
||||
outtoRoute: "",
|
||||
}); // 记录用户行为
|
||||
},
|
||||
onShow: function () {
|
||||
// var pages = getCurrentPages() // 获取加载的页面
|
||||
// let len = pages.length
|
||||
// if (len > 0) {
|
||||
// var currentPage = pages[len - 1] // 获取当前页面的对象
|
||||
// var nowRoute = '/' + currentPage.route // 当前页面url
|
||||
// this.$util.addUserBehavior({intoRoute: nowRoute, outtoRoute: ''}) // 记录用户行为
|
||||
// }
|
||||
// uni.hideTabBar()
|
||||
},
|
||||
onHide: function (options) {
|
||||
let pages = getCurrentPages(); // 获取加载的页面
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
let _this = this
|
||||
if (this.user.WeChat_MiniProToken) {
|
||||
this.memberLogin()
|
||||
} else {
|
||||
this.getLoginCode()
|
||||
}
|
||||
|
||||
this.setVisitChannels(options.scene)
|
||||
const updateManager = uni.getUpdateManager()
|
||||
updateManager.onUpdateReady(function(res) {
|
||||
uni.showModal({
|
||||
title: '更新提示',
|
||||
content: '新版本已经准备好,是否重启应用?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
||||
updateManager.applyUpdate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
this.handleGetUserInfo()
|
||||
|
||||
this.$util.addUserBehavior( {intoRoute: '/'+options.path, outtoRoute: ''}) // 记录用户行为
|
||||
},
|
||||
onShow: function() {
|
||||
|
||||
// var pages = getCurrentPages() // 获取加载的页面
|
||||
// let len = pages.length
|
||||
// if (len > 0) {
|
||||
// var currentPage = pages[len - 1] // 获取当前页面的对象
|
||||
// var nowRoute = '/' + currentPage.route // 当前页面url
|
||||
// this.$util.addUserBehavior({intoRoute: nowRoute, outtoRoute: ''}) // 记录用户行为
|
||||
// }
|
||||
// uni.hideTabBar()
|
||||
},
|
||||
onHide: function(options) {
|
||||
let pages = getCurrentPages() // 获取加载的页面
|
||||
|
||||
let len = pages.length
|
||||
if (len > 0) {
|
||||
let currentPage = pages[len - 1] // 获取当前页面的对象
|
||||
let nowRoute = '/' + currentPage.route // 当前页面url
|
||||
this.$util.addUserBehavior( {intoRoute: '', outtoRoute:nowRoute}) // 记录用户行为
|
||||
}
|
||||
}
|
||||
}
|
||||
let len = pages.length;
|
||||
if (len > 0) {
|
||||
let currentPage = pages[len - 1]; // 获取当前页面的对象
|
||||
let nowRoute = "/" + currentPage.route; // 当前页面url
|
||||
this.$util.addUserBehavior({ intoRoute: "", outtoRoute: nowRoute }); // 记录用户行为
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("./common/uni.css");
|
||||
/*每个页面公共css */
|
||||
page {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
height: 100%;
|
||||
background-color: #f8f9fb;
|
||||
line-height: 1.2;
|
||||
@import url("./common/uni.css");
|
||||
/*每个页面公共css */
|
||||
page {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
height: 100%;
|
||||
background-color: #f8f9fb;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
}
|
||||
/* 加载更多 */
|
||||
.load-more {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
color: #9999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
/* 加载更多 */
|
||||
.load-more {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
color: #9999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
/* 审核环节最后一个加底部边距 */
|
||||
.process-box.uni-active {
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.process-box process-unit:nth-last-child(1) .prosess-unit::before {
|
||||
content: "";
|
||||
width: 0rpx;
|
||||
}
|
||||
.ico,
|
||||
.ico-s {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 审核环节最后一个加底部边距 */
|
||||
.process-box.uni-active {
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.process-box process-unit:nth-last-child(1) .prosess-unit::before{
|
||||
content: '';
|
||||
width: 0rpx;
|
||||
}
|
||||
.ico,
|
||||
.ico-s {
|
||||
display: block;
|
||||
.ico-s:before,
|
||||
.ico:before {
|
||||
content: "";
|
||||
width: 36rpx;
|
||||
height: 34rpx;
|
||||
display: block;
|
||||
|
||||
}
|
||||
margin-right: 6rpx;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.ico-s:before,
|
||||
.ico:before {
|
||||
content: '';
|
||||
width: 36rpx;
|
||||
height: 34rpx;
|
||||
display: block;
|
||||
.ico-s:before {
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
}
|
||||
|
||||
margin-right: 6rpx;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
background-position: center;
|
||||
}
|
||||
.ico-fj:before {
|
||||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/fjwj.png");
|
||||
}
|
||||
|
||||
.ico-s:before {
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
}
|
||||
.ico-tp:before {
|
||||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/fjtp.png");
|
||||
}
|
||||
|
||||
.ico-fj:before {
|
||||
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/fjwj.png');
|
||||
}
|
||||
.ico-bz:before {
|
||||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/tender/yj.png");
|
||||
}
|
||||
|
||||
.ico-tp:before {
|
||||
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/fjtp.png');
|
||||
}
|
||||
|
||||
.ico-bz:before {
|
||||
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/yj.png');
|
||||
}
|
||||
|
||||
/* #ifdef MP-WEIXIN */
|
||||
/*
|
||||
/* #ifdef MP-WEIXIN */
|
||||
/*
|
||||
checkbox .wx-checkbox-input {
|
||||
border-radius: 20%;
|
||||
border: 1rpx solid #91A6D7;
|
||||
@ -193,25 +186,25 @@
|
||||
font-size: 30rpx;
|
||||
} */
|
||||
|
||||
checkbox .wx-checkbox-input {
|
||||
border-radius: 50% ;
|
||||
background-color: #D8DFEE ;
|
||||
width: 38rpx ;
|
||||
height: 38rpx ;
|
||||
color: #fff;
|
||||
}
|
||||
checkbox .wx-checkbox-input {
|
||||
border-radius: 50%;
|
||||
background-color: #d8dfee;
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
||||
background-color: #2E6CF6;
|
||||
border-color: #2E6CF6 ;
|
||||
color: #fff !important;
|
||||
}
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
||||
background-color: #2e6cf6;
|
||||
border-color: #2e6cf6;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
/* #endif */
|
||||
button::after{
|
||||
border: none;
|
||||
}
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
/* #endif */
|
||||
button::after {
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -229,7 +229,7 @@ h4 {
|
||||
background-image: url('/static/images/expense/rzlx.png');
|
||||
}
|
||||
.ico-khyh:before{
|
||||
background-image: url('/static/images/expense/khyh.png');
|
||||
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/expense/khyh.png');
|
||||
}
|
||||
.ico-dw:before{
|
||||
background-image: url('/static/images/expense/dw.png');
|
||||
@ -274,7 +274,7 @@ h4 {
|
||||
background-image: url('/static/images/tender/lxr.png');
|
||||
}
|
||||
.ico-zcyz:before{
|
||||
background-image: url('/static/images/expense/zcyz.png');
|
||||
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/expense/zcyz.png');
|
||||
}
|
||||
.ico-zcmc:before{
|
||||
background-image: url('/static/images/expense/zcmc.png');
|
||||
|
||||
@ -187,10 +187,10 @@
|
||||
background-image: url('/static/images/tender/bgw.png');
|
||||
}
|
||||
.ico-zbr:before{
|
||||
background-image: url('/static/images/tender/zbr.png');
|
||||
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/zbr.png');
|
||||
}
|
||||
.ico-jdr:before{
|
||||
background-image: url('/static/images/tender/jdr.png');
|
||||
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/jdr.png');
|
||||
}
|
||||
.ico-fdhfqk:before{
|
||||
background-image: url('/static/images/tender/fdhfqk.png');
|
||||
|
||||
305
pages.json
305
pages.json
@ -2,8 +2,7 @@
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "驿达数智化看板",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": true
|
||||
@ -11,23 +10,20 @@
|
||||
},
|
||||
{
|
||||
"path": "pages/userCenter/userCenter",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "个人中心",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/register/register",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "授权"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/webview/webview",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "驿达数智化看板"
|
||||
}
|
||||
}
|
||||
@ -35,21 +31,18 @@
|
||||
"subPackages": [ //分包加载配置
|
||||
{
|
||||
"root": "pages/index/old",
|
||||
"pages": [
|
||||
{
|
||||
"path": "index",
|
||||
"style":{
|
||||
"navigationBarTitleText": "驿达数智化看板",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "驿达数智化看板",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"root": "pages/authorityApproval",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "权限审批",
|
||||
@ -58,8 +51,7 @@
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "权限审批",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
@ -68,8 +60,7 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/merchantAccount",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@ -87,26 +78,22 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/settlementApproval",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "结算审批"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "结算审批"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "yearSettlement",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "年度结算"
|
||||
}
|
||||
}
|
||||
@ -114,32 +101,27 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/auditingPop",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "jointlySign",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "会签"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "transfer",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "移交"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "toExamine",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "审核"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "reject",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "驳回"
|
||||
}
|
||||
}
|
||||
@ -148,8 +130,7 @@
|
||||
|
||||
{
|
||||
"root": "pages/nationalPage",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@ -172,16 +153,14 @@
|
||||
},
|
||||
{
|
||||
"path": "nationalServerpart",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "服务区每日营收",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "rankPage",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "服务区排名",
|
||||
"enablePullDownRefresh": false,
|
||||
"disableScroll": true,
|
||||
@ -190,16 +169,14 @@
|
||||
},
|
||||
{
|
||||
"path": "testPage",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "merchantRevenue",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "商户排名",
|
||||
"enablePullDownRefresh": false,
|
||||
"disableScroll": true,
|
||||
@ -210,8 +187,7 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/earlyWarning",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@ -249,8 +225,7 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/revenue",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@ -275,8 +250,7 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/revenueStatistics",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@ -301,20 +275,17 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/newamine",
|
||||
"pages": [
|
||||
{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"root": "pages/commercialBINew",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "flowAnalysis",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@ -333,15 +304,13 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/summaryOfPortraits",
|
||||
"pages": [
|
||||
{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
]
|
||||
}]
|
||||
},
|
||||
|
||||
{ // 商业BI
|
||||
@ -457,15 +426,13 @@
|
||||
{
|
||||
// 项目分润报表
|
||||
"root": "pages/projectProfitSharing",
|
||||
"pages": [
|
||||
{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
]
|
||||
}]
|
||||
},
|
||||
|
||||
{
|
||||
@ -491,8 +458,7 @@
|
||||
// 考核考评
|
||||
{
|
||||
"root": "pages/examine",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
@ -511,8 +477,7 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/projectWarning",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分润比例切换"
|
||||
@ -529,31 +494,26 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/robot",
|
||||
"pages": [
|
||||
{
|
||||
"path": "index",
|
||||
"style":
|
||||
{
|
||||
"navigationBarTitleText": "数智助手"
|
||||
}
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "数智助手",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"root": "pages/map",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"disableScroll": true
|
||||
@ -568,11 +528,9 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/operatingStatements",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "经营报表",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#647BD1",
|
||||
@ -581,8 +539,7 @@
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "经营报表",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#647BD1",
|
||||
@ -591,8 +548,7 @@
|
||||
},
|
||||
{
|
||||
"path": "operatingTrend",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "经营趋势",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarBackgroundColor": "#647BD1",
|
||||
@ -603,40 +559,34 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/tender",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "tender",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "招标投标"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "tenderRecord",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "招标备案详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "tenderAlteration",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "招标变更详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "decisionRecord",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "决标备案详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "specialProjects",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "专项工程详情",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
@ -645,19 +595,16 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/serviceAreaReimbursement",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "serviceAreaReimbursement",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "服务区报销"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
@ -666,27 +613,23 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/dataSummary",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "dataSummary",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "日结校验"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "dayDetail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarBackgroundColor": "#EAEBEB",
|
||||
"navigationBarTitleText": "日结校验"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "日结校验"
|
||||
}
|
||||
}
|
||||
@ -694,19 +637,16 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/businessApproval",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "businessApproval",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "商品审批"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "productDetail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品审批"
|
||||
}
|
||||
}
|
||||
@ -714,51 +654,44 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/everdayRenven",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTitleText": "每日营收汇总"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTitleText": "每日营收"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "serviceIndex",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTitleText": "服务区每日营收"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "serviceDetail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationBarTitleText": "服务区每日营收"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "AnhuiIndex",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "每日营收汇总",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "AnhuiServerpart",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "服务区每日营收",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
@ -767,19 +700,16 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/suggestion",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "suggestion",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "投诉建议"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "suggestionDetail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "投诉建议"
|
||||
}
|
||||
}
|
||||
@ -787,19 +717,16 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/contract",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "contract",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "合同审批"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "合同审批"
|
||||
}
|
||||
}
|
||||
@ -807,26 +734,22 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/cashAudit",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "list",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "收银稽核"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "收银稽核详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "check",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "收银稽核反馈"
|
||||
}
|
||||
}
|
||||
@ -834,19 +757,16 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/investment",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "investment",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "招商审批"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "investmentDetail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"navigationBarTitleText": "招商审批"
|
||||
}
|
||||
}
|
||||
@ -854,19 +774,16 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/expenseApproval",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "expenseApproval",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "财务审批"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "expenseDetail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "财务审批"
|
||||
}
|
||||
@ -875,19 +792,16 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/commodity_temp",
|
||||
"pages": [
|
||||
{
|
||||
"pages": [{
|
||||
"path": "index",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "资质审批"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style":
|
||||
{
|
||||
"style": {
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarTitleText": "资质审批"
|
||||
}
|
||||
@ -906,8 +820,7 @@
|
||||
"selectedColor": "#3295f9",
|
||||
"borderStyle": "black",
|
||||
"backgroundColor": "#ffffff",
|
||||
"list": [
|
||||
{
|
||||
"list": [{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "static/images/tab/home.png",
|
||||
"selectedIconPath": "static/images/tab/homeActive.png",
|
||||
@ -922,4 +835,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -125,7 +125,7 @@ import request from '@/util/index.js'
|
||||
endTime: obj.et,
|
||||
serverpartId: obj.id,
|
||||
provinceCode: obj.pcode,
|
||||
BusinessTrade: obj.BusinessTrade,
|
||||
BusinessTrade: obj.BusinessTrade || '',
|
||||
SearchKeyName:_this.pageOption.searchKey,
|
||||
SearchKeyValue:_this.pageOption.searchValue,
|
||||
BusinessType:_this.pageOption.BusinessTypeValue>0?_this.pageOption.BusinessTypeValue:'',
|
||||
|
||||
@ -1,148 +1,306 @@
|
||||
<template>
|
||||
<view class="main">
|
||||
<view class="dialogContentBox">
|
||||
<view :class="item.type===1?'item itemLeft':'item rightItem'" v-for="(item,index) in dialogueList" :key="index" :style="{marginTop: index!==0?'8px':''}">
|
||||
<text :id="'printBox' + index" :class="item.type===1?`dialogItem white`:`dialogItem green`">
|
||||
{{ item.text || '' }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="loadingBox" v-if="isLoading">
|
||||
小驿分析中...
|
||||
<web-view src="https://ahyd.eshangtech.com/robot/"></web-view>
|
||||
<!-- <web-view src="https://saas.eshangtech.com/robot/robot"></web-view> -->
|
||||
<!-- <view class="main" v-if="false">
|
||||
<view
|
||||
class="mainTop"
|
||||
:style="{
|
||||
height: menu.bottom + 6 + 'px',
|
||||
paddingTop: menu.top - 6 + 'px',
|
||||
}"
|
||||
>
|
||||
<view class="mainTopContent" :style="{ height: menu.height + 12 + 'px' }">
|
||||
<image
|
||||
class="backIcon"
|
||||
src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/navigation-left.svg"
|
||||
/>
|
||||
<view class="robotBox">
|
||||
<image
|
||||
class="robotImg"
|
||||
src="https://eshangtech.com/ShopICO/ahyd-BID/robot/robotIcon.png"
|
||||
/>
|
||||
<view class="robotDetail">
|
||||
<span class="name">小驿</span>
|
||||
<span class="desc">商业智能助理 </span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="dialogContentBox">
|
||||
<view
|
||||
:class="item.type === 1 ? 'item itemLeft' : 'item rightItem'"
|
||||
v-for="(item, index) in dialogueList"
|
||||
:key="index"
|
||||
:style="{ marginTop: index !== 0 ? '8px' : '' }"
|
||||
>
|
||||
<view
|
||||
:id="'printBox' + index"
|
||||
:class="item.type === 1 ? `dialogItem white` : `dialogItem green`"
|
||||
>
|
||||
{{ item.text || "" }}
|
||||
<view class="line" v-if="item.searchType === 'default'"></view>
|
||||
<view class="defaultBox">
|
||||
<view>你可能想问:</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="loadingBox" v-if="isLoading"> 小驿分析中... </view>
|
||||
</view>
|
||||
|
||||
<view class="inputBox">
|
||||
<textarea class="searchText" :value="searchText" @input="handleInput"/>
|
||||
<view class="searchBtn" @click="handleSubmit">
|
||||
发送
|
||||
</view>
|
||||
<image
|
||||
class="microphone"
|
||||
src="https://eshangtech.com/ShopICO/ahyd-BID/robot/microphone.png"
|
||||
/>
|
||||
<div class="textBox">
|
||||
<textarea
|
||||
class="searchText"
|
||||
:value="searchText"
|
||||
@input="handleInput"
|
||||
placeholder="有问题尽管问我~"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<view class="searchBtn" @click="handleSubmit"> 发送 </view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</template>
|
||||
<script >
|
||||
import request from '@/util/index.js'
|
||||
import request from "@/util/index.js";
|
||||
export default {
|
||||
data(){
|
||||
data() {
|
||||
return {
|
||||
searchText:'',
|
||||
dialogueList:[],// 对话list type 1 是居左 2 是居右
|
||||
printText:'',
|
||||
isLoading: false,// 是否加载中
|
||||
}
|
||||
searchText: "",
|
||||
dialogueList: [], // 对话list type 1 是居左 2 是居右 searchType default
|
||||
printText: "",
|
||||
isLoading: false, // 是否加载中
|
||||
useInfo: {},
|
||||
menu: {},
|
||||
};
|
||||
},
|
||||
onLoad(){
|
||||
this.dialogueList.push({text:`您好!我是服务区商业智能助理小驿。\n您想了解服务区哪些方面的信息?`,type:1})
|
||||
this.handlePrintText()
|
||||
onLoad() {
|
||||
this.menu = uni.getMenuButtonBoundingClientRect();
|
||||
console.log("menu", this.menu);
|
||||
this.dialogueList.push({
|
||||
text: `您好!我是服务区商业智能助理小驿。\n您想了解服务区哪些方面的信息?`,
|
||||
type: 1,
|
||||
searchType: "default",
|
||||
});
|
||||
this.handlePrintText();
|
||||
// this.printText = `您好!我是服务区商业智能助理小驿。<br>您想了解服务区哪些方面的信息?`
|
||||
},
|
||||
methods:{
|
||||
handleSubmit(){
|
||||
let list = this.dialogueList
|
||||
console.log('this.searchText',this.searchText)
|
||||
if(this.searchText){
|
||||
list.push({text:this.searchText,type:2})
|
||||
this.dialogueList = list
|
||||
this.$forceUpdate()
|
||||
this.handleGetData()
|
||||
this.searchText= ''
|
||||
methods: {
|
||||
handleSubmit() {
|
||||
let list = this.dialogueList;
|
||||
console.log("this.searchText", this.searchText);
|
||||
if (this.searchText) {
|
||||
list.push({ text: this.searchText, type: 2 });
|
||||
this.dialogueList = list;
|
||||
this.$forceUpdate();
|
||||
this.handleGetData();
|
||||
this.searchText = "";
|
||||
}
|
||||
},
|
||||
// 输入框中的值
|
||||
handleInput(e){
|
||||
console.log('e',e)
|
||||
this.searchText = e.detail.value
|
||||
handleInput(e) {
|
||||
console.log("e", e);
|
||||
this.searchText = e.detail.value;
|
||||
},
|
||||
// 查询的方法
|
||||
async handleGetData(){
|
||||
this.isLoading = true
|
||||
const data = await request.$webGet('CommercialApi/Analysis/TranslateSentence',{Sentence: this.searchText})
|
||||
console.log('data',data)
|
||||
if(data.Result_Code === 999){
|
||||
this.dialogueList.push({text:`'小驿还无法理解,请换个说法我会不停努力学习的!'`,type:1})
|
||||
}else{
|
||||
let str = data.Result_Data.RevenueAnalysis + '\n'
|
||||
let list = data.Result_Data.ServerpartList
|
||||
if(list && list.length>0){
|
||||
list.forEach(item=>{
|
||||
let obj = item['RevenueINC']
|
||||
if(str){
|
||||
str+=`${item.ServerpartName}:${this.formatNumber(obj.curYearData / 10000)}万元${obj.increaseRate>0?',同比增幅':obj.increaseRate<0?',同比降幅':''}${obj.increaseRate ||''}\n`
|
||||
}else{
|
||||
str = `${item.ServerpartName}:${this.formatNumber(obj.curYearData / 10000)}万元${obj.increaseRate>0?',同比同比增幅':obj.increaseRate<0?',同比降幅':''}${obj.increaseRate || ''}\n`
|
||||
}
|
||||
})
|
||||
async handleGetData() {
|
||||
this.isLoading = true;
|
||||
const data = await request.$webGet(
|
||||
"CommercialApi/Analysis/TranslateSentence",
|
||||
{ Sentence: this.searchText }
|
||||
);
|
||||
console.log("data", data);
|
||||
if (data.Result_Code === 999) {
|
||||
this.dialogueList.push({
|
||||
text: `'小驿还无法理解,请换个说法我会不停努力学习的!'`,
|
||||
type: 1,
|
||||
});
|
||||
} else {
|
||||
let str = data.Result_Data.RevenueAnalysis + "\n";
|
||||
let list = data.Result_Data.ServerpartList;
|
||||
if (list && list.length > 0) {
|
||||
list.forEach((item) => {
|
||||
let obj = item["RevenueINC"];
|
||||
if (str) {
|
||||
str += `${item.ServerpartName}:${this.formatNumber(
|
||||
obj.curYearData / 10000
|
||||
)}万元${
|
||||
obj.increaseRate > 0
|
||||
? ",同比增幅"
|
||||
: obj.increaseRate < 0
|
||||
? ",同比降幅"
|
||||
: ""
|
||||
}${obj.increaseRate || ""}\n`;
|
||||
} else {
|
||||
str = `${item.ServerpartName}:${this.formatNumber(
|
||||
obj.curYearData / 10000
|
||||
)}万元${
|
||||
obj.increaseRate > 0
|
||||
? ",同比同比增幅"
|
||||
: obj.increaseRate < 0
|
||||
? ",同比降幅"
|
||||
: ""
|
||||
}${obj.increaseRate || ""}\n`;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.dialogueList.push({text: str,type:1})
|
||||
this.dialogueList.push({ text: str, type: 1 });
|
||||
}
|
||||
this.isLoading = false
|
||||
this.isLoading = false;
|
||||
},
|
||||
// 打印机效果
|
||||
handlePrintText(){
|
||||
handlePrintText() {
|
||||
const query = wx.createSelectorQuery();
|
||||
const contentBox = query.select(`#printBox${this.dialogueList && this.dialogueList.length>0? this.dialogueList.length - 1:0}`)
|
||||
console.log('contentBox',contentBox)
|
||||
const contentBox = query.select(
|
||||
`#printBox${
|
||||
this.dialogueList && this.dialogueList.length > 0
|
||||
? this.dialogueList.length - 1
|
||||
: 0
|
||||
}`
|
||||
);
|
||||
console.log("contentBox", contentBox);
|
||||
},
|
||||
formatNumber(num) {
|
||||
// 确保输入为数字类型
|
||||
num = Number(num);
|
||||
if (isNaN(num)) return '0.00'; // 处理无效数字
|
||||
if (isNaN(num)) return "0.00"; // 处理无效数字
|
||||
// 将数字转换为字符串,并分离整数部分和小数部分
|
||||
let parts = num.toString().split('.');
|
||||
let parts = num.toString().split(".");
|
||||
// 处理小数部分,不进行四舍五入,直接截取小数点后两位
|
||||
let decimalPart = parts[1] ? parts[1].substring(0, 2) : '00';
|
||||
let decimalPart = parts[1] ? parts[1].substring(0, 2) : "00";
|
||||
if (decimalPart.length < 2) {
|
||||
decimalPart = decimalPart.padEnd(2, '0'); // 不足两位补零
|
||||
decimalPart = decimalPart.padEnd(2, "0"); // 不足两位补零
|
||||
}
|
||||
// 格式化整数部分,添加千分号
|
||||
let integerPart = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
let integerPart = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
// 返回带千分号的整数部分和保留两位小数的数字
|
||||
return `${integerPart}.${decimalPart}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.main{
|
||||
.main {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: #f0f0f0;
|
||||
.dialogContentBox{
|
||||
// background: #f0f0f0;
|
||||
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/robot/robotBackground.png");
|
||||
background-repeat: no-repeat;
|
||||
.mainTop {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
.mainTopContent {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding-left: 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.backIcon {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
.robotBox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.robotImg {
|
||||
width: 68rpx;
|
||||
height: 68rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
.robotDetail {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.name {
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 600;
|
||||
font-size: 28rpx;
|
||||
color: #090c1a;
|
||||
line-height: 40rpx;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
}
|
||||
.desc {
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #787879;
|
||||
line-height: 36rpx;
|
||||
text-align: justify;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dialogContentBox {
|
||||
width: 100%;
|
||||
height: calc(100vh - 90px);
|
||||
overflow-y: scroll;
|
||||
box-sizing: border-box;
|
||||
padding: 12px;
|
||||
.item{
|
||||
padding: 32rpx;
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.dialogItem{
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 30rpx;
|
||||
color: #090c1a;
|
||||
line-height: 44rpx;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
.dialogItem {
|
||||
max-width: calc(100vw - 64rpx);
|
||||
display: block;
|
||||
max-width: 80vw;
|
||||
box-sizing: border-box;
|
||||
padding: 4px;
|
||||
padding: 24rpx 32rpx;
|
||||
border-radius: 4px;
|
||||
background: #ffffff;
|
||||
border-radius: 0rpx 24rpx 24rpx 24rpx;
|
||||
.line {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
background: #f2f2f2;
|
||||
border-radius: 16rpx;
|
||||
margin: 24rpx 0;
|
||||
}
|
||||
.defaultBox {
|
||||
.clickItem {
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 30rpx;
|
||||
color: #2363ff;
|
||||
line-height: 44rpx;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
.white{
|
||||
border: 1px solid #ccc;
|
||||
.white {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
}
|
||||
.green{
|
||||
background: #12A153FF;
|
||||
.green {
|
||||
background: #12a153ff;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.itemLeft{
|
||||
.itemLeft {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.rightItem{
|
||||
.rightItem {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.loadingBox{
|
||||
.loadingBox {
|
||||
font-size: 12px;
|
||||
color: #ccc;
|
||||
width: 100%;
|
||||
@ -150,28 +308,33 @@ export default {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
.inputBox{
|
||||
.inputBox {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
background: hsla(0,0%,97%,.98);
|
||||
border-top: 1px solid #ccc;
|
||||
height: 180rpx;
|
||||
background: #fff;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 0 8px 4px;
|
||||
padding: 16rpx 32rpx;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.searchText{
|
||||
background: #fff;
|
||||
flex: 1;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 8px;
|
||||
padding: 4px 8px 0;
|
||||
font-size: 14px;
|
||||
.microphone {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
.searchBtn{
|
||||
.textBox {
|
||||
width: calc(100% - 64rpx);
|
||||
height: 88rpx;
|
||||
background: #f2f3f7;
|
||||
border-radius: 44rpx;
|
||||
}
|
||||
|
||||
.searchText {
|
||||
}
|
||||
.searchBtn {
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
box-sizing: border-box;
|
||||
|
||||
@ -1263,6 +1263,8 @@ export default {
|
||||
// // const data = await request.$webPost('EShangApiMain/Finance/ApplyAccountProinst', req)
|
||||
}else{
|
||||
// 月度
|
||||
|
||||
|
||||
console.log('this.nextPersonValue',this.nextPersonValue)
|
||||
let [APPOVED_NAME,APPOVED_IDS] = this.nextPersonValue.split('-')
|
||||
console.log('APPOVED_IDS',APPOVED_IDS)
|
||||
@ -1385,6 +1387,14 @@ export default {
|
||||
},
|
||||
// 显示发起申请的悬浮框
|
||||
async handleShowApplyForPop(){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
duration: 2000,
|
||||
title: '请到电脑端发起结算!',
|
||||
});
|
||||
return
|
||||
|
||||
|
||||
let _this = this
|
||||
if(this.detailObj.SETTLEMENT_TYPE===2){
|
||||
// 月度
|
||||
|
||||
@ -107,11 +107,16 @@ export default {
|
||||
},
|
||||
onShow(){
|
||||
console.log('onShow')
|
||||
console.log('selectPortrait',this.selectPortrait)
|
||||
this.isShowSwiper = true
|
||||
let seat = uni.getStorageSync('currentService')
|
||||
console.log('seat',seat)
|
||||
this.serviceInfo = seat
|
||||
this.selectPortrait = this.query.index ? this.query.index: seat.SERVERPART_NAME==='安徽驿达' ? 1:0
|
||||
if(this.selectPortrait){
|
||||
|
||||
}else{
|
||||
this.selectPortrait = this.query.index ? this.query.index: seat.SERVERPART_NAME==='安徽驿达' ? 1:0
|
||||
}
|
||||
},
|
||||
onHide(){
|
||||
this.isShowSwiper = false
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB |
Loading…
x
Reference in New Issue
Block a user