Commit ccbe6ea2 authored by 刘文虎's avatar 刘文虎

移除部分图标

parent cdb8ed86
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"configurations": [{ "configurations": [{
"app-plus" : "app-plus" :
{ {
"launchtype" : "remote" "launchtype" : "local"
}, },
"default" : "default" :
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<view class="billing-category-item" :class="{ active: item.id === checked }" v-for="(item, index) in swiper" :key="index" @click="handleCheck(item)"> <view class="billing-category-item" :class="{ active: item.id === checked }" v-for="(item, index) in swiper" :key="index" @click="handleCheck(item)">
<view class="billing-category-item-icon"> <view class="billing-category-item-icon">
<image :src="billStaticBaseUrl + item.recordSelectedIcon" mode="" v-if="item.id === checked || item.id === 'setting'"></image> <image :src="billStaticBaseUrl + item.recordSelectedIcon" mode="" v-if="item.id === checked || item.id === 'setting'"></image>
<image :src="billStaticBaseUrl + item.recordIcon" mode="" v-else></image> <image :src="billBaseUrl + item.recordIcon" mode="" v-else></image>
</view> </view>
<view class="billing-category-item-text ellipsis" :class="{'billing-category-item-setting':item.id === 'setting'}"> <view class="billing-category-item-text ellipsis" :class="{'billing-category-item-setting':item.id === 'setting'}">
<text>{{ item.name }}</text> <text>{{ item.name }}</text>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<script> <script>
import UniSwiperDot from '@/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue'; import UniSwiperDot from '@/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue';
import { billStaticBaseUrl } from '@/utils/config.js'; import { billStaticBaseUrl,billBaseUrl } from '@/utils/config.js';
export default { export default {
name: 'billing-category', name: 'billing-category',
components: { components: {
...@@ -42,6 +42,7 @@ export default { ...@@ -42,6 +42,7 @@ export default {
data() { data() {
return { return {
billStaticBaseUrl, billStaticBaseUrl,
billBaseUrl,
duration: 500, duration: 500,
current: 0, current: 0,
mode: 'round', mode: 'round',
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</template> </template>
<script> <script>
import { billStaticBaseUrl } from '@/utils/config.js' import { billBaseUrl } from '@/utils/config.js'
import { formatCount } from '@/utils/common.js' import { formatCount } from '@/utils/common.js'
export default { export default {
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
}, },
computed: { computed: {
image() { image() {
return billStaticBaseUrl + this.info.classification.bookIcon return billBaseUrl + this.info.classification.bookIcon
}, },
beizhutuImage() { beizhutuImage() {
return process.uniEnv.qn_base_url + 'beizhutu-n@3x.png' return process.uniEnv.qn_base_url + 'beizhutu-n@3x.png'
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</template> </template>
<script> <script>
import { billStaticBaseUrl } from '@/utils/config.js' import { billBaseUrl } from '@/utils/config.js'
import { formatCount } from '@/utils/common.js' import { formatCount } from '@/utils/common.js'
export default { export default {
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
}, },
computed: { computed: {
image() { image() {
return billStaticBaseUrl + this.info.icon return billBaseUrl + this.info.icon
}, },
}, },
......
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
}) })
}, },
fail: (err) => { fail: (err) => {
console.log("saveImageToPhotosAlbum:fail",err)
// #ifdef APP-PLUS // #ifdef APP-PLUS
if (err.errCode == 2) { if (err.errCode == 2) {
return return
...@@ -159,11 +160,14 @@ export default { ...@@ -159,11 +160,14 @@ export default {
}, },
}) })
} }
console.log('saveUrl==='+this.saveUrl)
if (this.saveUrl) { if (this.saveUrl) {
console.log('this.currentBlock')
this.currentBlock(this.saveUrl) this.currentBlock(this.saveUrl)
} else { } else {
this.posterSave = this.currentPosterSave this.posterSave = this.currentPosterSave
} }
uni.hideLoading()
}, },
}, },
} }
......
This diff is collapsed.
{ {
"name" : "扳手记账", "name" : "account-book",
"appid" : "__UNI__EDB8C7C", "appid" : "__UNI__EDB8C7C",
"description" : "", "description" : "",
"versionName" : "1.0.1", "versionName" : "1.0.1",
...@@ -32,18 +32,20 @@ ...@@ -32,18 +32,20 @@
"Maps" : {}, "Maps" : {},
"Push" : {} "Push" : {}
}, },
"safearea": { "safearea" : {
"bottom": { "bottom" : {
"offset": "none" "offset" : "none"
} }
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute" : {
"debug" : true,
/* android打包配置 */ /* android打包配置 */
"android" : { "android" : {
"permissions" : [ "permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
...@@ -57,8 +59,7 @@ ...@@ -57,8 +59,7 @@
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>"
], ],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"autoSdkPermissions" : false, "autoSdkPermissions" : false,
...@@ -115,18 +116,7 @@ ...@@ -115,18 +116,7 @@
"appkey_android" : "6f92327cbdcd93ca769a62676ba69e78" "appkey_android" : "6f92327cbdcd93ca769a62676ba69e78"
} }
}, },
"push" : { "push" : {}
"unipush" : {
"version" : "2",
"offline" : true,
"hms" : {},
"oppo" : {},
"vivo" : {},
"mi" : {},
"meizu" : {},
"fcm" : {}
}
}
}, },
"icons" : { "icons" : {
"android" : { "android" : {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="card"> <view class="card">
<view class="card-icon"> <view class="card-icon">
<view class="card-icon-image"> <view class="card-icon-image">
<image :src="billStaticBaseUrl + detail.classification.bookDetailIcon" mode="" v-if="detail.classification && detail.classification.bookDetailIcon"></image> <image :src="billBaseUrl + detail.classification.bookDetailIcon" mode="" v-if="detail.classification && detail.classification.bookDetailIcon"></image>
</view> </view>
</view> </view>
<view class="card-head"> <view class="card-head">
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
import AbButton from '@/components/common/ab-button.vue'; import AbButton from '@/components/common/ab-button.vue';
import PopInput from '@/components/pop-input-view'; import PopInput from '@/components/pop-input-view';
import BillingDetails from '@/components/billing-daily/billing-daily.vue'; import BillingDetails from '@/components/billing-daily/billing-daily.vue';
import { billStaticBaseUrl, billBaseUrl } from '@/utils/config.js'; import { billBaseUrl } from '@/utils/config.js';
import { get } from '@/api/bill/index.js'; import { get } from '@/api/bill/index.js';
import { deleteByIds } from '@/api/bill/daily.js'; import { deleteByIds } from '@/api/bill/daily.js';
export default { export default {
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
}, },
data() { data() {
return { return {
billStaticBaseUrl, billBaseUrl,
lineImage: billBaseUrl + 'fengexuxian@3x.png', lineImage: billBaseUrl + 'fengexuxian@3x.png',
showConfirm: false, showConfirm: false,
id: '', id: '',
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</template> </template>
<script> <script>
import { billStaticBaseUrl } from '@/utils/config.js' import { billBaseUrl } from '@/utils/config.js'
import { formatCount } from '@/utils/common.js' import { formatCount } from '@/utils/common.js'
export default { export default {
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
}, },
computed: { computed: {
image() { image() {
return billStaticBaseUrl + (this.info.classification&&this.info.classification.bookIcon) return billBaseUrl + (this.info.classification&&this.info.classification.bookIcon)
}, },
beizhutuImage() { beizhutuImage() {
return process.uniEnv.qn_base_url + 'beizhutu-n@3x.png' return process.uniEnv.qn_base_url + 'beizhutu-n@3x.png'
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<view class="scroll-view"> <view class="scroll-view">
<NoData v-if="noData(index)" :text="noDataText" customStyle="margin-top: 0rpx;" :imageName="noDataImage" /> <NoData v-if="noData(index)" :text="noDataText" customStyle="margin-top: 0rpx;" :imageName="noDataImage" />
<template v-else> <template v-else>
<view class="container"><debit-detail v-for="item in listData" :key="item.userid" :detail="item" :current="current"></debit-detail></view> <view class="container"><debit-detail v-for="item in listData" :key="item.customerId" :detail="item" :current="current"></debit-detail></view>
<view class="loading-view" v-if="!getCurrentPage(index).loaded && !getCurrentPage(index).freshing"><u-loading mode="flower"></u-loading></view> <view class="loading-view" v-if="!getCurrentPage(index).loaded && !getCurrentPage(index).freshing"><u-loading mode="flower"></u-loading></view>
<view v-show="(getCurrentPage(index).pageNumber === 1 && getCurrentPage(index).loaded) || getCurrentPage(index).pageNumber > 1"> <view v-show="(getCurrentPage(index).pageNumber === 1 && getCurrentPage(index).loaded) || getCurrentPage(index).pageNumber > 1">
......
<template>
<!-- 查报价 -->
<view class="choose-category">
<quoted-price-tips></quoted-price-tips>
<view class="content">
<tabs-box :checked="form.type" :list="tabList" @change="tabChange"></tabs-box>
<view class="list">
</view>
</view>
</view>
</template>
<script>
import QuotedPriceTips from '../components/quoted-price-tips.vue';
import TabsBox from '../components/tabs-box.vue';
import { mineBaseUrl, billBaseUrl } from '@/utils/config.js';
import { tabsOptions } from '@/utils/options/bill/quoted-price.js';
export default {
components: {
QuotedPriceTips,
TabsBox
},
data() {
return {
arrowUrl: billBaseUrl + 'meidi@3x.png',
tabList: tabsOptions,
form: {
type: 0
}
};
},
methods: {
next(item) {
uni.navigateTo({
animationType:'pop-in',
url: `./choose-category/choose-category?id=${item.id}`
});
},
tabChange(params) {
let { item, index } = params;
this.form.type = index;
}
}
};
</script>
<style lang="scss" scoped>
.choose-category {
padding: 0 24upx;
display: flex;
flex-direction: column;
height: 100vh;
padding-bottom: 24upx;
.content {
flex: 1;
width: 100%;
display: flex;
overflow: hidden;
.list{
flex: 1;
height: 100%;
background-color: #ffffff;
padding:0 24upx;
}
}
}
</style>
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
console.log('cart-popup,$event', e); console.log('cart-popup,$event', e);
console.log('cart-popup, item', item); console.log('cart-popup, item', item);
this.$set(item, 'num', e.value); this.$set(item, 'num', e.value);
let list=this.deepClone(this.list) let list=[...this.list]
list.forEach((item, index) => { list.forEach((item, index) => {
if (item.num === 0) { if (item.num === 0) {
// 当数量为0时,删除当前项 // 当数量为0时,删除当前项
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</view> </view>
<view class="tooltip" slot="content"> <view class="tooltip" slot="content">
<text>点击可以加入计算器算出收费</text> <text>点击可以加入计算器算出收费</text>
<u-icon name="close" class="tooltip-icon" @click.stop="close"></u-icon> <u-icon name="close" class="tooltip-icon" @click="close"></u-icon>
</view> </view>
</zb-tooltip> </zb-tooltip>
</view> </view>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
<view class="goods-list"> <view class="goods-list">
<view class="collapse"> <view class="collapse">
<view v-for="(item2, index2) in mainData.children" :key="item2.classB"> <view v-for="(item2, index2) in mainData.children" :key="index2">
<view class="collapse-title" @click="openCollapse(item2)"> <view class="collapse-title" @click="openCollapse(item2)">
<view class="collapse-title-left">{{ item2.classBProject }}</view> <view class="collapse-title-left">{{ item2.classBProject }}</view>
<view class="collapse-title-right"> <view class="collapse-title-right">
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
let res = await getOffer(this.form); let res = await getOffer(this.form);
let { code, data, msg } = res; let { code, data, msg } = res;
//第一层 //第一层
let newList = this.deepClone(data); let newList = JSON.parse(JSON.stringify(data));
// 去重 // 去重
newList = this.uniqueFunc(newList, 'classA'); newList = this.uniqueFunc(newList, 'classA');
// 移除 "备件费" // 移除 "备件费"
...@@ -305,7 +305,6 @@ export default { ...@@ -305,7 +305,6 @@ export default {
}); });
// 总列表赋值 // 总列表赋值
this.totalArray = newList; this.totalArray = newList;
console.log(this.totalArray);
// 右侧列表赋值 // 右侧列表赋值
this.mainData = this.totalArray[this.leftIndex]; this.mainData = this.totalArray[this.leftIndex];
} catch (e) { } catch (e) {
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
size: 20, size: 20,
loadStatus: 'loading', loadStatus: 'loading',
triggered: true, triggered: true,
_freshing: false, freshing: false,
loadingCard: false, loadingCard: false,
currentIndex: 0, currentIndex: 0,
shareImage: '' shareImage: ''
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
} }
}, },
onLoad() { onLoad() {
this._freshing = false this.freshing = false
this.initInfo() this.initInfo()
uni.$on('card-refresh', (res) => { uni.$on('card-refresh', (res) => {
this.initInfo() this.initInfo()
...@@ -236,8 +236,8 @@ export default { ...@@ -236,8 +236,8 @@ export default {
this.getBusinessCardRecord() this.getBusinessCardRecord()
}, },
onRefresh() { onRefresh() {
if (this._freshing) return if (this.freshing) return
this._freshing = true this.freshing = true
this.initInfo() this.initInfo()
}, },
onRestore() { onRestore() {
...@@ -290,9 +290,9 @@ export default { ...@@ -290,9 +290,9 @@ export default {
} }
setTimeout(()=> { setTimeout(()=> {
this.$nextTick(() => { this.$nextTick(() => {
if (this._freshing) { if (this.freshing) {
this.triggered = false this.triggered = false
this._freshing = false this.freshing = false
} }
}) })
}, 500) }, 500)
......
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
/> />
</view> </view>
</view> </view>
<view class="loading-view" v-if="loading && !_freshing" <view class="loading-view" v-if="loading && !freshing"
><u-loading mode="flower"></u-loading ><u-loading mode="flower"></u-loading
></view> ></view>
</scroll-view> </scroll-view>
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
info: {}, info: {},
loading: false, loading: false,
triggered: true, triggered: true,
_freshing: false, freshing: false,
chartData: { chartData: {
categories: [], categories: [],
series: [ series: [
...@@ -491,9 +491,9 @@ export default { ...@@ -491,9 +491,9 @@ export default {
} }
setTimeout(()=> { setTimeout(()=> {
this.$nextTick(() => { this.$nextTick(() => {
if (this._freshing) { if (this.freshing) {
this.triggered = false this.triggered = false
this._freshing = false this.freshing = false
} }
}) })
}, 500) }, 500)
...@@ -593,9 +593,9 @@ export default { ...@@ -593,9 +593,9 @@ export default {
this.rankingList = (res.data && res.data.data) || [] this.rankingList = (res.data && res.data.data) || []
setTimeout(()=> { setTimeout(()=> {
this.$nextTick(() => { this.$nextTick(() => {
if (this._freshing) { if (this.freshing) {
this.triggered = false this.triggered = false
this._freshing = false this.freshing = false
} }
}) })
}, 500) }, 500)
...@@ -672,8 +672,8 @@ export default { ...@@ -672,8 +672,8 @@ export default {
this.reloadData() this.reloadData()
}, },
onRefresh() { onRefresh() {
if (this._freshing) return if (this.freshing) return
this._freshing = true this.freshing = true
this.reloadData() this.reloadData()
}, },
onRestore() { onRestore() {
......
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
}, },
list: [], list: [],
triggered: true, triggered: true,
_freshing: false, freshing: false,
systemInfo: {}, systemInfo: {},
isVipShare: false, isVipShare: false,
shareSuccess: false, shareSuccess: false,
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
const q = decodeURIComponent(options.q); // 获取到二维码原始链接内容 const q = decodeURIComponent(options.q); // 获取到二维码原始链接内容
console.log(q); console.log(q);
} }
this._freshing = false; this.freshing = false;
uni.$on('bill-list-reload', res => { uni.$on('bill-list-reload', res => {
setTimeout(() => { setTimeout(() => {
this.initInfo(); this.initInfo();
...@@ -394,9 +394,9 @@ export default { ...@@ -394,9 +394,9 @@ export default {
this.list = res.data; this.list = res.data;
setTimeout(()=> { setTimeout(()=> {
this.$nextTick(() => { this.$nextTick(() => {
if (this._freshing) { if (this.freshing) {
this.triggered = false; this.triggered = false;
this._freshing = false; this.freshing = false;
} }
}) })
...@@ -407,8 +407,8 @@ export default { ...@@ -407,8 +407,8 @@ export default {
}); });
}, },
onRefresh() { onRefresh() {
if (this._freshing) return; if (this.freshing) return;
this._freshing = true; this.freshing = true;
this.initInfo(); this.initInfo();
}, },
onRestore() { onRestore() {
......
...@@ -290,7 +290,7 @@ export default { ...@@ -290,7 +290,7 @@ export default {
if (options && options.billId) { if (options && options.billId) {
this.billId = options.billId; this.billId = options.billId;
} }
this._freshing = false; this.freshing = false;
if (this.billId) { if (this.billId) {
this.repairDetail(); this.repairDetail();
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
</u-button> </u-button>
</view> </view>
</view> </view>
<view class="loading-view" v-if="loading && !_freshing" <view class="loading-view" v-if="loading && !freshing"
><u-loading mode="flower"></u-loading ><u-loading mode="flower"></u-loading
></view> ></view>
<PopNormal <PopNormal
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
current: 0, current: 0,
buttonLoading: false, buttonLoading: false,
triggered: true, triggered: true,
_freshing: false, freshing: false,
} }
}, },
computed: { computed: {
...@@ -428,9 +428,9 @@ export default { ...@@ -428,9 +428,9 @@ export default {
this.loading = false this.loading = false
setTimeout(()=> { setTimeout(()=> {
this.$nextTick(() => { this.$nextTick(() => {
if (this._freshing) { if (this.freshing) {
this.triggered = false this.triggered = false
this._freshing = false this.freshing = false
} }
}) })
}, 500) }, 500)
...@@ -440,8 +440,8 @@ export default { ...@@ -440,8 +440,8 @@ export default {
}) })
}, },
onRefresh() { onRefresh() {
if (this._freshing) return if (this.freshing) return
this._freshing = true this.freshing = true
this.repairDetail() this.repairDetail()
}, },
onRestore() { onRestore() {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<NoData v-else-if="!loading" customStyle="margin-top:100rpx" :image="currentNoData.image" :text="currentNoData.text" /> <NoData v-else-if="!loading" customStyle="margin-top:100rpx" :image="currentNoData.image" :text="currentNoData.text" />
</scroll-view> </scroll-view>
</view> </view>
<view class="loading-view" v-if="loading && !_freshing"><u-loading mode="flower"></u-loading></view> <view class="loading-view" v-if="loading && !freshing"><u-loading mode="flower"></u-loading></view>
<PopExport :visible.sync="visible" @confirm="handleClickConfirm" /> <PopExport :visible.sync="visible" @confirm="handleClickConfirm" />
<FabView @click="handleClickFab" v-if="!customerId" /> <FabView @click="handleClickFab" v-if="!customerId" />
<u-toast ref="uToast" /> <u-toast ref="uToast" />
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
visible: false, visible: false,
loadStatus: 'loading', loadStatus: 'loading',
triggered: true, triggered: true,
_freshing: false, freshing: false,
current: 1, current: 1,
size: 10 size: 10
}; };
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
uni.$on('maintain-bill-list', res => { uni.$on('maintain-bill-list', res => {
this.reloadList(); this.reloadList();
}); });
this._freshing = false; this.freshing = false;
this.reloadList(); this.reloadList();
}, },
onUnload() { onUnload() {
...@@ -195,9 +195,9 @@ export default { ...@@ -195,9 +195,9 @@ export default {
} }
setTimeout(()=> { setTimeout(()=> {
this.$nextTick(() => { this.$nextTick(() => {
if (this._freshing) { if (this.freshing) {
this.triggered = false; this.triggered = false;
this._freshing = false; this.freshing = false;
} }
}); });
}, 500) }, 500)
...@@ -209,8 +209,8 @@ export default { ...@@ -209,8 +209,8 @@ export default {
}); });
}, },
onRefresh() { onRefresh() {
if (this._freshing) return; if (this.freshing) return;
this._freshing = true; this.freshing = true;
this.reloadList(); this.reloadList();
}, },
onRestore() { onRestore() {
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
:height="height" :height="height"
:option="option" :option="option"
:size="size" :size="size"
:count="count"
:formats="formats" :formats="formats"
:debug="debug" :debug="debug"
:instantly="instantly" :instantly="instantly"
...@@ -76,6 +77,8 @@ export default { ...@@ -76,6 +77,8 @@ export default {
formats: 'xls,xlsx', formats: 'xls,xlsx',
// 文件上传大小限制 // 文件上传大小限制
size: 20, size: 20,
// 文件上传个数
count:1,
// 文件回显列表 // 文件回显列表
files: new Map(), files: new Map(),
// 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道 // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
...@@ -89,6 +92,7 @@ export default { ...@@ -89,6 +92,7 @@ export default {
...mapGetters(['platform']) ...mapGetters(['platform'])
}, },
methods: { methods: {
selectFile() { selectFile() {
wx.chooseMessageFile({ wx.chooseMessageFile({
count: this.currentCount, count: this.currentCount,
......
...@@ -9,26 +9,63 @@ ...@@ -9,26 +9,63 @@
<package-card title="上传账单"> <package-card title="上传账单">
<upload-bill></upload-bill> <upload-bill></upload-bill>
</package-card> </package-card>
<PopInput title="提醒" type="text" sureText="前往设置" cancelText="返回" :showCancel="true" :content="uploadConent" :visible.sync="showConfirm" @cancel="handleCancel" @click="handleConfirm" />
</view> </view>
</template> </template>
<script> <script>
import PopInput from '@/components/pop-input-view';
import PackageCard from './components/package-card.vue'; import PackageCard from './components/package-card.vue';
import Process from './components/process.vue'; import Process from './components/process.vue';
import DownloadTemplate from './components/download-template.vue'; import DownloadTemplate from './components/download-template.vue';
import UploadBill from './components/upload-bill.vue'; import UploadBill from './components/upload-bill.vue';
import permision from "@/js_sdk/wa-permission/permission.js"
import { mapGetters } from 'vuex';
export default { export default {
components: { components: {
PopInput,
PackageCard, PackageCard,
Process, Process,
DownloadTemplate, DownloadTemplate,
UploadBill, UploadBill,
}, },
data() { data() {
return { return {
uploadConent:"需要使用存储空间权限,请允许。",
showConfirm:false
}; };
},
computed: {
...mapGetters(['platform','isIOS'])
},
onShow() {
if(this.platform==='4'&&!this.isIOS){
this.appAskAuth()
}
},
methods:{
async appAskAuth(){
console.log("appAskAuth")
try{
let res=await permision.requestAndroidPermission('android.permission.WRITE_EXTERNAL_STORAGE')
if(res!==1){
this.showConfirm=true
}else{
}
console.log("ask",res)
}catch(e){
console.log(e)
//TODO handle the exception
}
},
handleConfirm(){
permision.gotoAppPermissionSetting()
},
handleCancel(){
uni.navigateBack()
}
} }
} }
</script> </script>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
> >
<view class="item-view"> <view class="item-view">
<view class="left-view"> <view class="left-view">
<view class="image-view"><image :src="billStaticBaseUrl + item.icon" v-if="item.icon"></image></view> <view class="image-view"><image :src="billBaseUrl + item.icon" v-if="item.icon"></image></view>
<view class="name-view">{{ item.label }}</view> <view class="name-view">{{ item.label }}</view>
</view> </view>
</view> </view>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
> >
<view class="item-view"> <view class="item-view">
<view class="left-view"> <view class="left-view">
<view class="image-view"><image :src="billStaticBaseUrl + movableViewInfo.data.icon" class="image-view" v-if="movableViewInfo.data.icon"></image></view> <view class="image-view"><image :src="billBaseUrl + movableViewInfo.data.icon" class="image-view" v-if="movableViewInfo.data.icon"></image></view>
<view class="name-view">{{ movableViewInfo.data && movableViewInfo.data.label }}</view> <view class="name-view">{{ movableViewInfo.data && movableViewInfo.data.label }}</view>
</view> </view>
</view> </view>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<script> <script>
import PopInput from '@/components/pop-input-view'; import PopInput from '@/components/pop-input-view';
import { billStaticBaseUrl } from '@/utils/config.js'; import { billBaseUrl } from '@/utils/config.js';
export default { export default {
name: 'dragEdit', name: 'dragEdit',
props: ['list'], props: ['list'],
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
}, },
data() { data() {
return { return {
billStaticBaseUrl, billBaseUrl,
showConfirm: false, showConfirm: false,
readyDeleteIndex: null, readyDeleteIndex: null,
options: [ options: [
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
> >
<view class="item-view" @click.stop="clickCell(item, index)"> <view class="item-view" @click.stop="clickCell(item, index)">
<view class="left-view"> <view class="left-view">
<view class="image-view"><image :src="billStaticBaseUrl + item.icon" v-if="item.icon"></image></view> <view class="image-view"><image :src="billBaseUrl + item.icon" v-if="item.icon"></image></view>
<view class="name-view">{{ item.label }}</view> <view class="name-view">{{ item.label }}</view>
</view> </view>
</view> </view>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
> >
<view class="item-view"> <view class="item-view">
<view class="left-view"> <view class="left-view">
<view class="image-view"><image :src="billStaticBaseUrl + movableViewInfo.data.icon" class="image-view" v-if="movableViewInfo.data.icon"></image></view> <view class="image-view"><image :src="billBaseUrl + movableViewInfo.data.icon" class="image-view" v-if="movableViewInfo.data.icon"></image></view>
<view class="name-view">{{ movableViewInfo.data && movableViewInfo.data.label }}</view> <view class="name-view">{{ movableViewInfo.data && movableViewInfo.data.label }}</view>
</view> </view>
</view> </view>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
import UniSwipeAction from '@/components/uni-swipe-action/uni-swipe-action.vue'; import UniSwipeAction from '@/components/uni-swipe-action/uni-swipe-action.vue';
import UniSwipeActionItem from '@/components/uni-swipe-action-item/uni-swipe-action-item.vue'; import UniSwipeActionItem from '@/components/uni-swipe-action-item/uni-swipe-action-item.vue';
import PopInput from '@/components/pop-input-view'; import PopInput from '@/components/pop-input-view';
import { billStaticBaseUrl } from '@/utils/config.js'; import { billBaseUrl } from '@/utils/config.js';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
export default { export default {
name: 'dragEdit', name: 'dragEdit',
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
}, },
data() { data() {
return { return {
billStaticBaseUrl, billBaseUrl,
showConfirm: false, showConfirm: false,
readyDeleteItem: null, readyDeleteItem: null,
options: [ options: [
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="edit-box-1"> <view class="edit-box-1">
<view class="list-row" v-for="(item, index) in list" :key="item.id" @click="handleClick(item)"> <view class="list-row" v-for="(item, index) in list" :key="item.id" @click="handleClick(item)">
<view class="left-view"> <view class="left-view">
<view class="image-view"><image :src="billStaticBaseUrl + item.icon" v-if="item.icon"></image></view> <view class="image-view"><image :src="billBaseUrl + item.icon" v-if="item.icon"></image></view>
<view class="name-view">{{ item.label }}</view> <view class="name-view">{{ item.label }}</view>
</view> </view>
</view> </view>
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
</template> </template>
<script> <script>
import { billStaticBaseUrl } from '@/utils/config.js'; import { billBaseUrl } from '@/utils/config.js';
export default { export default {
name: 'edit-box', name: 'edit-box',
props: ['list', 'checked'], props: ['list', 'checked'],
components: {}, components: {},
data() { data() {
return { return {
billStaticBaseUrl billBaseUrl
}; };
}, },
computed: {}, computed: {},
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<view class="list-row" @click.stop="clickCell(item)"> <view class="list-row" @click.stop="clickCell(item)">
<view class="list-row-view list-row-left"> <view class="list-row-view list-row-left">
<view class="list-row-view-top"> <view class="list-row-view-top">
<view class="list-row-view-top-image"><image :src="billStaticBaseUrl + item.icon" v-if="item.icon"></image></view> <view class="list-row-view-top-image"><image :src="billBaseUrl + item.icon" v-if="item.icon"></image></view>
</view> </view>
<view class="list-row-view-bottom"> <view class="list-row-view-bottom">
...@@ -56,7 +56,7 @@ import UniSwipeActionItem from '@/components/uni-swipe-action-item/uni-swipe-act ...@@ -56,7 +56,7 @@ import UniSwipeActionItem from '@/components/uni-swipe-action-item/uni-swipe-act
import PopInput from '@/components/pop-input-view'; import PopInput from '@/components/pop-input-view';
import SubmitButton from '@/components/submit-button/index.vue'; import SubmitButton from '@/components/submit-button/index.vue';
import { billStaticBaseUrl } from '@/utils/config.js'; import { billBaseUrl } from '@/utils/config.js';
import { weekOptions } from '@/utils/options/mine/timed.js'; import { weekOptions } from '@/utils/options/mine/timed.js';
import { getList, deleteById, enable, close } from '@/api/mine/timed.js'; import { getList, deleteById, enable, close } from '@/api/mine/timed.js';
export default { export default {
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
}, },
data() { data() {
return { return {
billStaticBaseUrl, billBaseUrl,
weekOptions, weekOptions,
showConfirm: false, showConfirm: false,
readyDeleteItem: null, readyDeleteItem: null,
......
...@@ -11,7 +11,8 @@ import store from "../store/index.js" ...@@ -11,7 +11,8 @@ import store from "../store/index.js"
import { import {
RouterMount, RouterMount,
createRouter createRouter,
runtimeQuit
} from 'uni-simple-router'; } from 'uni-simple-router';
let first = null; let first = null;
...@@ -67,10 +68,10 @@ const router = createRouter({ ...@@ -67,10 +68,10 @@ const router = createRouter({
msg msg
}) })
// #ifdef APP-PLUS // #ifdef APP-PLUS
// if(type===3){ if(type===3){
// router.$lockStatus=false; router.$lockStatus=false;
// runtimeQuit(); runtimeQuit();
// } }
// #endif // #endif
}, },
routes: [ routes: [
......
export const version = "1.0.15" export const version = "1.0.16"
export const baseURL = "/baseapi" export const baseURL = "/baseapi"
export const token = "TOKEN" export const token = "TOKEN"
export const PHONENUMBER = "PHONENUMBER" export const PHONENUMBER = "PHONENUMBER"
...@@ -19,7 +19,7 @@ export const planBaseUrl = process.uniEnv.qn_base_url + 'plan/'; // 七牛云对 ...@@ -19,7 +19,7 @@ export const planBaseUrl = process.uniEnv.qn_base_url + 'plan/'; // 七牛云对
export const UPLOAD_FILE_HOST = process.uniEnv.qn_asset_url; // 服务器用户上传文件地址 export const UPLOAD_FILE_HOST = process.uniEnv.qn_asset_url; // 服务器用户上传文件地址
export const billStaticBaseUrl = '/static/image/bill/'; // 七牛云对象存储图片地址-账单 export const billStaticBaseUrl = '/static/image/bill/'; // 本地保存选中时的图标
export const maintain_share_url = 'https://system.banshouhui.com/maintainqrcode' // pages/maintain-bill/show二维码地址 export const maintain_share_url = 'https://system.banshouhui.com/maintainqrcode' // pages/maintain-bill/show二维码地址
export const index_share_url = 'https://system.banshouhui.com/indexqrcode' // pages/index/index二维码地址 export const index_share_url = 'https://system.banshouhui.com/indexqrcode' // pages/index/index二维码地址
......
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