Commit 7328491d authored by 刘文虎's avatar 刘文虎

服务明细

parent c5c5fa99
Pipeline #3376 canceled with stages
;(function() { ;(function() {
let NODE_ENV = 'prod' // dev:开发环境 | test:测试环境 | prod:生产环境 let NODE_ENV = 'test' // dev:开发环境 | test:测试环境 | prod:生产环境
let ENV_VAR = null let ENV_VAR = null
let VERSION = 'v1.0.15' let VERSION = 'v1.0.15'
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
......
This diff is collapsed.
This diff is collapsed.
<template>
<u-popup v-model="show" border-radius="24" safe-area-inset-bottom mode="bottom">
<view class="unit-popup">
<view class="unit-popup-top">
<text>请选择单位</text>
<u-icon name="close" class="unit-popup-top-right" @click="close"></u-icon>
</view>
<view class="unit">
<view class="unit-item" :class="{ active: item.value == unit }" v-for="(item, index) in options" :key="index" @click="handleCheck(item)">{{ item.label }}</view>
</view>
</view>
</u-popup>
</template>
<script>
import { unitOptions } from '@/utils/options/maintain-bill/index.js';
import CheckboxGroups from '@/components/checkbox-groups/checkbox-groups.vue';
export default {
name: 'unit-popup',
components: {
CheckboxGroups
},
props: {
unit: {
type: String,
default: '箱'
}
},
data() {
return {
show: false,
options: unitOptions,
};
},
methods: {
open() {
this.show = true;
},
close() {
this.show = false;
},
handleCheck(item) {
this.$emit('change', item.value);
this.close();
}
}
};
</script>
<style lang="scss" scoped>
.unit-popup {
padding: 32upx;
}
.unit-popup-top {
margin-bottom: 42rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-weight: bold;
color: #333333;
line-height: 32rpx;
&-right {
&:active {
opacity: 0.7;
}
}
}
.unit {
display: flex;
flex-wrap: wrap;
&-item {
width: 152upx;
height: 80upx;
background: #f6f7fa;
border-radius: 8upx;
font-size: 28upx;
color: #8d8d8d;
margin-right: 26upx;
margin-bottom: 24rpx;
display: flex;
align-items: center;
justify-content: center;
&:nth-child(4n) {
margin-right: 0;
}
}
.active {
background-color: $default-color;
color: #ffffff;
}
}
</style>
...@@ -76,14 +76,14 @@ export default { ...@@ -76,14 +76,14 @@ export default {
}, },
data() { data() {
return { return {
fileList: null, fileList: [],
qiniuToken: '', qiniuToken: '',
} }
}, },
computed: { computed: {
keyList() { keyList() {
let list = [] let list = []
if (this.fileList) { if (this.fileList.length) {
for (var item of this.fileList) { for (var item of this.fileList) {
if (item.key) { if (item.key) {
list.push(item.key) list.push(item.key)
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
}, },
watch: { watch: {
list(val) { list(val) {
if (val && !this.fileList) { if (val && !this.fileList.length) {
this.fileList = [] this.fileList = []
for (var item of val) { for (var item of val) {
this.fileList.push({ this.fileList.push({
......
{ {
"name" : "扳手记账", "name" : "account-book",
"appid" : "__UNI__EDB8C7C", "appid" : "__UNI__EDB8C7C",
"description" : "", "description" : "",
"versionName" : "1.0.1", "versionName" : "1.0.1",
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
}, },
"splashscreen" : { "splashscreen" : {
"androidStyle" : "default", "androidStyle" : "default",
"iosStyle" : "common", "iosStyle" : "storyboard",
"ios" : { "ios" : {
"storyboard" : "C:/启动页/扳手记账/CustomStoryboard.zip" "storyboard" : "C:/启动页/扳手记账/CustomStoryboard.zip"
}, },
......
...@@ -303,7 +303,10 @@ ...@@ -303,7 +303,10 @@
"navigationBarTitleText": "填写", "navigationBarTitleText": "填写",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true,
"app-plus": {
"scrollIndicator": "vertical"
}
} }
}, { }, {
"path": "particulars", "path": "particulars",
...@@ -370,7 +373,10 @@ ...@@ -370,7 +373,10 @@
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationBarBackgroundColor": "#F6F7FA", "navigationBarBackgroundColor": "#F6F7FA",
"backgroundColor": "#F6F7FA" "backgroundColor": "#F6F7FA",
"app-plus": {
"scrollIndicator":"none"
}
}, },
"tabBar": { "tabBar": {
"color": "#909399", "color": "#909399",
......
...@@ -56,19 +56,6 @@ export default { ...@@ -56,19 +56,6 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// @mixin scrollBarStyle() {
// &::-webkit-scrollbar {
// width: 7px;
// height: 7px;
// display: block;
// }
// &::-webkit-scrollbar-thumb {
// border-radius: 10px;
// -webkit-box-shadow: inset 0 0 5px #9b9ba3;
// // background: rgba(152, 155, 163, 0.5);
// background: red;
// }
// }
.receipt-preview { .receipt-preview {
position: relative; position: relative;
background-color: #ffffff; background-color: #ffffff;
......
...@@ -181,8 +181,8 @@ export default { ...@@ -181,8 +181,8 @@ export default {
let last = this.list[this.list.length - 1]; let last = this.list[this.list.length - 1];
let first = records[0]; let first = records[0];
if (last.day === first.day) { if (last.day === first.day) {
last.expense=first.expense last.expense=parseFloat(last.expense)+parseFloat(first.expense)
last.income=first.income last.income=parseFloat(last.income)+parseFloat(first.income)
last.list.push(...first.list); last.list.push(...first.list);
this.list.splice(this.list.length - 1, 1,last); this.list.splice(this.list.length - 1, 1,last);
records.splice(0,1) records.splice(0,1)
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<uni-popup v-model="show" ref="uniPopup" border-radius="24" :custom-style="customStyle" type="center" height="70%"> <uni-popup v-model="show" ref="uniPopup" border-radius="24" :custom-style="customStyle" type="center" height="70%">
<view class="receipt-preview"> <view class="receipt-preview">
<view class="head-background"><!-- 背景 --></view> <view class="head-background"><!-- 背景 --></view>
<view class="scroll-view"> <!-- #ifdef APP-PLUS -->
<!-- #ifdef APP-PLUS --> <scroll-view scroll-y="true" show-scrollbar class="scroll-Y">
<scroll-view scroll-y="true" show-scrollbar class="scroll-Y"> <!-- #endif -->
<!-- #endif --> <view class="scroll-view scroll-bar">
<view class="head"> <view class="head">
<view class="head-title">请根据流程选填信息,即可生成下方收据小票</view> <view class="head-title">请根据流程选填信息,即可生成下方收据小票</view>
<view class="quoted-price-step"> <view class="quoted-price-step">
...@@ -20,15 +20,16 @@ ...@@ -20,15 +20,16 @@
<view class="head-tips">以下为账单示意图,仅做参考</view> <view class="head-tips">以下为账单示意图,仅做参考</view>
</view> </view>
<view class="preview"><u-image :src="previewImage" mode="widthFix" class="preview-image"></u-image></view> <view class="preview"><u-image :src="previewImage" mode="widthFix" class="preview-image"></u-image></view>
<!-- #ifdef APP-PLUS -->
</scroll-view> <!-- <view class="scroll-scrollbar">
<!-- #endif -->
<!-- <view class="scroll-scrollbar">
<scroll-view scroll-y="true" class="scroll-scrollbar-view"> <scroll-view scroll-y="true" class="scroll-scrollbar-view">
<view class="scroll-scrollbar-view-inner"><view class="scroll-scrollbar-view-inner-box"></view></view> <view class="scroll-scrollbar-view-inner"><view class="scroll-scrollbar-view-inner-box"></view></view>
</scroll-view> </scroll-view>
</view> --> </view> -->
</view> </view>
<!-- #ifdef APP-PLUS -->
</scroll-view>
<!-- #endif -->
<view class="close" @click="close"><image :src="closeIcon" mode=""></image></view> <view class="close" @click="close"><image :src="closeIcon" mode=""></image></view>
</view> </view>
</uni-popup> </uni-popup>
...@@ -88,6 +89,8 @@ export default { ...@@ -88,6 +89,8 @@ export default {
z-index: 2; z-index: 2;
width: 100%; width: 100%;
height: 100%; height: 100%;
}
.scroll-bar {
/* #ifndef APP-PLUS */ /* #ifndef APP-PLUS */
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
......
This diff is collapsed.
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
</template> </template>
<script> <script>
// import CampTabs from '@/components/camp-tabs';
import SubscribeCard from './components/subscribe-card.vue'; import SubscribeCard from './components/subscribe-card.vue';
import SubscribeItem from './components/subscribe-item.vue'; import SubscribeItem from './components/subscribe-item.vue';
import SubscribeMessage from './components/subscribe-message.vue'; import SubscribeMessage from './components/subscribe-message.vue';
...@@ -41,7 +40,6 @@ import { getList } from '@/api/mine/subscribe.js'; ...@@ -41,7 +40,6 @@ import { getList } from '@/api/mine/subscribe.js';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
export default { export default {
components: { components: {
// CampTabs,
SubscribeCard, SubscribeCard,
SubscribeItem, SubscribeItem,
SubscribeMessage SubscribeMessage
......
...@@ -56,6 +56,8 @@ $default-color: #02a074; ...@@ -56,6 +56,8 @@ $default-color: #02a074;
// -webkit-box-shadow: inset 0 0 10rpx #9b9ba3; // -webkit-box-shadow: inset 0 0 10rpx #9b9ba3;
// background: #9b9ba3; // background: #9b9ba3;
// } // }
&::-webkit-scrollbar { &::-webkit-scrollbar {
/* 隐藏默认的滚动条 */ /* 隐藏默认的滚动条 */
-webkit-appearance: none; -webkit-appearance: none;
......
...@@ -15,3 +15,43 @@ export const quotedPriceSteps = [{ ...@@ -15,3 +15,43 @@ export const quotedPriceSteps = [{
title: "预览发送", title: "预览发送",
}, },
] ]
export const unitOptions = [{
value: "项",
label: "项",
}, {
value: "台",
label: "台",
},
{
value: "次",
label: "次",
}, {
value: "米",
label: "米",
}, {
value: "个",
label: "个",
}, {
value: "件",
label: "件",
}, {
value: "瓶",
label: "瓶",
}, {
value: "箱",
label: "箱",
}, {
value: "条",
label: "条",
}, {
value: "块",
label: "块",
}, {
value: "组",
label: "组",
}, {
value: "捆",
label: "捆",
},
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment