Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
0d8e39dc
Commit
0d8e39dc
authored
Jun 03, 2021
by
高铭波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面图片渲染效果优化
parent
c2bb1726
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
42 deletions
+41
-42
customer.vue
src/components/mine/customer.vue
+7
-12
pages.json
src/pages.json
+2
-1
mine.vue
src/pages/index/mine.vue
+6
-4
index.vue
src/pages/login/index.vue
+9
-6
index.vue
src/pages/mine/wallet/index.vue
+4
-4
settlement.vue
src/pages/mine/wallet/settlement.vue
+6
-6
statement.vue
src/pages/mine/wallet/statement.vue
+7
-7
util.js
src/utils/util.js
+0
-2
No files found.
src/components/mine/customer.vue
View file @
0d8e39dc
<
template
>
<view
class=
"cus-wrap-component"
>
<image
class=
"top-image"
mode=
"widthFix"
v-if=
"!isPop"
:src=
"
minekefutuImage
"
></image>
<image
class=
"top-image"
mode=
"widthFix"
v-if=
"!isPop"
:src=
"
qnFile(imageName)
"
></image>
<view
class=
"content-view"
>
<view
:class=
"['title-view',
{'is-mine': isMine}]">
<text
:class=
"['title-text',
{'is-mine': isMine}]">
{{
titleText
[
typeIndex
]
}}
</text>
<text>
{{
tipText
[
typeIndex
]
}}
</text>
</view>
<u-image
:class=
"['qrcode',
{'is-mine': isMine}]" :src="cusQrcode" mode="widthFix" :fade="true"
duration="450">
<u-image
:class=
"['qrcode',
{'is-mine': isMine}]" :src="qnFile(cusQrcode)" mode="widthFix" :fade="false">
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
<button
:class=
"['settle-button',
{'is-mine': isMine}]" type="primary" :open-type="openTypes[typeIndex]" show-message-card
send-message-title="点击下方客服会话添加订单助手" shape="circle" @click="download" :send-message-img="
kefuzxiaoxiImage
"
send-message-title="点击下方客服会话添加订单助手" shape="circle" @click="download" :send-message-img="
qnFile('kefuzxiaoxi.png')
"
send-message-path="/pages/index/index">
{{
buttonText
[
typeIndex
]
}}
</button>
...
...
@@ -45,14 +44,7 @@
},
computed
:
{
cusQrcode
()
{
let
src
=
this
.
isMine
?
'erweima-rk.png'
:
'dingdanzhushou-n.png'
;
return
util
.
imageCache
(
this
,
src
)
},
kefuzxiaoxiImage
()
{
return
util
.
imageCache
(
this
,
'kefuzxiaoxi.png'
)
},
minekefutuImage
()
{
return
util
.
imageCache
(
this
,
this
.
imageName
)
return
this
.
isMine
?
'erweima-rk.png'
:
'dingdanzhushou-n.png'
;
},
imageName
()
{
return
this
.
isMine
?
'kefufuwu-n.png'
:
'kefutuzs.png'
...
...
@@ -92,6 +84,9 @@
}
},
methods
:
{
qnFile
(
src
)
{
return
process
.
uniEnv
.
qn_base_url
+
src
},
phoneToCustomer
()
{
// 联系客户
uni
.
makePhoneCall
({
phoneNumber
:
this
.
phone
,
//仅为示例
...
...
src/pages.json
View file @
0d8e39dc
...
...
@@ -41,7 +41,8 @@
{
"path"
:
"pages/login/index"
,
"style"
:
{
"navigationBarBackgroundColor"
:
"#FFFFFF"
,
"navigationBarTitleText"
:
"授权登录"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
}
...
...
src/pages/index/mine.vue
View file @
0d8e39dc
...
...
@@ -23,7 +23,7 @@
<u-cell-group
:border=
"false"
>
<view
v-for=
"(item, index) in items"
:key=
"index"
>
<u-cell-item
:value=
"item.value"
:border-bottom=
"false"
@
click=
"handleClick(item.pathName)"
>
<image
slot=
"icon"
:src=
"qn
Path + item.icon
"
:style=
"item.imageStyle"
></image>
<image
slot=
"icon"
:src=
"qn
File(item.icon)
"
:style=
"item.imageStyle"
></image>
<view
slot=
"title"
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
slot=
"value"
class=
"item-value"
>
{{
value
}}
</view>
</u-cell-item>
...
...
@@ -43,7 +43,6 @@
export
default
{
data
()
{
return
{
qnPath
:
process
.
uniEnv
.
qn_base_url
,
serviceTel
:
'18124099271'
,
showSuperButton
:
false
,
show
:
false
,
...
...
@@ -142,10 +141,13 @@
this
.
getData
()
}
}
this
.
wodebeijingImage
=
await
util
.
imageCache
(
this
,
'wodebeijing.png'
)
this
.
placeholderImage
=
await
util
.
imageCache
(
this
,
'touxiang.png'
)
this
.
wodebeijingImage
=
this
.
qnFile
(
'wodebeijing.png'
)
this
.
placeholderImage
=
this
.
qnFile
(
'touxiang.png'
)
},
methods
:
{
qnFile
(
src
)
{
return
process
.
uniEnv
.
qn_base_url
+
src
},
getData
()
{
let
self
=
this
app
.
getBaseInfo
(
self
);
...
...
src/pages/login/index.vue
View file @
0d8e39dc
<
template
>
<view
class=
""
>
<w-navbar></w-navbar>
<view
class=
"backView"
>
<view
class=
"login-block"
v-if=
"needAuth"
>
<u-image
class=
"u-flex u-row-center logo"
:src=
"logo"
width=
"200"
height=
"200"
>
<u-image
:fade=
"false"
class=
"u-flex u-row-center logo"
:src=
"logo"
width=
"200"
height=
"200"
>
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
<u-image
class=
"u-flex u-row-center logo2"
:src=
"logo2"
width=
"214"
height=
"60"
>
<u-image
:fade=
"false"
class=
"u-flex u-row-center logo2"
:src=
"logo2"
width=
"214"
height=
"60"
>
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
</view>
<view
class=
"bind-block"
v-else
>
<u-image
class=
"u-flex u-row-between logo"
:src=
"logo"
width=
"148"
height=
"148"
>
<u-image
:fade=
"false"
class=
"u-flex u-row-between logo"
:src=
"logo"
width=
"148"
height=
"148"
>
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
...
...
@@ -38,7 +39,6 @@ const app = getApp()
export
default
{
data
()
{
return
{
qnPath
:
process
.
uniEnv
.
qn_base_url
,
needAuth
:
true
,
TimeID
:
-
1
,
loginTitle
:
'用户登录'
,
...
...
@@ -50,10 +50,10 @@ export default {
},
computed
:
{
logo
()
{
return
util
.
imageCache
(
this
,
'logo.png'
)
return
this
.
qnFile
(
'logo.png'
)
},
logo2
()
{
return
util
.
imageCache
(
this
,
'logo-2.png'
)
return
this
.
qnFile
(
'logo-2.png'
)
},
},
onLoad
(
e
)
{
...
...
@@ -67,6 +67,9 @@ export default {
this
.
getCode
()
},
methods
:
{
qnFile
(
src
)
{
return
process
.
uniEnv
.
qn_base_url
+
src
},
async
getCode
()
{
login
.
appLogin
().
then
(
res
=>
{
this
.
code
=
res
.
code
...
...
src/pages/mine/wallet/index.vue
View file @
0d8e39dc
...
...
@@ -4,7 +4,7 @@
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"wallet-content-view"
>
<view
class=
"header-view"
>
<image
class=
"header-image"
:src=
"q
ianbaobeijing
"
></image>
<image
class=
"header-image"
:src=
"q
nFile('qianbaobeijing.png')
"
></image>
</view>
<view
class=
"survey-view"
>
<view
class=
"survey-top-view"
>
...
...
@@ -109,9 +109,6 @@
imageUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
qianbaobeijing
()
{
return
util
.
imageCache
(
this
,
'qianbaobeijing.png'
)
},
buttonStyle
()
{
return
{
width
:
"200rpx"
,
...
...
@@ -139,6 +136,9 @@
this
.
loadStatement
()
},
methods
:
{
qnFile
(
src
)
{
return
process
.
uniEnv
.
qn_base_url
+
src
},
// 提现
handleClickWithdraw
()
{
this
.
$u
.
route
({
...
...
src/pages/mine/wallet/settlement.vue
View file @
0d8e39dc
...
...
@@ -20,7 +20,7 @@
</view>
</view>
</view>
<image
:src=
"
liushuibeijingImage
"
class=
"head-back-image"
mode=
"widthFix"
></image>
<image
:src=
"
qnFile('liushuibeijing.png')
"
class=
"head-back-image"
mode=
"widthFix"
></image>
<view
class=
"list-view"
v-if=
"hasInfo"
>
<view
class=
"u-flex u-row-center"
v-if=
"loading"
>
<u-gap
height=
"20"
></u-gap>
...
...
@@ -31,7 +31,7 @@
</view>
</view>
<view
class=
"list-view-empty"
v-else
>
<u-image
class=
"empty-image"
:src=
"banner"
width=
"374"
height=
"246"
mode=
"widthFix"
:fade=
"
true"
duration=
"450
"
>
<u-image
class=
"empty-image"
:src=
"banner"
width=
"374"
height=
"246"
mode=
"widthFix"
:fade=
"
false
"
>
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
...
...
@@ -64,9 +64,6 @@
}
},
computed
:
{
liushuibeijingImage
()
{
return
util
.
imageCache
(
this
,
'liushuibeijing.png'
)
},
imageUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
...
...
@@ -74,7 +71,7 @@
return
this
.
loading
||
this
.
info
.
payableRecordExtendDtos
&&
this
.
info
.
payableRecordExtendDtos
.
length
},
banner
()
{
return
util
.
imageCache
(
this
,
'receipt.png'
)
return
this
.
qnFile
(
'receipt.png'
)
},
},
onLoad
()
{
...
...
@@ -82,6 +79,9 @@
this
.
loadPayRecord
()
},
methods
:
{
qnFile
(
src
)
{
return
process
.
uniEnv
.
qn_base_url
+
src
},
async
loadPayRecord
()
{
let
self
=
this
self
.
loading
=
true
...
...
src/pages/mine/wallet/statement.vue
View file @
0d8e39dc
...
...
@@ -20,7 +20,7 @@
</view>
</view>
</view>
<image
:src=
"
liushuibeijingImage
"
class=
"head-back-image"
mode=
"widthFix"
></image>
<image
:src=
"
qnFile('liushuibeijing.png')
"
class=
"head-back-image"
mode=
"widthFix"
></image>
<view
class=
"list-view"
v-if=
"hasInfo"
>
<view
class=
"u-flex u-row-center"
v-if=
"loading"
>
<u-gap
height=
"20"
></u-gap>
...
...
@@ -31,7 +31,7 @@
</view>
</view>
<view
class=
"list-view-empty"
v-else
>
<u-image
class=
"empty-image"
:src=
"banner"
width=
"374"
height=
"246"
mode=
"widthFix"
:fade=
"
true"
duration=
"450
"
>
<u-image
class=
"empty-image"
:src=
"banner"
width=
"374"
height=
"246"
mode=
"widthFix"
:fade=
"
false
"
>
<u-loading
slot=
"loading"
></u-loading>
<view
slot=
"error"
style=
"font-size: 24rpx;"
>
加载失败
</view>
</u-image>
...
...
@@ -84,14 +84,11 @@
}
},
liushuibeijingImage
()
{
return
util
.
imageCache
(
this
,
'liushuibeijing.png'
)
},
imageUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
banner
()
{
return
util
.
imageCache
(
this
,
'receipt.png'
)
return
this
.
qnFile
(
'receipt.png'
)
},
hasInfo
()
{
return
this
.
loading
||
this
.
data
.
statementList
&&
this
.
data
.
statementList
.
length
...
...
@@ -102,6 +99,9 @@
this
.
loadStatement
()
},
methods
:
{
qnFile
(
src
)
{
return
process
.
uniEnv
.
qn_base_url
+
src
},
bindDateChange
:
function
(
e
)
{
this
.
date
=
e
.
target
.
value
this
.
loadStatement
()
...
...
src/utils/util.js
View file @
0d8e39dc
...
...
@@ -58,7 +58,6 @@ function validImages(imgurl) {
const
imageCache
=
async
function
(
vm
,
src
,
host
)
{
host
=
host
||
process
.
uniEnv
.
qn_base_url
let
image_url
=
host
+
src
return
image_url
// 临时
let
image_name
=
md5Libs
.
md5
(
image_url
)
var
arr
=
Object
.
keys
(
vm
.
vuex_cache
);
const
result
=
await
validImages
(
vm
.
vuex_cache
[
image_name
])
...
...
@@ -70,7 +69,6 @@ const imageCache = async function (vm, src, host) {
url
:
image_url
,
success
:
(
res
)
=>
{
if
(
res
.
statusCode
===
200
)
{
// call_back(res.tempFilePath)
vm
.
$u
.
vuex
(
`vuex_cache.
${
image_name
}
`
,
res
.
tempFilePath
)
}
}
...
...
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