Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
fc3df2f0
Commit
fc3df2f0
authored
Aug 29, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 分享
parent
9c280e6b
Pipeline
#3344
canceled with stages
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
295 additions
and
47 deletions
+295
-47
App.vue
App.vue
+16
-13
index.vue
components/bottom-share/index.vue
+143
-0
index.vue
components/pop-normal/index.vue
+7
-5
manifest.json
manifest.json
+6
-10
index.vue
pages/card/index.vue
+30
-1
index.vue
pages/index/index.vue
+47
-12
schedule.vue
pages/index/schedule/schedule.vue
+3
-0
detail.vue
pages/maintain-bill/detail.vue
+8
-3
show.vue
pages/maintain-bill/show.vue
+33
-3
config.js
utils/config.js
+2
-0
No files found.
App.vue
View file @
fc3df2f0
...
@@ -68,10 +68,9 @@
...
@@ -68,10 +68,9 @@
});
});
}
}
},
},
settingPush
()
{
settingPush
()
{
uni
.
getPushClientId
({
uni
.
getPushClientId
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
console
.
log
(
'--------getPushClientId--------'
,
res
.
cid
);
uni
.
setStorageSync
(
'pushClientId'
,
res
.
cid
)
uni
.
setStorageSync
(
'pushClientId'
,
res
.
cid
)
},
},
fail
(
err
)
{
fail
(
err
)
{
...
@@ -79,18 +78,22 @@
...
@@ -79,18 +78,22 @@
}
}
})
})
//监听push推送通知
//监听push推送通知
uni
.
onPushMessage
(
'receive'
,
({
type
,
data
})
=>
{
//console.log(type,title,content,payload);
uni
.
onPushMessage
((
res
)
=>
{
console
.
log
(
'-------receive----------'
,
type
,
title
,
content
,
payload
);
if
(
res
.
type
==
'receive'
)
{
if
(
type
==
'receive'
||
uni
.
getSystemInfoSync
().
platform
!=
"ios"
){
//如果type!='receive'是自己本地插件的push消息栏,“拦截”避免死循环',安卓系统没有这个问题
console
.
log
(
'-------receive----------'
,
res
);
uni
.
createPushMessage
(
data
);
if
(
res
.
type
==
'receive'
||
uni
.
getSystemInfoSync
().
platform
!=
"ios"
){
//如果type!='receive'是自己本地插件的push消息栏,“拦截”避免死循环',安卓系统没有这个问题
uni
.
createPushMessage
(
res
.
data
);
}
}
else
if
(
res
.
type
==
'click'
){
console
.
log
(
'-------click----------'
,
res
.
data
)
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/index/schedule/schedule'
});
},
500
)
}
}
});
//监听点击通知栏
uni
.
onPushMessage
(
'click'
,
({
type
,
data
})
=>
{
console
.
log
(
'-------click----------'
,
data
)
uni
.
switchTab
({
url
:
'/pages/index/schedule/schedule'
});
});
});
}
}
}
}
...
...
components/bottom-share/index.vue
0 → 100644
View file @
fc3df2f0
<
template
>
<u-popup
v-model=
"show"
mode=
"bottom"
@
close=
"handleClose"
length=
"auto"
>
<view
class=
"pop-view"
>
<view
class=
"bottom-view"
>
<u-button
v-for=
"(item, index) in list"
:key=
"index"
@
click=
"handleClick(index)"
:customStyle=
"buttonStyle"
>
<view
class=
"button-view"
>
<image
:src=
"item.image"
class=
"image-view"
></image>
<view
class=
"title-view"
>
{{
item
.
title
}}
</view>
</view>
</u-button>
</view>
</view>
</u-popup>
</
template
>
<
script
>
const
app
=
getApp
()
import
{
wxMiniId
,
webUrl
}
from
'@/utils/config.js'
;
export
default
{
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
,
},
},
data
()
{
return
{
show
:
false
,
}
},
computed
:
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
list
()
{
return
[
{
image
:
this
.
baseUrl
+
'share_weixin.png'
,
title
:
'分享好友'
,
scene
:
'WXSceneSession'
,
type
:
5
,
// 小程序
wxMiniId
:
wxMiniId
,
wxMiniUrl
:
'https://system.banshouhui.com/shareqrcode'
,
},
{
image
:
this
.
baseUrl
+
'share_pengyouquan.png'
,
title
:
'朋友圈'
,
scene
:
'WXSceneTimeline'
,
type
:
0
,
// 图文
wxMiniId
:
wxMiniId
,
wxMiniUrl
:
webUrl
,
},
]
},
buttonStyle
()
{
return
{
with
:
'140rpx'
,
height
:
'200rpx'
,
backgroundColor
:
'transparent'
,
color
:
'#F6F7FA !important'
,
}
},
},
watch
:
{
visible
(
val
)
{
this
.
changeTab
(
val
)
this
.
show
=
val
},
},
methods
:
{
handleClick
(
index
)
{
var
item
=
this
.
list
[
index
]
this
.
$emit
(
'click'
,
item
)
this
.
changeVisibleValue
(
false
)
},
changeVisibleValue
(
val
)
{
this
.
$emit
(
'update:visible'
,
val
)
},
handleClose
()
{
this
.
changeVisibleValue
(
false
)
},
changeTab
(
val
)
{
var
pages
=
getCurrentPages
()
var
array
=
[
'pages/index/index'
,
'pages/mine/mine'
,
'pages/pilot-lamp/index'
,
'pages/datum/index'
,
]
var
current
=
pages
[
pages
.
length
-
1
].
route
var
isTab
=
current
.
indexOf
(
'pages/index'
)
!=
-
1
if
(
isTab
)
{
if
(
val
)
{
uni
.
hideTabBar
({
complete
:
()
=>
{},
})
}
else
{
uni
.
showTabBar
({
complete
:
()
=>
{},
})
}
}
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.pop-view
{
overflow
:
hidden
;
background-color
:
#f6f7fa
;
padding-bottom
:
36rpx
;
padding-top
:
36rpx
;
position
:
relative
;
width
:
100%
;
height
:
100%
;
.bottom-view
{
display
:
flex
;
justify-content
:
space-around
;
align-items
:
center
;
.button-view
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.image-view
{
width
:
104rpx
;
height
:
104rpx
;
}
.title-view
{
color
:
#333
;
font-size
:
28rpx
;
}
}
}
}
</
style
>
components/pop-normal/index.vue
View file @
fc3df2f0
...
@@ -61,8 +61,11 @@
...
@@ -61,8 +61,11 @@
</u-button>
</u-button>
</view>
</view>
</view>
</view>
<view
v-if=
"isShare"
class=
"bottom-tip"
>
<view
class=
"tip-view"
>
{{
bottomTip
}}
</view>
</view>
<view
<view
v-if=
"bottomTip"
v-
else-
if=
"bottomTip"
:class=
"['bottom-tip',
{ select: select }]"
:class=
"['bottom-tip',
{ select: select }]"
:hover-class="isSelect ? 'u-hover-class' : ''"
:hover-class="isSelect ? 'u-hover-class' : ''"
@click="$u.throttle(handleSelect, 500)"
@click="$u.throttle(handleSelect, 500)"
...
@@ -141,9 +144,6 @@ export default {
...
@@ -141,9 +144,6 @@ export default {
isSelect
()
{
isSelect
()
{
return
this
.
type
==
'select'
return
this
.
type
==
'select'
},
},
isShare
()
{
return
this
.
type
==
'share'
},
isRenew
()
{
isRenew
()
{
return
this
.
type
==
'renew'
return
this
.
type
==
'renew'
},
},
...
@@ -186,10 +186,12 @@ export default {
...
@@ -186,10 +186,12 @@ export default {
},
},
handleClickCancel
()
{
handleClickCancel
()
{
this
.
changeVisibleValue
(
false
)
this
.
changeVisibleValue
(
false
)
this
.
$emit
(
'cancel'
)
if
(
this
.
isShare
)
{
if
(
this
.
isShare
)
{
// 分享领会员
// 分享领会员
this
.
$emit
(
'share'
)
this
.
$emit
(
'share'
)
}
else
{
this
.
$emit
(
'cancel'
)
}
}
},
},
handleSelect
()
{
handleSelect
()
{
...
...
manifest.json
View file @
fc3df2f0
...
@@ -32,11 +32,11 @@
...
@@ -32,11 +32,11 @@
"Maps"
:
{},
"Maps"
:
{},
"Push"
:
{}
"Push"
:
{}
},
},
"safearea"
:
{
"safearea"
:
{
"bottom"
:
{
"bottom"
:
{
"offset"
:
"none"
"offset"
:
"none"
}
}
},
},
/*
应用发布信息
*/
/*
应用发布信息
*/
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
...
@@ -120,11 +120,7 @@
...
@@ -120,11 +120,7 @@
"version"
:
"2"
,
"version"
:
"2"
,
"offline"
:
true
,
"offline"
:
true
,
"hms"
:
{},
"hms"
:
{},
"oppo"
:
{},
"oppo"
:
{}
"vivo"
:
{},
"mi"
:
{},
"meizu"
:
{},
"fcm"
:
{}
}
}
}
}
},
},
...
...
pages/card/index.vue
View file @
fc3df2f0
...
@@ -108,6 +108,7 @@
...
@@ -108,6 +108,7 @@
</scroll-view>
</scroll-view>
</view>
</view>
<u-toast
ref=
"uToast"
/>
<u-toast
ref=
"uToast"
/>
<BottomShare
:visible
.
sync=
"showShare"
@
click=
"handleClickShare"
/>
</view>
</view>
</template>
</template>
...
@@ -116,6 +117,7 @@ import NavbarRight from '@/components/navbar-right'
...
@@ -116,6 +117,7 @@ import NavbarRight from '@/components/navbar-right'
import
NoData
from
'@/components/no-data'
import
NoData
from
'@/components/no-data'
import
CardSwiper
from
'@/components/cell-card-swiper'
import
CardSwiper
from
'@/components/cell-card-swiper'
import
CellRelation
from
'@/components/cell-relation'
import
CellRelation
from
'@/components/cell-relation'
import
BottomShare
from
'@/components/bottom-share/index.vue'
import
{
import
{
getBusinessCardSelf
,
getBusinessCardSelf
,
getBusinessCardRecord
,
getBusinessCardRecord
,
...
@@ -130,6 +132,7 @@ export default {
...
@@ -130,6 +132,7 @@ export default {
NoData
,
NoData
,
CardSwiper
,
CardSwiper
,
CellRelation
,
CellRelation
,
BottomShare
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -146,7 +149,8 @@ export default {
...
@@ -146,7 +149,8 @@ export default {
_freshing
:
false
,
_freshing
:
false
,
loadingCard
:
false
,
loadingCard
:
false
,
currentIndex
:
0
,
currentIndex
:
0
,
shareImage
:
''
shareImage
:
''
,
showShare
:
false
,
}
}
},
},
computed
:
{
computed
:
{
...
@@ -344,6 +348,9 @@ export default {
...
@@ -344,6 +348,9 @@ export default {
})
})
// #endif
// #endif
}
else
if
(
index
==
2
)
{
}
else
if
(
index
==
2
)
{
// #ifdef APP-PLUS
this
.
showShare
=
true
// #endif
}
}
},
},
handleClickAdd
()
{
handleClickAdd
()
{
...
@@ -369,6 +376,28 @@ export default {
...
@@ -369,6 +376,28 @@ export default {
handleUpdate
(
url
)
{
handleUpdate
(
url
)
{
this
.
shareImage
=
url
this
.
shareImage
=
url
},
},
handleClickShare
(
item
)
{
uni
.
share
({
provider
:
'weixin'
,
scene
:
item
.
scene
,
type
:
item
.
type
,
href
:
item
.
wxMiniUrl
,
imageUrl
:
this
.
shareImage
,
title
:
this
.
shareTitle
,
miniProgram
:
{
id
:
item
.
wxMiniId
,
path
:
'pages/card/share'
+
this
.
shareParams
,
type
:
0
,
webUrl
:
item
.
wxMiniUrl
},
success
:
ret
=>
{
console
.
log
(
JSON
.
stringify
(
ret
));
},
fail
:
function
(
err
)
{
console
.
log
(
"fail:"
+
JSON
.
stringify
(
err
));
}
})
},
// 朋友圈
// 朋友圈
onShareTimeline
(
res
)
{
onShareTimeline
(
res
)
{
return
{
return
{
...
...
pages/index/index.vue
View file @
fc3df2f0
...
@@ -102,9 +102,8 @@
...
@@ -102,9 +102,8 @@
:params=
"params"
:params=
"params"
confirm-color=
"#02A074"
confirm-color=
"#02A074"
@
confirm=
"handleComfirmDate"
@
confirm=
"handleComfirmDate"
bottomTip=
"※ 体验会员,仅非会员用户领取,每个ID限领1次"
></u-picker>
></u-picker>
<PopNormal
:visible
.
sync=
"visible"
:type=
"currentPop.type"
:confirmText=
"currentPop.confirmText"
:cancelText=
"currentPop.cancelText"
@
share=
"handleClickShare"
/>
<PopNormal
:visible
.
sync=
"visible"
:type=
"currentPop.type"
:confirmText=
"currentPop.confirmText"
:cancelText=
"currentPop.cancelText"
@
share=
"handleClickShare"
bottomTip=
"※ 体验会员,仅非会员用户领取,每个ID限领1次"
/>
<u-toast
ref=
"uToast"
/>
<u-toast
ref=
"uToast"
/>
<mid-popup
ref=
"midPopup"
></mid-popup>
<mid-popup
ref=
"midPopup"
></mid-popup>
<u-tabbar
:list=
"tabbar"
:mid-button=
"true"
:mid-button-size=
"80"
:before-switch=
"beforeSwitch"
></u-tabbar>
<u-tabbar
:list=
"tabbar"
:mid-button=
"true"
:mid-button-size=
"80"
:before-switch=
"beforeSwitch"
></u-tabbar>
...
@@ -116,7 +115,7 @@ import MidPopup from '@/components/mid-popup/mid-popup.vue';
...
@@ -116,7 +115,7 @@ import MidPopup from '@/components/mid-popup/mid-popup.vue';
import
BillList
from
'@/components/bill-list'
;
import
BillList
from
'@/components/bill-list'
;
import
PopNormal
from
'@/components/pop-normal'
;
import
PopNormal
from
'@/components/pop-normal'
;
import
{
tabbar
}
from
'@/utils/settings.js'
;
import
{
tabbar
}
from
'@/utils/settings.js'
;
import
{
indexBaseUrl
,
mineBaseUrl
,
baseUrl
}
from
'@/utils/config.js'
;
import
{
indexBaseUrl
,
mineBaseUrl
,
baseUrl
,
wxMiniId
,
webUrl
}
from
'@/utils/config.js'
;
import
{
getWeather
,
bookRecord
,
monthRecord
}
from
'@/api/maintain/index.js'
;
import
{
getWeather
,
bookRecord
,
monthRecord
}
from
'@/api/maintain/index.js'
;
import
{
checkVip
,
checkToken
,
getSetting
,
formatCount
}
from
'@/utils/common.js'
;
import
{
checkVip
,
checkToken
,
getSetting
,
formatCount
}
from
'@/utils/common.js'
;
import
{
checkOpenPermission
,
checkOpenService
}
from
'@/utils/app-plus-auth.js'
;
import
{
checkOpenPermission
,
checkOpenService
}
from
'@/utils/app-plus-auth.js'
;
...
@@ -367,6 +366,8 @@ export default {
...
@@ -367,6 +366,8 @@ export default {
return
true
;
return
true
;
},
},
handleSelectDate
()
{
handleSelectDate
()
{
this
.
visible
=
true
return
this
.
showDatePicker
=
true
;
this
.
showDatePicker
=
true
;
},
},
handleComfirmDate
(
date
)
{
handleComfirmDate
(
date
)
{
...
@@ -494,16 +495,50 @@ export default {
...
@@ -494,16 +495,50 @@ export default {
});
});
},
},
handleClickShare
()
{
handleClickShare
()
{
if
(
this
.
userInfo
.
vip
.
code
==
'NO'
)
{
var
block
=
()
=>
{
this
.
isVipShare
=
true
;
if
(
this
.
userInfo
.
vip
.
code
==
'NO'
)
{
experienceVip
()
this
.
isVipShare
=
true
;
.
then
(
res
=>
{
experienceVip
()
if
(
res
.
code
==
0
)
{
.
then
(
res
=>
{
this
.
shareSuccess
=
true
;
if
(
res
.
code
==
0
)
{
}
this
.
shareSuccess
=
true
;
})
// #ifdef APP-PLUS
.
catch
(
res
=>
{});
this
.
shareSuccessTip
()
// #endif
}
})
.
catch
(
res
=>
{});
}
}
}
// #ifdef MP
block
()
// #endif
// #ifdef APP-PLUS
uni
.
share
({
provider
:
'weixin'
,
scene
:
'WXSceneSession'
,
type
:
5
,
href
:
webUrl
,
imageUrl
:
this
.
shareImage
,
title
:
'扳手记账'
,
miniProgram
:
{
id
:
wxMiniId
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
type
:
0
,
webUrl
:
webUrl
},
success
:
ret
=>
{
console
.
log
(
JSON
.
stringify
(
ret
));
block
()
},
fail
:
function
(
err
)
{
console
.
log
(
"fail:"
+
JSON
.
stringify
(
err
));
}
})
// #endif
},
handleShare
()
{
},
},
// 朋友圈
// 朋友圈
onShareTimeline
(
res
)
{
onShareTimeline
(
res
)
{
...
...
pages/index/schedule/schedule.vue
View file @
fc3df2f0
...
@@ -26,6 +26,7 @@ import MidPopup from '@/components/mid-popup/mid-popup.vue';
...
@@ -26,6 +26,7 @@ import MidPopup from '@/components/mid-popup/mid-popup.vue';
import
PlanView
from
'./components/plan-view.vue'
;
import
PlanView
from
'./components/plan-view.vue'
;
import
{
tabbar
}
from
'@/utils/settings.js'
;
import
{
tabbar
}
from
'@/utils/settings.js'
;
import
{
getSign
}
from
'@/api/schedule/index.js'
;
import
{
getSign
}
from
'@/api/schedule/index.js'
;
export
default
{
export
default
{
components
:
{
components
:
{
MidPopup
,
MidPopup
,
...
@@ -59,6 +60,8 @@ export default {
...
@@ -59,6 +60,8 @@ export default {
this
.
getList
();
this
.
getList
();
this
.
getSignList
()
this
.
getSignList
()
}
}
plus
.
runtime
.
setBadgeNumber
(
0
)
},
},
methods
:
{
methods
:
{
beforeSwitch
(
index
)
{
beforeSwitch
(
index
)
{
...
...
pages/maintain-bill/detail.vue
View file @
fc3df2f0
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
@
refresherrestore=
"onRestore"
@
refresherrestore=
"onRestore"
enable-back-to-top
enable-back-to-top
>
>
<view
class=
"scroll-view"
>
<view
class=
"status-view"
<view
class=
"status-view"
><text
><text
:style=
"'color:' + statusSetting[info.settleState.code].color"
:style=
"'color:' + statusSetting[info.settleState.code].color"
...
@@ -114,7 +115,8 @@
...
@@ -114,7 +115,8 @@
</u-time-line-item>
</u-time-line-item>
</u-time-line>
</u-time-line>
</view>
</view>
</scroll-view>
</view>
</scroll-view>
</view>
</view>
<view
class=
"bottom-view"
v-if=
"info.id"
>
<view
class=
"bottom-view"
v-if=
"info.id"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
...
@@ -379,7 +381,7 @@ export default {
...
@@ -379,7 +381,7 @@ export default {
'border-radius'
:
'16rpx'
,
'border-radius'
:
'16rpx'
,
width
:
this
.
isSure
?
'372rpx'
:
'260rpx'
,
width
:
this
.
isSure
?
'372rpx'
:
'260rpx'
,
background
:
this
.
isSure
background
:
this
.
isSure
?
''
?
'
#02a074
'
:
'linear-gradient(100deg, transparent 32rpx, #02a074 0)'
,
:
'linear-gradient(100deg, transparent 32rpx, #02a074 0)'
,
}
}
},
},
...
@@ -627,7 +629,10 @@ export default {
...
@@ -627,7 +629,10 @@ export default {
.content-view
{
.content-view
{
height
:
100%
;
height
:
100%
;
overflow
:
auto
;
overflow
:
auto
;
padding
:
16rpx
24rpx
44rpx
24rpx
;
padding
:
16rpx
24rpx
0rpx
24rpx
;
.scroll-view
{
padding-bottom
:
44rpx
;
}
.status-view
{
.status-view
{
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
40rpx
;
font-size
:
40rpx
;
...
...
pages/maintain-bill/show.vue
View file @
fc3df2f0
...
@@ -246,7 +246,7 @@ import QRCodeView from '@/components/qr-code-view'
...
@@ -246,7 +246,7 @@ import QRCodeView from '@/components/qr-code-view'
import
{
formatCount
}
from
'@/utils/common.js'
import
{
formatCount
}
from
'@/utils/common.js'
import
{
repairDetail
,
repairSign
,
repairSend
}
from
'@/api/maintain/index.js'
import
{
repairDetail
,
repairSign
,
repairSend
}
from
'@/api/maintain/index.js'
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
{
maintain_share_url
}
from
'@/utils/config.js'
import
{
maintain_share_url
,
wxMiniId
,
webUrl
}
from
'@/utils/config.js'
import
{
getSetting
}
from
'@/utils/common.js'
import
{
getSetting
}
from
'@/utils/common.js'
import
{
checkToken
}
from
'@/utils/common.js'
import
{
checkToken
}
from
'@/utils/common.js'
...
@@ -544,7 +544,37 @@ export default {
...
@@ -544,7 +544,37 @@ export default {
},
},
handleClickShare
()
{
handleClickShare
()
{
this
.
repairSend
()
this
.
repairSend
()
// #ifdef APP-PLUS
this
.
handleShare
()
// #endif
},
},
handleShare
()
{
this
.
currentBlock
=
(
url
)
=>
{
uni
.
hideLoading
()
uni
.
share
({
provider
:
'weixin'
,
scene
:
'WXSceneSession'
,
type
:
5
,
href
:
webUrl
,
imageUrl
:
url
,
title
:
'发送账单'
,
miniProgram
:
{
id
:
wxMiniId
,
path
:
'pages/maintain-bill/show'
+
this
.
shareParams
,
type
:
0
,
webUrl
:
webUrl
},
success
:
ret
=>
{
console
.
log
(
JSON
.
stringify
(
ret
));
},
fail
:
function
(
err
)
{
console
.
log
(
"fail:"
+
JSON
.
stringify
(
err
));
}
})
}
this
.
saveBillImage
(
'加载中'
)
},
handleClickSign
()
{
handleClickSign
()
{
this
.
repairSign
()
this
.
repairSign
()
},
},
...
@@ -633,9 +663,9 @@ export default {
...
@@ -633,9 +663,9 @@ export default {
})
})
// #endif
// #endif
},
},
saveBillImage
()
{
saveBillImage
(
tip
=
'保存中'
)
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'保存中'
,
title
:
tip
,
})
})
if
(
this
.
billImageUrl
)
{
if
(
this
.
billImageUrl
)
{
...
...
utils/config.js
View file @
fc3df2f0
...
@@ -18,6 +18,8 @@ export const billBaseUrl = process.uniEnv.qn_base_url + 'bill/'; // 七牛云对
...
@@ -18,6 +18,8 @@ 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
wxMiniId
=
'gh_7add974cc08f'
export
const
webUrl
=
'http://kaying.cc/banshoujizhangjieshao/index.html'
export
const
billStaticBaseUrl
=
'/static/image/bill/'
;
// 七牛云对象存储图片地址-账单
export
const
billStaticBaseUrl
=
'/static/image/bill/'
;
// 七牛云对象存储图片地址-账单
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment