Commit 8f9ded0f authored by 刘文虎's avatar 刘文虎
parents c3bdde9a 6555bc7b
Pipeline #2906 canceled with stages
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
const UNI_APP = { const UNI_APP = {
apiUrl: 'https://api.weixin.qq.com', apiUrl: 'https://api.weixin.qq.com',
qn_base_url: 'https://static-book.kaying.cc/icon/', qn_base_url: 'https://static-book.kaying.cc/icon/',
qn_asset_url: 'https://static-book.kaying.cc/upload-image/', qn_asset_url: 'https://static-book.kaying.cc/',
argoDebugMode: 1, argoDebugMode: 1,
version: 'v1.0.0', version: 'v1.0.0',
} }
......
const UNI_APP = { const UNI_APP = {
apiUrl: 'https://api-book.kaying.cc', apiUrl: 'https://api-book.kaying.cc',
qn_base_url: 'https://static-book.kaying.cc/icon/', qn_base_url: 'https://static-book.kaying.cc/icon/',
qn_asset_url: 'https://static-book.kaying.cc/upload-image/', qn_asset_url: 'https://static-book.kaying.cc/',
argoDebugMode: 0, argoDebugMode: 0,
version: 'v1.0.0', version: 'v1.0.0',
} }
......
const UNI_APP = { const UNI_APP = {
apiUrl: 'https://api-book-test.banshouhui.com', apiUrl: 'https://api-book-test.banshouhui.com',
qn_base_url: 'https://static-book.kaying.cc/icon/', qn_base_url: 'https://static-book.kaying.cc/icon/',
qn_asset_url: 'https://static-book.kaying.cc/upload-image/', qn_asset_url: 'https://static-book.kaying.cc/',
argoDebugMode: 1, argoDebugMode: 1,
version: 'v1.0.0', version: 'v1.0.0',
} }
......
import request from "@/utils/request.js"
// 获取所有的收款码
export async function getCollectionCode(data) {
return request({
url: `/rest/collectionCode`,
method: 'GET',
data,
noLoading: true
})
}
// 保存收款码
export async function setCollectionCode(data) {
return request({
url: `/rest/collectionCode`,
method: 'POSt',
data,
noLoading: true
})
}
// 获取自己的名片
export async function getBusinessCard(data) {
return request({
url: `/rest/businessCard`,
method: 'GET',
data,
noLoading: true
})
}
\ No newline at end of file
import request from "@/utils/request.js" import request from "@/utils/request.js"
export function getQiNiuToken(data) { export async function getQiNiuToken(data) {
return request({ return request({
url: `/rest/file/token/get`, url: `/rest/file/token/get`,
method: 'get', method: 'GET',
data data:{
bucketName: 'banshou-account-book',
},
noLoading: true
}) })
} }
\ No newline at end of file
import request from "@/utils/request.js" import request from "@/utils/request.js"
// 天气 // 天气
export function getWeather(data) { export async function getWeather(data) {
return request({ return request({
url: `/rest/anno/weather/getWeather`, url: `/rest/anno/weather/getWeather`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
// 首页账单 // 首页账单
export function bookRecord(data) { export async function bookRecord(data) {
return request({ return request({
url: `/rest/bookRecord`, url: `/rest/bookRecord`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
// 月份收支 // 月份收支
export function monthRecord(data) { export async function monthRecord(data) {
return request({ return request({
url: `/rest/bookRecord/statistics`, url: `/rest/bookRecord/statistics`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -32,7 +35,8 @@ export async function repair(data) { ...@@ -32,7 +35,8 @@ export async function repair(data) {
return request({ return request({
url: `/rest/repair`, url: `/rest/repair`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -41,7 +45,8 @@ export async function repairExport(data) { ...@@ -41,7 +45,8 @@ export async function repairExport(data) {
return request({ return request({
url: `/rest/repair/export`, url: `/rest/repair/export`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -50,7 +55,8 @@ export async function repairDetail(data) { ...@@ -50,7 +55,8 @@ export async function repairDetail(data) {
return request({ return request({
url: `/rest/repair/detail`, url: `/rest/repair/detail`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -59,7 +65,8 @@ export async function editeRepair(data) { ...@@ -59,7 +65,8 @@ export async function editeRepair(data) {
return request({ return request({
url: `/rest/repair`, url: `/rest/repair`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -68,7 +75,8 @@ export async function repairSettle(data) { ...@@ -68,7 +75,8 @@ export async function repairSettle(data) {
return request({ return request({
url: `/rest/repair/settle`, url: `/rest/repair/settle`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -77,7 +85,8 @@ export async function repairSync(data) { ...@@ -77,7 +85,8 @@ export async function repairSync(data) {
return request({ return request({
url: `/rest/repair/sync`, url: `/rest/repair/sync`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -86,7 +95,8 @@ export async function repairDelete(data) { ...@@ -86,7 +95,8 @@ export async function repairDelete(data) {
return request({ return request({
url: `/rest/repair/delete`, url: `/rest/repair/delete`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -95,7 +105,8 @@ export async function repairSend(data) { ...@@ -95,7 +105,8 @@ export async function repairSend(data) {
return request({ return request({
url: `/rest/repair/send`, url: `/rest/repair/send`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -104,6 +115,7 @@ export async function repairSign(data) { ...@@ -104,6 +115,7 @@ export async function repairSign(data) {
return request({ return request({
url: `/rest/repair/sign`, url: `/rest/repair/sign`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
\ No newline at end of file
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
</view> </view>
<view class="right-view"> <view class="right-view">
<view class="count-view">{{ <view class="count-view">{{
typeText[info.type] + formatCount(info.amount) typeText[info.type.code] + formatCount(info.amount)
}}</view> }}</view>
<view class="time-view">{{ info.happenTime }}</view> <view class="time-view">{{ happenTime }}</view>
</view> </view>
</view> </view>
<view v-if="!isLast" class="line-view"></view> <view v-if="!isLast" class="line-view"></view>
...@@ -64,6 +64,15 @@ export default { ...@@ -64,6 +64,15 @@ export default {
EXPENSE: '-', EXPENSE: '-',
} }
}, },
happenTime() {
if (this.info.happenTime) {
var array = this.info.happenTime.split(' ')
if (array.length > 1) {
return array[1]
}
}
return ''
}
}, },
methods: { methods: {
...@@ -82,11 +91,11 @@ export default { ...@@ -82,11 +91,11 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
padding: 32rpx 24rpx; padding: 30rpx 24rpx;
.left-view { .left-view {
flex: 1; flex: 1;
display: flex; display: flex;
align-items: flex-start; align-items: center;
margin-right: 24rpx; margin-right: 24rpx;
.image-view { .image-view {
width: 72rpx; width: 72rpx;
...@@ -101,6 +110,7 @@ export default { ...@@ -101,6 +110,7 @@ export default {
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
font-size: 28rpx; font-size: 28rpx;
margin-bottom: 2rpx;
} }
.detail-view { .detail-view {
min-height: 34rpx; min-height: 34rpx;
...@@ -133,6 +143,7 @@ export default { ...@@ -133,6 +143,7 @@ export default {
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
font-size: 28rpx; font-size: 28rpx;
margin-bottom: 2rpx;
} }
.time-view { .time-view {
font-size: 24rpx; font-size: 24rpx;
......
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
<script> <script>
import upload from '@/utils/upload' import upload from '@/utils/upload'
import UploadImages from '@/components/upload/u-upload' import UploadImages from '@/components/upload/u-upload'
import { getQiNiuToken } from '@/api/common/index.js';
import { UPLOAD_FILE_HOST } from '@/utils/config.js';
export default { export default {
components: { components: {
UploadImages, UploadImages,
...@@ -78,9 +81,6 @@ export default { ...@@ -78,9 +81,6 @@ export default {
} }
}, },
computed: { computed: {
assetUrl() {
return process.uniEnv.qn_asset_url
},
keyList() { keyList() {
let list = [] let list = []
if (this.fileList) { if (this.fileList) {
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
for (var item of res) { for (var item of res) {
list.push({ list.push({
url: item.url, url: item.url,
key: this.assetUrl + item.key key: UPLOAD_FILE_HOST + item.key
}) })
} }
} }
...@@ -161,9 +161,11 @@ export default { ...@@ -161,9 +161,11 @@ export default {
} }
}, },
getQiniuToken() { getQiniuToken() {
// this.$u.api.getQiNiuToken().then((res) => { getQiNiuToken().then((res) => {
// this.qiniuToken = res if (res.data) {
// }) this.qiniuToken = res.data
}
})
}, },
selectFile() { // 触发选择图片;不能改文件名,外部要调 selectFile() { // 触发选择图片;不能改文件名,外部要调
this.$refs['upload-images'].selectFile() this.$refs['upload-images'].selectFile()
......
...@@ -27,26 +27,34 @@ ...@@ -27,26 +27,34 @@
<view class="text-view">{{ item.title }}</view> <view class="text-view">{{ item.title }}</view>
</view> </view>
</view> </view>
<view class="title-view" :style="'color:' + currentInfo.color">{{ <view class="title-view" :style="'color:' + currentSetting.color">{{
currentInfo.text currentSetting.text
}}</view> }}</view>
<view class="middle-view"> <view class="middle-view">
<view class="code-view"> <view class="code-view">
<image v-if="currentInfo.code" :src="currentInfo.code" <view class="loading-view" v-if="loading"
><u-loading mode="flower"></u-loading
></view>
<template v-else>
<image
v-if="info[currentSetting.type].url"
:src="info[currentSetting.type].url"
hover-class="u-hover-class" hover-class="u-hover-class"
@click="$u.throttle(addCode, 500)" @click="$u.throttle(addCode, 500)"
> </image> >
</image>
<view <view
v-else v-else
class="add-view" class="add-view"
hover-class="u-hover-class" hover-class="u-hover-class"
@click="$u.throttle(addCode, 500)" @click="$u.throttle(addCode, 500)"
> >
<view class="add-text" :style="'color:' + currentInfo.color">{{ <view class="add-text" :style="'color:' + currentSetting.color">{{
currentInfo.addText currentSetting.addText
}}</view> }}</view>
<view>便于快速收款使用</view> <view>便于快速收款使用</view>
</view> </view>
</template>
</view> </view>
</view> </view>
</view> </view>
...@@ -63,29 +71,38 @@ ...@@ -63,29 +71,38 @@
/> />
</view> </view>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
<script> <script>
import NavbarRight from '@/components/navbar-right' import NavbarRight from '@/components/navbar-right'
import upload from '@/utils/upload' import upload from '@/utils/upload'
import { getQiNiuToken } from '@/api/common/index.js'
import { setCollectionCode, getCollectionCode } from '@/api/card/index.js'
import { UPLOAD_FILE_HOST } from '@/utils/config.js'
export default { export default {
components: { components: {
NavbarRight NavbarRight,
}, },
data() { data() {
return { return {
info: {}, info: {
WX: {},
ZFB: {},
OTHER: {},
},
currentIndex: 0, currentIndex: 0,
value: '', value: '',
loading: false
} }
}, },
computed: { computed: {
baseUrl() { baseUrl() {
return process.uniEnv.qn_base_url return process.uniEnv.qn_base_url
}, },
currentInfo() { currentSetting() {
return this.settings[this.currentIndex] return this.settings[this.currentIndex]
}, },
settings() { settings() {
...@@ -98,8 +115,8 @@ export default { ...@@ -98,8 +115,8 @@ export default {
imageStyle: 'width: 40rpx;height:36rpx', imageStyle: 'width: 40rpx;height:36rpx',
style: 'background-color: #f6f7fa;color: #333333;', style: 'background-color: #f6f7fa;color: #333333;',
currentStyle: 'background-color: #05C160;color: #ffffff;', currentStyle: 'background-color: #05C160;color: #ffffff;',
code: this.info.wxImage,
addText: '点击上传微信收款码截图', addText: '点击上传微信收款码截图',
type: 'WX',
}, },
{ {
title: '支付宝', title: '支付宝',
...@@ -109,8 +126,8 @@ export default { ...@@ -109,8 +126,8 @@ export default {
imageStyle: 'width: 36rpx;height:36rpx', imageStyle: 'width: 36rpx;height:36rpx',
style: 'background-color: #f6f7fa;color: #333333;', style: 'background-color: #f6f7fa;color: #333333;',
currentStyle: 'background-color: #1778FB;color: #ffffff;', currentStyle: 'background-color: #1778FB;color: #ffffff;',
code: this.info.aliImage,
addText: '点击上传支付宝收款码截图', addText: '点击上传支付宝收款码截图',
type: 'ZFB',
}, },
{ {
title: '其他', title: '其他',
...@@ -120,8 +137,8 @@ export default { ...@@ -120,8 +137,8 @@ export default {
imageStyle: 'width: 36rpx;height:36rpx', imageStyle: 'width: 36rpx;height:36rpx',
style: 'background-color: #f6f7fa;color: #333333;', style: 'background-color: #f6f7fa;color: #333333;',
currentStyle: 'background-color: #FCB82A;color: #ffffff;', currentStyle: 'background-color: #FCB82A;color: #ffffff;',
code: this.info.otherImage,
addText: '点击上传其他收款码截图', addText: '点击上传其他收款码截图',
type: 'OTHER',
}, },
] ]
}, },
...@@ -136,17 +153,47 @@ export default { ...@@ -136,17 +153,47 @@ export default {
}, },
}, },
onLoad(options) { onLoad(options) {
this.init() this.getQiNiuToken()
this.getCollectionCode()
}, },
onShow() {}, onShow() {},
methods: { methods: {
init() { getQiNiuToken() {
getQiNiuToken().then((res) => {
if (res.data) {
this.qiniuToken = res.data
}
})
},
getCollectionCode() {
this.loading = true
getCollectionCode()
.then((res) => {
if (res.data) {
for (var item of res.data.codes) {
this.info[item.type.code] = item
}
this.loading = false
}
})
.catch((res) => {
this.loading = false
})
},
setCollectionCode(url) {
this.loading = true
setCollectionCode({
type: this.currentSetting.type,
url: url,
})
.then((res) => {
if (res.data) {
this.loading = false this.loading = false
this.info = {
wxImage: '',
aliImage: 'http://static-book.kaying.cc/icon/beijing%403x.png',
otherImage: '',
} }
})
.catch((res) => {
this.loading = false
})
}, },
handleSelect(index) { handleSelect(index) {
this.currentIndex = index this.currentIndex = index
...@@ -154,8 +201,16 @@ export default { ...@@ -154,8 +201,16 @@ export default {
addCode() { addCode() {
// 上传图片 // 上传图片
upload.getPhoto(this.qiniuToken).then((res) => { upload.getPhoto(this.qiniuToken).then((res) => {
console.log('upload success', res) uni.hideLoading()
this.$refs.uToast.show({
title: '上传成功',
type: 'success',
duration: 1500,
callback: () => {},
})
var url = UPLOAD_FILE_HOST + res.key
this.info[this.currentSetting.type].url = url
this.setCollectionCode(url)
}) })
}, },
}, },
...@@ -221,6 +276,11 @@ export default { ...@@ -221,6 +276,11 @@ export default {
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }
} }
.loading-view {
display: flex;
align-items: center;
justify-content: center;
}
} }
} }
} }
......
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
return [ return [
{ {
image: this.baseUrl + 'shoukuanma@3x.png', image: this.baseUrl + 'shoukuanma@3x.png',
path: '', path: 'pages/card/payee-code',
name: '收款码', name: '收款码',
}, },
{ {
...@@ -314,7 +314,6 @@ export default { ...@@ -314,7 +314,6 @@ export default {
monthRecord() { monthRecord() {
monthRecord({ month: this.date + '-01' }) monthRecord({ month: this.date + '-01' })
.then((res) => { .then((res) => {
console.log('------monthRecord--------', res)
var obj = res.data var obj = res.data
if (obj) { if (obj) {
this.money = { this.money = {
...@@ -325,132 +324,13 @@ export default { ...@@ -325,132 +324,13 @@ export default {
} }
}) })
.catch((res) => { .catch((res) => {
console.log('---catch---monthRecord--------', res)
}) })
}, },
bookRecord() { bookRecord() {
bookRecord({}).then((res) => { bookRecord({}).then((res) => {
console.log('------bookRecord--------', res)
if (res.data) { if (res.data) {
this.list = res.data this.list = res.data
} }
// 测试
this.list = [
{
day: '2022-07-21',
expense: 15,
income: 16,
list: [
{
amount: 0,
classification: {
bookDetailIcon: '',
bookIcon: 'jiaotong0@3x.png',
id: 0,
name: 'fdsaf',
recordIcon: '',
recordSelectedIcon: '',
useType: '',
},
happenTime: '11:10',
hasAttach: true,
id: 0,
remark: 'a',
repairId: 0,
type: 'INCOME',
},
{
amount: 0,
classification: {
bookDetailIcon: '',
bookIcon: 'jiaotong0@3x.png',
id: 0,
name: 'fdsaf',
recordIcon: '',
recordSelectedIcon: '',
useType: '',
},
happenTime: '11:10',
hasAttach: true,
id: 0,
remark: 'a',
repairId: 0,
type: 'INCOME',
},
{
amount: 0,
classification: {
bookDetailIcon: '',
bookIcon: 'jiaotong0@3x.png',
id: 0,
name: 'fdsaf',
recordIcon: '',
recordSelectedIcon: '',
useType: '',
},
happenTime: '11:10',
hasAttach: true,
id: 0,
remark:
'fdsafda范德萨发撒发撒旦范德萨发撒多发点撒范德萨发撒地方sfasd',
repairId: 0,
type: 'INCOME',
},
],
},
{
day: '2022-07-20',
expense: 15,
income: 16,
list: [
{
amount: 0,
classification: {
bookDetailIcon: '',
bookIcon: 'jiaotong0@3x.png',
id: 0,
name: 'fdsaf',
recordIcon: '',
recordSelectedIcon: '',
useType: '',
},
happenTime: '11:10',
hasAttach: true,
id: 0,
remark:
'fdsafda范德萨发撒发撒旦范德萨发撒多发点撒范德萨发撒地方sfasd',
repairId: 0,
type: 'INCOME',
},
],
},
{
day: '2022-07-19',
expense: 15,
income: 16,
list: [
{
amount: 0,
classification: {
bookDetailIcon: '',
bookIcon: 'jiaotong0@3x.png',
id: 0,
name: 'fdsaf',
recordIcon: '',
recordSelectedIcon: '',
useType: '',
},
happenTime: '11:10',
hasAttach: true,
id: 0,
remark:
'fdsafda范德萨发撒发撒旦范德萨发撒多发点撒范德萨发撒地方sfasd',
repairId: 0,
type: 'INCOME',
},
],
},
]
}) })
}, },
handleClickTool(path) { handleClickTool(path) {
......
...@@ -160,6 +160,7 @@ ...@@ -160,6 +160,7 @@
safe-area-inset-bottom safe-area-inset-bottom
@confirm="handleComfirmTime" @confirm="handleComfirmTime"
></u-picker> ></u-picker>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
...@@ -303,7 +304,7 @@ export default { ...@@ -303,7 +304,7 @@ export default {
}, },
onLoad(options) { onLoad(options) {
// 测试数据 // 测试数据
options.billId = '1550685581418168320' // options.billId = '1550685581418168320'
if (options && options.billId) { if (options && options.billId) {
this.billId = options.billId this.billId = options.billId
...@@ -335,47 +336,6 @@ export default { ...@@ -335,47 +336,6 @@ export default {
}) })
}, },
setForm(data) { setForm(data) {
// 测试
// var data = {
// id: '8778788',
// settleState: 'NO',
// sendStatus: 'WAIT',
// customer: {
// name: '张三',
// phone: '1231312313423',
// },
// repairTime: '2022-07-07 12:23:43',
// actualAmount: '40',
// receivableAmount: '80',
// address: '详细地址:广东省深圳市',
// remark: '维修格力牌柜机一台,更换压缩机收费800\nfdsadfsafdasfads',
// attach: [
// 'http://reu2asz23.hn-bkt.clouddn.com/icon%2Fbeizhutu%403x.png',
// 'http://reu2asz23.hn-bkt.clouddn.com/icon/wuweixiuzhangdan@3x.png',
// 'http://reu2asz23.hn-bkt.clouddn.com/icon/wusousuojieguo@3x.png',
// ],
// histories: [
// {
// createTime: '2099-98-76 09:09:87',
// type: 'SETTLE',
// },
// {
// createTime: '2099-98-76 09:09:87',
// type: 'ENSURE',
// },
// {
// createTime: '2099-98-76 09:09:87',
// type: 'SEND',
// },
// {
// createTime: '2099-98-76 09:09:87',
// type: 'CREATE',
// },
// ],
// syncFlag: false,
// latitude: '22.55329',
// longitude: '113.88308'
// }
this.form = { this.form = {
id: data.id, id: data.id,
customerName: data.customer.name, customerName: data.customer.name,
......
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
@confirm="handleClickConfirm" @confirm="handleClickConfirm"
/> />
<FabView @click="handleClickFab" /> <FabView @click="handleClickFab" />
<u-toast ref="uToast" />
</view> </view>
</template> </template>
...@@ -172,7 +173,6 @@ export default { ...@@ -172,7 +173,6 @@ export default {
}, },
}, },
onLoad() { onLoad() {
this.init()
uni.$on('maintain-bill-detail', (res) => { uni.$on('maintain-bill-detail', (res) => {
this.reloadList() this.reloadList()
}) })
...@@ -193,24 +193,6 @@ export default { ...@@ -193,24 +193,6 @@ export default {
}, },
}) })
}, },
init() {
this.loading = false
this.lists = [
{
id: '766766777878',
name: '张三',
phone: '18589096795',
location:
'发大事发声范德萨范飞大帅府撒风萨顶顶发大水德萨范德萨范德萨范德萨范大师范德萨范德萨发大水',
time: '2099-33-09 33:90',
statusA: '未确认',
statusB: '未结清',
a: '22',
b: '33',
c: '44',
},
]
},
reloadList() { reloadList() {
this.current = 1 this.current = 1
this.loadStatus = 'loading' this.loadStatus = 'loading'
...@@ -231,71 +213,6 @@ export default { ...@@ -231,71 +213,6 @@ export default {
}) })
.then((res) => { .then((res) => {
let data = res.data let data = res.data
// 测试
// let data = {
// records: [
// {
// id: '878788',
// settleState: 'YES',
// sendStatus: 'WAIT',
// customerName: '张三',
// customerPhone: '14141241413',
// repairTime: '2077-87-87 12:23:43',
// actualAmount: '20',
// receivableAmount: '80',
// },
// {
// id: '8783788',
// settleState: 'NO',
// sendStatus: 'SURE',
// customerName: '张三',
// customerPhone: '14141241413',
// repairTime: '2077-87-87 12:23:43',
// actualAmount: '80',
// receivableAmount: '80',
// },
// {
// id: '8787488',
// settleState: 'NO',
// sendStatus: 'WAIT',
// customerName: '张三',
// customerPhone: '14141241413',
// repairTime: '2077-87-87 12:23:43',
// actualAmount: '20',
// receivableAmount: '80',
// },
// {
// id: '8785788',
// settleState: 'YES',
// sendStatus: 'SURE',
// customerName: '张三',
// customerPhone: '14141241413',
// repairTime: '2077-87-87 12:23:43',
// actualAmount: '80',
// receivableAmount: '80',
// },
// {
// id: '8786788',
// settleState: 'YES',
// sendStatus: 'WAIT_SURE',
// customerName: '张三',
// customerPhone: '14141241413',
// repairTime: '2077-87-87 12:23:43',
// actualAmount: '20',
// receivableAmount: '80',
// },
// {
// id: '8778788',
// settleState: 'NO',
// sendStatus: 'WAIT',
// customerName: '张三',
// customerPhone: '14141241413',
// repairTime: '2077-87-87 12:23:43',
// actualAmount: '80',
// receivableAmount: '80',
// },
// ],
// }
if (this.current == 1) { if (this.current == 1) {
this.records = [] this.records = []
} }
......
...@@ -128,6 +128,7 @@ ...@@ -128,6 +128,7 @@
confirmText="确认" confirmText="确认"
content="确认删除该条明细吗?" content="确认删除该条明细吗?"
/> />
<u-toast ref="uToast" />
</view> </view>
</template> </template>
...@@ -225,7 +226,7 @@ export default { ...@@ -225,7 +226,7 @@ export default {
}, },
onLoad(options) { onLoad(options) {
// 测试数据 // 测试数据
options.billId = '1550685581418168320' // options.billId = '1550685581418168320'
if (options && options.billId) { if (options && options.billId) {
this.billId = options.billId this.billId = options.billId
......
...@@ -164,6 +164,7 @@ ...@@ -164,6 +164,7 @@
:title="shareTitle" :title="shareTitle"
:url="shareUrl" :url="shareUrl"
/> />
<u-toast ref="uToast" />
</view> </view>
</template> </template>
...@@ -172,6 +173,7 @@ import NavbarRight from '@/components/navbar-right' ...@@ -172,6 +173,7 @@ import NavbarRight from '@/components/navbar-right'
import PopQRCode from '@/components/pop-qrCode' import PopQRCode from '@/components/pop-qrCode'
import { repairDetail,repairSign } from '@/api/maintain/index.js' import { repairDetail,repairSign } from '@/api/maintain/index.js'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { maintain_share_url } from '@/utils/config.js';
export default { export default {
components: { components: {
...@@ -202,7 +204,7 @@ export default { ...@@ -202,7 +204,7 @@ export default {
return `?billId=${this.billId}&shareUserId=${this.userInfo.id}` return `?billId=${this.billId}&shareUserId=${this.userInfo.id}`
}, },
shareUrl() { shareUrl() {
return this.maintainShareUrl + this.shareParams return maintain_share_url + this.shareParams
}, },
receive() { receive() {
return this.shareUserId && (this.shareUserId != this.userInfo.id) return this.shareUserId && (this.shareUserId != this.userInfo.id)
...@@ -325,7 +327,7 @@ export default { ...@@ -325,7 +327,7 @@ export default {
} }
// 测试数据 // 测试数据
this.billId = '1550685581418168320' // this.billId = '1550685581418168320'
this.repairDetail() this.repairDetail()
}, },
......
...@@ -16,6 +16,10 @@ export const mineBaseUrl = process.uniEnv.qn_base_url + 'mine/'; // 七牛云对 ...@@ -16,6 +16,10 @@ export const mineBaseUrl = process.uniEnv.qn_base_url + 'mine/'; // 七牛云对
export const billBaseUrl = process.uniEnv.qn_base_url + 'bill/'; // 七牛云对象存储图片地址-账单 export const billBaseUrl = process.uniEnv.qn_base_url + 'bill/'; // 七牛云对象存储图片地址-账单
export const planBaseUrl = process.uniEnv.qn_base_url + 'plan/'; // 七牛云对象存储图片地址-行程 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 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 whiteList = ['/pages/index/index', '/pages/index/schedule/schedule', '/pages/index/bill/bill', export const whiteList = ['/pages/index/index', '/pages/index/schedule/schedule', '/pages/index/bill/bill',
'/pages/index/mine/mine', '/pages/login/login', '/pages/login/quick-login/quick-login', '/pages/index/mine/mine', '/pages/login/login', '/pages/login/quick-login/quick-login',
'/pages/login/binding-phone/binding-phone', '/pages/login/agreement/agreement','/pages/mine/update-log/update-log','/pages/mine/about/about' '/pages/login/binding-phone/binding-phone', '/pages/login/agreement/agreement','/pages/mine/update-log/update-log','/pages/mine/about/about'
......
...@@ -85,7 +85,7 @@ function uploadOneWHPhoto(token, type = 2, block) { ...@@ -85,7 +85,7 @@ function uploadOneWHPhoto(token, type = 2, block) {
name: 'file', name: 'file',
formData: { formData: {
token: token, token: token,
key: key, key: 'upload-image/' + key,
}, },
complete: (res) => { complete: (res) => {
if (res.statusCode === 200) { if (res.statusCode === 200) {
...@@ -143,7 +143,7 @@ function upload(filePath, token, duration = '') { ...@@ -143,7 +143,7 @@ function upload(filePath, token, duration = '') {
name: 'file', name: 'file',
formData: { formData: {
token: token, token: token,
key: key, key: 'upload-image/' + key,
}, },
complete: (res) => { complete: (res) => {
if (res.statusCode === 200) { if (res.statusCode === 200) {
......
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