Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
7325af29
Commit
7325af29
authored
Aug 13, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新样式
parent
c9b74a10
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
397 additions
and
229 deletions
+397
-229
App.vue
vedio/App.vue
+0
-1
index.js
vedio/common/services/index.js
+39
-4
userServices.js
vedio/common/services/userServices.js
+9
-8
banner.vue
vedio/components/banner/banner.vue
+17
-6
book-list-item2.vue
vedio/components/book-list-item2/book-list-item2.vue
+29
-2
book-search-box.vue
vedio/components/book-search-box/book-search-box.vue
+8
-6
bookshelf.vue
vedio/components/bookshelf/bookshelf.vue
+2
-2
bookshelf-list.vue
vedio/components/bookshelf/components/bookshelf-list.vue
+4
-2
c-list.vue
vedio/components/c-list/c-list.vue
+5
-0
c-search-empty.vue
vedio/components/c-search-empty/c-search-empty.vue
+35
-0
c-shelf-empty.vue
vedio/components/c-shelf-empty/c-shelf-empty.vue
+12
-4
my.vue
vedio/components/home/my.vue
+75
-43
recommend-list.vue
vedio/components/recommend-list/recommend-list.vue
+21
-7
warehouse.vue
vedio/components/warehouse/warehouse.vue
+0
-2
develop.js
vedio/config/env/develop.js
+1
-1
product.js
vedio/config/env/product.js
+1
-1
search-placeholder-section.vue
...b_A/book-search/components/search-placeholder-section.vue
+135
-134
search-result.vue
.../page-subs/sub_A/book-search/components/search-result.vue
+2
-2
home.vue
vedio/pages/home.vue
+2
-4
change.png
vedio/static/images/change.png
+0
-0
setting_dhhy.png
vedio/static/setting/setting_dhhy.png
+0
-0
setting_lxkf.png
vedio/static/setting/setting_lxkf.png
+0
-0
setting_qxdy.png
vedio/static/setting/setting_qxdy.png
+0
-0
setting_wddd.png
vedio/static/setting/setting_wddd.png
+0
-0
setting_ydjl.png
vedio/static/setting/setting_ydjl.png
+0
-0
No files found.
vedio/App.vue
View file @
7325af29
...
...
@@ -89,7 +89,6 @@
bottomSafePadding
:
12
,
h5Url
:
'https://api.mints-id.com/index.html'
,
baseUrl
:
'https://dx.mints-tech.cn/minip-api/miniApi'
,
// baseUrl: 'http://192.168.110.141:8303/miniApi',
titleButtonWidth
:
38
,
token
:
''
,
userId
:
0
,
...
...
vedio/common/services/index.js
View file @
7325af29
...
...
@@ -167,7 +167,7 @@ function collectionBook(isCollected, bookId, callback) {
apiPOST
({
url
,
data
:
{
articleId
:
bookId
articleId
:
bookId
},
callback
})
...
...
@@ -282,8 +282,8 @@ function getBookBeanPackData(callback) {
url
:
`//system/bookLegumesType/list`
,
callback
})
}
}
function
getCollects
(
callback
)
{
apiPOST
({
url
:
"/book/collectList"
,
...
...
@@ -307,7 +307,42 @@ function buyBookWithBookBean(bookId, callback) {
callback
})
}
module
.
exports
=
{
/**
* 获取推荐书籍
* @param {Object} flag
* @param {Object} quantity
*/
function
getRecommendV1
(
flag
,
quantity
,
callback
)
{
apiPOST
({
url
:
`/book/recommendv1`
,
data
:
{
flag
:
flag
,
quantity
:
quantity
},
callback
})
}
/**
* 猜你喜欢
* @param {Object} flag
*/
function
getArticleLike
(
quantity
,
callback
)
{
apiPOST
({
url
:
`/book/articleLike`
,
data
:
{
quantity
:
quantity
},
callback
})
}
module
.
exports
=
{
getRecommendV1
,
getArticleLike
,
getCollects
,
getOpens
,
getReadTimeCount
,
...
...
vedio/common/services/userServices.js
View file @
7325af29
...
...
@@ -18,7 +18,7 @@ import {
}
from
"../utils/util.js"
;
import
{
PAKEAGE_NAME
,
PAKEAGE_NAME
,
VERSION_CODE
}
from
"../../utils/utils.js"
;
import
{
...
...
@@ -149,7 +149,7 @@ function postPhone(data, callback) {
function
requestToken
(
data
,
callback
)
{
let
url
=
`
${
config
[
"BASE_URL"
]}
/user/wechatlogin`
;
let
header
=
{
pkgName
:
PAKEAGE_NAME
,
pkgName
:
PAKEAGE_NAME
,
version
:
VERSION_CODE
,
token
:
``
}
...
...
@@ -183,7 +183,7 @@ function requestUserInfo(callback) {
Object
.
assign
(
header
,
{
token
:
readToken
(),
pkgName
:
PAKEAGE_NAME
,
pkgName
:
PAKEAGE_NAME
,
version
:
VERSION_CODE
,
proChannel
:
uniChannel
})
...
...
@@ -246,11 +246,12 @@ function saveToken(token) {
}
function
readToken
()
{
if
(
!
LOCAL_TOKEN
)
{
// LOCAL_TOKEN = readStorage(KEY_STORAGE_TOKEN)
LOCAL_TOKEN
=
readStorage
(
'token'
)
}
return
LOCAL_TOKEN
;
return
'4C1A1C6113922B148949CB847D5C3E72D9E08F167DCDAD86D60D8B0C65261F615F433703067DF5142735505C42F58997'
// if (!LOCAL_TOKEN) {
// // LOCAL_TOKEN = readStorage(KEY_STORAGE_TOKEN)
// LOCAL_TOKEN = readStorage('token')
// }
// return LOCAL_TOKEN;
}
const
KEY_STORAGE_NICKNAME
=
"NICKNAME"
...
...
vedio/components/banner/banner.vue
View file @
7325af29
...
...
@@ -2,14 +2,17 @@
<view
class=
"banneritem"
>
<swiper
:autoplay=
"true"
:interval=
"2000"
:duration=
"500"
>
<swiper-item
@
click=
"handleBanner"
v-for=
'(item, index) in bannerList'
:key=
'index'
>
<image
class=
"banner-img"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_banner_ar.png"
mode=
"scaleToFill"
></image>
<image
class=
"banner-img"
:src=
"item.carouselUrl"
mode=
"scaleToFill"
></image>
</swiper-item>
</swiper>
</view>
</
template
>
<
script
>
import
{
getRecommendV1
}
from
"../../common/services/index.js"
import
BookshelfBookItem
from
'../../common/models/BookshelfBookItem.js'
;
import
SystemInfoMixin
from
"../../common/mixins/system-info-mixin.js"
import
{
watchUserInfoChange
,
...
...
@@ -20,7 +23,7 @@
mixins
:
[
SystemInfoMixin
],
data
()
{
return
{
bannerList
:
[
''
,
''
,
''
]
bannerList
:
[]
};
},
onReady
()
{
...
...
@@ -31,7 +34,6 @@
this
.
initData
();
}
},
this
)
},
onShow
()
{},
onUnload
()
{
...
...
@@ -56,8 +58,17 @@
},
// 刷新数据列表
refreshList
()
{
}
getRecommendV1
(
'carousel'
,
8
,
(
success
,
data
)
=>
{
if
(
success
)
{
this
.
changeData
(
data
)
}
})
},
changeData
(
e
)
{
this
.
dataList
=
e
.
records
.
map
(
item
=>
{
return
new
BookshelfBookItem
(
item
)
})
},
}
}
</
script
>
...
...
vedio/components/book-list-item2/book-list-item2.vue
View file @
7325af29
<
template
>
<view
class=
"cover-box"
@
click=
"tapItem"
>
<!--
<image
v-show=
"imageError"
class=
"cover"
src=
"/static/images/image_error.png"
mode=
"aspectFill"
></image>
-->
<image
class=
"cover"
v-if=
"!last"
:src=
"item.avatar"
mode=
"aspectFill"
></image>
<image
v-else
class=
"cover"
src=
"/static/images/image_error.png"
mode=
"aspectFill"
></image>
<image
v-if=
"!last"
class=
"cover"
:src=
"item.avatar"
mode=
"aspectFill"
></image>
<image
v-else
class=
"cover"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_more.png"
mode=
"scaleToFill"
></image>
<view
class=
"title"
v-if=
"!last"
>
{{
item
.
title
}}
...
...
@@ -90,5 +91,31 @@
height
:
220rpx
;
border-radius
:
15rpx
;
}
.label-box
{
flex-wrap
:
wrap
;
.label
{
padding
:
5rpx
10rpx
;
font-size
:
20rpx
;
margin-right
:
20rpx
;
border-radius
:
10rpx
;
}
.label-color-1
{
background
:
#faefe6
;
color
:
#cc6008
;
}
.label-color-2
{
color
:
#F1413C
;
background
:
#FEF3F3
;
}
.label-color-3
{
background
:
#ff8787
;
color
:
#ff3737
;
}
}
}
</
style
>
\ No newline at end of file
vedio/components/book-search-box/book-search-box.vue
View file @
7325af29
...
...
@@ -2,12 +2,12 @@
<view
class=
"search-box"
@
click=
"search"
>
<view
class=
"search-zone c-flex_row c-align_center"
>
<view
class=
"item"
>
<uni-icons
type=
'search'
size=
'2
8'
color=
"#e5e5e5
"
></uni-icons>
<uni-icons
type=
'search'
size=
'2
6'
color=
"#949CA4
"
></uni-icons>
</view>
<input
class=
"item c-flex_1"
placeholder=
"搜索书名/作者名"
disabled
/>
<view
class=
"mbutton item"
>
<
!--
<
view
class=
"mbutton item"
>
搜索
</view>
</view>
-->
</view>
</view>
</
template
>
...
...
@@ -39,17 +39,19 @@
<
style
lang=
"scss"
scoped
>
.search-box
{
background
:
transparent
;
padding
:
10rpx
20rpx
;
padding
:
10rpx
20rpx
;
.search-zone
{
width
:
100%
;
width
:
100%
;
border
:
solid
1rpx
#FFE2E2
;
border-radius
:
35rpx
;
background
:
#fff
;
padding
:
4rpx
;
font-size
:
28rpx
;
.item
{
margin-left
:
20rpx
;
margin-left
:
20rpx
;
color
:
#949CA4
;
}
.mbutton
{
...
...
vedio/components/bookshelf/bookshelf.vue
View file @
7325af29
<
template
>
<scroll-view
scroll-y
style=
"height: 100%;"
>
<BookshelfList
ref=
'bookList'
></BookshelfList>
<RecommendList
ref=
'recommendList'
></RecommendList>
<view
style=
"height: 20rpx;"
></view>
<RecommendList
ref=
'recommendList'
:listType=
"0"
></RecommendList>
<view
style=
"height: 20rpx;"
></view>
</scroll-view>
</
template
>
...
...
vedio/components/bookshelf/components/bookshelf-list.vue
View file @
7325af29
...
...
@@ -14,7 +14,7 @@
import
common
from
'@/mixins/common'
;
import
{
getCollects
,
getCollects
}
from
"../../../common/services/index.js"
import
{
...
...
@@ -39,6 +39,7 @@
data
:
function
()
{
return
{
dataList
:
[],
bookMore
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_more.png'
}
},
methods
:
{
...
...
@@ -60,7 +61,8 @@
this
.
dataList
=
e
.
records
.
map
(
item
=>
{
return
new
BookshelfBookItem
(
item
)
})
this
.
dataList
.
push
({})
this
.
dataList
.
push
(
new
BookshelfBookItem
({}))
},
tapItem
(
e
,
index
)
{
if
(
index
>=
this
.
dataList
.
length
-
1
)
{
...
...
vedio/components/c-list/c-list.vue
View file @
7325af29
...
...
@@ -8,6 +8,7 @@
</
template
>
<
template
v-else-if=
'showEmpty'
>
<c-shelf-empty
v-if=
"showShelfEmpty"
></c-shelf-empty>
<c-search-empty
v-if=
"showSearchEmpty"
></c-search-empty>
<c-empty
v-else
></c-empty>
</
template
>
<
template
v-else
>
...
...
@@ -68,6 +69,10 @@
type
:
Boolean
,
default
:
false
},
showSearchEmpty
:
{
type
:
Boolean
,
default
:
false
},
/** 初始数据源 */
sources
:
{
type
:
Array
,
...
...
vedio/components/c-search-empty/c-search-empty.vue
0 → 100644
View file @
7325af29
<
template
>
<view
class=
"c-empty"
>
<image
class=
'empty-image'
:src=
'emptyImg'
>
</image>
<slot></slot>
</view>
</
template
>
<
script
>
export
default
{
name
:
"c-shelf-empty"
,
data
()
{
return
{
emptyImg
:
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_search_data.png"
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.c-empty
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
height
:
400rpx
;
.empty-image
{
width
:
324rpx
;
height
:
184rpx
;
}
}
</
style
>
\ No newline at end of file
vedio/components/c-shelf-empty/c-shelf-empty.vue
View file @
7325af29
<
template
>
<view
class=
"c-empty"
>
<view
class=
"empty-title"
>
<image
class=
'empty-image'
:src=
'emptyImg'
>
</image>
<!--
<view
class=
"empty-title"
>
暂未添加到书架
</view>
</view>
-->
<view
class=
"empty-button"
@
click=
"goWareHouse"
>
去书城看看
</view>
...
...
@@ -15,8 +17,8 @@
name
:
"c-shelf-empty"
,
data
()
{
return
{
}
;
emptyImg
:
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_data.png"
}
},
methods
:
{
goWareHouse
()
{
...
...
@@ -44,7 +46,13 @@
margin-bottom
:
20rpx
;
}
.empty-image
{
width
:
240rpx
;
height
:
240rpx
;
}
.empty-button
{
margin-top
:
30rpx
;
font-size
:
30rpx
;
padding
:
10rpx
40rpx
;
border-radius
:
30rpx
;
...
...
vedio/components/home/my.vue
View file @
7325af29
...
...
@@ -12,9 +12,8 @@
<image
:src=
"maskImage2"
mode=
"widthFix"
></image>
</view>
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
<view
style=
"display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;"
>
<image
class=
"avatar"
src=
"@/static/images/logo.png"
></image>
<view
style=
"padding-left: 30rpx;font-size: 22rpx;"
>
<view
style=
"font-size: 34rpx;color: black;margin-bottom: 10rpx;"
>
书友
{{
userBean
.
idcode
}}
</view>
<view
v-if=
"isVip()"
...
...
@@ -27,61 +26,57 @@
</view>
</view>
<view
style=
"display: flex;height: 220rpx;margin:30rpx;background: #263358;border-radius: 30rpx;"
>
<view
style=
"flex-grow: 2; margin-left: 20rpx;"
>
<view
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;"
>
<view
style=
"display: flex;align-items: center;"
>
<image
style=
"width: 50rpx;height: 50rpx;display: flex;align-items: right;margin-right: 10rpx;"
src=
"https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_my_vip.png"
></image>
<view
style=
"font-size: 36rpx;font-weight: 777;color: #FFE5BA;"
>
{{
isVip
()
?
'开通VIP会员'
:
'VIP会员'
}}
</view>
</view>
<view
v-if=
"isVip()"
style=
"font-size: 28rpx;color: #ADABAA;margin-top: 20rpx;"
>
开通会员享更多福利
</view>
<view
v-else
style=
"font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;"
>
到期时间:
{{
userBean
.
expireTime
*
1000
|
formatDate
(
'yyyy-MM-dd'
)
}}
</view>
<view
class=
"vip-label"
>
<image
style=
"width: 100%;position: absolute;z-index: 1;"
mode=
"widthFix"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_my.png"
></image>
<view
class=
"flex-v"
style=
"z-index: 10;margin-left: 180rpx;"
>
<view
style=
"font-size: 34rpx;color: #FFE5BA;"
>
{{
isVip
()
?
'开通VIP会员'
:
'VIP会员'
}}
</view>
<view
v-if=
"isVip()"
style=
"font-size: 28rpx;color: #ADABAA;margin-top: 12rpx;"
>
开通会员享更多福利
</view>
<view
v-else
style=
"font-size: 28rpx;color: #b5b5b5;margin-top: 12rpx;"
>
到期时间:
{{
userBean
.
expireTime
*
1000
|
formatDate
(
'yyyy-MM-dd'
)
}}
</view>
</view>
<view
style=
"width: 220rpx;"
>
<view
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;"
>
<view
@
click=
"handleCoinPay"
style=
"width: 160rpx;height: 70rpx;background:linear-gradient(90deg,#FAD198,#F7C98C);border-radius:30rpx;color: #4F301D;font-size: 34rpx;text-align: center;line-height: 70rpx;"
>
{{
isVip
()
?
'去开通'
:
'已开通'
}}
</view>
</view>
<view
@
click=
"handleCoinPay"
style=
"width: 160rpx;height: 60rpx;background:linear-gradient(90deg,#FAD198,#F7C98C);border-radius:30rpx;color: #4F301D;font-size: 30rpx;text-align: center;line-height: 60rpx;z-index: 10;margin-right: 20rpx;"
>
{{
isVip
()
?
'去开通'
:
'已开通'
}}
</view>
</view>
<view
class=
"wrap-bg"
>
<view
class=
"item"
@
click=
"handlePayRecord"
>
<image
class=
"
avatar"
src=
"@/static/logo-about
.png"
></image>
<image
class=
"
setting-img"
src=
"@/static/setting/setting_wddd
.png"
></image>
我的订单
</view>
<view
v-if=
"false"
class=
"item"
@
click=
"handleDotRecord"
>
<image
class=
"
avatar"
src=
"@/static/logo-about
.png"
></image>
<image
class=
"
setting-img"
src=
"@/static/images/logo
.png"
></image>
书豆记录
</view>
<view
v-if=
"false"
class=
"item"
@
click=
"handleUseDotRecord"
>
<image
class=
"
avatar"
src=
"@/static/logo-about
.png"
></image>
<image
class=
"
setting-img"
src=
"@/static/images/logo
.png"
></image>
消费记录
</view>
<view
class=
"item"
@
click=
"handleReadRecord"
>
<image
class=
"
avatar"
src=
"@/static/logo-about
.png"
></image>
<image
class=
"
setting-img"
src=
"@/static/setting/setting_ydjl
.png"
></image>
阅读记录
</view>
<view
v-if=
"false"
class=
"item"
@
click=
"handleFind"
>
<image
class=
"
avatar"
src=
"@/static/logo-about
.png"
></image>
<image
class=
"
setting-img"
src=
"@/static/images/logo
.png"
></image>
如何找到我
</view>
<view
class=
"item"
@
click=
"handleUnsign"
>
<image
class=
"setting-img"
src=
"@/static/setting/setting_qxdy.png"
></image>
取消订阅
</view>
<view
class=
"item"
@
click=
"handlecdk"
>
<image
class=
"
avatar"
src=
"@/static/logo-about
.png"
></image>
<image
class=
"
setting-img"
src=
"@/static/setting/setting_dhhy
.png"
></image>
兑换会员
</view>
<view
class=
"item"
@
click=
"handlePhone"
>
<image
class=
"
avatar"
src=
"@/static/logo-about
.png"
></image>
<image
class=
"
setting-img"
src=
"@/static/setting/setting_lxkf
.png"
></image>
联系客服
</view>
</view>
...
...
@@ -128,7 +123,9 @@
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
userBean
:
{},
showAnimate
:
false
,
versionName
:
''
versionName
:
''
,
vipLabelBg
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_my.png'
,
agreementDto
:
null
,
};
},
methods
:
{
...
...
@@ -143,6 +140,21 @@
this
.
userBean
=
data
;
}
});
this
.
post
({
url
:
'/vip/getOrderList'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
if
(
data
.
agreement
==
undefined
)
{
this
.
agreementDto
=
null
;
}
else
{
this
.
agreementDto
=
data
.
agreement
;
}
}
});
},
hide
()
{
...
...
@@ -174,6 +186,15 @@
handlecdk
()
{
navigateTo
(
`/pagesA/cdkey/cdkey`
)
},
handleUnsign
()
{
if
(
this
.
agreementDto
)
{
let
params
=
JSON
.
stringify
(
this
.
agreementDto
)
navigateTo
(
`/pagesA/unsign/unsign?params=`
+
params
)
return
}
message
.
notify
(
'您未订阅会员'
);
},
handlePhone
()
{
this
.
showKefuPop
=
true
},
...
...
@@ -212,29 +233,40 @@
//box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}
.vip-label
{
position
:
relative
;
display
:
flex
;
justify-content
:
space-between
;
margin
:
60rpx
30rpx
;
align-items
:
center
;
}
.wrap-bg
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
background
:
white
;
margin
:
30rpx
;
//
padding: 30rpx;
margin-top
:
0
;
padding
:
30rpx
;
padding-top
:
0rpx
;
border-radius
:
30rpx
;
.item
{
margin-top
:
30rpx
;
width
:
22%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
margin-right
:
30rpx
;
// margin-right: 30rpx;
}
.
item
:last-child
{
margin-right
:
0
;
}
.item
:first-child
{
margin-left
:
30rpx
;
.
setting-img
{
background-color
:
white
;
width
:
60rpx
;
height
:
60rpx
;
margin-bottom
:
10rpx
;
overflow
:
hidden
;
}
}
...
...
vedio/components/recommend-list/recommend-list.vue
View file @
7325af29
...
...
@@ -2,7 +2,10 @@
<view
class=
"recommendlist"
>
<view
class=
"booklabel"
>
<view
class=
"title"
>
{{
title
}}
</view>
<view
class=
"change"
@
click=
"refreshList"
>
换一换
</view>
<view
class=
"flex"
>
<image
class=
"img"
src=
"@/static/images/change.png"
></image>
<view
class=
"change"
@
click=
"refreshList"
>
换一换
</view>
</view>
</view>
<view
class=
"rowitem"
v-if=
"listType==0||listType==2"
>
<book-list-item2
class=
"item"
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
...
...
@@ -30,7 +33,8 @@
import
common
from
'@/mixins/common'
;
import
{
getCollects
,
getRecommendV1
,
getArticleLike
}
from
"../../common/services/index.js"
import
{
...
...
@@ -56,39 +60,43 @@
return
{
dataList
:
[],
title
:
'猜你喜欢'
,
flag
:
'hot'
}
},
mounted
()
{
if
(
this
.
listType
==
0
)
{
this
.
flag
=
'like'
this
.
title
=
'猜你喜欢'
}
else
if
(
this
.
listType
==
1
||
this
.
listType
==
3
)
{
this
.
flag
=
'hot'
this
.
title
=
'热门推荐'
}
else
if
(
this
.
listType
==
2
)
{
this
.
flag
=
'newbook'
this
.
title
=
'新书推荐'
}
},
methods
:
{
refreshList
()
{
if
(
this
.
listType
==
0
)
{
get
Collects
(
(
success
,
data
)
=>
{
get
ArticleLike
(
8
,
(
success
,
data
)
=>
{
if
(
success
)
{
this
.
changeData
(
data
)
}
})
}
else
if
(
this
.
listType
==
1
)
{
get
Collects
(
(
success
,
data
)
=>
{
get
RecommendV1
(
this
.
flag
,
5
,
(
success
,
data
)
=>
{
if
(
success
)
{
this
.
changeData
(
data
)
}
})
}
else
if
(
this
.
listType
==
2
)
{
get
Collects
(
(
success
,
data
)
=>
{
get
RecommendV1
(
this
.
flag
,
8
,
(
success
,
data
)
=>
{
if
(
success
)
{
this
.
changeData
(
data
)
}
})
}
else
if
(
this
.
listType
==
3
)
{
get
Collects
(
(
success
,
data
)
=>
{
get
RecommendV1
(
this
.
flag
,
8
,
(
success
,
data
)
=>
{
if
(
success
)
{
this
.
changeData
(
data
)
}
...
...
@@ -130,7 +138,13 @@
color
:
#383B3D
;
}
.change
{
.img
{
margin-right
:
10rpx
;
width
:
30rpx
;
height
:
26rpx
;
}
.change
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#A5A5AD
;
...
...
vedio/components/warehouse/warehouse.vue
View file @
7325af29
...
...
@@ -90,10 +90,8 @@
},
methods
:
{
show
()
{
this
.
getFirstShowData
();
this
.
getCategoryData
();
if
(
wx
.
setVisualEffectOnCapture
)
{
wx
.
setVisualEffectOnCapture
({
visualEffect
:
'hidden'
,
...
...
vedio/config/env/develop.js
View file @
7325af29
...
...
@@ -9,7 +9,7 @@ const {
}
}
=
require
(
"../configEnum"
);
export
default
{
// BASE_URL: "http://192.168.110.1
41
:8303/miniApi",
// BASE_URL: "http://192.168.110.1
39
:8303/miniApi",
BASE_URL
:
"https://dx.mints-tech.cn/minip-api/miniApi"
,
BASE_URL_MODULE
:
""
,
BASE_SOCKET_URL
:
""
,
...
...
vedio/config/env/product.js
View file @
7325af29
...
...
@@ -9,7 +9,7 @@ const {
}
}
=
require
(
"../configEnum"
);
export
default
{
// BASE_URL: "http://192.168.110.1
41
:8303/miniApi",
// BASE_URL: "http://192.168.110.1
39
:8303/miniApi",
BASE_URL
:
"https://dx.mints-tech.cn/minip-api/miniApi"
,
BASE_URL_MODULE
:
""
,
BASE_SOCKET_URL
:
""
,
...
...
vedio/page-subs/sub_A/book-search/components/search-placeholder-section.vue
View file @
7325af29
<
template
>
<view
class=
"search-section"
>
<view
class=
"row header"
>
<view
class=
"title"
>
{{
title
}}
</view>
<view
class=
"header-button"
>
<slot
name=
'headerButton'
></slot>
</view>
</view>
<view
class=
"row body"
>
<slot>
<view
class=
"ele-empty"
v-if=
'showEmpty'
>
{{
emptyTitle
}}
</view>
<view
class=
"ele-box"
v-else
>
<view
class=
"ele"
v-for=
'(item, index) in itemSource'
:key=
"index"
@
click=
"tapEle(item, index)"
>
{{
itemKey
?
item
[
itemKey
]:
item
}}
</view>
</view>
</slot>
</view>
</view>
</
template
>
<
script
>
import
{
isEmpty
}
from
'../../../../common/utils/util'
export
default
{
props
:
{
title
:
{
type
:
String
,
default
:
""
},
itemSource
:
{
type
:
Array
,
default
:
function
()
{
return
[]
}
},
itemKey
:
{
type
:
String
,
default
:
""
},
emptyTitle
:
{
type
:
String
,
default
:
'暂无数据~'
}
},
computed
:
{
showEmpty
:
function
()
{
return
isEmpty
(
this
.
itemSource
);
}
},
methods
:
{
tapEle
(
item
,
index
)
{
this
.
$emit
(
'tapItem'
,
{
detail
:
{
item
,
index
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.search-section
{
padding
:
20rpx
40rpx
;
display
:
flex
;
flex-direction
:
column
;
.row
{
margin-bottom
:
20rpx
;
}
.row
:last-child
{
margin-bottom
:
0
;
}
.header
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
.title
{
height
:
40rpx
;
line-height
:
40rpx
;
font-size
:
28rpx
;
color
:
#333
;
}
.header-button
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
}
.body
{
display
:
flex
;
flex-direction
:
column
;
.ele-empty
{
height
:
80rpx
;
line-height
:
80rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#999
;
}
.ele-box
{
display
:
flex
;
flex-direction
:
row
;
padding-left
:
15rpx
;
.ele
{
margin
:
15rpx
0
;
margin-right
:
15rpx
;
padding
:
0
20rpx
;
height
:
50rpx
;
line-height
:
50rpx
;
border-radius
:
25rpx
;
background
:
#ededed
;
color
:
#999
;
font-size
:
28rpx
;
}
}
}
}
<
template
>
<view
class=
"search-section"
>
<view
class=
"row header"
>
<view
class=
"title"
>
{{
title
}}
</view>
<view
class=
"header-button"
>
<slot
name=
'headerButton'
></slot>
</view>
</view>
<view
class=
"row body"
>
<slot>
<!--
<view
class=
"ele-empty"
v-if=
'showEmpty'
>
{{
emptyTitle
}}
</view>
-->
<c-search-empty
v-if=
'showEmpty'
></c-search-empty>
<view
class=
"ele-box"
v-else
>
<view
class=
"ele"
v-for=
'(item, index) in itemSource'
:key=
"index"
@
click=
"tapEle(item, index)"
>
{{
itemKey
?
item
[
itemKey
]:
item
}}
</view>
</view>
</slot>
</view>
</view>
</
template
>
<
script
>
import
{
isEmpty
}
from
'../../../../common/utils/util'
export
default
{
props
:
{
title
:
{
type
:
String
,
default
:
""
},
itemSource
:
{
type
:
Array
,
default
:
function
()
{
return
[]
}
},
itemKey
:
{
type
:
String
,
default
:
""
},
emptyTitle
:
{
type
:
String
,
default
:
'暂无数据~'
}
},
computed
:
{
showEmpty
:
function
()
{
return
isEmpty
(
this
.
itemSource
);
}
},
methods
:
{
tapEle
(
item
,
index
)
{
this
.
$emit
(
'tapItem'
,
{
detail
:
{
item
,
index
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.search-section
{
padding
:
20rpx
40rpx
;
display
:
flex
;
flex-direction
:
column
;
.row
{
margin-bottom
:
20rpx
;
}
.row
:last-child
{
margin-bottom
:
0
;
}
.header
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
.title
{
height
:
40rpx
;
line-height
:
40rpx
;
font-size
:
28rpx
;
color
:
#333
;
}
.header-button
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
}
.body
{
display
:
flex
;
flex-direction
:
column
;
.ele-empty
{
height
:
80rpx
;
line-height
:
80rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#999
;
}
.ele-box
{
display
:
flex
;
flex-direction
:
row
;
padding-left
:
15rpx
;
.ele
{
margin
:
15rpx
0
;
margin-right
:
15rpx
;
padding
:
0
20rpx
;
height
:
50rpx
;
line-height
:
50rpx
;
border-radius
:
25rpx
;
background
:
#ededed
;
color
:
#999
;
font-size
:
28rpx
;
}
}
}
}
</
style
>
\ No newline at end of file
vedio/page-subs/sub_A/book-search/components/search-result.vue
View file @
7325af29
<
template
>
<c-list
ref=
"list"
flag=
'search'
method=
"POST"
:needLogin=
"needLogin"
:height=
"height"
:url=
'requestUrl'
:param=
'requestParam'
@
change=
'changeData'
>
<c-list
ref=
"list"
flag=
'search'
method=
"POST"
:needLogin=
"needLogin"
:height=
"height"
:url=
'requestUrl'
:param=
'requestParam'
@
change=
'changeData'
:showSearchEmpty=
"true"
>
<book-list-item
v-for=
'(item, index) in dataList'
:key=
'index'
:item=
'item'
:showClose=
"false"
@
tapItem=
'tapItem($event, index)'
>
</book-list-item>
...
...
vedio/pages/home.vue
View file @
7325af29
...
...
@@ -84,13 +84,13 @@
data
()
{
return
{
currentPage
:
1
,
localActiviteFlag
:
0
,
localActiviteFlag
:
1
,
localIdcode
:
0
,
}
},
onLoad
(
options
)
{
let
index
=
options
.
index
??
''
this
.
localActiviteFlag
=
options
.
activiteFlag
;
// this.localActiviteFlag = options.activiteFlag;
this
.
localIdcode
=
options
.
idcode
;
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
...
...
@@ -125,8 +125,6 @@
that
.
tabChange
(
1
)
})
}
},
methods
:
{
tabChange
(
index
)
{
...
...
vedio/static/images/change.png
0 → 100644
View file @
7325af29
1.04 KB
vedio/static/setting/setting_dhhy.png
0 → 100644
View file @
7325af29
2.41 KB
vedio/static/setting/setting_lxkf.png
0 → 100644
View file @
7325af29
2.43 KB
vedio/static/setting/setting_qxdy.png
0 → 100644
View file @
7325af29
1.07 KB
vedio/static/setting/setting_wddd.png
0 → 100644
View file @
7325af29
1.4 KB
vedio/static/setting/setting_ydjl.png
0 → 100644
View file @
7325af29
2.01 KB
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