Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
5e4b3360
Commit
5e4b3360
authored
Dec 08, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 删除无用代码
parent
109f1693
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
63 additions
and
71 deletions
+63
-71
shiba.png
src/assets/icons/shiba.png
+0
-0
shiba.svg
src/assets/icons/shiba.svg
+0
-0
input_menu_receive.png
src/assets/input_menu_receive.png
+0
-0
logo.png
src/assets/logo.png
+0
-0
ChatOptionItem.vue
src/components/ChatOptions/ChatOptionItem.vue
+8
-5
Icon.vue
src/components/common/Icon.vue
+1
-15
ChatContentMessage.vue
src/views/Chat/ChatContentMessage.vue
+0
-3
index.vue
src/views/News/index.vue
+52
-44
index.vue
src/views/withMenu/Loan/index.vue
+2
-3
index.vue
src/views/withMenu/index.vue
+0
-1
No files found.
src/assets/icons/shiba.png
deleted
100644 → 0
View file @
109f1693
9.96 KB
src/assets/icons/shiba.svg
deleted
100644 → 0
View file @
109f1693
This diff is collapsed.
Click to expand it.
src/assets/input_menu_receive.png
deleted
100644 → 0
View file @
109f1693
2.32 KB
src/assets/logo.png
deleted
100644 → 0
View file @
109f1693
10.3 KB
src/components/ChatOptions/ChatOptionItem.vue
View file @
5e4b3360
<
template
>
<
template
>
<div
<div
@
click=
"$emit('click')"
class=
"item flex items-center justify-center ml-4"
class=
"item flex items-center justify-center ml-4"
:class=
"
{ 'select-item': selected }"
:class=
"
{ 'select-item': selected }"
>
{{
value
}}
</div>
>
{{
value
}}
</div>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
PropType
}
from
"@vue/runtime-core"
;
import
{
PropType
}
from
"@vue/runtime-core"
;
defineEmits
([
"click"
]);
const
props
=
defineProps
({
const
props
=
defineProps
({
selected
:
{
selected
:
{
required
:
true
,
required
:
true
,
...
@@ -16,10 +21,8 @@ const props = defineProps({
...
@@ -16,10 +21,8 @@ const props = defineProps({
value
:
{
value
:
{
required
:
true
,
required
:
true
,
type
:
String
as
PropType
<
string
>
,
type
:
String
as
PropType
<
string
>
,
}
},
})
});
</
script
>
</
script
>
<
style
>
<
style
>
...
...
src/components/common/Icon.vue
View file @
5e4b3360
<
template
>
<
template
>
<div
class=
"object-cover"
@
click=
"clickSelf"
>
<div
class=
"object-cover"
@
click=
"clickSelf"
>
<div
v-show=
"type === 'png'"
>
<svg
aria-hidden=
"true"
:height=
"size"
:width=
"size"
:fill=
"color"
>
<img
src=
"@/assets/icons/shiba.png"
class=
"object-cover object-center"
/>
</div>
<svg
v-show=
"type === 'svg'"
aria-hidden=
"true"
:height=
"size"
:width=
"size"
:fill=
"color"
>
<use
:xlink:href=
"'#' + name"
></use>
<use
:xlink:href=
"'#' + name"
></use>
</svg>
</svg>
</div>
</div>
...
@@ -21,10 +12,6 @@ import { defineComponent } from "vue";
...
@@ -21,10 +12,6 @@ import { defineComponent } from "vue";
export
default
defineComponent
({
export
default
defineComponent
({
emits
:
[
"click"
],
emits
:
[
"click"
],
props
:
{
props
:
{
type
:
{
type
:
String
,
default
:
"svg"
,
},
size
:
{
size
:
{
type
:
String
,
type
:
String
,
default
:
"14px"
,
default
:
"14px"
,
...
@@ -45,4 +32,3 @@ export default defineComponent({
...
@@ -45,4 +32,3 @@ export default defineComponent({
},
},
});
});
</
script
>
</
script
>
src/views/Chat/ChatContentMessage.vue
View file @
5e4b3360
...
@@ -137,9 +137,6 @@ import staffAvatarUrl from "@/assets/icons/staff.png";
...
@@ -137,9 +137,6 @@ import staffAvatarUrl from "@/assets/icons/staff.png";
// import ChatContentMessageImageVue from "./ChatContentMessageImage.vue";
// import ChatContentMessageImageVue from "./ChatContentMessageImage.vue";
import
{
ChatMessageTypes
}
from
"@/types/chatMessageTypes"
;
import
{
ChatMessageTypes
}
from
"@/types/chatMessageTypes"
;
// import ChatContentMessageVideoVue from "./ChatContentMessageVideo.vue";
// import ChatContentMessageVideoVue from "./ChatContentMessageVideo.vue";
import
{
target
}
from
"@/store/appCallerStore"
;
import
{
copyToClipboard
}
from
"quasar"
;
import
{
Toast
}
from
"vant"
;
import
ChatMessageDB
from
"@/db/ChatMessageDB"
;
import
ChatMessageDB
from
"@/db/ChatMessageDB"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
clipboardValue
}
from
"@/store/AppStore"
;
import
{
clipboardValue
}
from
"@/store/AppStore"
;
...
...
src/views/News/index.vue
View file @
5e4b3360
<
template
>
<
template
>
<div>
<div>
<nav-bar
title=
"新闻动态"
:style=
"
{ 'background-color':'#F7F7FA'}" :showSearchIcon="true" :path="{path: '/Search', query: { type: 'news' }}"/>
<nav-bar
<div
class=
" mx-5 pt-3"
>
title=
"新闻动态"
<van-pull-refresh
class=
"divide-y"
v-model=
"refreshing"
@
refresh=
"onRefresh"
>
:style=
"
{ 'background-color': '#F7F7FA' }"
:showSearchIcon="true"
:path="{ path: '/Search', query: { type: 'news' } }"
/>
<div
class=
"mx-5 pt-3"
>
<van-pull-refresh
class=
"divide-y"
v-model=
"refreshing"
@
refresh=
"onRefresh"
>
<van-list
<van-list
v-model:loading=
"loading"
v-model:loading=
"loading"
:finished=
"finished"
:finished=
"finished"
finished-text=
""
finished-text=
""
@
load=
"onLoad"
>
@
load=
"onLoad"
<news-list
v-for=
"(item, n) in lists"
:key=
"n"
:info=
"item"
/>
>
<news-list
v-for=
"(item, n) in lists"
:key=
"n"
:info=
"item"
/>
</van-list>
</van-list>
</van-pull-refresh>
</van-pull-refresh>
</div>
</div>
...
@@ -16,41 +26,41 @@
...
@@ -16,41 +26,41 @@
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
reactive
}
from
'vue'
import
{
defineComponent
,
ref
,
reactive
}
from
"vue"
;
import
NavBar
from
"@/components/NavBar/index.vue"
import
NavBar
from
"@/components/NavBar/index.vue"
;
import
NewsList
from
"./NewsList/index.vue"
import
NewsList
from
"./NewsList/index.vue"
;
import
{
PullRefresh
,
List
}
from
'vant'
import
{
PullRefresh
,
List
}
from
"vant"
;
import
{
getNewsList
}
from
'@/service/NewsService/index'
import
{
getNewsList
}
from
"@/service/NewsService/index"
;
export
default
defineComponent
({
export
default
defineComponent
({
components
:{
components
:
{
NavBar
,
NavBar
,
NewsList
,
NewsList
,
'van-pull-refresh'
:
PullRefresh
,
"van-pull-refresh"
:
PullRefresh
,
'van-list'
:
List
"van-list"
:
List
,
},
},
setup
()
{
setup
()
{
let
lists
=
ref
([]
as
any
)
let
lists
=
ref
([]
as
any
)
;
const
pagination
=
reactive
({
const
pagination
=
reactive
({
page
:
1
,
page
:
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
0
total
:
0
,
})
})
;
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
;
const
finished
=
ref
(
false
)
const
finished
=
ref
(
false
)
;
const
refreshing
=
ref
(
false
)
const
refreshing
=
ref
(
false
)
;
const
onLoad
=
()
=>
{
const
onLoad
=
()
=>
{
getLists
()
getLists
()
;
}
}
;
const
onRefresh
=
()
=>
{
const
onRefresh
=
()
=>
{
// 清空列表数据
// 清空列表数据
finished
.
value
=
false
finished
.
value
=
false
;
pagination
.
page
=
1
pagination
.
page
=
1
;
lists
.
value
=
[]
lists
.
value
=
[]
;
loading
.
value
=
true
loading
.
value
=
true
;
onLoad
()
onLoad
()
;
}
}
;
function
getLists
()
{
function
getLists
()
{
if
(
refreshing
.
value
)
{
if
(
refreshing
.
value
)
{
lists
.
value
=
[];
lists
.
value
=
[];
...
@@ -58,36 +68,34 @@ export default defineComponent({
...
@@ -58,36 +68,34 @@ export default defineComponent({
}
}
getNewsList
({
getNewsList
({
limit
:
pagination
.
pageSize
,
limit
:
pagination
.
pageSize
,
offset
:
(
pagination
.
page
-
1
)
*
pagination
.
pageSize
offset
:
(
pagination
.
page
-
1
)
*
pagination
.
pageSize
,
}).
then
(
res
=>
{
}).
then
(
(
res
)
=>
{
lists
.
value
.
push
(...
res
.
data
.
items
)
lists
.
value
.
push
(...
res
.
data
.
items
)
;
pagination
.
total
=
res
.
data
.
total
pagination
.
total
=
res
.
data
.
total
;
pagination
.
page
++
pagination
.
page
++
;
//
//
loading
.
value
=
false
loading
.
value
=
false
;
//
//
if
(
lists
.
value
.
length
>=
pagination
.
total
)
{
if
(
lists
.
value
.
length
>=
pagination
.
total
)
{
finished
.
value
=
true
finished
.
value
=
true
;
}
}
})
})
;
}
}
return
{
return
{
lists
,
lists
,
pagination
,
loading
,
loading
,
finished
,
finished
,
refreshing
,
refreshing
,
onLoad
,
onLoad
,
onRefresh
onRefresh
,
}
};
}
},
});
})
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.divide-y
{
.divide-y
{
min-height
:
calc
(
100vh
-
46px
);
min-height
:
calc
(
100vh
-
46px
);
}
}
</
style
>
</
style
>
src/views/withMenu/Loan/index.vue
View file @
5e4b3360
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
<div
class=
"mt-2"
v-if=
"skeLoading"
></div>
<div
class=
"mt-2"
v-if=
"skeLoading"
></div>
<Skeleton
:loading=
"skeLoading"
:row=
"3"
>
<Skeleton
:loading=
"skeLoading"
:row=
"3"
>
<img
<img
class=
"
mx-5
w-83 h-22 mt-5 rounded-lg mx-auto"
class=
"w-83 h-22 mt-5 rounded-lg mx-auto"
:src=
"src"
:src=
"src"
v-if=
"src"
v-if=
"src"
@
click=
"
@
click=
"
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
</div>
</div>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
defineComponent
,
ref
,
toRefs
}
from
"vue"
;
import
{
ref
}
from
"vue"
;
import
{
eLoanMode
}
from
"./types"
;
import
{
eLoanMode
}
from
"./types"
;
import
LoanHotCard
from
"@/components/Loan/LoanHotCard/index.vue"
;
import
LoanHotCard
from
"@/components/Loan/LoanHotCard/index.vue"
;
import
LoanHotSwipe
from
"@/components/Loan/LoanHotSwipe/index.vue"
;
import
LoanHotSwipe
from
"@/components/Loan/LoanHotSwipe/index.vue"
;
...
@@ -156,7 +156,6 @@ let skeLoading = ref(false);
...
@@ -156,7 +156,6 @@ let skeLoading = ref(false);
let
state
=
reactive
({
allProductList
:
[]
as
Array
<
simpleItemInfo
>
});
let
state
=
reactive
({
allProductList
:
[]
as
Array
<
simpleItemInfo
>
});
const
src
=
ref
(
""
);
const
src
=
ref
(
""
);
const
uuid
=
ref
(
""
);
const
activityUuid
=
ref
(
""
);
const
activityUuid
=
ref
(
""
);
const
hotNews
=
ref
<
{
uuid
:
string
}[]
>
([]);
const
hotNews
=
ref
<
{
uuid
:
string
}[]
>
([]);
const
limit
=
reactive
({
const
limit
=
reactive
({
...
...
src/views/withMenu/index.vue
View file @
5e4b3360
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
eRole
}
from
"@/types/roleType"
;
import
{
getUserMsg
}
from
"@/utils/userMsg"
;
import
{
getUserMsg
}
from
"@/utils/userMsg"
;
import
{
isReviewMode
}
from
"@/utils/vueAppEnv"
;
import
{
isReviewMode
}
from
"@/utils/vueAppEnv"
;
import
{
defineComponent
}
from
"vue"
;
import
{
defineComponent
}
from
"vue"
;
...
...
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