Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
16a76289
authored
Dec 15, 2020
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
流程测试
parent
881999b9
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
64 additions
and
125 deletions
app.js
component/m-dialog/m-dialog.wxss
component/m-init.js
component/m-input/m-input.wxml
component/m-input/m-input.wxss
pages/commodity/home/home.js
pages/home/dynamic-detail/dynamic-detail.wxml
pages/home/dynamic-detail/dynamic-detail.wxss
pages/home/dynamic/dynamic.wxml
pages/home/dynamic/dynamic.wxss
pages/home/night-appointment/night-appointment.js
pages/home/night-appointment/night-appointment.wxss
pages/mine/authentication-input/authentication-input.wxml
pages/mine/order/order.js
pages/play/activity/activity.js
pages/play/activity/activity.wxml
pages/play/activity/activity.wxss
pages/play/movie/movie.wxss
utils/utils.js
app.js
View file @
16a76289
...
@@ -193,63 +193,6 @@ App({
...
@@ -193,63 +193,6 @@ App({
},
},
/**
/**
* 请求封装
* @function
* @param {object} - 请求参数
* @returns
*/
wxRequest
:
function
(
obj
)
{
var
token
=
wx
.
getStorageSync
(
'token'
)
var
param
=
obj
.
data
?
JSON
.
stringify
(
obj
.
data
)
:
''
var
header
=
obj
.
header
?
obj
.
header
:
{
'token'
:
token
||
''
}
wx
.
request
({
url
:
this
.
globalData
.
baseUrl
+
obj
.
url
,
data
:
param
,
method
:
obj
.
method
||
'POST'
,
header
:
header
,
success
:
(
res
)
=>
{
let
code
=
res
.
data
.
code
*
1
if
(
200
==
code
&&
true
==
res
.
data
.
success
)
{
if
(
obj
.
success
)
{
obj
.
success
(
res
.
data
)
}
}
else
if
(
402
==
code
)
{
// this.refreshToken(obj)
}
else
if
(
500
===
code
)
{
if
(
obj
.
success
)
{
obj
.
success
(
res
)
}
}
else
{
if
(
obj
.
fail
)
{
let
err
=
{
statusCode
:
code
,
msg
:
res
.
data
.
msg
||
'网络异常'
};
obj
.
fail
(
err
)
}
}
},
fail
:
(
err
)
=>
{
if
(
obj
.
fail
)
{
let
err
=
{
statusCode
:
9999
,
msg
:
'网络异常'
};
obj
.
fail
(
err
)
}
else
{
wx
.
showToast
({
title
:
'网络异常'
,
icon
:
'none'
,
duration
:
2000
})
}
}
});
},
/**
* 查询用户认证状态
* 查询用户认证状态
* 仅在用户已经注册的前提下会查询此函数
* 仅在用户已经注册的前提下会查询此函数
* @function
* @function
...
...
component/m-dialog/m-dialog.wxss
View file @
16a76289
...
@@ -64,15 +64,15 @@
...
@@ -64,15 +64,15 @@
/* 操作按钮 */
/* 操作按钮 */
.dialog-operation {
.dialog-operation {
border: 1px #E2E7EF solid;
border-style: solid none none none;
border-style: solid none none none;
border-width: 1px;
}
}
.dialog-operation-line {
.dialog-operation-line {
width: 1px;
width: 1px;
height: 32rpx;
height: 32rpx;
border: 1px #E2E7EF solid;
border-style: none solid none solid;
border-style: none solid none solid;
border-width: 1px;
}
}
.dialog-operation-cancel {
.dialog-operation-cancel {
...
...
component/m-init.js
View file @
16a76289
...
@@ -24,6 +24,9 @@ function showToast (funcOption) {
...
@@ -24,6 +24,9 @@ function showToast (funcOption) {
funcOption
=
Object
.
assign
(
App
.
ui
.
toast
.
data
,
funcOption
)
funcOption
=
Object
.
assign
(
App
.
ui
.
toast
.
data
,
funcOption
)
funcOption
.
winToast
=
true
funcOption
.
winToast
=
true
console
.
log
(
'App.ui.toast'
,
App
.
ui
.
toast
)
console
.
log
(
'funcOption'
,
funcOption
)
App
.
ui
.
toast
.
setData
(
funcOption
)
App
.
ui
.
toast
.
setData
(
funcOption
)
// 设置 toast 关闭时间
// 设置 toast 关闭时间
...
...
component/m-input/m-input.wxml
View file @
16a76289
<view class="m-input">
<view class="m-input">
<view class="row ac" hidden="{{!winText}}" bindtap="setInputShow">
<view class="row ac" hidden="{{!winText}}" bindtap="setInputShow">
<view class="m-input-boundary row ac {{className}}">
<view class="m-input-boundary row ac {{className}}">
<text class="m-input-text-content" hidden="{{value === '' ? true : false}}">{{value}}</text>
<text class="m-input-text-content
fs30
" hidden="{{value === '' ? true : false}}">{{value}}</text>
<text class="m-input-text-placeholder" hidden="{{value === '' ? false : true}}">{{placeholder}}</text>
<text class="m-input-text-placeholder
fs30
" hidden="{{value === '' ? false : true}}">{{placeholder}}</text>
</view>
</view>
</view>
</view>
<view class="row ac" hidden="{{!winInput}}">
<view class="row ac" hidden="{{!winInput}}">
<view class="m-input-boundary row ac {{className}}">
<view class="m-input-boundary row ac {{className}}">
<input
<input
class="m-input-input-content row ac"
class="m-input-input-content row ac
fs30
"
value="{{value}}"
value="{{value}}"
type="{{type}}"
type="{{type}}"
maxlength="{{maxlength}}"
maxlength="{{maxlength}}"
...
...
component/m-input/m-input.wxss
View file @
16a76289
...
@@ -2,7 +2,13 @@
...
@@ -2,7 +2,13 @@
.m-input-boundary {
.m-input-boundary {
position: relative;
position: relative;
width: 100%;
height: 80rpx;
margin: 16rpx 0 0 0;
padding: 0 24rpx;
border-radius: 4px;
overflow-x: scroll;
overflow-x: scroll;
border: 1px #DBDFE5 solid;
}
}
/* 显示文本样式 */
/* 显示文本样式 */
...
...
pages/commodity/home/home.js
View file @
16a76289
...
@@ -149,13 +149,14 @@ Page({
...
@@ -149,13 +149,14 @@ Page({
}
else
{
}
else
{
funcBanner
[
funcIndex
]
=
''
funcBanner
[
funcIndex
]
=
''
}
}
t
his
.
setData
({
T
his
.
setData
({
banner
:
funcBanner
banner
:
funcBanner
})
})
})
})
}
}
// 0 首页,1 所有服务,2 儿童营地,3 海错图,4 元养水韵,5 儿童营地接待,6 拾光花坊, 7 商品
// 0 首页,1 所有服务,2 儿童营地,3 海错图,4 元养水韵,5 儿童营地接待,6 拾光花坊, 7 商品
let
This
=
this
let
funcShopList
=
[
2
,
3
,
4
,
5
,
6
]
let
funcShopList
=
[
2
,
3
,
4
,
5
,
6
]
for
(
let
i
=
0
,
l
=
funcShopList
.
length
;
i
<
l
;
i
++
)
{
for
(
let
i
=
0
,
l
=
funcShopList
.
length
;
i
<
l
;
i
++
)
{
shopCover
(
funcShopList
[
i
],
i
)
shopCover
(
funcShopList
[
i
],
i
)
...
...
pages/home/dynamic-detail/dynamic-detail.wxml
View file @
16a76289
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<text>{{notice.title}}</text>
<text>{{notice.title}}</text>
</view>
</view>
<view class="date row cs">
<view class="date row cs">
<text>{{notice.date}}</text>
<text
class="fs26 c31"
>{{notice.date}}</text>
</view>
</view>
<view class="describe">
<view class="describe">
<rich-text nodes="{{notice.describe}}"></rich-text>
<rich-text nodes="{{notice.describe}}"></rich-text>
...
...
pages/home/dynamic-detail/dynamic-detail.wxss
View file @
16a76289
.title {
.title {
width: 670rpx;
width: 670rpx;
margin
-top: 60rpx
;
margin
: 50rpx 0 0 0
;
font-size: 46rpx;
font-size: 46rpx;
font-weight: bolder;
font-weight: bolder;
color: #15191F;
color: #15191F;
...
@@ -8,9 +8,7 @@
...
@@ -8,9 +8,7 @@
.date {
.date {
width: 670rpx;
width: 670rpx;
margin: 32rpx 0 64rpx 0;
margin: 38rpx 0 64rpx 0;
font-size: 32rpx;
color: #959DA9;
}
}
.cover,
.cover,
...
@@ -22,7 +20,7 @@
...
@@ -22,7 +20,7 @@
.describe {
.describe {
width: 670rpx;
width: 670rpx;
margin
-top: 50rpx
;
margin
: 2rpx 0 0 0
;
margin-bottom: 50rpx;
margin-bottom: 50rpx;
font-size: 30rpx;
font-size: 30rpx;
font-weight: 300;
font-weight: 300;
...
...
pages/home/dynamic/dynamic.wxml
View file @
16a76289
<m-nav titleText="最新动态"></m-nav>
<m-nav titleText="最新动态"
styleIndex="{{1}}"
></m-nav>
<view class="container">
<view class="container">
<view class="title row cb ae">
<view class="title row cb ae">
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<text>{{item.date}}</text>
<text>{{item.date}}</text>
</view>
</view>
<view class="notice-describe">
<view class="notice-describe">
<
rich-text nodes="{{item.describe}}"></rich-
text>
<
text class="fs26 c31">{{item.describe}}</
text>
</view>
</view>
<view class="notice-cover" wx:if="{{item.cover !== ''}}">
<view class="notice-cover" wx:if="{{item.cover !== ''}}">
<image src="{{item.cover}}" mode="widthFix"></image>
<image src="{{item.cover}}" mode="widthFix"></image>
...
...
pages/home/dynamic/dynamic.wxss
View file @
16a76289
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
.notice-describe {
.notice-describe {
width: 670rpx;
width: 670rpx;
margin
-top: 24rpx
;
margin
: 16rpx 0 0 0
;
}
}
.notice-describe text {
.notice-describe text {
...
...
pages/home/night-appointment/night-appointment.js
View file @
16a76289
const
App
=
getApp
()
let
App
=
getApp
()
let
logicData
=
{
pageScrollLock
:
false
,
pageScrollTimer
:
0
,
}
Page
({
Page
({
data
:
{
data
:
{
imageBase
:
App
.
globalData
.
appImageBase
,
resourcesBase
:
App
.
globalData
.
appResourcesBase
,
navScroll
:
0
,
appointmentDate
:
''
,
appointmentDate
:
''
,
appointmentEndDate
:
''
,
appointmentEndDate
:
''
,
appointmentComplete
:
false
,
appointmentComplete
:
false
,
...
@@ -229,7 +218,6 @@ Page({
...
@@ -229,7 +218,6 @@ Page({
App
.
ui
.
showToast
({
App
.
ui
.
showToast
({
iconType
:
'loading'
,
iconType
:
'loading'
,
title
:
'提交中'
,
title
:
'提交中'
,
duration
:
60000
,
})
})
App
.
request
({
App
.
request
({
url
:
'v1/subscribe/doSubscribe'
,
url
:
'v1/subscribe/doSubscribe'
,
...
@@ -245,9 +233,8 @@ Page({
...
@@ -245,9 +233,8 @@ Page({
if
(
response
.
data
&&
response
.
data
.
code
==
500
)
{
if
(
response
.
data
&&
response
.
data
.
code
==
500
)
{
App
.
ui
.
showToast
({
App
.
ui
.
showToast
({
iconType
:
'error'
,
iconType
:
'error'
,
title
:
response
.
data
.
m
sg
,
title
:
response
.
data
.
m
essage
,
})
})
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
appointmentComplete
:
true
,
appointmentComplete
:
true
,
...
@@ -256,9 +243,10 @@ Page({
...
@@ -256,9 +243,10 @@ Page({
}
}
})
})
.
catch
((
response
)
=>
{
.
catch
((
response
)
=>
{
console
.
log
(
'response'
,
response
)
App
.
ui
.
showToast
({
App
.
ui
.
showToast
({
iconType
:
'error'
,
iconType
:
'error'
,
title
:
response
.
m
sg
,
title
:
response
.
m
essage
,
})
})
})
})
},
},
...
...
pages/home/night-appointment/night-appointment.wxss
View file @
16a76289
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
/* 表单 */
/* 表单 */
.form-title {
.form-title {
width: 750rpx;
width: 750rpx;
margin
-top: 40rpx
;
margin
: 40rpx 0 10rpx 0
;
padding: 0 40rpx;
padding: 0 40rpx;
font-size: 30rpx;
font-size: 30rpx;
color: #959DA9;
color: #959DA9;
...
@@ -85,6 +85,7 @@
...
@@ -85,6 +85,7 @@
width: 76rpx;
width: 76rpx;
height: 40rpx;
height: 40rpx;
border-right: 1px #DBDFE5 solid;
border-right: 1px #DBDFE5 solid;
border-radius: 0;
background: #FFFFFF;
background: #FFFFFF;
}
}
...
@@ -99,6 +100,7 @@
...
@@ -99,6 +100,7 @@
width: 76rpx;
width: 76rpx;
height: 40rpx;
height: 40rpx;
border-left: 1px #DBDFE5 solid;
border-left: 1px #DBDFE5 solid;
border-radius: 0;
background: #FFFFFF;
background: #FFFFFF;
}
}
...
@@ -159,7 +161,7 @@
...
@@ -159,7 +161,7 @@
/* 操作按钮 */
/* 操作按钮 */
.appointment-operation {
.appointment-operation {
width: 750rpx;
width: 750rpx;
margin
-top: 30rpx
;
margin
: 18rpx 0 0 0
;
padding: 30rpx 40rpx;
padding: 30rpx 40rpx;
background: #ffffff;
background: #ffffff;
}
}
...
...
pages/mine/authentication-input/authentication-input.wxml
View file @
16a76289
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="container">
<view class="container">
<view class="header">
<view class="header">
<image class="banner" src="
http://upload.miaomiao-bao.com/968f6202008192116574683.jpg
"></image>
<image class="banner" src="
{{resourcesBase + 'bgi/bgi-71.png'}}
"></image>
<view style="display:flex;justify-content: center;padding-top:144rpx;">
<view style="display:flex;justify-content: center;padding-top:144rpx;">
<image class="yztq" src="./image/yztq.png"></image>
<image class="yztq" src="./image/yztq.png"></image>
</view>
</view>
...
...
pages/mine/order/order.js
View file @
16a76289
...
@@ -83,15 +83,16 @@ Page({
...
@@ -83,15 +83,16 @@ Page({
*/
*/
queryOrder
:
function
()
{
queryOrder
:
function
()
{
// 数据全部加载完成不再执行
// 数据全部加载完成不再执行
App
.
wxR
equest
({
App
.
r
equest
({
url
:
'v1/order/getOrderList'
,
url
:
'v1/order/getOrderList'
,
data
:
{
params
:
{
'goodType'
:
this
.
data
.
orderTypeActive
?
this
.
data
.
orderType
[
this
.
data
.
orderTypeActive
].
value
:
''
,
'goodType'
:
this
.
data
.
orderTypeActive
?
this
.
data
.
orderType
[
this
.
data
.
orderTypeActive
].
value
:
''
,
'status'
:
this
.
data
.
tabItem
[
this
.
data
.
statusActive
].
value
,
'status'
:
this
.
data
.
tabItem
[
this
.
data
.
statusActive
].
value
,
'pageSize'
:
10
,
'pageSize'
:
10
,
'pageNo'
:
this
.
data
.
orderPages
,
'pageNo'
:
this
.
data
.
orderPages
,
},
}
success
:
(
response
)
=>
{
})
.
then
((
response
)
=>
{
let
funcResponse
=
response
.
data
let
funcResponse
=
response
.
data
let
funcList
=
[]
let
funcList
=
[]
for
(
let
i
=
0
,
l
=
funcResponse
.
length
;
i
<
l
;
i
++
)
{
for
(
let
i
=
0
,
l
=
funcResponse
.
length
;
i
<
l
;
i
++
)
{
...
@@ -156,7 +157,6 @@ Page({
...
@@ -156,7 +157,6 @@ Page({
this
.
setData
({
this
.
setData
({
orderList
:
this
.
data
.
orderPages
===
1
?
funcList
:
this
.
data
.
orderList
.
concat
(
funcList
)
orderList
:
this
.
data
.
orderPages
===
1
?
funcList
:
this
.
data
.
orderList
.
concat
(
funcList
)
})
})
}
})
})
},
},
...
@@ -167,12 +167,13 @@ Page({
...
@@ -167,12 +167,13 @@ Page({
* @returns
* @returns
*/
*/
setOrderType
:
function
()
{
setOrderType
:
function
()
{
App
.
wxR
equest
({
App
.
r
equest
({
url
:
'v1/common/getDictByType'
,
url
:
'v1/common/getDictByType'
,
data
:
{
params
:
{
'type'
:
'order_good_type'
,
'type'
:
'order_good_type'
,
},
},
success
:
(
response
)
=>
{
})
.
then
((
response
)
=>
{
let
funcResponse
=
response
.
data
let
funcResponse
=
response
.
data
let
funcList
=
[{
let
funcList
=
[{
'value'
:
''
,
'value'
:
''
,
...
@@ -225,7 +226,6 @@ Page({
...
@@ -225,7 +226,6 @@ Page({
orderTypeActive
orderTypeActive
})
})
this
.
queryOrder
()
this
.
queryOrder
()
}
})
})
},
},
...
@@ -309,8 +309,6 @@ Page({
...
@@ -309,8 +309,6 @@ Page({
* @returns
* @returns
*/
*/
onOrderCancel
:
function
(
event
)
{
onOrderCancel
:
function
(
event
)
{
console
.
log
(
'onOrderCancel'
)
App
.
ui
.
showDialog
({
App
.
ui
.
showDialog
({
type
:
'confirm'
,
type
:
'confirm'
,
title
:
'是否确认取消订单'
,
title
:
'是否确认取消订单'
,
...
@@ -327,13 +325,14 @@ Page({
...
@@ -327,13 +325,14 @@ Page({
isDoing
:
true
isDoing
:
true
})
})
let
funcItem
=
event
.
target
.
dataset
.
item
let
funcItem
=
event
.
target
.
dataset
.
item
App
.
wxR
equest
({
App
.
r
equest
({
url
:
'v1/order/cancelOrder'
,
url
:
'v1/order/cancelOrder'
,
data
:
{
params
:
{
'orderId'
:
funcItem
.
id
,
'orderId'
:
funcItem
.
id
,
'type'
:
0
,
'type'
:
0
,
},
},
success
:
(
response
)
=>
{
})
.
then
((
response
)
=>
{
App
.
ui
.
showToast
({
App
.
ui
.
showToast
({
'iconType'
:
'success'
,
'iconType'
:
'success'
,
'title'
:
'取消成功'
'title'
:
'取消成功'
...
@@ -344,7 +343,6 @@ Page({
...
@@ -344,7 +343,6 @@ Page({
'orderPages'
:
1
,
'orderPages'
:
1
,
})
})
this
.
queryOrder
()
this
.
queryOrder
()
}
})
})
},
},
fail
:
()
=>
{
},
fail
:
()
=>
{
},
...
@@ -374,13 +372,14 @@ Page({
...
@@ -374,13 +372,14 @@ Page({
isDoing
:
true
isDoing
:
true
})
})
let
funcItem
=
event
.
target
.
dataset
.
item
let
funcItem
=
event
.
target
.
dataset
.
item
App
.
wxR
equest
({
App
.
r
equest
({
url
:
'v1/order/cancelOrder'
,
url
:
'v1/order/cancelOrder'
,
data
:
{
params
:
{
'orderId'
:
funcItem
.
id
,
'orderId'
:
funcItem
.
id
,
'type'
:
1
,
'type'
:
1
,
},
},
success
:
(
response
)
=>
{
})
.
then
((
response
)
=>
{
App
.
ui
.
showToast
({
App
.
ui
.
showToast
({
'iconType'
:
'success'
,
'iconType'
:
'success'
,
'title'
:
'删除成功'
'title'
:
'删除成功'
...
@@ -391,7 +390,6 @@ Page({
...
@@ -391,7 +390,6 @@ Page({
'orderPages'
:
1
,
'orderPages'
:
1
,
})
})
this
.
queryOrder
()
this
.
queryOrder
()
}
})
})
},
},
fail
:
()
=>
{},
fail
:
()
=>
{},
...
...
pages/play/activity/activity.js
View file @
16a76289
...
@@ -80,6 +80,7 @@ Page({
...
@@ -80,6 +80,7 @@ Page({
let
funcData
=
response
.
data
let
funcData
=
response
.
data
let
funcList
=
[{
text
:
'全部'
,
value
:
0
}]
let
funcList
=
[{
text
:
'全部'
,
value
:
0
}]
for
(
let
i
=
0
,
l
=
funcData
.
length
;
i
<
l
;
i
++
)
{
for
(
let
i
=
0
,
l
=
funcData
.
length
;
i
<
l
;
i
++
)
{
if
([
'101'
].
includes
(
funcData
[
i
].
tagId
))
continue
let
funcItem
=
{
let
funcItem
=
{
'text'
:
funcData
[
i
].
name
,
'text'
:
funcData
[
i
].
name
,
'value'
:
funcData
[
i
].
tagId
,
'value'
:
funcData
[
i
].
tagId
,
...
...
pages/play/activity/activity.wxml
View file @
16a76289
<m-nav titleText="主题活动" scrollHeight="{{navScroll}}" styleIndex="{{1}}" bindnavChangeHeight="eventNavChangeHeight"></m-nav>
<m-nav titleText="主题活动" scrollHeight="{{navScroll}}" styleIndex="{{1}}" bindnavChangeHeight="eventNavChangeHeight"></m-nav>
<m-tab item="{{tabItem}}" isFixed="{{true}}" fixedTop="{{tabTop}}" bindtabChange="eventTabChange"></m-tab>
<m-tab
class="tab-type"
item="{{tabItem}}" isFixed="{{true}}" fixedTop="{{tabTop}}" bindtabChange="eventTabChange"></m-tab>
<view class="container bg-gradient">
<view class="container bg-gradient">
<!-- 近期活动 -->
<!-- 近期活动 -->
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</view>
</view>
<view class="item-info column">
<view class="item-info column">
<view class="item-title row cb ac">
<view class="item-title row cb ac">
<text>{{item.name}}</text>
<text
class="fs30 fw800 c01"
>{{item.name}}</text>
<text wx:if="{{item.tagNames[0]}}">{{item.tagNames[0]}}</text>
<text wx:if="{{item.tagNames[0]}}">{{item.tagNames[0]}}</text>
</view>
</view>
<view class="item-date row ac">
<view class="item-date row ac">
...
...
pages/play/activity/activity.wxss
View file @
16a76289
.tab {
.tab-type {
position: fixed;
margin: 44rpx 0 0 0;
top: 0;
left: 0;
background: #FFFFFF;
}
}
.container {
.container {
...
@@ -86,14 +83,10 @@
...
@@ -86,14 +83,10 @@
.item-title {
.item-title {
height: 44rpx;
height: 44rpx;
margin
-top: 32rpx
;
margin
: 20rpx 0 0 0
;
}
}
.item-title text:nth-child(1) {
.item-title text:nth-child(1) {
font-size: 34rpx;
font-weight: bold;
color: #15191f;
line-height: 44rpx;
display: -webkit-box;
display: -webkit-box;
overflow: hidden;
overflow: hidden;
white-space: normal;
white-space: normal;
...
...
pages/play/movie/movie.wxss
View file @
16a76289
...
@@ -11,6 +11,7 @@ page {
...
@@ -11,6 +11,7 @@ page {
.status {
.status {
z-index: 2;
z-index: 2;
width: 750rpx;
width: 750rpx;
margin: 52rpx 0 0 0;
background-color: #1C1C25;
background-color: #1C1C25;
border-bottom: 1rpx #3A3A40 solid;
border-bottom: 1rpx #3A3A40 solid;
}
}
...
@@ -40,7 +41,7 @@ page {
...
@@ -40,7 +41,7 @@ page {
width: 670rpx;
width: 670rpx;
height: 396rpx;
height: 396rpx;
margin: 76rpx auto 0;
margin: 76rpx auto 0;
padding: 6
4
rpx 32rpx 32rpx 32rpx;
padding: 6
0
rpx 32rpx 32rpx 32rpx;
background: #272733;
background: #272733;
}
}
.movie-time-wrapper {
.movie-time-wrapper {
...
@@ -83,7 +84,7 @@ page {
...
@@ -83,7 +84,7 @@ page {
}
}
.movie-name-wrapper {
.movie-name-wrapper {
height: 40rpx;
height: 40rpx;
margin: 0 0
12
rpx 0;
margin: 0 0
20
rpx 0;
overflow: hidden;
overflow: hidden;
flex-wrap: wrap;
flex-wrap: wrap;
}
}
...
...
utils/utils.js
View file @
16a76289
...
@@ -43,6 +43,12 @@ let output = {
...
@@ -43,6 +43,12 @@ let output = {
}
}
},
},
/**
* 计算字符串字符数量
* @function
* @param {string} - funcCountString 字符串
* @returns
*/
countStringChar
:
function
(
funcCountString
)
{
countStringChar
:
function
(
funcCountString
)
{
let
funcCountDoubleByte
=
funcCountString
.
match
(
/
[\u
ff00-
\u
ffff
]
/ig
)
let
funcCountDoubleByte
=
funcCountString
.
match
(
/
[\u
ff00-
\u
ffff
]
/ig
)
let
funcCountSingleByte
=
funcCountString
.
match
(
/
[\u
0000-
\u
00ff
]
/ig
)
let
funcCountSingleByte
=
funcCountString
.
match
(
/
[\u
0000-
\u
00ff
]
/ig
)
...
@@ -55,7 +61,6 @@ let output = {
...
@@ -55,7 +61,6 @@ let output = {
if
(
funcCountEmoji
===
null
)
funcCountEmoji
=
[]
if
(
funcCountEmoji
===
null
)
funcCountEmoji
=
[]
let
funcCountStringChar
=
funcCountDoubleByte
.
length
*
2
+
funcCountSingleByte
.
length
*
1
+
funcCountChinese
.
length
*
2
+
funcCountEmoji
.
length
*
1
let
funcCountStringChar
=
funcCountDoubleByte
.
length
*
2
+
funcCountSingleByte
.
length
*
1
+
funcCountChinese
.
length
*
2
+
funcCountEmoji
.
length
*
1
console
.
log
(
funcCountStringChar
)
return
funcCountStringChar
return
funcCountStringChar
},
},
}
}
...
...
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