Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jueqing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xhw
jueqing
Commits
40c476f5
Commit
40c476f5
authored
Jul 16, 2024
by
xhw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
50716080
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
608 additions
and
319 deletions
+608
-319
pages/homeCards/index.vue
+169
-130
pages/index/index.vue
+130
-25
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
+2
-2
unpackage/dist/dev/.sourcemap/mp-weixin/pages/currentHome/index.js.map
+2
-2
unpackage/dist/dev/.sourcemap/mp-weixin/pages/homeCards/index.js.map
+2
-2
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
+0
-0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/init/index.js.map
+2
-2
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js.map
+2
-2
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-popup/components/uni-popup/uni-popup.js.map
+2
-2
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.js.map
+2
-2
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/zebra-swiper/components/z-swiper/z-swiper.js.map
+2
-2
unpackage/dist/dev/mp-weixin/pages/homeCards/index.js
+167
-128
unpackage/dist/dev/mp-weixin/pages/homeCards/index.wxml
+2
-2
unpackage/dist/dev/mp-weixin/pages/index/index.js
+76
-10
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
+2
-2
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
+46
-6
No files found.
pages/homeCards/index.vue
View file @
40c476f5
...
...
@@ -9,9 +9,8 @@
<input
class=
"weui-input"
v-model=
"userName"
placeholder=
"请输入昵称"
/>
<button
type=
"primary"
:disabled=
"disabledSubmit"
@
click=
"handleSubmit"
class=
"submit"
>
提交
</button>
</view>
<!--
<button
@
click=
"handleUserDestory"
>
用户注销
</button>
-->
<view
class=
"shadow"
>
</view>
<button
@
click=
"handleUserDestory"
>
用户注销
</button>
<view
class=
"shadow"
></view>
<view
class=
"section"
>
<view
class=
"shadowBoard"
:style=
"
{backgroundImage:'url('+ photo[i] +')'}">
</view>
...
...
@@ -58,8 +57,7 @@ export default {
disabledSubmit
:
false
,
id
:
274
,
showUserInfo
:
false
,
userName
:
''
,
// avatarUrl: 'https://admin.mindepoch.com:8089/static/poster1.png',
userName
:
'卿羽'
,
code
:
''
,
clickNoArgee
:
false
,
clickArgee
:
false
,
...
...
@@ -101,7 +99,11 @@ export default {
if
(
res
.
code
)
{
// uni.setStorageSync('code', res.code)
that
.
code
=
res
.
code
console
.
log
(
'code'
,
that
.
code
)
console
.
log
(
'code:'
,
that
.
code
)
// uni.showModal({
// title: 'wx.login:登录ing!',
// content: 'that.code:'+that.code + ''
// });
// 将 res.code 发送至后台服务器进行处理
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/wechat/CheckWxUserIsRegisterAndBindPhone'
,
...
...
@@ -111,7 +113,11 @@ export default {
},
data
:
{
code
:
res
.
code
},
success
:
function
(
res
)
{
console
.
log
(
'resres'
,
res
)
console
.
log
(
'res:'
,
res
)
// uni.showModal({
// title: 'wx.login:登录成功!'+JSON.stringify(res),
// content: res.data.toString()
// });
that
.
isBindPhone
=
res
.
data
.
isBindPhone
that
.
wxUid
=
res
.
data
.
wxUid
...
...
@@ -128,11 +134,13 @@ export default {
that
.
showUserInfo
=
true
}
}
},
fail
:
function
(
err
)
{
console
.
log
(
err
)
console
.
log
(
'err:'
,
err
)
// uni.showModal({
// title: 'wx.login:登录失败!',
// content: JSON.stringify(err)
// });
}
})
}
else
{
...
...
@@ -156,14 +164,23 @@ export default {
worldName
:
''
}
}).
then
(
result
=>
{
console
.
log
(
111
,
result
[
1
].
data
)
console
.
log
(
'init:'
,
result
[
1
].
data
)
// uni.showModal({
// title: 'init:',
// content: result[1].data.worldInfoAndAsset.toString()
// });
if
(
result
[
1
].
data
.
code
===
1
){
if
(
result
[
1
].
data
.
worldInfoAndAsset
.
length
>
0
){
this
.
list
=
result
[
1
].
data
.
worldInfoAndAsset
// this.list = [result[1].data.worldInfoAndAsset[1]]
}
}
}).
catch
(
err
=>
{
console
.
log
(
222
,
err
)
// uni.showModal({
// title: 'init_error:',
// content: 'error'
// });
});
},
preImage
(){
...
...
@@ -176,8 +193,23 @@ export default {
},
//获取到用户昵称 以及用户头像
handleSubmit
(){
this
.
disabledSubmit
=
true
var
that
=
this
//1.昵称输入不可为空
if
(
this
.
userName
.
trim
()
==
""
){
uni
.
showToast
({
title
:
'昵称不可为空'
,
icon
:
'none'
})
return
}
//2.不上传头像需要下载 上传头像不需要下载
if
(
this
.
avatarUrl
==
"https://admin.mindepoch.com:8089/worlds/default.jpg"
){
uni
.
downloadFile
({
url
:
that
.
avatarUrl
,
success
:
downloadRes
=>
{
if
(
downloadRes
.
statusCode
===
200
)
{
// 图片下载成功后获取临时文件路径
const
tempFilePath
=
downloadRes
.
tempFilePath
;
wx
.
login
({
success
(
res
)
{
if
(
!
res
.
code
)
{
...
...
@@ -186,23 +218,19 @@ export default {
uni
.
uploadFile
({
url
:
'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin'
,
method
:
'POST'
,
filePath
:
that
.
avatarUrl
,
filePath
:
tempFilePath
,
name
:
'avatar'
,
formData
:
{
code
:
res
.
code
,
username
:
that
.
userName
},
success
:
uploadRes
=>
{
uni
.
showToast
({
title
:
'AppletWeChatRegisterOrLogin'
,
icon
:
'none'
})
console
.
log
(
'上传成功uploadRes'
,
uploadRes
);
console
.
log
(
JSON
.
parse
(
uploadRes
.
data
))
//
console.log(JSON.parse(uploadRes.data))
const
data
=
JSON
.
parse
(
uploadRes
.
data
)
if
(
data
.
code
===
1
){
uni
.
showToast
({
title
:
'
成功!'
,
title
:
'头像上传
成功!'
,
icon
:
'none'
});
uni
.
setStorageSync
(
'userName'
,
that
.
userName
);
...
...
@@ -213,9 +241,68 @@ export default {
that
.
init
()
}
else
{
//失败
uni
.
showModal
({
title
:
'温馨提示'
,
// 弹窗的标题
content
:
'好像出了点问题呢,再试试呢!'
,
// 弹窗的文本内容
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
confirmText
:
'确定'
,
// 确定按钮的文字,默认为"确定"
confirmColor
:
'#576B95'
,
// 确定按钮的文字颜色
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
fail
:
function
(
err
)
{
console
.
log
(
'API 调用失败: '
,
err
);
}
});
that
.
disabledSubmit
=
false
}
},
fail
:
uploadErr
=>
{
console
.
error
(
'上传失败'
,
uploadErr
);
uni
.
showModal
({
title
:
'失败'
,
// 弹窗的标题
content
:
'创建失败!'
,
// 弹窗的文本内容 JSON.parse(uploadErr.errMsg)
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
confirmText
:
'确定'
,
// 确定按钮的文字,默认为"确定"
confirmColor
:
'#576B95'
,
// 确定按钮的文字颜色
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
fail
:
function
(
err
)
{
console
.
log
(
'API 调用失败: '
,
err
);
}
});
}
})
},
fail
(
err
){
console
.
log
(
err
)
uni
.
showToast
({
title
:
err
.
toString
(),
icon
:
'none'
})
}
})
}
},
fail
:
downloadErr
=>
{
console
.
error
(
'下载图片失败'
,
downloadErr
)
// uni.showModal({
// title: '弹窗标题', // 弹窗的标题
// content: JSON.parse(uploadRes.data
), // 弹窗的文本内容
// content: JSON.stringify(downloadErr
), // 弹窗的文本内容
// showCancel: true, // 是否显示取消按钮,默认为 true
// cancelText: '取消', // 取消按钮的文字,默认为"取消"
// cancelColor: '#000000', // 取消按钮的文字颜色
...
...
@@ -232,14 +319,72 @@ export default {
// console.log('API 调用失败: ', err);
// }
// });
}
});
}
else
{
this
.
disabledSubmit
=
true
wx
.
login
({
success
(
res
)
{
if
(
!
res
.
code
)
{
return
}
uni
.
uploadFile
({
url
:
'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin'
,
method
:
'POST'
,
filePath
:
that
.
avatarUrl
,
name
:
'avatar'
,
formData
:
{
code
:
res
.
code
,
username
:
that
.
userName
},
success
:
uploadRes
=>
{
uni
.
showToast
({
title
:
'AppletWeChatRegisterOrLogin'
,
icon
:
'none'
})
console
.
log
(
'上传成功uploadRes'
,
uploadRes
);
console
.
log
(
JSON
.
parse
(
uploadRes
.
data
))
const
data
=
JSON
.
parse
(
uploadRes
.
data
)
if
(
data
.
code
===
1
){
uni
.
showToast
({
title
:
'成功!'
,
icon
:
'none'
});
uni
.
setStorageSync
(
'userName'
,
that
.
userName
);
uni
.
setStorageSync
(
'session_token'
,
uploadRes
.
cookies
[
0
].
split
(
';'
)[
0
]);
//保存cookie值
uni
.
setStorageSync
(
'wxUid'
,
data
.
wxUid
);
//保存用户id
uni
.
setStorageSync
(
'openId'
,
data
.
openId
);
//保存用户id
that
.
showUserInfo
=
false
//隐藏用户填写的表单
that
.
init
()
}
else
{
//失败
uni
.
showModal
({
title
:
'温馨提示'
,
// 弹窗的标题
content
:
'好像出了点问题呢,再试试呢!'
,
// 弹窗的文本内容
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
confirmText
:
'确定'
,
// 确定按钮的文字,默认为"确定"
confirmColor
:
'#576B95'
,
// 确定按钮的文字颜色
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
fail
:
function
(
err
)
{
console
.
log
(
'API 调用失败: '
,
err
);
}
});
that
.
disabledSubmit
=
false
}
},
fail
:
uploadErr
=>
{
console
.
error
(
'上传失败'
,
uploadErr
);
uni
.
showModal
({
title
:
'弹窗标题
'
,
// 弹窗的标题
content
:
'1
'
,
// 弹窗的文本内容 JSON.parse(uploadErr.errMsg)
title
:
'失败
'
,
// 弹窗的标题
content
:
'创建失败!
'
,
// 弹窗的文本内容 JSON.parse(uploadErr.errMsg)
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
...
...
@@ -259,114 +404,6 @@ export default {
}
})
// uni.downloadFile({
// url: that.avatarUrl,
// success: downloadRes => {
// if (downloadRes.statusCode === 200) {
// // 图片下载成功后获取临时文件路径
// const tempFilePath = downloadRes.tempFilePath;
// console.log('--------------',downloadRes)
// uni.uploadFile({
// url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',
// method: 'POST',
// filePath:tempFilePath,
// name: 'avatar',
// formData: {
// code: res.code,
// username: that.userName,
// },
// success: uploadRes => {
// uni.showToast({
// title: 'AppletWeChatRegisterOrLogin',
// icon: 'none'
// })
// console.log('上传成功uploadRes', uploadRes);
// console.log(JSON.parse(uploadRes.data))
// const data = JSON.parse(uploadRes.data)
// if(data.code===1){
// uni.showToast({
// title: '成功!',
// icon: 'none'
// });
// uni.setStorageSync('userName', that.userName);
// uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值
// uni.setStorageSync('wxUid', data.wxUid); //保存用户id
// uni.setStorageSync('openId', data.openId); //保存用户id
// that.showUserInfo = false //隐藏用户填写的表单
// that.init()
// }else{
// //失败
// // uni.showModal({
// // title: '弹窗标题', // 弹窗的标题
// // content: JSON.parse(uploadRes.data), // 弹窗的文本内容
// // showCancel: true, // 是否显示取消按钮,默认为 true
// // cancelText: '取消', // 取消按钮的文字,默认为"取消"
// // cancelColor: '#000000', // 取消按钮的文字颜色
// // confirmText: '确定', // 确定按钮的文字,默认为"确定"
// // confirmColor: '#576B95', // 确定按钮的文字颜色
// // success: function (res) {
// // if (res.confirm) {
// // console.log('用户点击确定');
// // } else if (res.cancel) {
// // console.log('用户点击取消');
// // }
// // },
// // fail: function (err) {
// // console.log('API 调用失败: ', err);
// // }
// // });
// that.disabledSubmit = false
// }
// },
// fail: uploadErr => {
// // uni.showModal({
// // title: '弹窗标题', // 弹窗的标题
// // content: JSON.parse(uploadErr), // 弹窗的文本内容
// // showCancel: true, // 是否显示取消按钮,默认为 true
// // cancelText: '取消', // 取消按钮的文字,默认为"取消"
// // cancelColor: '#000000', // 取消按钮的文字颜色
// // confirmText: '确定', // 确定按钮的文字,默认为"确定"
// // confirmColor: '#576B95', // 确定按钮的文字颜色
// // success: function (res) {
// // if (res.confirm) {
// // console.log('用户点击确定');
// // } else if (res.cancel) {
// // console.log('用户点击取消');
// // }
// // },
// // fail: function (err) {
// // console.log('API 调用失败: ', err);
// // }
// // });
// console.error('上传失败', uploadErr);
// }
// })
// }
// },
// fail: downloadErr => {
// console.error('下载图片失败', downloadErr)
// // uni.showModal({
// // title: '弹窗标题', // 弹窗的标题
// // content: JSON.stringify(downloadErr), // 弹窗的文本内容
// // showCancel: true, // 是否显示取消按钮,默认为 true
// // cancelText: '取消', // 取消按钮的文字,默认为"取消"
// // cancelColor: '#000000', // 取消按钮的文字颜色
// // confirmText: '确定', // 确定按钮的文字,默认为"确定"
// // confirmColor: '#576B95', // 确定按钮的文字颜色
// // success: function (res) {
// // if (res.confirm) {
// // console.log('用户点击确定');
// // } else if (res.cancel) {
// // console.log('用户点击取消');
// // }
// // },
// // fail: function (err) {
// // console.log('API 调用失败: ', err);
// // }
// // });
// }
// });
},
fail
(
err
){
console
.
log
(
err
)
...
...
@@ -376,11 +413,13 @@ export default {
})
}
})
}
},
onChooseAvatar
(
e
)
{
console
.
log
(
'e'
,
e
)
const
{
avatarUrl
}
=
e
.
detail
this
.
avatarUrl
=
avatarUrl
console
.
log
(
'this.avatarUrl'
,
this
.
avatarUrl
)
},
NavTo
(
data
)
{
...
...
pages/index/index.vue
View file @
40c476f5
...
...
@@ -9,10 +9,15 @@
<button
class=
"yty"
@
click=
"handleSendMoney"
>
提交
</button>
</view>
</uni-popup>
<view
v-if=
"ttf"
class=
"reload_connect"
>
<view
style=
"text-align:center"
>
已断开连接,是否重连!
</view>
<button
class=
"connect_start"
@
click=
"handlConnects"
>
连接
</button>
</view>
<view
v-if=
"loading"
class=
"full-screen-mask"
></view>
<view
v-if=
"loading2"
class=
"full-screen-mask2"
></view>
<view
v-if=
"loadingBG"
class=
"full-screen-mask3"
@
click=
"handleBGHide"
></view>
<view
v-if=
"ttf"
class=
"full-screen-mask4"
></view>
<view
class=
"images"
:style=
"
{
backgroundImage: 'url(https://admin.mindepoch.com:8089/worlds/'+currentPageData.name+'.png)',
...
...
@@ -36,15 +41,16 @@
<view
class=
"menu"
>
<view
@
click=
"handleShowBG"
class=
"sendMoney plg1"
></view>
<view
class=
"sendMoney plg2"
></view>
<view
@
click=
"handleToggle"
class=
"sendMoney plg2"
></view>
<view
@
click=
"handleClearHistoryRecord"
class=
"sendMoney plg3"
></view>
<view
class=
"sendMoney plg4"
></view>
<view
class=
"sendMoney plg4"
>
<button
open-type=
"share"
@
click=
"shareToTimeline"
class=
"shareWord"
></button>
</view>
<view
@
click=
"sendMoneyMethods"
class=
"sendMoney plg5"
></view>
<!-- v-if="JSON.parse(currentPageData.worldParameter).includes('物品')" -->
<view
class=
"sendMoney plg6"
@
click=
"handleMore"
></view>
</view>
<!-- 提供一个弹窗 用于输入昵称 -->
<view
v-if=
"false"
class=
"dialog"
>
<view
class=
"dialogHeader"
>
请输入您的昵称
</view>
...
...
@@ -85,11 +91,11 @@
<!-- 背景信息介绍 -->
<view
v-if=
"BG"
class=
"boardBG"
>
<view
class=
"jk2"
>
<view
class=
"jklock"
></view>
<view
class=
"HHH"
>
<!--
<view
class=
"jklock"
></view>
-->
<view
class=
"contentHeader2"
>
故事背景
</view>
<view
class=
"HHH"
>
<view
class=
"wiik"
>
{{
historyRecord
[
0
].
Message
}}
<text>
{{
historyRecord
[
0
].
Message
}}
</text>
</view>
</view>
<view
class=
"confirm"
@
click=
"glb"
>
确认
</view>
...
...
@@ -138,9 +144,9 @@
<view
class=
"shadow"
v-if=
"show"
@
click=
"handleShow"
></view>
<view
class=
"shadows"
></view>
<!-- 聊天记录 回显到页面 -->
<view
class=
"outside"
v-if=
"historyRecord.length>0"
ref=
"scrollViewHeightX"
>
<view
class=
"outside"
v-if=
"historyRecord.length>0"
>
<scroll-view
v-
show=
"false
"
v-
if=
"normal
"
class=
"container data-list-scroll"
:scroll-y=
"true"
:scroll-top=
"scrollTop"
...
...
@@ -212,7 +218,7 @@
</scroll-view
>
</view>
<view
v-
show
=
"false"
class=
'formContainer'
>
<view
v-
if
=
"false"
class=
'formContainer'
>
<view
class=
'itemContainer'
>
<view
class=
"chat-window"
>
<view
id=
"MyIn"
class=
'tongyi'
></view>
...
...
@@ -240,7 +246,7 @@
</view>
<!-- UI层 -->
<view
class=
"UI"
>
<view
v-if=
"UI_show"
class=
"UI"
>
<view
class=
"UI_wrapper"
>
<view
class=
"UI_head"
>
<view
class=
"UI_head_title"
>
{{
UITitle
}}
</view>
...
...
@@ -415,6 +421,11 @@ var recorderManager = uni.getRecorderManager();
export
default
{
data
()
{
return
{
UI_show
:
true
,
normal
:
false
,
ttf
:
false
,
jumping
:
false
,
pangbai_stop
:
false
,
//当新的消息发来以后 停止当前旁白框的内容
foot
:
true
,
loadingBG
:
false
,
BG
:
false
,
...
...
@@ -628,6 +639,31 @@ export default {
}
},
methods
:
{
shareToTimeline
(){
uni
.
share
({
provider
:
'weixin'
,
// 分享服务提供商,weixin表示微信
title
:
'世界推演'
,
// 分享的标题
summary
:
'你爱我,我爱你,蜜雪冰城甜蜜蜜!'
,
// 分享的摘要
imageUrl
:
'https://admin.mindepoch.com:8089/worlds/default.jpg'
,
// 分享的图片链接,可选
// query: '分享的查询参数', // 分享的查询参数,可选
success
:
(
res
)
=>
{
// 分享成功的回调
console
.
log
(
'分享成功'
,
res
);
},
fail
:
(
err
)
=>
{
// 分享失败的回调
console
.
error
(
'分享失败'
,
err
);
},
complete
:
()
=>
{
// 分享结束的回调(成功、失败都会执行)
console
.
log
(
'分享结束'
);
}
});
},
handlConnects
(){
this
.
socketConnect
()
this
.
ttf
=
false
},
glb
(){
this
.
BG
=
false
this
.
loadingBG
=
false
...
...
@@ -644,14 +680,14 @@ export default {
nextTips
(){
//结算当前语音的递归 进行下一次语音
// this.EPlayer.onEnded()
this
.
jumping
=
true
clearInterval
(
this
.
Strem
)
this
.
EPlayer
.
stop
()
this
.
EPlayer
.
onended
()
if
(
!
this
.
kill
){
this
.
yyds_pangbai
+=
this
.
str
}
this
.
jumping
=
false
this
.
EPlayer
.
onended
()
},
handleCloseDialog
(){
this
.
show
=
false
...
...
@@ -805,6 +841,7 @@ export default {
console
.
log
(
'message--------'
,
message
)
clearInterval
(
this
.
timerConsider
);
clearInterval
(
this
.
timer
);
this
.
jumping
=
false
uni
.
setNavigationBarTitle
({
title
:
this
.
currentPageData
.
name
});
...
...
@@ -921,6 +958,7 @@ export default {
//服务器传来的内容处理 包括发声
let
ISLIU_content
=
backValue
.
ISLIU
?
backValue
.
ISLIU
:
''
if
(
ISLIU_content
!==
''
)
{
ISLIU_content
=
ISLIU_content
.
replaceAll
(
"“"
,
`"`
).
replaceAll
(
"”"
,
`"`
)
const
finalVal
=
this
.
extractQuotedTexts
(
ISLIU_content
).
join
(
","
)
...
...
@@ -979,12 +1017,16 @@ export default {
// 监听 WebSocket 错误事件
this
.
socketTask
.
onError
((
error
)
=>
{
console
.
error
(
'WebSocket 错误:'
,
error
);
this
.
socketTask
=
null
this
.
badRequest
()
this
.
ttf
=
true
});
// 监听 WebSocket 连接关闭事件
this
.
socketTask
.
onClose
(()
=>
{
this
.
socketTask
=
null
this
.
badRequest
()
console
.
log
(
'WebSocket 连接已关闭'
);
this
.
ttf
=
true
});
},
...
...
@@ -1268,6 +1310,10 @@ export default {
// url: `/pages/homeCards/index`
});
},
handleToggle
(){
this
.
normal
=
!
this
.
normal
;
this
.
UI_show
=
!
this
.
UI_show
;
},
sendMoneyMethods
(){
//弹窗出现 输入金额 确认 提交 发送
// this.showInputMoneyDialog = true
...
...
@@ -1507,6 +1553,10 @@ export default {
});
},
handleSendMessage2
()
{
if
(
this
.
socketTask
==
null
){
this
.
socketConnect
()
}
// console.log('click')
if
(
this
.
inputVal
.
trim
()
===
''
){
uni
.
showToast
({
...
...
@@ -1517,7 +1567,7 @@ export default {
return
}
this
.
glod_user
=
true
this
.
inputVal
=
this
.
userDoing
?(
'我'
+
this
.
inputVal
):(
"
' "
+
this
.
inputVal
+
" '
"
)
this
.
inputVal
=
this
.
userDoing
?(
'我'
+
this
.
inputVal
):(
"
“ "
+
this
.
inputVal
+
" ”
"
)
// 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
...
...
@@ -1546,6 +1596,8 @@ export default {
//关闭语音 防止多重语音
if
(
this
.
EPlayer
){
this
.
EPlayer
.
stop
()
clearInterval
(
this
.
Strem
)
this
.
jumping
=
true
}
console
.
log
(
'socketTask'
,
this
.
socketTask
)
this
.
socketTask
.
send
({
...
...
@@ -1604,7 +1656,6 @@ export default {
let
Cobj2
=
this
.
computeLen
(
OriginObj
);
console
.
log
(
'llllllllll'
,
Cobj2
)
let
Asr
=
Cobj2
.
Sr
;
// this.str = Cobj2.Sr;
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/say/api/ra'
,
method
:
'post'
,
...
...
@@ -1662,7 +1713,6 @@ export default {
let
arrObj
=
data
;
const
content
=
arrObj
[
0
].
text
;
const
voicer
=
arrObj
[
0
].
quoted
?
this
.
currentPageData
.
voiceGroups
[
1
]
:
this
.
currentPageData
.
voiceGroups
[
0
];
console
.
log
(
'--------------voicer------------------'
,
voicer
,
'-----------content---------------'
,
content
)
if
(
this
.
soundVoice
[
voicer
]){
//假人音线
...
...
@@ -1687,7 +1737,7 @@ export default {
this
.
glod_dp
=
true
// this.glod_user = false
this
.
yyds_dp
=
text
this
.
yyds_pangbai
+=
text
this
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
}
if
(
falg
)
{
console
.
log
(
'GoSound讲话完毕!'
)
...
...
@@ -1762,7 +1812,7 @@ export default {
// 写入成功,使用小程序的背景音频播放器播放音频
if
(
that
.
EPlayer
)
{
// that.EPlayer.onended=null
that
.
EPlayer
.
onEnded
()
//
that.EPlayer.onEnded()
that
.
EPlayer
.
stop
()
// that.EPlayer.cb && that.EPlayer.cb(that.Cobj.Sr, true)
}
...
...
@@ -1773,6 +1823,10 @@ export default {
console
.
log
(
'GoSound----------oooooo'
)
that
.
EPlayer
.
cb
=
CB
var
Rfunc
=
()
=>
{
if
(
that
.
jumping
){
return
}
that
.
jumping
=
true
console
.
log
(
'GoSoundrfun'
)
//移除旧文件
console
.
log
(
1123
,
that
.
tempFilePath
)
...
...
@@ -1793,15 +1847,18 @@ export default {
// that.EPlayer.onEnded(Rfunc)
that
.
EPlayer
.
onended
()
},
1000
);
that
.
jumping
=
false
return
}
if
(
CB
)
CB
(
that
.
Cobj
.
Sr
,
true
)
that
.
jumping
=
false
return
}
let
Sobj
=
Sarry
.
shift
()
console
.
log
(
'Sobj'
,
Sobj
)
if
(
Sobj
.
S
==
null
){
CB
(
Sobj
.
S
)
that
.
jumping
=
false
Rfunc
()
}
else
{
that
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
`/tempAudio_
${
new
Date
().
getTime
()}
.mp3`
;
...
...
@@ -1823,6 +1880,7 @@ export default {
fail
:
console
.
error
,
});
}
that
.
jumping
=
false
}
that
.
EPlayer
.
onEnded
(
Rfunc
)
that
.
EPlayer
.
onended
=
Rfunc
...
...
@@ -1880,6 +1938,10 @@ export default {
console
.
log
(
'oooGoSayooo'
)
this
.
EPlayer
.
cb
=
CB
var
Rfunc
=
()
=>
{
if
(
this
.
jumping
){
return
}
this
.
jumping
=
true
FileSystemManager
.
unlink
({
filePath
:
that
.
tempFilePath
,
success
(
res
)
{
...
...
@@ -1897,17 +1959,20 @@ export default {
// this.EPlayer.onEnded(Rfunc)
this
.
EPlayer
.
onended
()
},
1000
);
this
.
jumping
=
false
return
}
if
(
CB
){
CB
(
this
.
Cobj2
.
Sr
,
true
)
}
this
.
jumping
=
false
return
}
let
Sobj
=
Sarry
.
shift
()
// this.str = Sobj.S
if
(
Sobj
.
A
==
null
){
CB
(
Sobj
.
S
)
this
.
jumping
=
false
Rfunc
()
}
else
{
this
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
`/tempAudio_
${
new
Date
().
getTime
()}
.mp3`
;
...
...
@@ -1928,6 +1993,7 @@ export default {
fail
:
console
.
error
,
});
}
this
.
jumping
=
false
}
this
.
EPlayer
.
onEnded
(
Rfunc
)
this
.
EPlayer
.
onended
=
Rfunc
...
...
@@ -2241,6 +2307,15 @@ export default {
z-index
:
999
;
/* 半透明遮罩层 */
}
.full-screen-mask4
{
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
2
;
/* 半透明遮罩层 */
}
.current
{
position
:
fixed
;
...
...
@@ -2404,7 +2479,7 @@ export default {
position
:
fixed
;
right
:
5px
;
bottom
:
100px
;
z-index
:
99
;
z-index
:
2
;
}
.ClearHistoryRecord
{
/***
...
...
@@ -2475,6 +2550,11 @@ export default {
background-position
:
center
;
background-repeat
:
no-repeat
;
}
.shareWord
{
width
:
100%
;
height
:
100%
;
opacity
:
0
;
}
.plg5
{
background-image
:
url(../../static/UI/发送红包1.png)
;
background-size
:
contain
;
...
...
@@ -2562,7 +2642,7 @@ export default {
}
.boardBG
{
width
:
80vw
;
height
:
8
5
vh
;
height
:
8
0
vh
;
border-radius
:
10
rpx
;
position
:
fixed
;
top
:
50%
;
...
...
@@ -2572,14 +2652,15 @@ export default {
}
.contentHeader
{
text-align
:
center
;
font-size
:
6
0
rpx
;
font-size
:
4
0
rpx
;
font-family
:
"隶书"
;
padding
:
20
rpx
;
}
.contentHeader2
{
text-align
:
center
;
font-size
:
6
0
rpx
;
font-size
:
5
0
rpx
;
font-family
:
"隶书"
;
padding
:
30
rpx
;
}
.wiik
{
padding
:
10
rpx
30
rpx
;
...
...
@@ -2611,11 +2692,10 @@ export default {
background-position
:
center
;
background-repeat
:
no-repeat
;
width
:
80vw
;
height
:
8
5
vh
;
height
:
8
0
vh
;
z-index
:
-2
;
}
.HHH
{
padding-top
:
30
rpx
;
position
:
relative
;
}
.getResult
{
...
...
@@ -2688,6 +2768,10 @@ export default {
.jk2
{
height
:
100%
;
position
:
relative
;
background-image
:
url(https://admin.mindepoch.com:8089/worlds/结局框.png)
;
background-size
:
100%
100%
;
background-position
:
center
;
background-repeat
:
no-repeat
;
}
.fuck
{
display
:
flex
;
...
...
@@ -3126,4 +3210,25 @@ export default {
bottom
:
30
rpx
;
right
:
10
rpx
;
}
.reload_connect
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
width
:
400
rpx
;
background-color
:
aliceblue
;
font-size
:
34
rpx
;
border-radius
:
6
rpx
;
padding
:
20
rpx
;
background-color
:
rgb
(
222
,
223
,
227
);
z-index
:
9999
;
}
.connect_start
{
margin-top
:
40
rpx
;
width
:
140
rpx
;
height
:
60
rpx
;
line-height
:
60
rpx
;
background-color
:
#8fb4be
;
color
:
#fff
;
}
</
style
>
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
View file @
40c476f5
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/coco/dream/uniapp/jueqing/App.vue?545e","uni-app:///App.vue","webpack:///D:/coco/dream/uniapp/jueqing/App.vue?73c0","webpack:///D:/coco/dream/uniapp/jueqing/App.vue?f7c9"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","config","productionTip","prototype","$globalData","showEnding","EndingContent","base64ImageStr","wxUid","userPhoto","wxCode","monney","Monney","userTool","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA;;AAEA;AACA,uE,wnCAHmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;;AAKnBC,aAAIC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AACAF,aAAIG,SAAJ,CAAcC,WAAd,GAA4B;AAC1BC,YAAU,EAAE,KADc,EACP;AACnBC,eAAa,EAAC,EAFY,EAER;AAClBC,gBAAc,EAAC,EAHW,EAGP;AACnBC,OAAK,EAAC,CAJoB,EAIjB;AACTC,WAAS,EAAC,EALgB;AAM1BC,QAAM,EAAC,EANmB;AAO1BC,QAAM,EAAC,CAPmB;AAQ1BC,QAAM,EAAC,CARmB;AAS1BC,UAAQ,EAAC,EATiB,EAA5B;;AAWAC,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIhB,YAAJ;AACLc,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;;ACtBA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AACmK;AACnK,gBAAgB,6KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAgmB,CAAgB,6mBAAG,EAAC,C;;;;;;;;;;;;ACCpnB;AACA;AACA;AACA;AACA,GAJA;AAKA;AACA;AACA,GAPA;AAQA;AACA;AACA,GAVA,E;;;;;;;;;;;ACDA;AAAA;AAAA;AAAA;AAA2oC,CAAgB,4lCAAG,EAAC,C;;;;;;;;;;ACA/pC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\r\n\r\nimport Vue from 'vue'\r\nimport App from './App'\r\n\r\nVue.config.productionTip = false\r\nVue.prototype.$globalData = {\r\n showEnding: false, //是否显示聊天结局\r\n EndingContent:[], //保存了聊天结束后的内容\r\n base64ImageStr:'', //存储的base64图片\r\n wxUid:0, //登陆成功后的用户id 用于聊天使用\r\n userPhoto:'',\r\n wxCode:'',\r\n monney:0,\r\n Monney:0,\r\n userTool:[]\r\n}\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\n\t\t\tconsole.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\n\t@import '@/uni_modules/uni-scss/index.scss';\n\t/* #ifndef APP-NVUE */\n\t@import '@/static/customicons.css';\n\t// 设置整个项目的背景色\n\tpage {\n\t\tbackground-color: #f5f5f5;\n\t}\n\n\t/* #endif */\n\t.example-info {\n\t\tfont-size: 14px;\n\t\tcolor: #333;\n\t\tpadding: 10px;\n\t}\r\n</style>\n","import mod from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1718867222249\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/coco/dream/uniapp/jueqing/App.vue?545e","uni-app:///App.vue","webpack:///D:/coco/dream/uniapp/jueqing/App.vue?73c0","webpack:///D:/coco/dream/uniapp/jueqing/App.vue?f7c9"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","config","productionTip","prototype","$globalData","showEnding","EndingContent","base64ImageStr","wxUid","userPhoto","wxCode","monney","Monney","userTool","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA;;AAEA;AACA,uE,wnCAHmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;;AAKnBC,aAAIC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AACAF,aAAIG,SAAJ,CAAcC,WAAd,GAA4B;AAC1BC,YAAU,EAAE,KADc,EACP;AACnBC,eAAa,EAAC,EAFY,EAER;AAClBC,gBAAc,EAAC,EAHW,EAGP;AACnBC,OAAK,EAAC,CAJoB,EAIjB;AACTC,WAAS,EAAC,EALgB;AAM1BC,QAAM,EAAC,EANmB;AAO1BC,QAAM,EAAC,CAPmB;AAQ1BC,QAAM,EAAC,CARmB;AAS1BC,UAAQ,EAAC,EATiB,EAA5B;;AAWAC,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIhB,YAAJ;AACLc,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;;ACtBA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AACmK;AACnK,gBAAgB,6KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAgmB,CAAgB,6mBAAG,EAAC,C;;;;;;;;;;;;ACCpnB;AACA;AACA;AACA;AACA,GAJA;AAKA;AACA;AACA,GAPA;AAQA;AACA;AACA,GAVA,E;;;;;;;;;;;ACDA;AAAA;AAAA;AAAA;AAA2oC,CAAgB,4lCAAG,EAAC,C;;;;;;;;;;ACA/pC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\r\n\r\nimport Vue from 'vue'\r\nimport App from './App'\r\n\r\nVue.config.productionTip = false\r\nVue.prototype.$globalData = {\r\n showEnding: false, //是否显示聊天结局\r\n EndingContent:[], //保存了聊天结束后的内容\r\n base64ImageStr:'', //存储的base64图片\r\n wxUid:0, //登陆成功后的用户id 用于聊天使用\r\n userPhoto:'',\r\n wxCode:'',\r\n monney:0,\r\n Monney:0,\r\n userTool:[]\r\n}\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\n\t\t\tconsole.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\n\t@import '@/uni_modules/uni-scss/index.scss';\n\t/* #ifndef APP-NVUE */\n\t@import '@/static/customicons.css';\n\t// 设置整个项目的背景色\n\tpage {\n\t\tbackground-color: #f5f5f5;\n\t}\n\n\t/* #endif */\n\t.example-info {\n\t\tfont-size: 14px;\n\t\tcolor: #333;\n\t\tpadding: 10px;\n\t}\r\n</style>\n","import mod from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1721008753860\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/pages/currentHome/index.js.map
View file @
40c476f5
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?2736","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?b372","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?7981","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?8fcb","uni-app:///pages/currentHome/index.vue","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?92ff","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?30bc"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,kG,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACyK;AACzK,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBppB;AACA,MADA,kBACA;AACA;AACA;AACA,0CADA;AAEA,6CAFA;AAGA;AACA;AAJA,OADA;;AAQA,GAVA;AAWA;AACA,gBADA,wBACA,CADA,EACA;AACA,0CADA,CACA;AACA;AACA;AACA,KALA,EAXA,E;;;;;;;;;;;;AClBA;AAAA;AAAA;AAAA;AAAu7B,CAAgB,43BAAG,EAAC,C;;;;;;;;;;;ACA38B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/currentHome/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/currentHome/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=6f928552&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=6f928552&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6f928552\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/currentHome/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=6f928552&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"container\">\r\n <swiper \r\n class=\"swiper\" \r\n indicator-dots=\"false\" \r\n autoplay=\"true\" \r\n interval=\"3000\" \r\n duration=\"1000\" \r\n circular=\"true\"\r\n bindchange=\"swiperChange\">\r\n <swiper-item class=\"swiper-item\" v-for=\"(item, index) in imgList\" :key=\"index\">\r\n <image :src=\"item\" class=\"slide-image\" />\r\n </swiper-item>\r\n </swiper>\r\n </view>\r\n </template>\r\n \r\n <script>\r\n export default {\r\n data() {\r\n return {\r\n imgList: [\r\n '../../../static/photo/makeWord.png',\r\n '../../../static/photo/fightingAll.png',\r\n '../../../static/photo/forwardHouse.png' \r\n // 更多图片路径\r\n ],\r\n };\r\n },\r\n methods: {\r\n swiperChange(e) {\r\n const currentIndex = e.detail.current; // 获取当前swiper的索引\r\n // 根据currentIndex动态调整当前、前一张、后一张图片的样式以实现3D效果\r\n // 由于直接操作样式较为复杂,建议根据currentIndex修改数据驱动样式的变化\r\n }\r\n }\r\n };\r\n </script>\r\n\r\n<style scoped>\r\n.container {\r\n width: 100%;\r\n overflow: hidden;\r\n}\r\n.swiper {\r\n height: 200px;\r\n width: 100%;\r\n}\r\n.swiper-item {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 200px;\r\n}\r\n.slide-image {\r\n width: 80%;\r\n height: 100%;\r\n transition: transform 1s;\r\n transform: scale(0.8); /* 默认状态为稍微缩小,聚焦时放大 */\r\n}\r\n</style>","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=6f928552&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=6f928552&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1718867219733\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?2736","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?b372","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?7981","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?8fcb","uni-app:///pages/currentHome/index.vue","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?92ff","webpack:///D:/coco/dream/uniapp/jueqing/pages/currentHome/index.vue?30bc"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,kG,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACyK;AACzK,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBppB;AACA,MADA,kBACA;AACA;AACA;AACA,0CADA;AAEA,6CAFA;AAGA;AACA;AAJA,OADA;;AAQA,GAVA;AAWA;AACA,gBADA,wBACA,CADA,EACA;AACA,0CADA,CACA;AACA;AACA;AACA,KALA,EAXA,E;;;;;;;;;;;;AClBA;AAAA;AAAA;AAAA;AAAu7B,CAAgB,43BAAG,EAAC,C;;;;;;;;;;;ACA38B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/currentHome/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/currentHome/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=6f928552&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=6f928552&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6f928552\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/currentHome/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=6f928552&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"container\">\r\n <swiper \r\n class=\"swiper\" \r\n indicator-dots=\"false\" \r\n autoplay=\"true\" \r\n interval=\"3000\" \r\n duration=\"1000\" \r\n circular=\"true\"\r\n bindchange=\"swiperChange\">\r\n <swiper-item class=\"swiper-item\" v-for=\"(item, index) in imgList\" :key=\"index\">\r\n <image :src=\"item\" class=\"slide-image\" />\r\n </swiper-item>\r\n </swiper>\r\n </view>\r\n </template>\r\n \r\n <script>\r\n export default {\r\n data() {\r\n return {\r\n imgList: [\r\n '../../../static/photo/makeWord.png',\r\n '../../../static/photo/fightingAll.png',\r\n '../../../static/photo/forwardHouse.png' \r\n // 更多图片路径\r\n ],\r\n };\r\n },\r\n methods: {\r\n swiperChange(e) {\r\n const currentIndex = e.detail.current; // 获取当前swiper的索引\r\n // 根据currentIndex动态调整当前、前一张、后一张图片的样式以实现3D效果\r\n // 由于直接操作样式较为复杂,建议根据currentIndex修改数据驱动样式的变化\r\n }\r\n }\r\n };\r\n </script>\r\n\r\n<style scoped>\r\n.container {\r\n width: 100%;\r\n overflow: hidden;\r\n}\r\n.swiper {\r\n height: 200px;\r\n width: 100%;\r\n}\r\n.swiper-item {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 200px;\r\n}\r\n.slide-image {\r\n width: 80%;\r\n height: 100%;\r\n transition: transform 1s;\r\n transform: scale(0.8); /* 默认状态为稍微缩小,聚焦时放大 */\r\n}\r\n</style>","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=6f928552&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=6f928552&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1721008751202\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/pages/homeCards/index.js.map
View file @
40c476f5
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?c93f","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?a6b2","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?c1cf","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?8313","uni-app:///pages/homeCards/index.vue","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?0f83","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?eaff"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,gG,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACyK;AACzK,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,wTAEN;AACP,KAAK;AACL;AACA,aAAa,uVAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqDppB;AACA,MADA,kBACA;AACA;AACA,eADA;AAEA,2BAFA;AAGA,aAHA;AAIA,yBAJA;AAKA,kBALA;AAMA;AACA,cAPA;AAQA,yBARA;AASA,uBATA;AAUA,wBAVA;AAWA,sBAXA;AAYA,kBAZA;AAaA;AACA,sEAdA;AAeA,gBAfA;AAgBA,UAhBA;AAiBA;AACA,wDADA;AAEA,wDAFA;AAGA,wDAHA,CAjBA;;AAsBA;AACA;AACA;AACA;AAHA,OAtBA;AA2BA;AACA,uBADA;AAEA,kBAFA,EA3BA;;AA+BA;AACA,uBADA;AAEA,4BAFA;AAGA,gCAHA;AAIA,6BAJA,EA/BA;;;AAsCA,GAxCA;AAyCA,SAzCA,qBAyCA;AACA;AACA;AACA;AACA;AACA,aADA,mBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4FADA;AAEA,0BAFA;AAGA;AACA,iEADA,EAHA;;AAMA,oCANA;AAOA;AACA;AACA;AACA;;AAEA;AACA,4DADA,CACA;AACA;AACA,kFAHA,CAGA;AACA;AACA,eALA,MAKA;AACA;AACA;AACA;AACA,iBAHA,MAGA;AACA;AACA;AACA;;;AAGA,aA3BA;AA4BA;AACA;AACA,aA9BA;;AAgCA,SArCA,MAqCA;AACA;AACA;AACA,OA1CA;;;AA6CA,GA1FA;AA2FA,QA3FA,oBA2FA,EA3FA;AA4FA;AACA,QADA,kBACA;AACA;AACA,qEADA;AAEA;AACA,kEADA;AAEA,6DAFA,EAFA;;AAMA,sBANA;AAOA;AACA,uBADA,EAPA;;AAUA,UAVA,CAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAjBA,EAiBA,KAjBA,CAiBA;AACA;AACA,OAnBA;AAoBA,KAtBA;AAuBA,YAvBA,sBAuBA;AACA;AACA;AACA,KA1BA;AA2BA,aA3BA,uBA2BA;AACA;AACA;AACA,KA9BA;AA+BA;AACA,gBAhCA,0BAgCA;AACA;AACA;AACA;AACA,eADA,mBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA,sFADA;AAEA,0BAFA;AAGA,oCAHA;AAIA,0BAJA;AAKA;AACA,4BADA;AAEA,qCAFA,EALA;;AASA;AACA;AACA,oDADA;AAEA,4BAFA;;AAIA;AACA;AACA;AACA;AACA;AACA,8BADA;AAEA,8BAFA;;AAIA;AACA,wFANA,CAMA;AACA,wDAPA,CAOA;AACA,0DARA,CAQA;AACA,0CATA,CASA;AACA;AACA,eAXA,MAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAnDA;AAoDA;AACA;AACA;AACA,6BADA,EACA;AACA,4BAFA,EAEA;AACA,gCAHA,EAGA;AACA,gCAJA,EAIA;AACA,sCALA,EAKA;AACA,iCANA,EAMA;AACA,uCAPA,EAOA;AACA;AACA;AACA;AACA,mBAFA,MAEA;AACA;AACA;AACA,iBAdA;AAeA;AACA;AACA,iBAjBA;;;AAoBA,aA1EA;;;AA6EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SA7LA;AA8LA,YA9LA,gBA8LA,GA9LA,EA8LA;AACA;AACA;AACA,iCADA;AAEA,wBAFA;;AAIA,SApMA;;AAsMA,KAzOA;AA0OA,kBA1OA,0BA0OA,CA1OA,EA0OA;AACA,0BADA;AAEA,eAFA,GAEA,QAFA,CAEA,SAFA;AAGA;AACA,KA9OA;;AAgPA,SAhPA,iBAgPA,IAhPA,EAgPA;AACA;AACA,sEADA;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA7PA;AA8PA,iBA9PA,yBA8PA,MA9PA,EA8PA,KA9PA,EA8PA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA5QA;;AA8QA,WA9QA,qBA8QA;AACA;AACA,6BADA;AAEA,qBAFA;AAGA,6BAHA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAZA;AAaA;AACA;AACA,SAfA;;AAiBA,KAhSA;;AAkSA,qBAlSA,+BAkSA;AACA;AACA,8DADA;AAEA,sBAFA;AAGA;AACA,6DADA;AAEA,kEAFA,EAHA;;AAOA,iDAPA;AAQA;AACA;AACA;AACA,0BADA;AAEA,wBAFA;;AAIA,SAdA;AAeA;AACA;AACA,SAjBA;;AAmBA,KAtTA,EA5FA,E;;;;;;;;;;;;ACrDA;AAAA;AAAA;AAAA;AAAu7B,CAAgB,43BAAG,EAAC,C;;;;;;;;;;ACA38B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/homeCards/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/homeCards/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=86ffa444&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"86ffa444\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/homeCards/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=86ffa444&scoped=true&\"","var components\ntry {\n components = {\n zSwiper: function() {\n return import(\n /* webpackChunkName: \"uni_modules/zebra-swiper/components/z-swiper/z-swiper\" */ \"@/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue\"\n )\n },\n zSwiperItem: function() {\n return import(\n /* webpackChunkName: \"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item\" */ \"@/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"wrapper\">\r\n <!-- 获取用户信息 -->\r\n <view v-if=\"showUserInfo\" class=\"ttt\">\r\n <button class=\"avatar-wrapper\" open-type=\"chooseAvatar\" @chooseavatar=\"onChooseAvatar\">\r\n <image class=\"avatar\" :src=\"avatarUrl\"></image>\r\n </button> \r\n <view class=\"tipUserHeader\">设置头像</view>\r\n <input class=\"weui-input\" v-model=\"userName\" placeholder=\"请输入昵称\"/>\r\n <button type=\"primary\" :disabled=\"disabledSubmit\" @click=\"handleSubmit\" class=\"submit\">提交</button>\r\n </view>\r\n <!-- <button @click=\"handleUserDestory\"> 用户注销 </button> -->\r\n <view class=\"shadow\">\r\n </view>\r\n\r\n <view class=\"section\" >\r\n <view class=\"shadowBoard\" :style=\"{backgroundImage:'url('+ photo[i] +')'}\"></view>\r\n <view class=\"swiper\">\r\n <image\r\n @click=\"preImage\"\r\n class=\"scaleToFill\"\r\n src=\"../../static/photo/left.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <image\r\n @click=\"nextImage\"\r\n class=\"scaleToFill2\"\r\n src=\"../../static/photo/left.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <z-swiper ref=\"zSwiper\" v-model=\"list\" @slideChange=\"onSlideChange\" :options=\"options\" class=\"swiper\">\r\n <z-swiper-item :custom-style=\"slideCustomStyle\" v-for=\"(item,index) in list\" :key=\"index\">\r\n <button class=\"btn\" @click=\"NavTo(item)\">\r\n <image class=\"image\" :src=\"'https://admin.mindepoch.com:8089/worlds/' + item.name + '.png'\" mode=\"aspectFill\"></image>\r\n <view class=\"CardContent\">\r\n <view class=\"card\">\r\n <view class=\"header1\">{{item.name}}</view>\r\n <view class=\"header2\">\r\n <view class=\"sdsd\">{{item.worldHeader}}</view>\r\n <view class=\"distence\"></view>\r\n <view class=\"detail\">{{item.description}}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </button>\r\n </z-swiper-item>\r\n </z-swiper>\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n err:null,\r\n disabledSubmit:false,\r\n id:274,\r\n showUserInfo:false,\r\n userName:'',\r\n // avatarUrl: 'https://admin.mindepoch.com:8089/static/poster1.png',\r\n code:'',\r\n clickNoArgee:false,\r\n clickArgee:false,\r\n isBindPhone:false,\r\n needDialog:true,\r\n nickName:'',\r\n // avatarUrl:'/static/photo/default.jpg',\r\n avatarUrl:'https://admin.mindepoch.com:8089/worlds/default.jpg',\r\n OpenId:'',\r\n i:0,\r\n photo:[\r\n 'https://admin.mindepoch.com:8089/worlds/情圣日记.png',\r\n 'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',\r\n 'https://admin.mindepoch.com:8089/worlds/舌战群儒.png'\r\n ],\r\n list: [\r\n // {image:'https://admin.mindepoch.com:8089/worlds/情圣日记.png',title:'情圣日记',content1:'-Love&Entropy',content2:'你还...记得我吗?'},\r\n // {image:'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\r\n // {image:'https://admin.mindepoch.com:8089/worlds/舌战群儒.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\r\n ],\r\n options:{\r\n effect: 'cards',\r\n loop : true,\r\n },\r\n slideCustomStyle: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n borderRadius: '36rpx'\r\n }\r\n }\r\n },\r\n mounted() {\r\n //用户验证用户是否登陆过\r\n // console.log(this)\r\n var that = this\r\n wx.login({\r\n success(res) {\r\n if (res.code) {\r\n // uni.setStorageSync('code', res.code)\r\n that.code = res.code\r\n console.log('code',that.code)\r\n // 将 res.code 发送至后台服务器进行处理\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/wechat/CheckWxUserIsRegisterAndBindPhone',\r\n method: 'POST',\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n data: { code: res.code },\r\n success: function(res) {\r\n console.log('resres',res)\r\n that.isBindPhone = res.data.isBindPhone\r\n that.wxUid = res.data.wxUid\r\n \r\n if(res.data.message===\"微信用户已注册,模拟登录成功!\"){\r\n uni.setStorageSync('wxUid', res.data.wxUid); //保存用户id\r\n uni.setStorageSync('userName', res.data.userName)\r\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]) //保存cookie值\r\n that.init()\r\n }else{\r\n if(res.data.code===1){\r\n //用户已注册\r\n that.init()\r\n }else{\r\n that.showUserInfo = true\r\n }\r\n }\r\n\r\n\r\n },\r\n fail: function(err) {\r\n console.log(err)\r\n }\r\n })\r\n } else {\r\n console.error('登录失败!' + res.errMsg);\r\n }\r\n }\r\n })\r\n \r\n },\r\n onload() {},\r\n methods: {\r\n init(){\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/QueryWorldsByLikeName',\r\n header: {\r\n 'Cookie': `${uni.getStorageSync('session_token')}`,\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n method: 'post',\r\n data:{\r\n worldName: ''\r\n }\r\n }).then(result => {\r\n console.log(111,result[1].data)\r\n if(result[1].data.code===1){\r\n if(result[1].data.worldInfoAndAsset.length>0){\r\n this.list = result[1].data.worldInfoAndAsset\r\n }\r\n }\r\n }).catch(err=> {\r\n console.log(222,err)\r\n });\r\n },\r\n preImage(){\r\n // console.log('pre')\r\n this.$refs.zSwiper.swiper.slidePrev();\r\n },\r\n nextImage(){\r\n // console.log('next')\r\n this.$refs.zSwiper.swiper.slideNext();\r\n },\r\n //获取到用户昵称 以及用户头像\r\n handleSubmit(){\r\n this.disabledSubmit = true\r\n var that = this\r\n wx.login({\r\n success(res) {\r\n if(!res.code) {\r\n return\r\n }\r\n uni.uploadFile({\r\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\r\n method: 'POST',\r\n filePath:that.avatarUrl,\r\n name: 'avatar',\r\n formData: {\r\n code: res.code,\r\n username: that.userName\r\n },\r\n success: uploadRes => {\r\n uni.showToast({\r\n title: 'AppletWeChatRegisterOrLogin',\r\n icon: 'none'\r\n })\r\n console.log('上传成功uploadRes', uploadRes);\r\n console.log(JSON.parse(uploadRes.data))\r\n const data = JSON.parse(uploadRes.data)\r\n if(data.code===1){\r\n uni.showToast({\r\n title: '成功!',\r\n icon: 'none'\r\n });\r\n uni.setStorageSync('userName', that.userName);\r\n uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\r\n uni.setStorageSync('wxUid', data.wxUid); //保存用户id\r\n uni.setStorageSync('openId', data.openId); //保存用户id\r\n that.showUserInfo = false //隐藏用户填写的表单\r\n that.init()\r\n }else{\r\n //失败\r\n // uni.showModal({\r\n // title: '弹窗标题', // 弹窗的标题\r\n // content: JSON.parse(uploadRes.data), // 弹窗的文本内容\r\n // showCancel: true, // 是否显示取消按钮,默认为 true\r\n // cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n // cancelColor: '#000000', // 取消按钮的文字颜色\r\n // confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n // confirmColor: '#576B95', // 确定按钮的文字颜色\r\n // success: function (res) {\r\n // if (res.confirm) {\r\n // console.log('用户点击确定');\r\n // } else if (res.cancel) {\r\n // console.log('用户点击取消');\r\n // }\r\n // },\r\n // fail: function (err) {\r\n // console.log('API 调用失败: ', err);\r\n // }\r\n // });\r\n that.disabledSubmit = false\r\n }\r\n },\r\n fail: uploadErr => {\r\n console.error('上传失败', uploadErr);\r\n uni.showModal({\r\n title: '弹窗标题', // 弹窗的标题\r\n content: '1', // 弹窗的文本内容 JSON.parse(uploadErr.errMsg)\r\n showCancel: true, // 是否显示取消按钮,默认为 true\r\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n cancelColor: '#000000', // 取消按钮的文字颜色\r\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n confirmColor: '#576B95', // 确定按钮的文字颜色\r\n success: function (res) {\r\n if (res.confirm) {\r\n console.log('用户点击确定');\r\n } else if (res.cancel) {\r\n console.log('用户点击取消');\r\n }\r\n },\r\n fail: function (err) {\r\n console.log('API 调用失败: ', err);\r\n }\r\n });\r\n \r\n }\r\n })\r\n\r\n // uni.downloadFile({\r\n // url: that.avatarUrl,\r\n // success: downloadRes => {\r\n // if (downloadRes.statusCode === 200) {\r\n // // 图片下载成功后获取临时文件路径\r\n // const tempFilePath = downloadRes.tempFilePath;\r\n // console.log('--------------',downloadRes)\r\n // uni.uploadFile({\r\n // url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\r\n // method: 'POST',\r\n // filePath:tempFilePath,\r\n // name: 'avatar',\r\n // formData: {\r\n // code: res.code,\r\n // username: that.userName,\r\n // },\r\n // success: uploadRes => {\r\n // uni.showToast({\r\n // title: 'AppletWeChatRegisterOrLogin',\r\n // icon: 'none'\r\n // })\r\n // console.log('上传成功uploadRes', uploadRes);\r\n // console.log(JSON.parse(uploadRes.data))\r\n // const data = JSON.parse(uploadRes.data)\r\n // if(data.code===1){\r\n // uni.showToast({\r\n // title: '成功!',\r\n // icon: 'none'\r\n // });\r\n // uni.setStorageSync('userName', that.userName);\r\n // uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\r\n // uni.setStorageSync('wxUid', data.wxUid); //保存用户id\r\n // uni.setStorageSync('openId', data.openId); //保存用户id\r\n // that.showUserInfo = false //隐藏用户填写的表单\r\n // that.init()\r\n // }else{\r\n // //失败\r\n // // uni.showModal({\r\n // // title: '弹窗标题', // 弹窗的标题\r\n // // content: JSON.parse(uploadRes.data), // 弹窗的文本内容\r\n // // showCancel: true, // 是否显示取消按钮,默认为 true\r\n // // cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n // // cancelColor: '#000000', // 取消按钮的文字颜色\r\n // // confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n // // confirmColor: '#576B95', // 确定按钮的文字颜色\r\n // // success: function (res) {\r\n // // if (res.confirm) {\r\n // // console.log('用户点击确定');\r\n // // } else if (res.cancel) {\r\n // // console.log('用户点击取消');\r\n // // }\r\n // // },\r\n // // fail: function (err) {\r\n // // console.log('API 调用失败: ', err);\r\n // // }\r\n // // });\r\n // that.disabledSubmit = false\r\n // }\r\n // },\r\n // fail: uploadErr => {\r\n // // uni.showModal({\r\n // // title: '弹窗标题', // 弹窗的标题\r\n // // content: JSON.parse(uploadErr), // 弹窗的文本内容\r\n // // showCancel: true, // 是否显示取消按钮,默认为 true\r\n // // cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n // // cancelColor: '#000000', // 取消按钮的文字颜色\r\n // // confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n // // confirmColor: '#576B95', // 确定按钮的文字颜色\r\n // // success: function (res) {\r\n // // if (res.confirm) {\r\n // // console.log('用户点击确定');\r\n // // } else if (res.cancel) {\r\n // // console.log('用户点击取消');\r\n // // }\r\n // // },\r\n // // fail: function (err) {\r\n // // console.log('API 调用失败: ', err);\r\n // // }\r\n // // });\r\n // console.error('上传失败', uploadErr);\r\n // }\r\n // })\r\n // }\r\n // },\r\n // fail: downloadErr => {\r\n // console.error('下载图片失败', downloadErr)\r\n // // uni.showModal({\r\n // // title: '弹窗标题', // 弹窗的标题\r\n // // content: JSON.stringify(downloadErr), // 弹窗的文本内容\r\n // // showCancel: true, // 是否显示取消按钮,默认为 true\r\n // // cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n // // cancelColor: '#000000', // 取消按钮的文字颜色\r\n // // confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n // // confirmColor: '#576B95', // 确定按钮的文字颜色\r\n // // success: function (res) {\r\n // // if (res.confirm) {\r\n // // console.log('用户点击确定');\r\n // // } else if (res.cancel) {\r\n // // console.log('用户点击取消');\r\n // // }\r\n // // },\r\n // // fail: function (err) {\r\n // // console.log('API 调用失败: ', err);\r\n // // }\r\n // // });\r\n // }\r\n // });\r\n },\r\n fail(err){\r\n console.log(err)\r\n uni.showToast({\r\n title: err.toString(),\r\n icon: 'none'\r\n })\r\n }\r\n })\r\n },\r\n onChooseAvatar(e) {\r\n console.log('e',e)\r\n const { avatarUrl } = e.detail \r\n this.avatarUrl = avatarUrl\r\n },\r\n\r\n NavTo(data) {\r\n uni.navigateTo({\r\n url: `/pages/index/index?params=${JSON.stringify(data)}`\r\n });\r\n\r\n // console.log(title)\r\n // if(title==='情圣日记'){\r\n // }else{\r\n // uni.showToast({\r\n // title: '敬请期待',\r\n // icon: 'none'\r\n // });\r\n // }\r\n },\r\n onSlideChange(swiper,index) {\r\n console.log(swiper,index)\r\n // const len = this.photo.length + 1\r\n if(this.photo.length+1==index){\r\n this.i = 0\r\n }else if(index==0){\r\n this.i = this.photo.length-1\r\n }else{\r\n this.i = index-1\r\n }\r\n // 你可以在这里获取当前的swiper索引\r\n // const currentIndex = swiper.activeIndex;\r\n // 执行你想要的操作,比如更新页面标题\r\n // uni.setNavigationBarTitle('当前页: ' + (currentIndex + 1));\r\n },\r\n\r\n getAuth() {\r\n wx.getUserProfile({\r\n withCredentials: true,\r\n lang: 'zh_CN',\r\n desc:'提升用户体验,减少用户操作',\r\n success: function (userRes) {\r\n console.log('userRes',userRes)\r\n // var userInfo = userRes.userInfo;\r\n // console.log(\"用户昵称为:\" + userInfo.nickName);\r\n // console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\r\n // this.nickName = userInfo.nickName\r\n // this.avatarUrl = userInfo.avatarUrl\r\n // this.$globalData.userPhoto = userInfo.avatarUrl\r\n },\r\n fail: function () {\r\n console.error('获取用户信息失败');\r\n }\r\n });\r\n },\r\n\r\n handleUserDestory() {\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/UnregisterUser',\r\n method: 'POST',\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n 'Cookie': `${uni.getStorageSync('session_token')}`,\r\n },\r\n data: { id: uni.getStorageSync('wxUid') },\r\n success:function(res) {\r\n console.log(res)\r\n uni.showToast({\r\n title: '注销成功!',\r\n icon: 'none'\r\n });\r\n },\r\n fail:function(err) {\r\n console.log(err)\r\n }\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.wrapper{\r\n height: 100vh;\r\n width: 100vw;\r\n}\r\n.image {\r\n\theight:100%;\r\n\twidth: 100%;\r\n}\r\n.section{\r\n \r\n}\r\n.shadowBoard{\r\n /* 其他样式,如背景大小、位置等 */\r\n width: 100vw;\r\n height: 100vh;\r\n background-size: cover;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n filter: blur(5px);\r\n z-index: -99;\r\n position: fixed;\r\n \r\n}\r\n.swiper{\r\n padding-top: 320rpx;\r\n position:relative;\r\n}\r\n.CardContent{\r\n position: absolute;\r\n top:0;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n height: 100%;\r\n width: 85%;\r\n color: #fff;\r\n}\r\n.card{\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.header1{\r\n font-size: 40rpx;\r\n margin-top: 20rpx;\r\n text-align: left;\r\n}\r\n.header2{\r\n position: absolute;\r\n bottom:40rpx;\r\n left: 0;\r\n font-size: 38rpx;\r\n}\r\n.sdsd{\r\n text-align: left;\r\n}\r\n.distence{\r\n margin-top: 20rpx;\r\n}\r\n.detail{\r\n font-size: 24rpx;\r\n max-height: 100rpx;\r\n line-height: 38rpx;\r\n background-color: #00000039;\r\n padding: 6rpx;\r\n border-radius: 10rpx;\r\n text-align: left;\r\n overflow-y: scroll;\r\n}\r\n.shadow{\r\n position: fixed;\r\n width: 100vw;\r\n height: 100vh;\r\n \r\n}\r\n.shadow>image{\r\n width: auto;\r\n height: 100%;\r\n}\r\n.btn{\r\n padding: 0 !important;\r\n margin: 0 !important;\r\n display: block;\r\n z-index: 99;\r\n border-radius: 24rpx;\r\n height: 700rpx;\r\n width:450rpx;\r\n border: 1px solid #0000009a;\r\n box-shadow: 0 0 20rpx #fff;\r\n}\r\n.userInfoPression{\r\n background-color: #ffffff;\r\n height: 350rpx;\r\n border-radius: 20rpx 20rpx 0 0;\r\n}\r\n.mainInfo{\r\n\r\n}\r\n.infoHead{\r\n text-align: center;\r\n padding: 42rpx;\r\n font-weight: 700;\r\n}\r\n.infoFoot{\r\n display:flex;\r\n width: 100vw;\r\n position: absolute;\r\n bottom: 50rpx;\r\n left: 0;\r\n}\r\n.infoFoot>Button{\r\n width: 200rpx;\r\n height: 80rpx;\r\n line-height: 80rpx;\r\n font-size: 32rpx;\r\n color: #fff;\r\n \r\n}\r\n.infoFoot>Button:nth-child(1){\r\n background-color: gray;\r\n}\r\n.infoFoot>Button:nth-child(2){\r\n background-color: #1AAD19;\r\n}\r\n.ttt{\r\n position: absolute;\r\n top:0;\r\n left: 0;\r\n z-index: 9;\r\n width: 100vw;\r\n height: 100vh;\r\n background-color: #ffffff;\r\n}\r\n.pisition{\r\n padding-top: 300rpx;\r\n}\r\n.avatar-wrapper{\r\n border: 1px solid rgb(192, 176, 176);\r\n width: 200rpx;\r\n height: 200rpx;\r\n margin-top: 25rpx;\r\n}\r\n.avatar{\r\n width: 150rpx;\r\n height: 150rpx;\r\n margin-top: 25rpx;\r\n}\r\n.weui-input{\r\n border: 1px solid rgb(123, 108, 108);\r\n margin-top: 300rpx;\r\n width: 50vw;\r\n height: 70rpx;\r\n border-radius: 12rpx;\r\n margin: 200rpx auto;\r\n}\r\n.tipUserHeader{\r\n text-align: center;\r\n margin-top: 20rpx;\r\n color: rgb(123, 108, 108);\r\n}\r\n.submit{\r\n width: 250rpx;\r\n}\r\n.scaleToFill{\r\n position:absolute;\r\n top:62%;\r\n left:-10rpx;\r\n width:100rpx;\r\n height:100rpx;\r\n z-index:99;\r\n}\r\n.scaleToFill2{\r\n transform:rotate(180deg);\r\n position:absolute;\r\n top:62%;\r\n right:-10rpx;\r\n width:100rpx;\r\n height:100rpx;\r\n z-index:99;\r\n}\r\n</style>","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1718867219721\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?a6b2","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?c1cf","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?8313","uni-app:///pages/homeCards/index.vue","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?0f83","webpack:///D:/coco/dream/uniapp/jueqing/pages/homeCards/index.vue?eaff"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,gG,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACyK;AACzK,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,wTAEN;AACP,KAAK;AACL;AACA,aAAa,uVAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoDppB;AACA,MADA,kBACA;AACA;AACA,eADA;AAEA,2BAFA;AAGA,aAHA;AAIA,yBAJA;AAKA,oBALA;AAMA,cANA;AAOA,yBAPA;AAQA,uBARA;AASA,wBATA;AAUA,sBAVA;AAWA,kBAXA;AAYA;AACA,sEAbA;AAcA,gBAdA;AAeA,UAfA;AAgBA;AACA,wDADA;AAEA,wDAFA;AAGA,wDAHA,CAhBA;;AAqBA;AACA;AACA;AACA;AAHA,OArBA;AA0BA;AACA,uBADA;AAEA,kBAFA,EA1BA;;AA8BA;AACA,uBADA;AAEA,4BAFA;AAGA,gCAHA;AAIA,6BAJA,EA9BA;;;AAqCA,GAvCA;AAwCA,SAxCA,qBAwCA;AACA;AACA;AACA;AACA;AACA,aADA,mBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4FADA;AAEA,0BAFA;AAGA;AACA,iEADA,EAHA;;AAMA,oCANA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4DADA,CACA;AACA;AACA,kFAHA,CAGA;AACA;AACA,eALA,MAKA;AACA;AACA;AACA;AACA,iBAHA,MAGA;AACA;AACA;AACA;AACA,aA7BA;AA8BA;AACA;AACA;AACA;AACA;AACA;AACA,aApCA;;AAsCA,SA/CA,MA+CA;AACA;AACA;AACA,OApDA;;;AAuDA,GAnGA;AAoGA,QApGA,oBAoGA,EApGA;AAqGA;AACA,QADA,kBACA;AACA;AACA,qEADA;AAEA;AACA,kEADA;AAEA,6DAFA,EAFA;;AAMA,sBANA;AAOA;AACA,uBADA,EAPA;;AAUA,UAVA,CAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAtBA,EAsBA,KAtBA,CAsBA;AACA;AACA;AACA;AACA;AACA;AACA,OA5BA;AA6BA,KA/BA;AAgCA,YAhCA,sBAgCA;AACA;AACA;AACA,KAnCA;AAoCA,aApCA,uBAoCA;AACA;AACA;AACA,KAvCA;AAwCA;AACA,gBAzCA,0BAyCA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,sBAFA;;AAIA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA;AACA;AACA;AACA;AACA;AACA,uBADA,mBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA,8FADA;AAEA,kCAFA;AAGA,0CAHA;AAIA,kCAJA;AAKA;AACA,oCADA;AAEA,6CAFA,EALA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA,0CADA;AAEA,sCAFA;;AAIA;AACA,gGANA,CAMA;AACA,gEAPA,CAOA;AACA,kEARA,CAQA;AACA,kDATA,CASA;AACA;AACA,uBAXA,MAWA;AACA;AACA;AACA,uCADA,EACA;AACA,mDAFA,EAEA;AACA,0CAHA,EAGA;AACA,0CAJA,EAIA;AACA,gDALA,EAKA;AACA,2CANA,EAMA;AACA,iDAPA,EAOA;AACA;AACA;AACA;AACA,6BAFA,MAEA;AACA;AACA;AACA,2BAdA;AAeA;AACA;AACA,2BAjBA;;AAmBA;AACA;AACA,qBA/CA;AAgDA;AACA;AACA;AACA,mCADA,EACA;AACA,wCAFA,EAEA;AACA,wCAHA,EAGA;AACA,wCAJA,EAIA;AACA,8CALA,EAKA;AACA,yCANA,EAMA;AACA,+CAPA,EAOA;AACA;AACA;AACA;AACA,2BAFA,MAEA;AACA;AACA;AACA,yBAdA;AAeA;AACA;AACA,yBAjBA;;;AAoBA,qBAtEA;;AAwEA,iBA7EA;AA8EA,oBA9EA,gBA8EA,GA9EA,EA8EA;AACA;AACA;AACA,yCADA;AAEA,gCAFA;;AAIA,iBApFA;;AAsFA;AACA,WA7FA;AA8FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAnHA;;AAqHA,OAtHA,MAsHA;AACA;AACA;AACA,iBADA,mBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA,wFADA;AAEA,4BAFA;AAGA,sCAHA;AAIA,4BAJA;AAKA;AACA,8BADA;AAEA,uCAFA,EALA;;AASA;AACA;AACA,sDADA;AAEA,8BAFA;;AAIA;AACA;AACA;AACA;AACA;AACA,gCADA;AAEA,gCAFA;;AAIA;AACA,0FANA,CAMA;AACA,0DAPA,CAOA;AACA,4DARA,CAQA;AACA,4CATA,CASA;AACA;AACA,iBAXA,MAWA;AACA;AACA;AACA,iCADA,EACA;AACA,6CAFA,EAEA;AACA,oCAHA,EAGA;AACA,oCAJA,EAIA;AACA,0CALA,EAKA;AACA,qCANA,EAMA;AACA,2CAPA,EAOA;AACA;AACA;AACA;AACA,uBAFA,MAEA;AACA;AACA;AACA,qBAdA;AAeA;AACA;AACA,qBAjBA;;AAmBA;AACA;AACA,eAnDA;AAoDA;AACA;AACA;AACA,6BADA,EACA;AACA,kCAFA,EAEA;AACA,kCAHA,EAGA;AACA,kCAJA,EAIA;AACA,wCALA,EAKA;AACA,mCANA,EAMA;AACA,yCAPA,EAOA;AACA;AACA;AACA;AACA,qBAFA,MAEA;AACA;AACA;AACA,mBAdA;AAeA;AACA;AACA,mBAjBA;;;AAoBA,eA1EA;;AA4EA,WAjFA;AAkFA,cAlFA,gBAkFA,GAlFA,EAkFA;AACA;AACA;AACA,mCADA;AAEA,0BAFA;;AAIA,WAxFA;;AA0FA;AACA,KAvQA;AAwQA,kBAxQA,0BAwQA,CAxQA,EAwQA;AACA,0BADA;AAEA,eAFA,GAEA,QAFA,CAEA,SAFA;AAGA;AACA;AACA,KA7QA;;AA+QA,SA/QA,iBA+QA,IA/QA,EA+QA;AACA;AACA,sEADA;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA5RA;AA6RA,iBA7RA,yBA6RA,MA7RA,EA6RA,KA7RA,EA6RA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA3SA;;AA6SA,WA7SA,qBA6SA;AACA;AACA,6BADA;AAEA,qBAFA;AAGA,6BAHA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAZA;AAaA;AACA;AACA,SAfA;;AAiBA,KA/TA;;AAiUA,qBAjUA,+BAiUA;AACA;AACA,8DADA;AAEA,sBAFA;AAGA;AACA,6DADA;AAEA,kEAFA,EAHA;;AAOA,iDAPA;AAQA;AACA;AACA;AACA,0BADA;AAEA,wBAFA;;AAIA,SAdA;AAeA;AACA;AACA,SAjBA;;AAmBA,KArVA,EArGA,E;;;;;;;;;;;;ACpDA;AAAA;AAAA;AAAA;AAAu7B,CAAgB,43BAAG,EAAC,C;;;;;;;;;;ACA38B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/homeCards/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/homeCards/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=86ffa444&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"86ffa444\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/homeCards/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=86ffa444&scoped=true&\"","var components\ntry {\n components = {\n zSwiper: function() {\n return import(\n /* webpackChunkName: \"uni_modules/zebra-swiper/components/z-swiper/z-swiper\" */ \"@/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue\"\n )\n },\n zSwiperItem: function() {\n return import(\n /* webpackChunkName: \"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item\" */ \"@/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"wrapper\">\r\n <!-- 获取用户信息 -->\r\n <view v-if=\"showUserInfo\" class=\"ttt\">\r\n <button class=\"avatar-wrapper\" open-type=\"chooseAvatar\" @chooseavatar=\"onChooseAvatar\">\r\n <image class=\"avatar\" :src=\"avatarUrl\"></image>\r\n </button> \r\n <view class=\"tipUserHeader\">设置头像</view>\r\n <input class=\"weui-input\" v-model=\"userName\" placeholder=\"请输入昵称\"/>\r\n <button type=\"primary\" :disabled=\"disabledSubmit\" @click=\"handleSubmit\" class=\"submit\">提交</button>\r\n </view>\r\n <button @click=\"handleUserDestory\"> 用户注销 </button>\r\n <view class=\"shadow\"></view>\r\n\r\n <view class=\"section\" >\r\n <view class=\"shadowBoard\" :style=\"{backgroundImage:'url('+ photo[i] +')'}\"></view>\r\n <view class=\"swiper\">\r\n <image\r\n @click=\"preImage\"\r\n class=\"scaleToFill\"\r\n src=\"../../static/photo/left.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <image\r\n @click=\"nextImage\"\r\n class=\"scaleToFill2\"\r\n src=\"../../static/photo/left.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n <z-swiper ref=\"zSwiper\" v-model=\"list\" @slideChange=\"onSlideChange\" :options=\"options\" class=\"swiper\">\r\n <z-swiper-item :custom-style=\"slideCustomStyle\" v-for=\"(item,index) in list\" :key=\"index\">\r\n <button class=\"btn\" @click=\"NavTo(item)\">\r\n <image class=\"image\" :src=\"'https://admin.mindepoch.com:8089/worlds/' + item.name + '.png'\" mode=\"aspectFill\"></image>\r\n <view class=\"CardContent\">\r\n <view class=\"card\">\r\n <view class=\"header1\">{{item.name}}</view>\r\n <view class=\"header2\">\r\n <view class=\"sdsd\">{{item.worldHeader}}</view>\r\n <view class=\"distence\"></view>\r\n <view class=\"detail\">{{item.description}}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </button>\r\n </z-swiper-item>\r\n </z-swiper>\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n err:null,\r\n disabledSubmit:false,\r\n id:274,\r\n showUserInfo:false,\r\n userName:'卿羽',\r\n code:'',\r\n clickNoArgee:false,\r\n clickArgee:false,\r\n isBindPhone:false,\r\n needDialog:true,\r\n nickName:'',\r\n // avatarUrl:'/static/photo/default.jpg',\r\n avatarUrl:'https://admin.mindepoch.com:8089/worlds/default.jpg',\r\n OpenId:'',\r\n i:0,\r\n photo:[\r\n 'https://admin.mindepoch.com:8089/worlds/情圣日记.png',\r\n 'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',\r\n 'https://admin.mindepoch.com:8089/worlds/舌战群儒.png'\r\n ],\r\n list: [\r\n // {image:'https://admin.mindepoch.com:8089/worlds/情圣日记.png',title:'情圣日记',content1:'-Love&Entropy',content2:'你还...记得我吗?'},\r\n // {image:'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\r\n // {image:'https://admin.mindepoch.com:8089/worlds/舌战群儒.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\r\n ],\r\n options:{\r\n effect: 'cards',\r\n loop : true,\r\n },\r\n slideCustomStyle: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n borderRadius: '36rpx'\r\n }\r\n }\r\n },\r\n mounted() {\r\n //用户验证用户是否登陆过\r\n // console.log(this)\r\n var that = this\r\n wx.login({\r\n success(res) {\r\n if (res.code) {\r\n // uni.setStorageSync('code', res.code)\r\n that.code = res.code\r\n console.log('code:',that.code)\r\n // uni.showModal({\r\n // title: 'wx.login:登录ing!',\r\n // content: 'that.code:'+that.code + ''\r\n // });\r\n // 将 res.code 发送至后台服务器进行处理\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/wechat/CheckWxUserIsRegisterAndBindPhone',\r\n method: 'POST',\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n data: { code: res.code },\r\n success: function(res) {\r\n console.log('res:',res)\r\n // uni.showModal({\r\n // title: 'wx.login:登录成功!'+JSON.stringify(res),\r\n // content: res.data.toString()\r\n // });\r\n that.isBindPhone = res.data.isBindPhone\r\n that.wxUid = res.data.wxUid\r\n \r\n if(res.data.message===\"微信用户已注册,模拟登录成功!\"){\r\n uni.setStorageSync('wxUid', res.data.wxUid); //保存用户id\r\n uni.setStorageSync('userName', res.data.userName)\r\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]) //保存cookie值\r\n that.init()\r\n }else{\r\n if(res.data.code===1){\r\n //用户已注册\r\n that.init()\r\n }else{\r\n that.showUserInfo = true\r\n }\r\n }\r\n },\r\n fail: function(err) {\r\n console.log('err:',err)\r\n // uni.showModal({\r\n // title: 'wx.login:登录失败!',\r\n // content: JSON.stringify(err)\r\n // });\r\n }\r\n })\r\n } else {\r\n console.error('登录失败!' + res.errMsg);\r\n }\r\n }\r\n })\r\n \r\n },\r\n onload() {},\r\n methods: {\r\n init(){\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/QueryWorldsByLikeName',\r\n header: {\r\n 'Cookie': `${uni.getStorageSync('session_token')}`,\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n method: 'post',\r\n data:{\r\n worldName: ''\r\n }\r\n }).then(result => {\r\n console.log('init:',result[1].data)\r\n // uni.showModal({\r\n // title: 'init:',\r\n // content: result[1].data.worldInfoAndAsset.toString()\r\n // });\r\n if(result[1].data.code===1){\r\n if(result[1].data.worldInfoAndAsset.length>0){\r\n this.list = result[1].data.worldInfoAndAsset\r\n // this.list = [result[1].data.worldInfoAndAsset[1]]\r\n }\r\n }\r\n }).catch(err=> {\r\n console.log(222,err)\r\n // uni.showModal({\r\n // title: 'init_error:',\r\n // content: 'error'\r\n // });\r\n });\r\n },\r\n preImage(){\r\n // console.log('pre')\r\n this.$refs.zSwiper.swiper.slidePrev();\r\n },\r\n nextImage(){\r\n // console.log('next')\r\n this.$refs.zSwiper.swiper.slideNext();\r\n },\r\n //获取到用户昵称 以及用户头像\r\n handleSubmit(){\r\n var that = this\r\n //1.昵称输入不可为空\r\n if(this.userName.trim()==\"\"){\r\n uni.showToast({\r\n title: '昵称不可为空',\r\n icon: 'none'\r\n })\r\n return\r\n }\r\n //2.不上传头像需要下载 上传头像不需要下载\r\n if(this.avatarUrl==\"https://admin.mindepoch.com:8089/worlds/default.jpg\"){\r\n uni.downloadFile({\r\n url: that.avatarUrl,\r\n success: downloadRes => {\r\n if (downloadRes.statusCode === 200) {\r\n // 图片下载成功后获取临时文件路径\r\n const tempFilePath = downloadRes.tempFilePath;\r\n wx.login({\r\n success(res) {\r\n if(!res.code) {\r\n return\r\n }\r\n uni.uploadFile({\r\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\r\n method: 'POST',\r\n filePath:tempFilePath,\r\n name: 'avatar',\r\n formData: {\r\n code: res.code,\r\n username: that.userName\r\n },\r\n success: uploadRes => {\r\n console.log('上传成功uploadRes', uploadRes);\r\n // console.log(JSON.parse(uploadRes.data))\r\n const data = JSON.parse(uploadRes.data)\r\n if(data.code===1){\r\n uni.showToast({\r\n title: '头像上传成功!',\r\n icon: 'none'\r\n });\r\n uni.setStorageSync('userName', that.userName);\r\n uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\r\n uni.setStorageSync('wxUid', data.wxUid); //保存用户id\r\n uni.setStorageSync('openId', data.openId); //保存用户id\r\n that.showUserInfo = false //隐藏用户填写的表单\r\n that.init()\r\n }else{\r\n //失败\r\n uni.showModal({\r\n title: '温馨提示', // 弹窗的标题\r\n content: '好像出了点问题呢,再试试呢!', // 弹窗的文本内容\r\n showCancel: true, // 是否显示取消按钮,默认为 true\r\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n cancelColor: '#000000', // 取消按钮的文字颜色\r\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n confirmColor: '#576B95', // 确定按钮的文字颜色\r\n success: function (res) {\r\n if (res.confirm) {\r\n console.log('用户点击确定');\r\n } else if (res.cancel) {\r\n console.log('用户点击取消');\r\n }\r\n },\r\n fail: function (err) {\r\n console.log('API 调用失败: ', err);\r\n }\r\n });\r\n that.disabledSubmit = false\r\n }\r\n },\r\n fail: uploadErr => {\r\n console.error('上传失败', uploadErr);\r\n uni.showModal({\r\n title: '失败', // 弹窗的标题\r\n content: '创建失败!', // 弹窗的文本内容 JSON.parse(uploadErr.errMsg)\r\n showCancel: true, // 是否显示取消按钮,默认为 true\r\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n cancelColor: '#000000', // 取消按钮的文字颜色\r\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n confirmColor: '#576B95', // 确定按钮的文字颜色\r\n success: function (res) {\r\n if (res.confirm) {\r\n console.log('用户点击确定');\r\n } else if (res.cancel) {\r\n console.log('用户点击取消');\r\n }\r\n },\r\n fail: function (err) {\r\n console.log('API 调用失败: ', err);\r\n }\r\n });\r\n \r\n }\r\n }) \r\n },\r\n fail(err){\r\n console.log(err)\r\n uni.showToast({\r\n title: err.toString(),\r\n icon: 'none'\r\n })\r\n }\r\n })\r\n }\r\n },\r\n fail: downloadErr => {\r\n console.error('下载图片失败', downloadErr)\r\n // uni.showModal({\r\n // title: '弹窗标题', // 弹窗的标题\r\n // content: JSON.stringify(downloadErr), // 弹窗的文本内容\r\n // showCancel: true, // 是否显示取消按钮,默认为 true\r\n // cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n // cancelColor: '#000000', // 取消按钮的文字颜色\r\n // confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n // confirmColor: '#576B95', // 确定按钮的文字颜色\r\n // success: function (res) {\r\n // if (res.confirm) {\r\n // console.log('用户点击确定');\r\n // } else if (res.cancel) {\r\n // console.log('用户点击取消');\r\n // }\r\n // },\r\n // fail: function (err) {\r\n // console.log('API 调用失败: ', err);\r\n // }\r\n // });\r\n }\r\n });\r\n }else{\r\n this.disabledSubmit = true\r\n wx.login({\r\n success(res) {\r\n if(!res.code) {\r\n return\r\n }\r\n uni.uploadFile({\r\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\r\n method: 'POST',\r\n filePath:that.avatarUrl,\r\n name: 'avatar',\r\n formData: {\r\n code: res.code,\r\n username: that.userName\r\n },\r\n success: uploadRes => {\r\n uni.showToast({\r\n title: 'AppletWeChatRegisterOrLogin',\r\n icon: 'none'\r\n })\r\n console.log('上传成功uploadRes', uploadRes);\r\n console.log(JSON.parse(uploadRes.data))\r\n const data = JSON.parse(uploadRes.data)\r\n if(data.code===1){\r\n uni.showToast({\r\n title: '成功!',\r\n icon: 'none'\r\n });\r\n uni.setStorageSync('userName', that.userName);\r\n uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\r\n uni.setStorageSync('wxUid', data.wxUid); //保存用户id\r\n uni.setStorageSync('openId', data.openId); //保存用户id\r\n that.showUserInfo = false //隐藏用户填写的表单\r\n that.init()\r\n }else{\r\n //失败\r\n uni.showModal({\r\n title: '温馨提示', // 弹窗的标题\r\n content: '好像出了点问题呢,再试试呢!', // 弹窗的文本内容\r\n showCancel: true, // 是否显示取消按钮,默认为 true\r\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n cancelColor: '#000000', // 取消按钮的文字颜色\r\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n confirmColor: '#576B95', // 确定按钮的文字颜色\r\n success: function (res) {\r\n if (res.confirm) {\r\n console.log('用户点击确定');\r\n } else if (res.cancel) {\r\n console.log('用户点击取消');\r\n }\r\n },\r\n fail: function (err) {\r\n console.log('API 调用失败: ', err);\r\n }\r\n });\r\n that.disabledSubmit = false\r\n }\r\n },\r\n fail: uploadErr => {\r\n console.error('上传失败', uploadErr);\r\n uni.showModal({\r\n title: '失败', // 弹窗的标题\r\n content: '创建失败!', // 弹窗的文本内容 JSON.parse(uploadErr.errMsg)\r\n showCancel: true, // 是否显示取消按钮,默认为 true\r\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\r\n cancelColor: '#000000', // 取消按钮的文字颜色\r\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\r\n confirmColor: '#576B95', // 确定按钮的文字颜色\r\n success: function (res) {\r\n if (res.confirm) {\r\n console.log('用户点击确定');\r\n } else if (res.cancel) {\r\n console.log('用户点击取消');\r\n }\r\n },\r\n fail: function (err) {\r\n console.log('API 调用失败: ', err);\r\n }\r\n });\r\n \r\n }\r\n })\r\n },\r\n fail(err){\r\n console.log(err)\r\n uni.showToast({\r\n title: err.toString(),\r\n icon: 'none'\r\n })\r\n }\r\n })\r\n }\r\n },\r\n onChooseAvatar(e) {\r\n console.log('e',e)\r\n const { avatarUrl } = e.detail \r\n this.avatarUrl = avatarUrl\r\n console.log('this.avatarUrl',this.avatarUrl)\r\n },\r\n\r\n NavTo(data) {\r\n uni.navigateTo({\r\n url: `/pages/index/index?params=${JSON.stringify(data)}`\r\n });\r\n\r\n // console.log(title)\r\n // if(title==='情圣日记'){\r\n // }else{\r\n // uni.showToast({\r\n // title: '敬请期待',\r\n // icon: 'none'\r\n // });\r\n // }\r\n },\r\n onSlideChange(swiper,index) {\r\n console.log(swiper,index)\r\n // const len = this.photo.length + 1\r\n if(this.photo.length+1==index){\r\n this.i = 0\r\n }else if(index==0){\r\n this.i = this.photo.length-1\r\n }else{\r\n this.i = index-1\r\n }\r\n // 你可以在这里获取当前的swiper索引\r\n // const currentIndex = swiper.activeIndex;\r\n // 执行你想要的操作,比如更新页面标题\r\n // uni.setNavigationBarTitle('当前页: ' + (currentIndex + 1));\r\n },\r\n\r\n getAuth() {\r\n wx.getUserProfile({\r\n withCredentials: true,\r\n lang: 'zh_CN',\r\n desc:'提升用户体验,减少用户操作',\r\n success: function (userRes) {\r\n console.log('userRes',userRes)\r\n // var userInfo = userRes.userInfo;\r\n // console.log(\"用户昵称为:\" + userInfo.nickName);\r\n // console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\r\n // this.nickName = userInfo.nickName\r\n // this.avatarUrl = userInfo.avatarUrl\r\n // this.$globalData.userPhoto = userInfo.avatarUrl\r\n },\r\n fail: function () {\r\n console.error('获取用户信息失败');\r\n }\r\n });\r\n },\r\n\r\n handleUserDestory() {\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/UnregisterUser',\r\n method: 'POST',\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n 'Cookie': `${uni.getStorageSync('session_token')}`,\r\n },\r\n data: { id: uni.getStorageSync('wxUid') },\r\n success:function(res) {\r\n console.log(res)\r\n uni.showToast({\r\n title: '注销成功!',\r\n icon: 'none'\r\n });\r\n },\r\n fail:function(err) {\r\n console.log(err)\r\n }\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.wrapper{\r\n height: 100vh;\r\n width: 100vw;\r\n}\r\n.image {\r\n\theight:100%;\r\n\twidth: 100%;\r\n}\r\n.section{\r\n \r\n}\r\n.shadowBoard{\r\n /* 其他样式,如背景大小、位置等 */\r\n width: 100vw;\r\n height: 100vh;\r\n background-size: cover;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n filter: blur(5px);\r\n z-index: -99;\r\n position: fixed;\r\n \r\n}\r\n.swiper{\r\n padding-top: 320rpx;\r\n position:relative;\r\n}\r\n.CardContent{\r\n position: absolute;\r\n top:0;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n height: 100%;\r\n width: 85%;\r\n color: #fff;\r\n}\r\n.card{\r\n position: relative;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.header1{\r\n font-size: 40rpx;\r\n margin-top: 20rpx;\r\n text-align: left;\r\n}\r\n.header2{\r\n position: absolute;\r\n bottom:40rpx;\r\n left: 0;\r\n font-size: 38rpx;\r\n}\r\n.sdsd{\r\n text-align: left;\r\n}\r\n.distence{\r\n margin-top: 20rpx;\r\n}\r\n.detail{\r\n font-size: 24rpx;\r\n max-height: 100rpx;\r\n line-height: 38rpx;\r\n background-color: #00000039;\r\n padding: 6rpx;\r\n border-radius: 10rpx;\r\n text-align: left;\r\n overflow-y: scroll;\r\n}\r\n.shadow{\r\n position: fixed;\r\n width: 100vw;\r\n height: 100vh;\r\n \r\n}\r\n.shadow>image{\r\n width: auto;\r\n height: 100%;\r\n}\r\n.btn{\r\n padding: 0 !important;\r\n margin: 0 !important;\r\n display: block;\r\n z-index: 99;\r\n border-radius: 24rpx;\r\n height: 700rpx;\r\n width:450rpx;\r\n border: 1px solid #0000009a;\r\n box-shadow: 0 0 20rpx #fff;\r\n}\r\n.userInfoPression{\r\n background-color: #ffffff;\r\n height: 350rpx;\r\n border-radius: 20rpx 20rpx 0 0;\r\n}\r\n.mainInfo{\r\n\r\n}\r\n.infoHead{\r\n text-align: center;\r\n padding: 42rpx;\r\n font-weight: 700;\r\n}\r\n.infoFoot{\r\n display:flex;\r\n width: 100vw;\r\n position: absolute;\r\n bottom: 50rpx;\r\n left: 0;\r\n}\r\n.infoFoot>Button{\r\n width: 200rpx;\r\n height: 80rpx;\r\n line-height: 80rpx;\r\n font-size: 32rpx;\r\n color: #fff;\r\n \r\n}\r\n.infoFoot>Button:nth-child(1){\r\n background-color: gray;\r\n}\r\n.infoFoot>Button:nth-child(2){\r\n background-color: #1AAD19;\r\n}\r\n.ttt{\r\n position: absolute;\r\n top:0;\r\n left: 0;\r\n z-index: 9;\r\n width: 100vw;\r\n height: 100vh;\r\n background-color: #ffffff;\r\n}\r\n.pisition{\r\n padding-top: 300rpx;\r\n}\r\n.avatar-wrapper{\r\n border: 1px solid rgb(192, 176, 176);\r\n width: 200rpx;\r\n height: 200rpx;\r\n margin-top: 25rpx;\r\n}\r\n.avatar{\r\n width: 150rpx;\r\n height: 150rpx;\r\n margin-top: 25rpx;\r\n}\r\n.weui-input{\r\n border: 1px solid rgb(123, 108, 108);\r\n margin-top: 300rpx;\r\n width: 50vw;\r\n height: 70rpx;\r\n border-radius: 12rpx;\r\n margin: 200rpx auto;\r\n}\r\n.tipUserHeader{\r\n text-align: center;\r\n margin-top: 20rpx;\r\n color: rgb(123, 108, 108);\r\n}\r\n.submit{\r\n width: 250rpx;\r\n}\r\n.scaleToFill{\r\n position:absolute;\r\n top:62%;\r\n left:-10rpx;\r\n width:100rpx;\r\n height:100rpx;\r\n z-index:99;\r\n}\r\n.scaleToFill2{\r\n transform:rotate(180deg);\r\n position:absolute;\r\n top:62%;\r\n right:-10rpx;\r\n width:100rpx;\r\n height:100rpx;\r\n z-index:99;\r\n}\r\n</style>","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=86ffa444&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1721029532560\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
View file @
40c476f5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
unpackage/dist/dev/.sourcemap/mp-weixin/pages/init/index.js.map
View file @
40c476f5
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?ebde","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?077d","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?ba76","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?2b2e","uni-app:///pages/init/index.vue","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?33cb","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?2671"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,2F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACyK;AACzK,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;ACYppB;AACA,MADA,kBACA;AACA;AACA,kBADA;AAEA,mBAFA;AAGA,gBAHA;;AAKA,GAPA;AAQA;AACA,eADA,yBACA;AACA;AACA;AACA,eADA,mBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA,8EADA;AAEA,4BAFA;AAGA;AACA,mEADA,EAHA;;AAMA,sCANA;AAOA;AACA;AACA;AACA;;AAEA;AACA,uCADA;AAEA,+BAFA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAZA;AAaA;AACA;AACA,mBAfA;;AAiBA,eA7BA;;AA+BA,WAjCA,MAiCA;AACA;AACA;AACA,SAvCA;;AAyCA,KA5CA;;AA8CA;AACA,kBA/CA,0BA+CA,CA/CA,EA+CA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KAtDA;AAuDA,2BAvDA,mCAuDA,IAvDA,EAuDA,IAvDA,EAuDA;AACA;AACA;AACA,kFADA;AAEA,sBAFA;AAGA;AACA,iCADA;AAEA,6BAFA;AAGA,8CAHA;AAIA,8BAJA,EAHA;;AASA;AACA,6DADA,EATA;;AAYA;AACA;AACA;AACA;;AAEA;AACA;AACA,gFAFA,CAEA;AACA;AACA,6CADA;;AAGA;AACA,WAVA,MAUA;AACA;AACA;AACA,SA3BA;AA4BA;AACA;AACA,SA9BA;;AAgCA,KAzFA,EARA,E;;;;;;;;;;;;;ACZA;AAAA;AAAA;AAAA;AAAu7B,CAAgB,43BAAG,EAAC,C;;;;;;;;;;;ACA38B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/init/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/init/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=00468268&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=00468268&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"00468268\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/init/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=00468268&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"init\">\r\n <view class=\"window\">\r\n <view class=\"getUserInfo\">用户服务隐私协议</view>\r\n <view class=\"content\">\r\n <button open-type=\"getPhoneNumber\" @getphonenumber=\"getPhoneNumber\" class=\"btn\" @click=\"getUserInfo\">授权</button>\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n nickName:'',\r\n avatarUrl:'',\r\n OpenId:''\r\n }\r\n },\r\n methods: {\r\n getUserInfo() {\r\n var that = this\r\n wx.login({\r\n success(res) {\r\n console.log(res)\r\n if (res.code) {\r\n // 将 res.code 发送至后台服务器进行处理\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatLogin',\r\n method: 'POST',\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n data: { code: res.code },\r\n success: function (response) {\r\n console.log('登录成功', response);\r\n that.OpenId = response.data.OpenId\r\n // TODO: 根据后台返回的结果保存 openid、sessionKey 等信息\r\n\r\n uni.getUserInfo({\r\n withCredentials: true,\r\n lang: 'zh_CN',\r\n success: function (userRes) {\r\n var userInfo = userRes.userInfo;\r\n console.log(\"用户昵称为:\" + userInfo.nickName);\r\n console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\r\n that.nickName = userInfo.nickName\r\n that.avatarUrl = userInfo.avatarUrl\r\n that.$globalData.userPhoto = userInfo.avatarUrl\r\n // TODO: 将用户昵称和头像地址保存或上传至后台服务器\r\n\r\n },\r\n fail: function () {\r\n console.error('获取用户信息失败');\r\n }\r\n });\r\n }\r\n })\r\n } else {\r\n console.error('登录失败!' + res.errMsg);\r\n }\r\n }\r\n });\r\n },\r\n\r\n // 获取手机号\r\n getPhoneNumber(e) {\r\n console.log('e',e.detail.code)\r\n if(e.detail.code){\r\n this.sendPhoneNumberToServer(e.detail.code,'no');\r\n }else{\r\n this.sendPhoneNumberToServer(e.detail.code,'yes');\r\n }\r\n },\r\n sendPhoneNumberToServer(code,bool) {\r\n // 将code、encryptedData和iv发送到后端API\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/wechat/RegisterAndLoginWXUserPhone',\r\n method: 'POST',\r\n data:{\r\n username:this.nickName,\r\n openid:this.OpenId,\r\n phone_code:bool==\"no\"?code:'',\r\n reject_binding:bool\r\n },\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n success: (res) => {\r\n console.log('success',res)\r\n if (res.statusCode === 200) {\r\n console.log('手机号码传递成功', res);\r\n\r\n if(res.data.code===1){\r\n this.$globalData.wxUid = res.data.wxUid\r\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]); //保存cookie值\r\n uni.navigateTo({\r\n url: `/pages/homeCards/index`\r\n });\r\n }\r\n } else {\r\n console.log('服务器返回状态码异常', res.statusCode);\r\n }\r\n },\r\n fail: (err) => {\r\n console.log('发送失败', err);\r\n }\r\n });\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n\r\n<style scoped>\r\n.init {\r\n width: 100vw;\r\n height: 100vh;\r\n background-color: rgb(146, 108, 126);\r\n}\r\n\r\n.window {\r\n width: 80vw;\r\n height: 300rpx;\r\n background-color: aliceblue;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n border-radius: 10rpx;\r\n font-size: 40rpx;\r\n box-shadow: 0 0 20rpx #fff;\r\n}\r\n\r\n.getUserInfo {\r\n text-align: center;\r\n padding: 20px;\r\n}\r\n\r\n.content {\r\n display: flex;\r\n margin-top: 50rpx;\r\n}\r\n\r\n.btn {\r\n width: 200rpx;\r\n height: 80rpx;\r\n line-height: 80rpx;\r\n font-size: 34rpx;\r\n}\r\n</style>","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=00468268&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=00468268&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1718867219731\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?ebde","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?077d","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?ba76","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?2b2e","uni-app:///pages/init/index.vue","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?33cb","webpack:///D:/coco/dream/uniapp/jueqing/pages/init/index.vue?2671"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,2F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACyK;AACzK,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;ACYppB;AACA,MADA,kBACA;AACA;AACA,kBADA;AAEA,mBAFA;AAGA,gBAHA;;AAKA,GAPA;AAQA;AACA,eADA,yBACA;AACA;AACA;AACA,eADA,mBACA,GADA,EACA;AACA;AACA;AACA;AACA;AACA,8EADA;AAEA,4BAFA;AAGA;AACA,mEADA,EAHA;;AAMA,sCANA;AAOA;AACA;AACA;AACA;;AAEA;AACA,uCADA;AAEA,+BAFA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAZA;AAaA;AACA;AACA,mBAfA;;AAiBA,eA7BA;;AA+BA,WAjCA,MAiCA;AACA;AACA;AACA,SAvCA;;AAyCA,KA5CA;;AA8CA;AACA,kBA/CA,0BA+CA,CA/CA,EA+CA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KAtDA;AAuDA,2BAvDA,mCAuDA,IAvDA,EAuDA,IAvDA,EAuDA;AACA;AACA;AACA,kFADA;AAEA,sBAFA;AAGA;AACA,iCADA;AAEA,6BAFA;AAGA,8CAHA;AAIA,8BAJA,EAHA;;AASA;AACA,6DADA,EATA;;AAYA;AACA;AACA;AACA;;AAEA;AACA;AACA,gFAFA,CAEA;AACA;AACA,6CADA;;AAGA;AACA,WAVA,MAUA;AACA;AACA;AACA,SA3BA;AA4BA;AACA;AACA,SA9BA;;AAgCA,KAzFA,EARA,E;;;;;;;;;;;;;ACZA;AAAA;AAAA;AAAA;AAAu7B,CAAgB,43BAAG,EAAC,C;;;;;;;;;;;ACA38B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/init/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/init/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=00468268&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=00468268&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"00468268\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/init/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=00468268&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"init\">\r\n <view class=\"window\">\r\n <view class=\"getUserInfo\">用户服务隐私协议</view>\r\n <view class=\"content\">\r\n <button open-type=\"getPhoneNumber\" @getphonenumber=\"getPhoneNumber\" class=\"btn\" @click=\"getUserInfo\">授权</button>\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n nickName:'',\r\n avatarUrl:'',\r\n OpenId:''\r\n }\r\n },\r\n methods: {\r\n getUserInfo() {\r\n var that = this\r\n wx.login({\r\n success(res) {\r\n console.log(res)\r\n if (res.code) {\r\n // 将 res.code 发送至后台服务器进行处理\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatLogin',\r\n method: 'POST',\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n data: { code: res.code },\r\n success: function (response) {\r\n console.log('登录成功', response);\r\n that.OpenId = response.data.OpenId\r\n // TODO: 根据后台返回的结果保存 openid、sessionKey 等信息\r\n\r\n uni.getUserInfo({\r\n withCredentials: true,\r\n lang: 'zh_CN',\r\n success: function (userRes) {\r\n var userInfo = userRes.userInfo;\r\n console.log(\"用户昵称为:\" + userInfo.nickName);\r\n console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\r\n that.nickName = userInfo.nickName\r\n that.avatarUrl = userInfo.avatarUrl\r\n that.$globalData.userPhoto = userInfo.avatarUrl\r\n // TODO: 将用户昵称和头像地址保存或上传至后台服务器\r\n\r\n },\r\n fail: function () {\r\n console.error('获取用户信息失败');\r\n }\r\n });\r\n }\r\n })\r\n } else {\r\n console.error('登录失败!' + res.errMsg);\r\n }\r\n }\r\n });\r\n },\r\n\r\n // 获取手机号\r\n getPhoneNumber(e) {\r\n console.log('e',e.detail.code)\r\n if(e.detail.code){\r\n this.sendPhoneNumberToServer(e.detail.code,'no');\r\n }else{\r\n this.sendPhoneNumberToServer(e.detail.code,'yes');\r\n }\r\n },\r\n sendPhoneNumberToServer(code,bool) {\r\n // 将code、encryptedData和iv发送到后端API\r\n uni.request({\r\n url: 'https://admin.mindepoch.com:8089/wechat/RegisterAndLoginWXUserPhone',\r\n method: 'POST',\r\n data:{\r\n username:this.nickName,\r\n openid:this.OpenId,\r\n phone_code:bool==\"no\"?code:'',\r\n reject_binding:bool\r\n },\r\n header: {\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n },\r\n success: (res) => {\r\n console.log('success',res)\r\n if (res.statusCode === 200) {\r\n console.log('手机号码传递成功', res);\r\n\r\n if(res.data.code===1){\r\n this.$globalData.wxUid = res.data.wxUid\r\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]); //保存cookie值\r\n uni.navigateTo({\r\n url: `/pages/homeCards/index`\r\n });\r\n }\r\n } else {\r\n console.log('服务器返回状态码异常', res.statusCode);\r\n }\r\n },\r\n fail: (err) => {\r\n console.log('发送失败', err);\r\n }\r\n });\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n\r\n<style scoped>\r\n.init {\r\n width: 100vw;\r\n height: 100vh;\r\n background-color: rgb(146, 108, 126);\r\n}\r\n\r\n.window {\r\n width: 80vw;\r\n height: 300rpx;\r\n background-color: aliceblue;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n border-radius: 10rpx;\r\n font-size: 40rpx;\r\n box-shadow: 0 0 20rpx #fff;\r\n}\r\n\r\n.getUserInfo {\r\n text-align: center;\r\n padding: 20px;\r\n}\r\n\r\n.content {\r\n display: flex;\r\n margin-top: 50rpx;\r\n}\r\n\r\n.btn {\r\n width: 200rpx;\r\n height: 80rpx;\r\n line-height: 80rpx;\r\n font-size: 34rpx;\r\n}\r\n</style>","import mod from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=00468268&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=00468268&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1721008751204\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js.map
View file @
40c476f5
{
"version"
:
3
,
"sources"
:
[
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?9770"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?2f59"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?99ae"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?65cf"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?5deb"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?b317"
],
"names"
:
[],
"mappings"
:
";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACoE;AACL;AACc;;;AAG7E;AAC+K;AAC/K,gBAAgB,6KAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAyqB,CAAgB,0nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4B7rB;AACA;;;AAGA,gG;;;;;;;;;;;;;;;;;;;;;;;;;;;mBACA,yC,CAAA,C,gBAAA,C,EACA;;;;;;;;;;;;;;;;;;mGAoBA,EACA,sBADA,EAEA,wBAFA,EAGA,2BAHA,EAIA,SACA,aACA,YADA,EAEA,eAFA,EADA,EAKA,SACA,sBADA,EAEA,WAFA,EALA,EASA,eACA,sBADA,EAEA,WAFA,EATA,EAaA,QACA,YADA,EAEA,gBAFA,EAbA,EAiBA,QACA,YADA,EAEA,eAFA,EAjBA;;AAqBA;AACA,kBADA;AAEA,iBAFA,EArBA;;AAyBA;AACA,kBADA;AAEA,iBAFA,EAzBA;;AA6BA;AACA,mBADA;AAEA,oBAFA,EA7BA;;AAiCA;AACA,kBADA;AAEA,iBAFA,EAjCA;;AAqCA;AACA,kBADA;AAEA,iBAFA,EArCA,EAJA;;;AA8CA,MA9CA,kBA8CA;AACA;AACA,yBADA;AAEA,kBAFA;AAGA,aAHA;;AAKA,GApDA;AAqDA;AACA,UADA,oBACA;AACA;AACA,KAHA;AAIA,aAJA,uBAIA;AACA;AACA,KANA;AAOA,mBAPA,6BAOA;AACA;AACA,KATA;AAUA,aAVA,uBAUA;AACA;AACA,KAZA,EArDA;;AAmEA;AACA,QADA,gBACA,GADA,EACA;AACA;AACA,KAHA;AAIA,QAJA,gBAIA,GAJA,EAIA;AACA;AACA;AACA;AACA,KARA;AASA,SATA,iBASA,GATA,EASA;AACA;AACA,KAXA,EAnEA;;AAgFA,SAhFA,qBAgFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAHA,MAGA;AACA;AACA;AACA,GA1FA;AA2FA,SA3FA,qBA2FA;AACA;AACA,GA7FA;AA8FA;AACA;;;AAGA,QAJA,kBAIA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA,KAZA;AAaA;;;AAGA,eAhBA,yBAgBA;AACA;AACA;AACA;AACA,KApBA;AAqBA,SArBA,mBAqBA;AACA;AACA,KAvBA,EA9FA,E;;;;;;;;;;;;ACtDA;AAAA;AAAA;AAAA;AAAowC,CAAgB,ymCAAG,EAAC,C;;;;;;;;;;;ACAxxC;AACA,OAAO,KAAU,EAAE,kBAKd"
,
"file"
:
"uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js"
,
"sourcesContent"
:
[
"import { render, staticRenderFns, recyclableRender, components } from
\"
./uni-popup-dialog.vue?vue&type=template&id=6f54520a&
\"\n
var renderjs
\n
import script from
\"
./uni-popup-dialog.vue?vue&type=script&lang=js&
\"\n
export * from
\"
./uni-popup-dialog.vue?vue&type=script&lang=js&
\"\n
import style0 from
\"
./uni-popup-dialog.vue?vue&type=style&index=0&lang=scss&
\"\n\n\n
/* normalize component */
\n
import normalizer from
\"
!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js
\"\n
var component = normalizer(
\n
script,
\n
render,
\n
staticRenderFns,
\n
false,
\n
null,
\n
null,
\n
null,
\n
false,
\n
components,
\n
renderjs
\n
)
\n\n
component.options.__file =
\"
uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
\"\n
export default component.exports"
,
"export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=template&id=6f54520a&
\"
"
,
"var components
\n
var render = function() {
\n
var _vm = this
\n
var _h = _vm.$createElement
\n
var _c = _vm._self._c || _h
\n
}
\n
var recyclableRender = false
\n
var staticRenderFns = []
\n
render._withStripped = true
\n\n
export { render, staticRenderFns, recyclableRender, components }"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&
\"
"
,
"<template>
\r\n\t
<view class=
\"
uni-popup-dialog
\"
>
\r\n\t\t
<view class=
\"
uni-dialog-title
\"
>
\r\n\t\t\t
<text class=
\"
uni-dialog-title-text
\"
:class=
\"
['uni-popup__'+dialogType]
\"
>{{titleText}}</text>
\r\n\t\t
</view>
\r\n\t\t
<view v-if=
\"
mode === 'base'
\"
class=
\"
uni-dialog-content
\"
>
\r\n\t\t\t
<slot>
\r\n\t\t\t\t
<text class=
\"
uni-dialog-content-text
\"
>{{content}}</text>
\r\n\t\t\t
</slot>
\r\n\t\t
</view>
\r\n\t\t
<view v-else class=
\"
uni-dialog-content
\"
>
\r\n\t\t\t
<slot>
\r\n\t\t\t\t
<input class=
\"
uni-dialog-input
\"
v-model=
\"
val
\"
:type=
\"
inputType
\"
:placeholder=
\"
placeholderText
\"
:focus=
\"
focus
\"
>
\r\n\t\t\t
</slot>
\r\n\t\t
</view>
\r\n\t\t
<view class=
\"
uni-dialog-button-group
\"
>
\r\n\t\t\t
<view class=
\"
uni-dialog-button
\"
@click=
\"
closeDialog
\"
>
\r\n\t\t\t\t
<text class=
\"
uni-dialog-button-text
\"
>{{closeText}}</text>
\r\n\t\t\t
</view>
\r\n\t\t\t
<view class=
\"
uni-dialog-button uni-border-left
\"
@click=
\"
onOk
\"
>
\r\n\t\t\t\t
<text class=
\"
uni-dialog-button-text uni-button-color
\"
>{{okText}}</text>
\r\n\t\t\t
</view>
\r\n\t\t
</view>
\r\n\r\n\t
</view>
\r\n
</template>
\r\n\r\n
<script>
\r\n\t
import popup from '../uni-popup/popup.js'
\r\n\t
import {
\r\n\t
initVueI18n
\r\n\t
} from '@dcloudio/uni-i18n'
\r\n\t
import messages from '../uni-popup/i18n/index.js'
\r\n\t
const {
\t
t } = initVueI18n(messages)
\r\n\t
/**
\r\n\t
* PopUp 弹出层-对话框样式
\r\n\t
* @description 弹出层-对话框样式
\r\n\t
* @tutorial https://ext.dcloud.net.cn/plugin?id=329
\r\n\t
* @property {String} value input 模式下的默认值
\r\n\t
* @property {String} placeholder input 模式下输入提示
\r\n\t
* @property {String} type = [success|warning|info|error] 主题样式
\r\n\t
* @value success 成功
\r\n\t
*
\t
@value warning 提示
\r\n\t
*
\t
@value info 消息
\r\n\t
*
\t
@value error 错误
\r\n\t
* @property {String} mode = [base|input] 模式、
\r\n\t
*
\t
@value base 基础对话框
\r\n\t
*
\t
@value input 可输入对话框
\r\n\t
* @property {String} content 对话框内容
\r\n\t
* @property {Boolean} beforeClose 是否拦截取消事件
\r\n\t
* @event {Function} confirm 点击确认按钮触发
\r\n\t
* @event {Function} close 点击取消按钮触发
\r\n\t
*/
\r\n\r\n\t
export default {
\r\n\t\t
name:
\"
uniPopupDialog
\"
,
\r\n\t\t
mixins: [popup],
\r\n\t\t
emits:['confirm','close'],
\r\n\t\t
props: {
\n\t\t\t
inputType:{
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'text'
\n\t\t\t
},
\r\n\t\t\t
value: {
\r\n\t\t\t\t
type: [String, Number],
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
placeholder: {
\r\n\t\t\t\t
type: [String, Number],
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
type: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: 'error'
\r\n\t\t\t
},
\r\n\t\t\t
mode: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: 'base'
\r\n\t\t\t
},
\r\n\t\t\t
title: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
content: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
beforeClose: {
\r\n\t\t\t\t
type: Boolean,
\r\n\t\t\t\t
default: false
\r\n\t\t\t
},
\n\t\t\t
cancelText:{
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
confirmText:{
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
data() {
\r\n\t\t\t
return {
\r\n\t\t\t\t
dialogType: 'error',
\r\n\t\t\t\t
focus: false,
\r\n\t\t\t\t
val:
\"\"\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
computed: {
\r\n\t\t\t
okText() {
\r\n\t\t\t\t
return this.confirmText || t(
\"
uni-popup.ok
\"
)
\r\n\t\t\t
},
\r\n\t\t\t
closeText() {
\r\n\t\t\t\t
return this.cancelText || t(
\"
uni-popup.cancel
\"
)
\r\n\t\t\t
},
\r\n\t\t\t
placeholderText() {
\r\n\t\t\t\t
return this.placeholder || t(
\"
uni-popup.placeholder
\"
)
\r\n\t\t\t
},
\r\n\t\t\t
titleText() {
\r\n\t\t\t\t
return this.title || t(
\"
uni-popup.title
\"
)
\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
watch: {
\r\n\t\t\t
type(val) {
\r\n\t\t\t\t
this.dialogType = val
\r\n\t\t\t
},
\r\n\t\t\t
mode(val) {
\r\n\t\t\t\t
if (val === 'input') {
\r\n\t\t\t\t\t
this.dialogType = 'info'
\r\n\t\t\t\t
}
\r\n\t\t\t
},
\r\n\t\t\t
value(val) {
\r\n\t\t\t\t
this.val = val
\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
created() {
\r\n\t\t\t
// 对话框遮罩不可点击
\r\n\t\t\t
this.popup.disableMask()
\r\n\t\t\t
// this.popup.closeMask()
\r\n\t\t\t
if (this.mode === 'input') {
\r\n\t\t\t\t
this.dialogType = 'info'
\r\n\t\t\t\t
this.val = this.value
\r\n\t\t\t
} else {
\r\n\t\t\t\t
this.dialogType = this.type
\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
mounted() {
\r\n\t\t\t
this.focus = true
\r\n\t\t
},
\r\n\t\t
methods: {
\r\n\t\t\t
/**
\r\n\t\t\t
* 点击确认按钮
\r\n\t\t\t
*/
\r\n\t\t\t
onOk() {
\r\n\t\t\t\t
if (this.mode === 'input'){
\r\n\t\t\t\t\t
this.$emit('confirm', this.val)
\r\n\t\t\t\t
}else{
\r\n\t\t\t\t\t
this.$emit('confirm')
\r\n\t\t\t\t
}
\r\n\t\t\t\t
if(this.beforeClose) return
\r\n\t\t\t\t
this.popup.close()
\r\n\t\t\t
},
\r\n\t\t\t
/**
\r\n\t\t\t
* 点击取消按钮
\r\n\t\t\t
*/
\r\n\t\t\t
closeDialog() {
\r\n\t\t\t\t
this.$emit('close')
\r\n\t\t\t\t
if(this.beforeClose) return
\r\n\t\t\t\t
this.popup.close()
\r\n\t\t\t
},
\r\n\t\t\t
close(){
\r\n\t\t\t\t
this.popup.close()
\r\n\t\t\t
}
\r\n\t\t
}
\r\n\t
}
\r\n
</script>
\r\n\r\n
<style lang=
\"
scss
\"
>
\r\n\t
.uni-popup-dialog {
\r\n\t\t
width: 300px;
\r\n\t\t
border-radius: 11px;
\r\n\t\t
background-color: #fff;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-title {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\t\t
flex-direction: row;
\r\n\t\t
justify-content: center;
\r\n\t\t
padding-top: 25px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-title-text {
\r\n\t\t
font-size: 16px;
\r\n\t\t
font-weight: 500;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-content {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\t\t
flex-direction: row;
\r\n\t\t
justify-content: center;
\r\n\t\t
align-items: center;
\r\n\t\t
padding: 20px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-content-text {
\r\n\t\t
font-size: 14px;
\r\n\t\t
color: #6C6C6C;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-button-group {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\t\t
flex-direction: row;
\r\n\t\t
border-top-color: #f5f5f5;
\r\n\t\t
border-top-style: solid;
\r\n\t\t
border-top-width: 1px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-button {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\r\n\t\t
flex: 1;
\r\n\t\t
flex-direction: row;
\r\n\t\t
justify-content: center;
\r\n\t\t
align-items: center;
\r\n\t\t
height: 45px;
\r\n\t
}
\r\n\r\n\t
.uni-border-left {
\r\n\t\t
border-left-color: #f0f0f0;
\r\n\t\t
border-left-style: solid;
\r\n\t\t
border-left-width: 1px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-button-text {
\r\n\t\t
font-size: 16px;
\r\n\t\t
color: #333;
\r\n\t
}
\r\n\r\n\t
.uni-button-color {
\r\n\t\t
color: #007aff;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-input {
\r\n\t\t
flex: 1;
\r\n\t\t
font-size: 14px;
\r\n\t\t
border: 1px #eee solid;
\r\n\t\t
height: 40px;
\r\n\t\t
padding: 0 10px;
\r\n\t\t
border-radius: 5px;
\r\n\t\t
color: #555;
\r\n\t
}
\r\n\r\n\t
.uni-popup__success {
\r\n\t\t
color: #4cd964;
\r\n\t
}
\r\n\r\n\t
.uni-popup__warn {
\r\n\t\t
color: #f0ad4e;
\r\n\t
}
\r\n\r\n\t
.uni-popup__error {
\r\n\t\t
color: #dd524d;
\r\n\t
}
\r\n\r\n\t
.uni-popup__info {
\r\n\t\t
color: #909399;
\r\n\t
}
\r\n
</style>
\r\n
"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=style&index=0&lang=scss&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=style&index=0&lang=scss&
\"
"
,
"// extracted by mini-css-extract-plugin
\n
if(module.hot) {
\n
// 1718867221937
\n
var cssReload = require(
\"
D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js
\"
)(module.id, {
\"
hmr
\"
:true,
\"
publicPath
\"
:
\"
../../
\"
,
\"
locals
\"
:false});
\n
module.hot.dispose(cssReload);
\n
module.hot.accept(undefined, cssReload);
\n
}
\n
"
],
"sourceRoot"
:
""
}
\ No newline at end of file
{
"version"
:
3
,
"sources"
:
[
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?9770"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?2f59"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?99ae"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?65cf"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?5deb"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?b317"
],
"names"
:
[],
"mappings"
:
";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACoE;AACL;AACc;;;AAG7E;AAC+K;AAC/K,gBAAgB,6KAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAyqB,CAAgB,0nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4B7rB;AACA;;;AAGA,gG;;;;;;;;;;;;;;;;;;;;;;;;;;;mBACA,yC,CAAA,C,gBAAA,C,EACA;;;;;;;;;;;;;;;;;;mGAoBA,EACA,sBADA,EAEA,wBAFA,EAGA,2BAHA,EAIA,SACA,aACA,YADA,EAEA,eAFA,EADA,EAKA,SACA,sBADA,EAEA,WAFA,EALA,EASA,eACA,sBADA,EAEA,WAFA,EATA,EAaA,QACA,YADA,EAEA,gBAFA,EAbA,EAiBA,QACA,YADA,EAEA,eAFA,EAjBA;;AAqBA;AACA,kBADA;AAEA,iBAFA,EArBA;;AAyBA;AACA,kBADA;AAEA,iBAFA,EAzBA;;AA6BA;AACA,mBADA;AAEA,oBAFA,EA7BA;;AAiCA;AACA,kBADA;AAEA,iBAFA,EAjCA;;AAqCA;AACA,kBADA;AAEA,iBAFA,EArCA,EAJA;;;AA8CA,MA9CA,kBA8CA;AACA;AACA,yBADA;AAEA,kBAFA;AAGA,aAHA;;AAKA,GApDA;AAqDA;AACA,UADA,oBACA;AACA;AACA,KAHA;AAIA,aAJA,uBAIA;AACA;AACA,KANA;AAOA,mBAPA,6BAOA;AACA;AACA,KATA;AAUA,aAVA,uBAUA;AACA;AACA,KAZA,EArDA;;AAmEA;AACA,QADA,gBACA,GADA,EACA;AACA;AACA,KAHA;AAIA,QAJA,gBAIA,GAJA,EAIA;AACA;AACA;AACA;AACA,KARA;AASA,SATA,iBASA,GATA,EASA;AACA;AACA,KAXA,EAnEA;;AAgFA,SAhFA,qBAgFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAHA,MAGA;AACA;AACA;AACA,GA1FA;AA2FA,SA3FA,qBA2FA;AACA;AACA,GA7FA;AA8FA;AACA;;;AAGA,QAJA,kBAIA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA,KAZA;AAaA;;;AAGA,eAhBA,yBAgBA;AACA;AACA;AACA;AACA,KApBA;AAqBA,SArBA,mBAqBA;AACA;AACA,KAvBA,EA9FA,E;;;;;;;;;;;;ACtDA;AAAA;AAAA;AAAA;AAAowC,CAAgB,ymCAAG,EAAC,C;;;;;;;;;;;ACAxxC;AACA,OAAO,KAAU,EAAE,kBAKd"
,
"file"
:
"uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js"
,
"sourcesContent"
:
[
"import { render, staticRenderFns, recyclableRender, components } from
\"
./uni-popup-dialog.vue?vue&type=template&id=6f54520a&
\"\n
var renderjs
\n
import script from
\"
./uni-popup-dialog.vue?vue&type=script&lang=js&
\"\n
export * from
\"
./uni-popup-dialog.vue?vue&type=script&lang=js&
\"\n
import style0 from
\"
./uni-popup-dialog.vue?vue&type=style&index=0&lang=scss&
\"\n\n\n
/* normalize component */
\n
import normalizer from
\"
!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js
\"\n
var component = normalizer(
\n
script,
\n
render,
\n
staticRenderFns,
\n
false,
\n
null,
\n
null,
\n
null,
\n
false,
\n
components,
\n
renderjs
\n
)
\n\n
component.options.__file =
\"
uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
\"\n
export default component.exports"
,
"export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=template&id=6f54520a&
\"
"
,
"var components
\n
var render = function() {
\n
var _vm = this
\n
var _h = _vm.$createElement
\n
var _c = _vm._self._c || _h
\n
}
\n
var recyclableRender = false
\n
var staticRenderFns = []
\n
render._withStripped = true
\n\n
export { render, staticRenderFns, recyclableRender, components }"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&
\"
"
,
"<template>
\r\n\t
<view class=
\"
uni-popup-dialog
\"
>
\r\n\t\t
<view class=
\"
uni-dialog-title
\"
>
\r\n\t\t\t
<text class=
\"
uni-dialog-title-text
\"
:class=
\"
['uni-popup__'+dialogType]
\"
>{{titleText}}</text>
\r\n\t\t
</view>
\r\n\t\t
<view v-if=
\"
mode === 'base'
\"
class=
\"
uni-dialog-content
\"
>
\r\n\t\t\t
<slot>
\r\n\t\t\t\t
<text class=
\"
uni-dialog-content-text
\"
>{{content}}</text>
\r\n\t\t\t
</slot>
\r\n\t\t
</view>
\r\n\t\t
<view v-else class=
\"
uni-dialog-content
\"
>
\r\n\t\t\t
<slot>
\r\n\t\t\t\t
<input class=
\"
uni-dialog-input
\"
v-model=
\"
val
\"
:type=
\"
inputType
\"
:placeholder=
\"
placeholderText
\"
:focus=
\"
focus
\"
>
\r\n\t\t\t
</slot>
\r\n\t\t
</view>
\r\n\t\t
<view class=
\"
uni-dialog-button-group
\"
>
\r\n\t\t\t
<view class=
\"
uni-dialog-button
\"
@click=
\"
closeDialog
\"
>
\r\n\t\t\t\t
<text class=
\"
uni-dialog-button-text
\"
>{{closeText}}</text>
\r\n\t\t\t
</view>
\r\n\t\t\t
<view class=
\"
uni-dialog-button uni-border-left
\"
@click=
\"
onOk
\"
>
\r\n\t\t\t\t
<text class=
\"
uni-dialog-button-text uni-button-color
\"
>{{okText}}</text>
\r\n\t\t\t
</view>
\r\n\t\t
</view>
\r\n\r\n\t
</view>
\r\n
</template>
\r\n\r\n
<script>
\r\n\t
import popup from '../uni-popup/popup.js'
\r\n\t
import {
\r\n\t
initVueI18n
\r\n\t
} from '@dcloudio/uni-i18n'
\r\n\t
import messages from '../uni-popup/i18n/index.js'
\r\n\t
const {
\t
t } = initVueI18n(messages)
\r\n\t
/**
\r\n\t
* PopUp 弹出层-对话框样式
\r\n\t
* @description 弹出层-对话框样式
\r\n\t
* @tutorial https://ext.dcloud.net.cn/plugin?id=329
\r\n\t
* @property {String} value input 模式下的默认值
\r\n\t
* @property {String} placeholder input 模式下输入提示
\r\n\t
* @property {String} type = [success|warning|info|error] 主题样式
\r\n\t
* @value success 成功
\r\n\t
*
\t
@value warning 提示
\r\n\t
*
\t
@value info 消息
\r\n\t
*
\t
@value error 错误
\r\n\t
* @property {String} mode = [base|input] 模式、
\r\n\t
*
\t
@value base 基础对话框
\r\n\t
*
\t
@value input 可输入对话框
\r\n\t
* @property {String} content 对话框内容
\r\n\t
* @property {Boolean} beforeClose 是否拦截取消事件
\r\n\t
* @event {Function} confirm 点击确认按钮触发
\r\n\t
* @event {Function} close 点击取消按钮触发
\r\n\t
*/
\r\n\r\n\t
export default {
\r\n\t\t
name:
\"
uniPopupDialog
\"
,
\r\n\t\t
mixins: [popup],
\r\n\t\t
emits:['confirm','close'],
\r\n\t\t
props: {
\n\t\t\t
inputType:{
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'text'
\n\t\t\t
},
\r\n\t\t\t
value: {
\r\n\t\t\t\t
type: [String, Number],
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
placeholder: {
\r\n\t\t\t\t
type: [String, Number],
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
type: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: 'error'
\r\n\t\t\t
},
\r\n\t\t\t
mode: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: 'base'
\r\n\t\t\t
},
\r\n\t\t\t
title: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
content: {
\r\n\t\t\t\t
type: String,
\r\n\t\t\t\t
default: ''
\r\n\t\t\t
},
\r\n\t\t\t
beforeClose: {
\r\n\t\t\t\t
type: Boolean,
\r\n\t\t\t\t
default: false
\r\n\t\t\t
},
\n\t\t\t
cancelText:{
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
confirmText:{
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
data() {
\r\n\t\t\t
return {
\r\n\t\t\t\t
dialogType: 'error',
\r\n\t\t\t\t
focus: false,
\r\n\t\t\t\t
val:
\"\"\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
computed: {
\r\n\t\t\t
okText() {
\r\n\t\t\t\t
return this.confirmText || t(
\"
uni-popup.ok
\"
)
\r\n\t\t\t
},
\r\n\t\t\t
closeText() {
\r\n\t\t\t\t
return this.cancelText || t(
\"
uni-popup.cancel
\"
)
\r\n\t\t\t
},
\r\n\t\t\t
placeholderText() {
\r\n\t\t\t\t
return this.placeholder || t(
\"
uni-popup.placeholder
\"
)
\r\n\t\t\t
},
\r\n\t\t\t
titleText() {
\r\n\t\t\t\t
return this.title || t(
\"
uni-popup.title
\"
)
\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
watch: {
\r\n\t\t\t
type(val) {
\r\n\t\t\t\t
this.dialogType = val
\r\n\t\t\t
},
\r\n\t\t\t
mode(val) {
\r\n\t\t\t\t
if (val === 'input') {
\r\n\t\t\t\t\t
this.dialogType = 'info'
\r\n\t\t\t\t
}
\r\n\t\t\t
},
\r\n\t\t\t
value(val) {
\r\n\t\t\t\t
this.val = val
\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
created() {
\r\n\t\t\t
// 对话框遮罩不可点击
\r\n\t\t\t
this.popup.disableMask()
\r\n\t\t\t
// this.popup.closeMask()
\r\n\t\t\t
if (this.mode === 'input') {
\r\n\t\t\t\t
this.dialogType = 'info'
\r\n\t\t\t\t
this.val = this.value
\r\n\t\t\t
} else {
\r\n\t\t\t\t
this.dialogType = this.type
\r\n\t\t\t
}
\r\n\t\t
},
\r\n\t\t
mounted() {
\r\n\t\t\t
this.focus = true
\r\n\t\t
},
\r\n\t\t
methods: {
\r\n\t\t\t
/**
\r\n\t\t\t
* 点击确认按钮
\r\n\t\t\t
*/
\r\n\t\t\t
onOk() {
\r\n\t\t\t\t
if (this.mode === 'input'){
\r\n\t\t\t\t\t
this.$emit('confirm', this.val)
\r\n\t\t\t\t
}else{
\r\n\t\t\t\t\t
this.$emit('confirm')
\r\n\t\t\t\t
}
\r\n\t\t\t\t
if(this.beforeClose) return
\r\n\t\t\t\t
this.popup.close()
\r\n\t\t\t
},
\r\n\t\t\t
/**
\r\n\t\t\t
* 点击取消按钮
\r\n\t\t\t
*/
\r\n\t\t\t
closeDialog() {
\r\n\t\t\t\t
this.$emit('close')
\r\n\t\t\t\t
if(this.beforeClose) return
\r\n\t\t\t\t
this.popup.close()
\r\n\t\t\t
},
\r\n\t\t\t
close(){
\r\n\t\t\t\t
this.popup.close()
\r\n\t\t\t
}
\r\n\t\t
}
\r\n\t
}
\r\n
</script>
\r\n\r\n
<style lang=
\"
scss
\"
>
\r\n\t
.uni-popup-dialog {
\r\n\t\t
width: 300px;
\r\n\t\t
border-radius: 11px;
\r\n\t\t
background-color: #fff;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-title {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\t\t
flex-direction: row;
\r\n\t\t
justify-content: center;
\r\n\t\t
padding-top: 25px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-title-text {
\r\n\t\t
font-size: 16px;
\r\n\t\t
font-weight: 500;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-content {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\t\t
flex-direction: row;
\r\n\t\t
justify-content: center;
\r\n\t\t
align-items: center;
\r\n\t\t
padding: 20px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-content-text {
\r\n\t\t
font-size: 14px;
\r\n\t\t
color: #6C6C6C;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-button-group {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\t\t
flex-direction: row;
\r\n\t\t
border-top-color: #f5f5f5;
\r\n\t\t
border-top-style: solid;
\r\n\t\t
border-top-width: 1px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-button {
\r\n\t\t
/* #ifndef APP-NVUE */
\r\n\t\t
display: flex;
\r\n\t\t
/* #endif */
\r\n\r\n\t\t
flex: 1;
\r\n\t\t
flex-direction: row;
\r\n\t\t
justify-content: center;
\r\n\t\t
align-items: center;
\r\n\t\t
height: 45px;
\r\n\t
}
\r\n\r\n\t
.uni-border-left {
\r\n\t\t
border-left-color: #f0f0f0;
\r\n\t\t
border-left-style: solid;
\r\n\t\t
border-left-width: 1px;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-button-text {
\r\n\t\t
font-size: 16px;
\r\n\t\t
color: #333;
\r\n\t
}
\r\n\r\n\t
.uni-button-color {
\r\n\t\t
color: #007aff;
\r\n\t
}
\r\n\r\n\t
.uni-dialog-input {
\r\n\t\t
flex: 1;
\r\n\t\t
font-size: 14px;
\r\n\t\t
border: 1px #eee solid;
\r\n\t\t
height: 40px;
\r\n\t\t
padding: 0 10px;
\r\n\t\t
border-radius: 5px;
\r\n\t\t
color: #555;
\r\n\t
}
\r\n\r\n\t
.uni-popup__success {
\r\n\t\t
color: #4cd964;
\r\n\t
}
\r\n\r\n\t
.uni-popup__warn {
\r\n\t\t
color: #f0ad4e;
\r\n\t
}
\r\n\r\n\t
.uni-popup__error {
\r\n\t\t
color: #dd524d;
\r\n\t
}
\r\n\r\n\t
.uni-popup__info {
\r\n\t\t
color: #909399;
\r\n\t
}
\r\n
</style>
\r\n
"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=style&index=0&lang=scss&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=style&index=0&lang=scss&
\"
"
,
"// extracted by mini-css-extract-plugin
\n
if(module.hot) {
\n
// 1721008753543
\n
var cssReload = require(
\"
D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js
\"
)(module.id, {
\"
hmr
\"
:true,
\"
publicPath
\"
:
\"
../../
\"
,
\"
locals
\"
:false});
\n
module.hot.dispose(cssReload);
\n
module.hot.accept(undefined, cssReload);
\n
}
\n
"
],
"sourceRoot"
:
""
}
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-popup/components/uni-popup/uni-popup.js.map
View file @
40c476f5
{
"version"
:
3
,
"sources"
:
[
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?fa15"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?6072"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?4bb6"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?dd85"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup/uni-popup.vue"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?74a1"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?d3e5"
],
"names"
:
[],
"mappings"
:
"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"
,
"file"
:
"uni_modules/uni-popup/components/uni-popup/uni-popup.js"
,
"sourcesContent"
:
[
"import { render, staticRenderFns, recyclableRender, components } from
\"
./uni-popup.vue?vue&type=template&id=7c43d41b&
\"\n
var renderjs
\n
import script from
\"
./uni-popup.vue?vue&type=script&lang=js&
\"\n
export * from
\"
./uni-popup.vue?vue&type=script&lang=js&
\"\n
import style0 from
\"
./uni-popup.vue?vue&type=style&index=0&lang=scss&
\"\n\n\n
/* normalize component */
\n
import normalizer from
\"
!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js
\"\n
var component = normalizer(
\n
script,
\n
render,
\n
staticRenderFns,
\n
false,
\n
null,
\n
null,
\n
null,
\n
false,
\n
components,
\n
renderjs
\n
)
\n\n
component.options.__file =
\"
uni_modules/uni-popup/components/uni-popup/uni-popup.vue
\"\n
export default component.exports"
,
"export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=template&id=7c43d41b&
\"
"
,
"var components
\n
try {
\n
components = {
\n
uniTransition: function() {
\n
return import(
\n
/* webpackChunkName:
\"
uni_modules/uni-transition/components/uni-transition/uni-transition
\"
*/
\"
@/uni_modules/uni-transition/components/uni-transition/uni-transition.vue
\"\n
)
\n
}
\n
}
\n
} catch (e) {
\n
if (
\n
e.message.indexOf(
\"
Cannot find module
\"
) !== -1 &&
\n
e.message.indexOf(
\"
.vue
\"
) !== -1
\n
) {
\n
console.error(e.message)
\n
console.error(
\"
1. 排查组件名称拼写是否正确
\"
)
\n
console.error(
\n
\"
2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom
\"\n
)
\n
console.error(
\n
\"
3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件
\"\n
)
\n
} else {
\n
throw e
\n
}
\n
}
\n
var render = function() {
\n
var _vm = this
\n
var _h = _vm.$createElement
\n
var _c = _vm._self._c || _h
\n
}
\n
var recyclableRender = false
\n
var staticRenderFns = []
\n
render._withStripped = true
\n\n
export { render, staticRenderFns, recyclableRender, components }"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=script&lang=js&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=script&lang=js&
\"
"
,
"<template>
\n\t
<view v-if=
\"
showPopup
\"
class=
\"
uni-popup
\"
:class=
\"
[popupstyle, isDesktop ? 'fixforpc-z-index' : '']
\"
>
\n\t\t
<view @touchstart=
\"
touchstart
\"
>
\n\t\t\t
<uni-transition key=
\"
1
\"
v-if=
\"
maskShow
\"
name=
\"
mask
\"
mode-class=
\"
fade
\"
:styles=
\"
maskClass
\"\n\t\t\t\t
:duration=
\"
duration
\"
:show=
\"
showTrans
\"
@click=
\"
onTap
\"
/>
\n\t\t\t
<uni-transition key=
\"
2
\"
:mode-class=
\"
ani
\"
name=
\"
content
\"
:styles=
\"
transClass
\"
:duration=
\"
duration
\"\n\t\t\t\t
:show=
\"
showTrans
\"
@click=
\"
onTap
\"
>
\n\t\t\t\t
<view class=
\"
uni-popup__wrapper
\"
:style=
\"
{ backgroundColor: bg }
\"
:class=
\"
[popupstyle]
\"
@click=
\"
clear
\"
>
\n\t\t\t\t\t
<slot />
\n\t\t\t\t
</view>
\n\t\t\t
</uni-transition>
\n\t\t
</view>
\n\t\t
<!-- #ifdef H5 -->
\n\t\t
<keypress v-if=
\"
maskShow
\"
@esc=
\"
onTap
\"
/>
\n\t\t
<!-- #endif -->
\n\t
</view>
\n
</template>
\n\n
<script>
\n\t
// #ifdef H5
\n\t
import keypress from './keypress.js'
\n\t
// #endif
\n\n\t
/**
\n\t
* PopUp 弹出层
\n\t
* @description 弹出层组件,为了解决遮罩弹层的问题
\n\t
* @tutorial https://ext.dcloud.net.cn/plugin?id=329
\n\t
* @property {String} type = [top|center|bottom|left|right|message|dialog|share] 弹出方式
\n\t
*
\t
@value top 顶部弹出
\n\t
*
\t
@value center 中间弹出
\n\t
*
\t
@value bottom 底部弹出
\n\t
*
\t
@value left
\t\t
左侧弹出
\n\t
*
\t
@value right 右侧弹出
\n\t
*
\t
@value message 消息提示
\n\t
*
\t
@value dialog 对话框
\n\t
*
\t
@value share 底部分享示例
\n\t
* @property {Boolean} animation = [true|false] 是否开启动画
\n\t
* @property {Boolean} maskClick = [true|false] 蒙版点击是否关闭弹窗(废弃)
\n\t
* @property {Boolean} isMaskClick = [true|false] 蒙版点击是否关闭弹窗
\n\t
* @property {String} backgroundColor 主窗口背景色
\n\t
* @property {String} maskBackgroundColor 蒙版颜色
\n\t
* @property {Boolean} safeArea
\t\t
是否适配底部安全区
\n\t
* @event {Function} change 打开关闭弹窗触发,e={show: false}
\n\t
* @event {Function} maskClick 点击遮罩触发
\n\t
*/
\n\n\t
export default {
\n\t\t
name: 'uniPopup',
\n\t\t
components: {
\n\t\t\t
// #ifdef H5
\n\t\t\t
keypress
\n\t\t\t
// #endif
\n\t\t
},
\n\t\t
emits: ['change', 'maskClick'],
\n\t\t
props: {
\n\t\t\t
// 开启动画
\n\t\t\t
animation: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: true
\n\t\t\t
},
\n\t\t\t
// 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
\n\t\t\t
// message: 消息提示 ; dialog : 对话框
\n\t\t\t
type: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'center'
\n\t\t\t
},
\n\t\t\t
// maskClick
\n\t\t\t
isMaskClick: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: null
\n\t\t\t
},
\n\t\t\t
// TODO 2 个版本后废弃属性 ,使用 isMaskClick
\n\t\t\t
maskClick: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: null
\n\t\t\t
},
\n\t\t\t
backgroundColor: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'none'
\n\t\t\t
},
\n\t\t\t
safeArea: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: true
\n\t\t\t
},
\n\t\t\t
maskBackgroundColor: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'rgba(0, 0, 0, 0.4)'
\n\t\t\t
},
\n\t\t
},
\n\n\t\t
watch: {
\n\t\t\t
/**
\n\t\t\t
* 监听type类型
\n\t\t\t
*/
\n\t\t\t
type: {
\n\t\t\t\t
handler: function(type) {
\n\t\t\t\t\t
if (!this.config[type]) return
\n\t\t\t\t\t
this[this.config[type]](true)
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
isDesktop: {
\n\t\t\t\t
handler: function(newVal) {
\n\t\t\t\t\t
if (!this.config[newVal]) return
\n\t\t\t\t\t
this[this.config[this.type]](true)
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 监听遮罩是否可点击
\n\t\t\t
* @param {Object} val
\n\t\t\t
*/
\n\t\t\t
maskClick: {
\n\t\t\t\t
handler: function(val) {
\n\t\t\t\t\t
this.mkclick = val
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
isMaskClick: {
\n\t\t\t\t
handler: function(val) {
\n\t\t\t\t\t
this.mkclick = val
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
// H5 下禁止底部滚动
\n\t\t\t
showPopup(show) {
\n\t\t\t\t
// #ifdef H5
\n\t\t\t\t
// fix by mehaotian 处理 h5 滚动穿透的问题
\n\t\t\t\t
document.getElementsByTagName('body')[0].style.overflow = show ? 'hidden' : 'visible'
\n\t\t\t\t
// #endif
\n\t\t\t
}
\n\t\t
},
\n\t\t
data() {
\n\t\t\t
return {
\n\t\t\t\t
duration: 300,
\n\t\t\t\t
ani: [],
\n\t\t\t\t
showPopup: false,
\n\t\t\t\t
showTrans: false,
\n\t\t\t\t
popupWidth: 0,
\n\t\t\t\t
popupHeight: 0,
\n\t\t\t\t
config: {
\n\t\t\t\t\t
top: 'top',
\n\t\t\t\t\t
bottom: 'bottom',
\n\t\t\t\t\t
center: 'center',
\n\t\t\t\t\t
left: 'left',
\n\t\t\t\t\t
right: 'right',
\n\t\t\t\t\t
message: 'top',
\n\t\t\t\t\t
dialog: 'center',
\n\t\t\t\t\t
share: 'bottom'
\n\t\t\t\t
},
\n\t\t\t\t
maskClass: {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
backgroundColor: 'rgba(0, 0, 0, 0.4)'
\n\t\t\t\t
},
\n\t\t\t\t
transClass: {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0
\n\t\t\t\t
},
\n\t\t\t\t
maskShow: true,
\n\t\t\t\t
mkclick: true,
\n\t\t\t\t
popupstyle: this.isDesktop ? 'fixforpc-top' : 'top'
\n\t\t\t
}
\n\t\t
},
\n\t\t
computed: {
\n\t\t\t
isDesktop() {
\n\t\t\t\t
return this.popupWidth >= 500 && this.popupHeight >= 500
\n\t\t\t
},
\n\t\t\t
bg() {
\n\t\t\t\t
if (this.backgroundColor === '' || this.backgroundColor === 'none') {
\n\t\t\t\t\t
return 'transparent'
\n\t\t\t\t
}
\n\t\t\t\t
return this.backgroundColor
\n\t\t\t
}
\n\t\t
},
\n\t\t
mounted() {
\n\t\t\t
const fixSize = () => {
\n\t\t\t\t
const {
\n\t\t\t\t\t
windowWidth,
\n\t\t\t\t\t
windowHeight,
\n\t\t\t\t\t
windowTop,
\n\t\t\t\t\t
safeArea,
\n\t\t\t\t\t
screenHeight,
\n\t\t\t\t\t
safeAreaInsets
\n\t\t\t\t
} = uni.getSystemInfoSync()
\n\t\t\t\t
this.popupWidth = windowWidth
\n\t\t\t\t
this.popupHeight = windowHeight + (windowTop || 0)
\n\t\t\t\t
// TODO fix by mehaotian 是否适配底部安全区 ,目前微信ios 、和 app ios 计算有差异,需要框架修复
\n\t\t\t\t
if (safeArea && this.safeArea) {
\n\t\t\t\t\t
// #ifdef MP-WEIXIN
\n\t\t\t\t\t
this.safeAreaInsets = screenHeight - safeArea.bottom
\n\t\t\t\t\t
// #endif
\n\t\t\t\t\t
// #ifndef MP-WEIXIN
\n\t\t\t\t\t
this.safeAreaInsets = safeAreaInsets.bottom
\n\t\t\t\t\t
// #endif
\n\t\t\t\t
} else {
\n\t\t\t\t\t
this.safeAreaInsets = 0
\n\t\t\t\t
}
\n\t\t\t
}
\n\t\t\t
fixSize()
\n\t\t\t
// #ifdef H5
\n\t\t\t
// window.addEventListener('resize', fixSize)
\n\t\t\t
// this.$once('hook:beforeDestroy', () => {
\n\t\t\t
//
\t
window.removeEventListener('resize', fixSize)
\n\t\t\t
// })
\n\t\t\t
// #endif
\n\t\t
},
\n\t\t
// #ifndef VUE3
\n\t\t
// TODO vue2
\n\t\t
destroyed() {
\n\t\t\t
this.setH5Visible()
\n\t\t
},
\n\t\t
// #endif
\n\t\t
// #ifdef VUE3
\n\t\t
// TODO vue3
\n\t\t
unmounted() {
\n\t\t\t
this.setH5Visible()
\n\t\t
},
\n\t\t
// #endif
\n\t\t
created() {
\n\t\t\t
// this.mkclick = this.isMaskClick || this.maskClick
\n\t\t\t
if (this.isMaskClick === null && this.maskClick === null) {
\n\t\t\t\t
this.mkclick = true
\n\t\t\t
} else {
\n\t\t\t\t
this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick
\n\t\t\t
}
\n\t\t\t
if (this.animation) {
\n\t\t\t\t
this.duration = 300
\n\t\t\t
} else {
\n\t\t\t\t
this.duration = 0
\n\t\t\t
}
\n\t\t\t
// TODO 处理 message 组件生命周期异常的问题
\n\t\t\t
this.messageChild = null
\n\t\t\t
// TODO 解决头条冒泡的问题
\n\t\t\t
this.clearPropagation = false
\n\t\t\t
this.maskClass.backgroundColor = this.maskBackgroundColor
\n\t\t
},
\n\t\t
methods: {
\n\t\t\t
setH5Visible() {
\n\t\t\t\t
// #ifdef H5
\n\t\t\t\t
// fix by mehaotian 处理 h5 滚动穿透的问题
\n\t\t\t\t
document.getElementsByTagName('body')[0].style.overflow = 'visible'
\n\t\t\t\t
// #endif
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 公用方法,不显示遮罩层
\n\t\t\t
*/
\n\t\t\t
closeMask() {
\n\t\t\t\t
this.maskShow = false
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 公用方法,遮罩层禁止点击
\n\t\t\t
*/
\n\t\t\t
disableMask() {
\n\t\t\t\t
this.mkclick = false
\n\t\t\t
},
\n\t\t\t
// TODO nvue 取消冒泡
\n\t\t\t
clear(e) {
\n\t\t\t\t
// #ifndef APP-NVUE
\n\t\t\t\t
e.stopPropagation()
\n\t\t\t\t
// #endif
\n\t\t\t\t
this.clearPropagation = true
\n\t\t\t
},
\n\n\t\t\t
open(direction) {
\n\t\t\t\t
// fix by mehaotian 处理快速打开关闭的情况
\n\t\t\t\t
if (this.showPopup) {
\n\t\t\t\t\t
return
\n\t\t\t\t
}
\n\t\t\t\t
let innerType = ['top', 'center', 'bottom', 'left', 'right', 'message', 'dialog', 'share']
\n\t\t\t\t
if (!(direction && innerType.indexOf(direction) !== -1)) {
\n\t\t\t\t\t
direction = this.type
\n\t\t\t\t
}
\n\t\t\t\t
if (!this.config[direction]) {
\n\t\t\t\t\t
console.error('缺少类型:', direction)
\n\t\t\t\t\t
return
\n\t\t\t\t
}
\n\t\t\t\t
this[this.config[direction]]()
\n\t\t\t\t
this.$emit('change', {
\n\t\t\t\t\t
show: true,
\n\t\t\t\t\t
type: direction
\n\t\t\t\t
})
\n\t\t\t
},
\n\t\t\t
close(type) {
\n\t\t\t\t
this.showTrans = false
\n\t\t\t\t
this.$emit('change', {
\n\t\t\t\t\t
show: false,
\n\t\t\t\t\t
type: this.type
\n\t\t\t\t
})
\n\t\t\t\t
clearTimeout(this.timer)
\n\t\t\t\t
// // 自定义关闭事件
\n\t\t\t\t
// this.customOpen && this.customClose()
\n\t\t\t\t
this.timer = setTimeout(() => {
\n\t\t\t\t\t
this.showPopup = false
\n\t\t\t\t
}, 300)
\n\t\t\t
},
\n\t\t\t
// TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容
\n\t\t\t
touchstart() {
\n\t\t\t\t
this.clearPropagation = false
\n\t\t\t
},
\n\n\t\t\t
onTap() {
\n\t\t\t\t
if (this.clearPropagation) {
\n\t\t\t\t\t
// fix by mehaotian 兼容 nvue
\n\t\t\t\t\t
this.clearPropagation = false
\n\t\t\t\t\t
return
\n\t\t\t\t
}
\n\t\t\t\t
this.$emit('maskClick')
\n\t\t\t\t
if (!this.mkclick) return
\n\t\t\t\t
this.close()
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 顶部弹出样式处理
\n\t\t\t
*/
\n\t\t\t
top(type) {
\n\t\t\t\t
this.popupstyle = this.isDesktop ? 'fixforpc-top' : 'top'
\n\t\t\t\t
this.ani = ['slide-top']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
backgroundColor: this.bg
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t\t
this.$nextTick(() => {
\n\t\t\t\t\t
if (this.messageChild && this.type === 'message') {
\n\t\t\t\t\t\t
this.messageChild.timerClose()
\n\t\t\t\t\t
}
\n\t\t\t\t
})
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 底部弹出样式处理
\n\t\t\t
*/
\n\t\t\t
bottom(type) {
\n\t\t\t\t
this.popupstyle = 'bottom'
\n\t\t\t\t
this.ani = ['slide-bottom']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
paddingBottom: this.safeAreaInsets + 'px',
\n\t\t\t\t\t
backgroundColor: this.bg
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 中间弹出样式处理
\n\t\t\t
*/
\n\t\t\t
center(type) {
\n\t\t\t\t
this.popupstyle = 'center'
\n\t\t\t\t
this.ani = ['zoom-out', 'fade']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t\t\t
display: 'flex',
\n\t\t\t\t\t
flexDirection: 'column',
\n\t\t\t\t\t
/* #endif */
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
justifyContent: 'center',
\n\t\t\t\t\t
alignItems: 'center'
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
},
\n\t\t\t
left(type) {
\n\t\t\t\t
this.popupstyle = 'left'
\n\t\t\t\t
this.ani = ['slide-left']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
backgroundColor: this.bg,
\n\t\t\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t\t\t
display: 'flex',
\n\t\t\t\t\t
flexDirection: 'column'
\n\t\t\t\t\t
/* #endif */
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
},
\n\t\t\t
right(type) {
\n\t\t\t\t
this.popupstyle = 'right'
\n\t\t\t\t
this.ani = ['slide-right']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
backgroundColor: this.bg,
\n\t\t\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t\t\t
display: 'flex',
\n\t\t\t\t\t
flexDirection: 'column'
\n\t\t\t\t\t
/* #endif */
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
}
\n\t\t
}
\n\t
}
\n
</script>
\n
<style lang=
\"
scss
\"
>
\n\t
.uni-popup {
\n\t\t
position: fixed;
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
z-index: 99;
\n\n\t\t
/* #endif */
\n\t\t
&.top,
\n\t\t
&.left,
\n\t\t
&.right {
\n\t\t\t
/* #ifdef H5 */
\n\t\t\t
top: var(--window-top);
\n\t\t\t
/* #endif */
\n\t\t\t
/* #ifndef H5 */
\n\t\t\t
top: 0;
\n\t\t\t
/* #endif */
\n\t\t
}
\n\n\t\t
.uni-popup__wrapper {
\n\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t
display: block;
\n\t\t\t
/* #endif */
\n\t\t\t
position: relative;
\n\n\t\t\t
/* iphonex 等安全区设置,底部安全区适配 */
\n\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t
// padding-bottom: constant(safe-area-inset-bottom);
\n\t\t\t
// padding-bottom: env(safe-area-inset-bottom);
\n\t\t\t
/* #endif */
\n\t\t\t
&.left,
\n\t\t\t
&.right {
\n\t\t\t\t
/* #ifdef H5 */
\n\t\t\t\t
padding-top: var(--window-top);
\n\t\t\t\t
/* #endif */
\n\t\t\t\t
/* #ifndef H5 */
\n\t\t\t\t
padding-top: 0;
\n\t\t\t\t
/* #endif */
\n\t\t\t\t
flex: 1;
\n\t\t\t
}
\n\t\t
}
\n\t
}
\n\n\t
.fixforpc-z-index {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
z-index: 999;
\n\t\t
/* #endif */
\n\t
}
\n\n\t
.fixforpc-top {
\n\t\t
top: 0;
\n\t
}
\n
</style>
\n
"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=style&index=0&lang=scss&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=style&index=0&lang=scss&
\"
"
,
"// extracted by mini-css-extract-plugin
\n
if(module.hot) {
\n
// 1718867221928
\n
var cssReload = require(
\"
D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js
\"
)(module.id, {
\"
hmr
\"
:true,
\"
publicPath
\"
:
\"
../../
\"
,
\"
locals
\"
:false});
\n
module.hot.dispose(cssReload);
\n
module.hot.accept(undefined, cssReload);
\n
}
\n
"
],
"sourceRoot"
:
""
}
\ No newline at end of file
{
"version"
:
3
,
"sources"
:
[
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?fa15"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?6072"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?4bb6"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?dd85"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup/uni-popup.vue"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?74a1"
,
"webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?d3e5"
],
"names"
:
[],
"mappings"
:
"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"
,
"file"
:
"uni_modules/uni-popup/components/uni-popup/uni-popup.js"
,
"sourcesContent"
:
[
"import { render, staticRenderFns, recyclableRender, components } from
\"
./uni-popup.vue?vue&type=template&id=7c43d41b&
\"\n
var renderjs
\n
import script from
\"
./uni-popup.vue?vue&type=script&lang=js&
\"\n
export * from
\"
./uni-popup.vue?vue&type=script&lang=js&
\"\n
import style0 from
\"
./uni-popup.vue?vue&type=style&index=0&lang=scss&
\"\n\n\n
/* normalize component */
\n
import normalizer from
\"
!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js
\"\n
var component = normalizer(
\n
script,
\n
render,
\n
staticRenderFns,
\n
false,
\n
null,
\n
null,
\n
null,
\n
false,
\n
components,
\n
renderjs
\n
)
\n\n
component.options.__file =
\"
uni_modules/uni-popup/components/uni-popup/uni-popup.vue
\"\n
export default component.exports"
,
"export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=template&id=7c43d41b&
\"
"
,
"var components
\n
try {
\n
components = {
\n
uniTransition: function() {
\n
return import(
\n
/* webpackChunkName:
\"
uni_modules/uni-transition/components/uni-transition/uni-transition
\"
*/
\"
@/uni_modules/uni-transition/components/uni-transition/uni-transition.vue
\"\n
)
\n
}
\n
}
\n
} catch (e) {
\n
if (
\n
e.message.indexOf(
\"
Cannot find module
\"
) !== -1 &&
\n
e.message.indexOf(
\"
.vue
\"
) !== -1
\n
) {
\n
console.error(e.message)
\n
console.error(
\"
1. 排查组件名称拼写是否正确
\"
)
\n
console.error(
\n
\"
2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom
\"\n
)
\n
console.error(
\n
\"
3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件
\"\n
)
\n
} else {
\n
throw e
\n
}
\n
}
\n
var render = function() {
\n
var _vm = this
\n
var _h = _vm.$createElement
\n
var _c = _vm._self._c || _h
\n
}
\n
var recyclableRender = false
\n
var staticRenderFns = []
\n
render._withStripped = true
\n\n
export { render, staticRenderFns, recyclableRender, components }"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=script&lang=js&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=script&lang=js&
\"
"
,
"<template>
\n\t
<view v-if=
\"
showPopup
\"
class=
\"
uni-popup
\"
:class=
\"
[popupstyle, isDesktop ? 'fixforpc-z-index' : '']
\"
>
\n\t\t
<view @touchstart=
\"
touchstart
\"
>
\n\t\t\t
<uni-transition key=
\"
1
\"
v-if=
\"
maskShow
\"
name=
\"
mask
\"
mode-class=
\"
fade
\"
:styles=
\"
maskClass
\"\n\t\t\t\t
:duration=
\"
duration
\"
:show=
\"
showTrans
\"
@click=
\"
onTap
\"
/>
\n\t\t\t
<uni-transition key=
\"
2
\"
:mode-class=
\"
ani
\"
name=
\"
content
\"
:styles=
\"
transClass
\"
:duration=
\"
duration
\"\n\t\t\t\t
:show=
\"
showTrans
\"
@click=
\"
onTap
\"
>
\n\t\t\t\t
<view class=
\"
uni-popup__wrapper
\"
:style=
\"
{ backgroundColor: bg }
\"
:class=
\"
[popupstyle]
\"
@click=
\"
clear
\"
>
\n\t\t\t\t\t
<slot />
\n\t\t\t\t
</view>
\n\t\t\t
</uni-transition>
\n\t\t
</view>
\n\t\t
<!-- #ifdef H5 -->
\n\t\t
<keypress v-if=
\"
maskShow
\"
@esc=
\"
onTap
\"
/>
\n\t\t
<!-- #endif -->
\n\t
</view>
\n
</template>
\n\n
<script>
\n\t
// #ifdef H5
\n\t
import keypress from './keypress.js'
\n\t
// #endif
\n\n\t
/**
\n\t
* PopUp 弹出层
\n\t
* @description 弹出层组件,为了解决遮罩弹层的问题
\n\t
* @tutorial https://ext.dcloud.net.cn/plugin?id=329
\n\t
* @property {String} type = [top|center|bottom|left|right|message|dialog|share] 弹出方式
\n\t
*
\t
@value top 顶部弹出
\n\t
*
\t
@value center 中间弹出
\n\t
*
\t
@value bottom 底部弹出
\n\t
*
\t
@value left
\t\t
左侧弹出
\n\t
*
\t
@value right 右侧弹出
\n\t
*
\t
@value message 消息提示
\n\t
*
\t
@value dialog 对话框
\n\t
*
\t
@value share 底部分享示例
\n\t
* @property {Boolean} animation = [true|false] 是否开启动画
\n\t
* @property {Boolean} maskClick = [true|false] 蒙版点击是否关闭弹窗(废弃)
\n\t
* @property {Boolean} isMaskClick = [true|false] 蒙版点击是否关闭弹窗
\n\t
* @property {String} backgroundColor 主窗口背景色
\n\t
* @property {String} maskBackgroundColor 蒙版颜色
\n\t
* @property {Boolean} safeArea
\t\t
是否适配底部安全区
\n\t
* @event {Function} change 打开关闭弹窗触发,e={show: false}
\n\t
* @event {Function} maskClick 点击遮罩触发
\n\t
*/
\n\n\t
export default {
\n\t\t
name: 'uniPopup',
\n\t\t
components: {
\n\t\t\t
// #ifdef H5
\n\t\t\t
keypress
\n\t\t\t
// #endif
\n\t\t
},
\n\t\t
emits: ['change', 'maskClick'],
\n\t\t
props: {
\n\t\t\t
// 开启动画
\n\t\t\t
animation: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: true
\n\t\t\t
},
\n\t\t\t
// 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
\n\t\t\t
// message: 消息提示 ; dialog : 对话框
\n\t\t\t
type: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'center'
\n\t\t\t
},
\n\t\t\t
// maskClick
\n\t\t\t
isMaskClick: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: null
\n\t\t\t
},
\n\t\t\t
// TODO 2 个版本后废弃属性 ,使用 isMaskClick
\n\t\t\t
maskClick: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: null
\n\t\t\t
},
\n\t\t\t
backgroundColor: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'none'
\n\t\t\t
},
\n\t\t\t
safeArea: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: true
\n\t\t\t
},
\n\t\t\t
maskBackgroundColor: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'rgba(0, 0, 0, 0.4)'
\n\t\t\t
},
\n\t\t
},
\n\n\t\t
watch: {
\n\t\t\t
/**
\n\t\t\t
* 监听type类型
\n\t\t\t
*/
\n\t\t\t
type: {
\n\t\t\t\t
handler: function(type) {
\n\t\t\t\t\t
if (!this.config[type]) return
\n\t\t\t\t\t
this[this.config[type]](true)
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
isDesktop: {
\n\t\t\t\t
handler: function(newVal) {
\n\t\t\t\t\t
if (!this.config[newVal]) return
\n\t\t\t\t\t
this[this.config[this.type]](true)
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 监听遮罩是否可点击
\n\t\t\t
* @param {Object} val
\n\t\t\t
*/
\n\t\t\t
maskClick: {
\n\t\t\t\t
handler: function(val) {
\n\t\t\t\t\t
this.mkclick = val
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
isMaskClick: {
\n\t\t\t\t
handler: function(val) {
\n\t\t\t\t\t
this.mkclick = val
\n\t\t\t\t
},
\n\t\t\t\t
immediate: true
\n\t\t\t
},
\n\t\t\t
// H5 下禁止底部滚动
\n\t\t\t
showPopup(show) {
\n\t\t\t\t
// #ifdef H5
\n\t\t\t\t
// fix by mehaotian 处理 h5 滚动穿透的问题
\n\t\t\t\t
document.getElementsByTagName('body')[0].style.overflow = show ? 'hidden' : 'visible'
\n\t\t\t\t
// #endif
\n\t\t\t
}
\n\t\t
},
\n\t\t
data() {
\n\t\t\t
return {
\n\t\t\t\t
duration: 300,
\n\t\t\t\t
ani: [],
\n\t\t\t\t
showPopup: false,
\n\t\t\t\t
showTrans: false,
\n\t\t\t\t
popupWidth: 0,
\n\t\t\t\t
popupHeight: 0,
\n\t\t\t\t
config: {
\n\t\t\t\t\t
top: 'top',
\n\t\t\t\t\t
bottom: 'bottom',
\n\t\t\t\t\t
center: 'center',
\n\t\t\t\t\t
left: 'left',
\n\t\t\t\t\t
right: 'right',
\n\t\t\t\t\t
message: 'top',
\n\t\t\t\t\t
dialog: 'center',
\n\t\t\t\t\t
share: 'bottom'
\n\t\t\t\t
},
\n\t\t\t\t
maskClass: {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
backgroundColor: 'rgba(0, 0, 0, 0.4)'
\n\t\t\t\t
},
\n\t\t\t\t
transClass: {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0
\n\t\t\t\t
},
\n\t\t\t\t
maskShow: true,
\n\t\t\t\t
mkclick: true,
\n\t\t\t\t
popupstyle: this.isDesktop ? 'fixforpc-top' : 'top'
\n\t\t\t
}
\n\t\t
},
\n\t\t
computed: {
\n\t\t\t
isDesktop() {
\n\t\t\t\t
return this.popupWidth >= 500 && this.popupHeight >= 500
\n\t\t\t
},
\n\t\t\t
bg() {
\n\t\t\t\t
if (this.backgroundColor === '' || this.backgroundColor === 'none') {
\n\t\t\t\t\t
return 'transparent'
\n\t\t\t\t
}
\n\t\t\t\t
return this.backgroundColor
\n\t\t\t
}
\n\t\t
},
\n\t\t
mounted() {
\n\t\t\t
const fixSize = () => {
\n\t\t\t\t
const {
\n\t\t\t\t\t
windowWidth,
\n\t\t\t\t\t
windowHeight,
\n\t\t\t\t\t
windowTop,
\n\t\t\t\t\t
safeArea,
\n\t\t\t\t\t
screenHeight,
\n\t\t\t\t\t
safeAreaInsets
\n\t\t\t\t
} = uni.getSystemInfoSync()
\n\t\t\t\t
this.popupWidth = windowWidth
\n\t\t\t\t
this.popupHeight = windowHeight + (windowTop || 0)
\n\t\t\t\t
// TODO fix by mehaotian 是否适配底部安全区 ,目前微信ios 、和 app ios 计算有差异,需要框架修复
\n\t\t\t\t
if (safeArea && this.safeArea) {
\n\t\t\t\t\t
// #ifdef MP-WEIXIN
\n\t\t\t\t\t
this.safeAreaInsets = screenHeight - safeArea.bottom
\n\t\t\t\t\t
// #endif
\n\t\t\t\t\t
// #ifndef MP-WEIXIN
\n\t\t\t\t\t
this.safeAreaInsets = safeAreaInsets.bottom
\n\t\t\t\t\t
// #endif
\n\t\t\t\t
} else {
\n\t\t\t\t\t
this.safeAreaInsets = 0
\n\t\t\t\t
}
\n\t\t\t
}
\n\t\t\t
fixSize()
\n\t\t\t
// #ifdef H5
\n\t\t\t
// window.addEventListener('resize', fixSize)
\n\t\t\t
// this.$once('hook:beforeDestroy', () => {
\n\t\t\t
//
\t
window.removeEventListener('resize', fixSize)
\n\t\t\t
// })
\n\t\t\t
// #endif
\n\t\t
},
\n\t\t
// #ifndef VUE3
\n\t\t
// TODO vue2
\n\t\t
destroyed() {
\n\t\t\t
this.setH5Visible()
\n\t\t
},
\n\t\t
// #endif
\n\t\t
// #ifdef VUE3
\n\t\t
// TODO vue3
\n\t\t
unmounted() {
\n\t\t\t
this.setH5Visible()
\n\t\t
},
\n\t\t
// #endif
\n\t\t
created() {
\n\t\t\t
// this.mkclick = this.isMaskClick || this.maskClick
\n\t\t\t
if (this.isMaskClick === null && this.maskClick === null) {
\n\t\t\t\t
this.mkclick = true
\n\t\t\t
} else {
\n\t\t\t\t
this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick
\n\t\t\t
}
\n\t\t\t
if (this.animation) {
\n\t\t\t\t
this.duration = 300
\n\t\t\t
} else {
\n\t\t\t\t
this.duration = 0
\n\t\t\t
}
\n\t\t\t
// TODO 处理 message 组件生命周期异常的问题
\n\t\t\t
this.messageChild = null
\n\t\t\t
// TODO 解决头条冒泡的问题
\n\t\t\t
this.clearPropagation = false
\n\t\t\t
this.maskClass.backgroundColor = this.maskBackgroundColor
\n\t\t
},
\n\t\t
methods: {
\n\t\t\t
setH5Visible() {
\n\t\t\t\t
// #ifdef H5
\n\t\t\t\t
// fix by mehaotian 处理 h5 滚动穿透的问题
\n\t\t\t\t
document.getElementsByTagName('body')[0].style.overflow = 'visible'
\n\t\t\t\t
// #endif
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 公用方法,不显示遮罩层
\n\t\t\t
*/
\n\t\t\t
closeMask() {
\n\t\t\t\t
this.maskShow = false
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 公用方法,遮罩层禁止点击
\n\t\t\t
*/
\n\t\t\t
disableMask() {
\n\t\t\t\t
this.mkclick = false
\n\t\t\t
},
\n\t\t\t
// TODO nvue 取消冒泡
\n\t\t\t
clear(e) {
\n\t\t\t\t
// #ifndef APP-NVUE
\n\t\t\t\t
e.stopPropagation()
\n\t\t\t\t
// #endif
\n\t\t\t\t
this.clearPropagation = true
\n\t\t\t
},
\n\n\t\t\t
open(direction) {
\n\t\t\t\t
// fix by mehaotian 处理快速打开关闭的情况
\n\t\t\t\t
if (this.showPopup) {
\n\t\t\t\t\t
return
\n\t\t\t\t
}
\n\t\t\t\t
let innerType = ['top', 'center', 'bottom', 'left', 'right', 'message', 'dialog', 'share']
\n\t\t\t\t
if (!(direction && innerType.indexOf(direction) !== -1)) {
\n\t\t\t\t\t
direction = this.type
\n\t\t\t\t
}
\n\t\t\t\t
if (!this.config[direction]) {
\n\t\t\t\t\t
console.error('缺少类型:', direction)
\n\t\t\t\t\t
return
\n\t\t\t\t
}
\n\t\t\t\t
this[this.config[direction]]()
\n\t\t\t\t
this.$emit('change', {
\n\t\t\t\t\t
show: true,
\n\t\t\t\t\t
type: direction
\n\t\t\t\t
})
\n\t\t\t
},
\n\t\t\t
close(type) {
\n\t\t\t\t
this.showTrans = false
\n\t\t\t\t
this.$emit('change', {
\n\t\t\t\t\t
show: false,
\n\t\t\t\t\t
type: this.type
\n\t\t\t\t
})
\n\t\t\t\t
clearTimeout(this.timer)
\n\t\t\t\t
// // 自定义关闭事件
\n\t\t\t\t
// this.customOpen && this.customClose()
\n\t\t\t\t
this.timer = setTimeout(() => {
\n\t\t\t\t\t
this.showPopup = false
\n\t\t\t\t
}, 300)
\n\t\t\t
},
\n\t\t\t
// TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容
\n\t\t\t
touchstart() {
\n\t\t\t\t
this.clearPropagation = false
\n\t\t\t
},
\n\n\t\t\t
onTap() {
\n\t\t\t\t
if (this.clearPropagation) {
\n\t\t\t\t\t
// fix by mehaotian 兼容 nvue
\n\t\t\t\t\t
this.clearPropagation = false
\n\t\t\t\t\t
return
\n\t\t\t\t
}
\n\t\t\t\t
this.$emit('maskClick')
\n\t\t\t\t
if (!this.mkclick) return
\n\t\t\t\t
this.close()
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 顶部弹出样式处理
\n\t\t\t
*/
\n\t\t\t
top(type) {
\n\t\t\t\t
this.popupstyle = this.isDesktop ? 'fixforpc-top' : 'top'
\n\t\t\t\t
this.ani = ['slide-top']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
backgroundColor: this.bg
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t\t
this.$nextTick(() => {
\n\t\t\t\t\t
if (this.messageChild && this.type === 'message') {
\n\t\t\t\t\t\t
this.messageChild.timerClose()
\n\t\t\t\t\t
}
\n\t\t\t\t
})
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 底部弹出样式处理
\n\t\t\t
*/
\n\t\t\t
bottom(type) {
\n\t\t\t\t
this.popupstyle = 'bottom'
\n\t\t\t\t
this.ani = ['slide-bottom']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
paddingBottom: this.safeAreaInsets + 'px',
\n\t\t\t\t\t
backgroundColor: this.bg
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 中间弹出样式处理
\n\t\t\t
*/
\n\t\t\t
center(type) {
\n\t\t\t\t
this.popupstyle = 'center'
\n\t\t\t\t
this.ani = ['zoom-out', 'fade']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t\t\t
display: 'flex',
\n\t\t\t\t\t
flexDirection: 'column',
\n\t\t\t\t\t
/* #endif */
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
justifyContent: 'center',
\n\t\t\t\t\t
alignItems: 'center'
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
},
\n\t\t\t
left(type) {
\n\t\t\t\t
this.popupstyle = 'left'
\n\t\t\t\t
this.ani = ['slide-left']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
left: 0,
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
backgroundColor: this.bg,
\n\t\t\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t\t\t
display: 'flex',
\n\t\t\t\t\t
flexDirection: 'column'
\n\t\t\t\t\t
/* #endif */
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
},
\n\t\t\t
right(type) {
\n\t\t\t\t
this.popupstyle = 'right'
\n\t\t\t\t
this.ani = ['slide-right']
\n\t\t\t\t
this.transClass = {
\n\t\t\t\t\t
position: 'fixed',
\n\t\t\t\t\t
bottom: 0,
\n\t\t\t\t\t
right: 0,
\n\t\t\t\t\t
top: 0,
\n\t\t\t\t\t
backgroundColor: this.bg,
\n\t\t\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t\t\t
display: 'flex',
\n\t\t\t\t\t
flexDirection: 'column'
\n\t\t\t\t\t
/* #endif */
\n\t\t\t\t
}
\n\t\t\t\t
// TODO 兼容 type 属性 ,后续会废弃
\n\t\t\t\t
if (type) return
\n\t\t\t\t
this.showPopup = true
\n\t\t\t\t
this.showTrans = true
\n\t\t\t
}
\n\t\t
}
\n\t
}
\n
</script>
\n
<style lang=
\"
scss
\"
>
\n\t
.uni-popup {
\n\t\t
position: fixed;
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
z-index: 99;
\n\n\t\t
/* #endif */
\n\t\t
&.top,
\n\t\t
&.left,
\n\t\t
&.right {
\n\t\t\t
/* #ifdef H5 */
\n\t\t\t
top: var(--window-top);
\n\t\t\t
/* #endif */
\n\t\t\t
/* #ifndef H5 */
\n\t\t\t
top: 0;
\n\t\t\t
/* #endif */
\n\t\t
}
\n\n\t\t
.uni-popup__wrapper {
\n\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t
display: block;
\n\t\t\t
/* #endif */
\n\t\t\t
position: relative;
\n\n\t\t\t
/* iphonex 等安全区设置,底部安全区适配 */
\n\t\t\t
/* #ifndef APP-NVUE */
\n\t\t\t
// padding-bottom: constant(safe-area-inset-bottom);
\n\t\t\t
// padding-bottom: env(safe-area-inset-bottom);
\n\t\t\t
/* #endif */
\n\t\t\t
&.left,
\n\t\t\t
&.right {
\n\t\t\t\t
/* #ifdef H5 */
\n\t\t\t\t
padding-top: var(--window-top);
\n\t\t\t\t
/* #endif */
\n\t\t\t\t
/* #ifndef H5 */
\n\t\t\t\t
padding-top: 0;
\n\t\t\t\t
/* #endif */
\n\t\t\t\t
flex: 1;
\n\t\t\t
}
\n\t\t
}
\n\t
}
\n\n\t
.fixforpc-z-index {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
z-index: 999;
\n\t\t
/* #endif */
\n\t
}
\n\n\t
.fixforpc-top {
\n\t\t
top: 0;
\n\t
}
\n
</style>
\n
"
,
"import mod from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=style&index=0&lang=scss&
\"
; export default mod; export * from
\"
-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup.vue?vue&type=style&index=0&lang=scss&
\"
"
,
"// extracted by mini-css-extract-plugin
\n
if(module.hot) {
\n
// 1721008753856
\n
var cssReload = require(
\"
D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js
\"
)(module.id, {
\"
hmr
\"
:true,
\"
publicPath
\"
:
\"
../../
\"
,
\"
locals
\"
:false});
\n
module.hot.dispose(cssReload);
\n
module.hot.accept(undefined, cssReload);
\n
}
\n
"
],
"sourceRoot"
:
""
}
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.js.map
View file @
40c476f5
{"version":3,"sources":["webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?b3a7","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?01ee","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?6433","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?4897","uni-app:///uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?c0c1","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?79d8","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?2e05","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?b0ca"],"names":[],"mappings":"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","file":"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./z-swiper-item.vue?vue&type=template&id=391a97dd&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjYwMSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjYwMX19&\"\nvar renderjs\nimport script from \"./z-swiper-item.vue?vue&type=script&lang=js&\"\nexport * from \"./z-swiper-item.vue?vue&type=script&lang=js&\"\nimport style0 from \"./z-swiper-item.vue?vue&type=style&index=0&id=391a97dd&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"391a97dd\",\n null,\n false,\n components,\n renderjs\n)\n\n/* custom blocks */\nimport block0 from \"../../wxs/z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper-item%5Cz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"\nif (typeof block0 === 'function') block0(component)\n\ncomponent.options.__file = \"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=template&id=391a97dd&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjYwMSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjYwMX19&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var s0 = _vm.__get_style([_vm.itemStyle, _vm.customStyle])\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n s0: s0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\r\n\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\">\r\n\t\t<!-- #endif -->\r\n\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n\t\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\"\r\n\t\t\t:swiperItemTransform=\"wxsItemTransform\" :change:swiperItemTransform=\"zSwiperWxs.wxsItemTransformObserver\">\r\n\t\t\t<!-- #endif -->\r\n\t\t\t<slot></slot>\r\n\t\t</view>\r\n</template>\r\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\r\n<!-- #endif -->\r\n<script>\r\n\timport {\r\n\t\tChildrenMixin\r\n\t} from '../../libs/mixins/relation.js';\r\n\timport {\r\n\t\tgetRect\r\n\t} from '../../libs/utils/utils.js';\r\n\texport default {\r\n\t\tname: \"z-swipe-item\",\r\n\t\t// #ifdef MP-WEIXIN\r\n\t\toptions: {\r\n\t\t\tvirtualHost: true\r\n\t\t},\r\n\t\t// #endif\r\n\t\tmixins: [ChildrenMixin('zSwipe')],\r\n\t\tprops: {\r\n\t\t\tcustomStyle: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn {};\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tswiperItemWidth: {\r\n\t\t\t\ttype: [String, Number],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tswiperItemHeight: {\r\n\t\t\t\ttype: [String, Number],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\twxsItemTransform: \"\",\r\n\t\t\t\titemStyle: {},\r\n\t\t\t\toffsetLeft: 0,\r\n\t\t\t\toffsetTop: 0,\r\n\t\t\t\titemClass: [],\r\n\t\t\t\twidth: 0,\r\n\t\t\t\theight: 0,\r\n\t\t\t};\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.getSize();\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tslideClass() {\r\n\t\t\t\treturn this.itemClass.join(\" \");\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tswiperItemWidth: {\r\n\t\t\t\thandler(val) {\r\n\t\t\t\t\tif (val) {\r\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'width', this.unitFormat(val, \"rpx\"))\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\timmediate: true\r\n\t\t\t},\r\n\t\t\tswiperItemHeight: {\r\n\t\t\t\thandler(val) {\r\n\t\t\t\t\tif (val) {\r\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'height', this.unitFormat(val, \"rpx\"))\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\timmediate: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tunitFormat(val, type) {\r\n\t\t\t\tif (type == \"rpx\") {\r\n\t\t\t\t\tif (val.includes(\"rpx\") || val.includes(\"px\")) {\r\n\t\t\t\t\t\treturn val;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn val + 'px';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (type == \"number\") {\r\n\t\t\t\t\tif (val.includes(\"rpx\")) {\r\n\t\t\t\t\t\treturn uni.upx2px(parseInt(val.replace(\"rpx\", \"\")))\r\n\t\t\t\t\t} else if (!val.includes(\"rpx\") && val.includes(\"px\")) {\r\n\t\t\t\t\t\treturn parseInt(val.replace(\"px\", \"\"))\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn val;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tonClickSlide(event) {\r\n\t\t\t\tthis.$emit(\"click\", {\r\n\t\t\t\t\tevent,\r\n\t\t\t\t\tindex: this.index\r\n\t\t\t\t});\r\n\t\t\t\tthis.parent.swiper.updateClickedSlide(this.index);\r\n\t\t\t\tthis.parent.swiper.emit(\"slideClick\", this.index);\r\n\t\t\t},\r\n\t\t\ttransform(value) {\r\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.$set(this.itemStyle, 'transform', value)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.wxsItemTransform = value\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\ttransition(value) {\r\n\t\t\t\t// #ifdef MP-BAIDU\r\n\t\t\t\tthis.$set(this.itemStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-BAIDU\r\n\t\t\t\tthis.$set(this.itemStyle, 'transition-duration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\twillChange(value) {\r\n\t\t\t\tthis.$set(this.itemStyle, 'will-change', value)\r\n\t\t\t},\r\n\t\t\tcss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.itemStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\ttransitionEnd(callback, duration) {\r\n\t\t\t\tsetTimeout(callback, duration)\r\n\t\t\t},\r\n\t\t\tgetSize() {\r\n\t\t\t\tconst query = uni.createSelectorQuery().in(this);\r\n\t\t\t\treturn new Promise((resolve, reject) => {\r\n\t\t\t\t\tquery.select('.swiper-slide').boundingClientRect(data => {\r\n\t\t\t\t\t\tif (this.swiperItemWidth) {\r\n\t\t\t\t\t\t\tthis.width = this.unitFormat(this.swiperItemWidth, \"number\");\r\n\t\t\t\t\t\t\tthis.height = data.height;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (this.swiperItemHeight) {\r\n\t\t\t\t\t\t\tthis.width = data.width;\r\n\t\t\t\t\t\t\tthis.height = this.unitFormat(this.swiperItemHeight, \"number\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!this.swiperItemWidth && !this.swiperItemHeight) {\r\n\t\t\t\t\t\t\tthis.width = data.width;\r\n\t\t\t\t\t\t\tthis.height = data.height;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresolve({\r\n\t\t\t\t\t\t\twidth: this.width,\r\n\t\t\t\t\t\t\theight: this.height\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}).exec();\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\taddClass(value) {\r\n\t\t\t\tthis.itemClass = Array.from(new Set([...this.itemClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremoveClass(value) {\r\n\t\t\t\tthis.itemClass = this.itemClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\thasClass(value) {\r\n\t\t\t\treturn this.itemClass.includes(value);\r\n\t\t\t},\r\n\t\t\tnextAll() {\r\n\t\t\t\treturn this.parent.children.filter((item) => {\r\n\t\t\t\t\treturn item.index > this.index\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tprevAll() {\r\n\t\t\t\treturn this.parent.children.filter((item) => {\r\n\t\t\t\t\treturn item.index < this.index\r\n\t\t\t\t}).reverse()\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t@import '../../libs/core.scss';\r\n</style>\n","import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=style&index=0&id=391a97dd&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=style&index=0&id=391a97dd&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1718867222058\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import mod from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper-item%5Cz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper-item%5Cz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"","export default function (Component) {\n if(!Component.options.wxsCallMethods){\n Component.options.wxsCallMethods = []\n }\n Component.options.wxsCallMethods.push('onTouchStartSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchMoveSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchEndSwiperWxs')\n }"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?b3a7","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?01ee","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?6433","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?4897","uni-app:///uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?c0c1","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?79d8","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?2e05","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?b0ca"],"names":[],"mappings":"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","file":"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./z-swiper-item.vue?vue&type=template&id=391a97dd&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjYwMSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjYwMX19&\"\nvar renderjs\nimport script from \"./z-swiper-item.vue?vue&type=script&lang=js&\"\nexport * from \"./z-swiper-item.vue?vue&type=script&lang=js&\"\nimport style0 from \"./z-swiper-item.vue?vue&type=style&index=0&id=391a97dd&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"391a97dd\",\n null,\n false,\n components,\n renderjs\n)\n\n/* custom blocks */\nimport block0 from \"../../wxs/z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper-item%5Cz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"\nif (typeof block0 === 'function') block0(component)\n\ncomponent.options.__file = \"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=template&id=391a97dd&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjYwMSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjYwMX19&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var s0 = _vm.__get_style([_vm.itemStyle, _vm.customStyle])\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n s0: s0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\r\n\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\">\r\n\t\t<!-- #endif -->\r\n\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n\t\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\"\r\n\t\t\t:swiperItemTransform=\"wxsItemTransform\" :change:swiperItemTransform=\"zSwiperWxs.wxsItemTransformObserver\">\r\n\t\t\t<!-- #endif -->\r\n\t\t\t<slot></slot>\r\n\t\t</view>\r\n</template>\r\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\r\n<!-- #endif -->\r\n<script>\r\n\timport {\r\n\t\tChildrenMixin\r\n\t} from '../../libs/mixins/relation.js';\r\n\timport {\r\n\t\tgetRect\r\n\t} from '../../libs/utils/utils.js';\r\n\texport default {\r\n\t\tname: \"z-swipe-item\",\r\n\t\t// #ifdef MP-WEIXIN\r\n\t\toptions: {\r\n\t\t\tvirtualHost: true\r\n\t\t},\r\n\t\t// #endif\r\n\t\tmixins: [ChildrenMixin('zSwipe')],\r\n\t\tprops: {\r\n\t\t\tcustomStyle: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn {};\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tswiperItemWidth: {\r\n\t\t\t\ttype: [String, Number],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tswiperItemHeight: {\r\n\t\t\t\ttype: [String, Number],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\twxsItemTransform: \"\",\r\n\t\t\t\titemStyle: {},\r\n\t\t\t\toffsetLeft: 0,\r\n\t\t\t\toffsetTop: 0,\r\n\t\t\t\titemClass: [],\r\n\t\t\t\twidth: 0,\r\n\t\t\t\theight: 0,\r\n\t\t\t};\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.getSize();\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tslideClass() {\r\n\t\t\t\treturn this.itemClass.join(\" \");\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tswiperItemWidth: {\r\n\t\t\t\thandler(val) {\r\n\t\t\t\t\tif (val) {\r\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'width', this.unitFormat(val, \"rpx\"))\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\timmediate: true\r\n\t\t\t},\r\n\t\t\tswiperItemHeight: {\r\n\t\t\t\thandler(val) {\r\n\t\t\t\t\tif (val) {\r\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'height', this.unitFormat(val, \"rpx\"))\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\timmediate: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tunitFormat(val, type) {\r\n\t\t\t\tif (type == \"rpx\") {\r\n\t\t\t\t\tif (val.includes(\"rpx\") || val.includes(\"px\")) {\r\n\t\t\t\t\t\treturn val;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn val + 'px';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (type == \"number\") {\r\n\t\t\t\t\tif (val.includes(\"rpx\")) {\r\n\t\t\t\t\t\treturn uni.upx2px(parseInt(val.replace(\"rpx\", \"\")))\r\n\t\t\t\t\t} else if (!val.includes(\"rpx\") && val.includes(\"px\")) {\r\n\t\t\t\t\t\treturn parseInt(val.replace(\"px\", \"\"))\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn val;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tonClickSlide(event) {\r\n\t\t\t\tthis.$emit(\"click\", {\r\n\t\t\t\t\tevent,\r\n\t\t\t\t\tindex: this.index\r\n\t\t\t\t});\r\n\t\t\t\tthis.parent.swiper.updateClickedSlide(this.index);\r\n\t\t\t\tthis.parent.swiper.emit(\"slideClick\", this.index);\r\n\t\t\t},\r\n\t\t\ttransform(value) {\r\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.$set(this.itemStyle, 'transform', value)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.wxsItemTransform = value\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\ttransition(value) {\r\n\t\t\t\t// #ifdef MP-BAIDU\r\n\t\t\t\tthis.$set(this.itemStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-BAIDU\r\n\t\t\t\tthis.$set(this.itemStyle, 'transition-duration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\twillChange(value) {\r\n\t\t\t\tthis.$set(this.itemStyle, 'will-change', value)\r\n\t\t\t},\r\n\t\t\tcss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.itemStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\ttransitionEnd(callback, duration) {\r\n\t\t\t\tsetTimeout(callback, duration)\r\n\t\t\t},\r\n\t\t\tgetSize() {\r\n\t\t\t\tconst query = uni.createSelectorQuery().in(this);\r\n\t\t\t\treturn new Promise((resolve, reject) => {\r\n\t\t\t\t\tquery.select('.swiper-slide').boundingClientRect(data => {\r\n\t\t\t\t\t\tif (this.swiperItemWidth) {\r\n\t\t\t\t\t\t\tthis.width = this.unitFormat(this.swiperItemWidth, \"number\");\r\n\t\t\t\t\t\t\tthis.height = data.height;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (this.swiperItemHeight) {\r\n\t\t\t\t\t\t\tthis.width = data.width;\r\n\t\t\t\t\t\t\tthis.height = this.unitFormat(this.swiperItemHeight, \"number\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!this.swiperItemWidth && !this.swiperItemHeight) {\r\n\t\t\t\t\t\t\tthis.width = data.width;\r\n\t\t\t\t\t\t\tthis.height = data.height;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresolve({\r\n\t\t\t\t\t\t\twidth: this.width,\r\n\t\t\t\t\t\t\theight: this.height\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}).exec();\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\taddClass(value) {\r\n\t\t\t\tthis.itemClass = Array.from(new Set([...this.itemClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremoveClass(value) {\r\n\t\t\t\tthis.itemClass = this.itemClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\thasClass(value) {\r\n\t\t\t\treturn this.itemClass.includes(value);\r\n\t\t\t},\r\n\t\t\tnextAll() {\r\n\t\t\t\treturn this.parent.children.filter((item) => {\r\n\t\t\t\t\treturn item.index > this.index\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tprevAll() {\r\n\t\t\t\treturn this.parent.children.filter((item) => {\r\n\t\t\t\t\treturn item.index < this.index\r\n\t\t\t\t}).reverse()\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t@import '../../libs/core.scss';\r\n</style>\n","import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=style&index=0&id=391a97dd&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=style&index=0&id=391a97dd&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1721008753669\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import mod from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper-item%5Cz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper-item%5Cz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"","export default function (Component) {\n if(!Component.options.wxsCallMethods){\n Component.options.wxsCallMethods = []\n }\n Component.options.wxsCallMethods.push('onTouchStartSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchMoveSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchEndSwiperWxs')\n }"],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/zebra-swiper/components/z-swiper/z-swiper.js.map
View file @
40c476f5
{"version":3,"sources":["webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?253a","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?6904","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?157a","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?64f5","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?da48","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?2ebd","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?7ff6","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?1260","uni-app:///uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue"],"names":[],"mappings":"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","file":"uni_modules/zebra-swiper/components/z-swiper/z-swiper.js","sourcesContent":["import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=style&index=0&id=2ff4d8de&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=style&index=0&id=2ff4d8de&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1718867222246\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import mod from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper%5Cz-swiper.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper%5Cz-swiper.vue&module=zSwiperWxs&lang=wxs\"","export default function (Component) {\n if(!Component.options.wxsCallMethods){\n Component.options.wxsCallMethods = []\n }\n Component.options.wxsCallMethods.push('onTouchStartSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchMoveSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchEndSwiperWxs')\n }","import { render, staticRenderFns, recyclableRender, components } from \"./z-swiper.vue?vue&type=template&id=2ff4d8de&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMzNjMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMzYzfX0%3D&\"\nvar renderjs\nimport script from \"./z-swiper.vue?vue&type=script&lang=js&\"\nexport * from \"./z-swiper.vue?vue&type=script&lang=js&\"\nimport style0 from \"./z-swiper.vue?vue&type=style&index=0&id=2ff4d8de&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2ff4d8de\",\n null,\n false,\n components,\n renderjs\n)\n\n/* custom blocks */\nimport block0 from \"../../wxs/z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper%5Cz-swiper.vue&module=zSwiperWxs&lang=wxs\"\nif (typeof block0 === 'function') block0(component)\n\ncomponent.options.__file = \"uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=template&id=2ff4d8de&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMzNjMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMzYzfX0%3D&\"","var components\ntry {\n components = {\n zSwiperItem: function() {\n return import(\n /* webpackChunkName: \"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item\" */ \"@/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var s0 = _vm.__get_style([_vm.customStyle])\n\n var s1 = _vm.__get_style([_vm.wrapperStyle])\n\n var s2 = _vm.cubeShadowShowWrapper\n ? _vm.__get_style([_vm.cubeShadowStyle])\n : null\n var s3 = _vm.cubeShadowShowRoot\n ? _vm.__get_style([_vm.cubeShadowStyle])\n : null\n var s4 = _vm.showIndicators ? _vm.__get_style([_vm.paginationStyle]) : null\n var l0 =\n _vm.showIndicators && _vm.paginationType == \"bullets\"\n ? _vm.__map(_vm.paginationContent, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var s5 = _vm.__get_style([item.styleContent])\n\n var g0 = item.classContent.join(\" \")\n return {\n $orig: $orig,\n s5: s5,\n g0: g0\n }\n })\n : null\n var s6 =\n _vm.showIndicators && _vm.paginationType == \"progressbar\"\n ? _vm.__get_style([_vm.paginationContent.styleContent])\n : null\n var s7 = _vm.scrollbarShow ? _vm.__get_style([_vm.scrollbarStyle]) : null\n var s8 = _vm.scrollbarShow ? _vm.__get_style([_vm.scrollbarItemStyle]) : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n s0: s0,\n s1: s1,\n s2: s2,\n s3: s3,\n s4: s4,\n l0: l0,\n s6: s6,\n s7: s7,\n s8: s8\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view :id=\"'swiper'+_uid\"\r\n\t\t:class=\"['swiper',contentClass,containerClasses,options.direction === 'vertical'?'swiper-vertical':'']\"\r\n\t\t:style=\"[customStyle]\">\r\n\t\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\r\n\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\" @touchstart=\"onTouchStart\"\r\n\t\t\t@touchmove=\"onTouchMove\" @touchend=\"onTouchEnd\" @touchcancel=\"onTouchEnd\">\r\n\t\t<!-- #endif -->\r\n\t\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n\t\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\"\r\n\t\t\t\t@touchstart=\"zSwiperWxs.onTouchStartWxs\" @touchmove=\"zSwiperWxs.onTouchMoveWxs\"\r\n\t\t\t\t@touchend=\"zSwiperWxs.onTouchEndWxs\" @touchcancel=\"zSwiperWxs.onTouchEndWxs\"\r\n\t\t\t\t:swiperTransform=\"wxsTransform\" :change:swiperTransform=\"zSwiperWxs.wxsTransformObserver\">\r\n\t\t\t<!-- #endif -->\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t<!-- 在loop模式下,为group填充空白slide -->\r\n\t\t\t\t<template v-if=\"loopBlankShow\">\r\n\t\t\t\t\t<z-swiper-item v-for=\"(item,index) in loopBlankNumber\" :key=\"index\">\r\n\t\t\t\t\t</z-swiper-item>\r\n\t\t\t\t</template>\r\n\t\t\t\t<template v-if=\"cubeShadowShowWrapper\">\r\n\t\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\r\n\t\t\t\t</template>\r\n\t\t\t</view>\r\n\t\t\t<template v-if=\"cubeShadowShowRoot\">\r\n\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\r\n\t\t\t</template>\r\n\t\t\t<slot name=\"indicator\"></slot>\r\n\t\t\t<template v-if=\"showIndicators\">\r\n\t\t\t\t<view :class=\"['swiper-pagination',paginationClass]\" :style=\"[paginationStyle]\">\r\n\t\t\t\t\t<template v-if=\"paginationType == 'bullets'\">\r\n\t\t\t\t\t\t<view v-for=\"(item,index) in paginationContent\" :key=\"index\"\r\n\t\t\t\t\t\t\t:class=\"[item.classContent.join(' ')]\" :style=\"[item.styleContent]\"\r\n\t\t\t\t\t\t\t@click=\"paginationItemClick(index)\">\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<template v-if=\"paginationType == 'fraction'\">\r\n\t\t\t\t\t\t<text :class=\"paginationContent.currentClass\">{{paginationContent.text}}</text>/<text\r\n\t\t\t\t\t\t\t:class=\"paginationContent.totalClass\">{{paginationContent.total}}</text>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<template v-if=\"paginationType == 'progressbar'\">\r\n\t\t\t\t\t\t<text :class=\"paginationContent.progressbarFillClass\"\r\n\t\t\t\t\t\t\t:style=\"[paginationContent.styleContent]\"></text>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t\t<template v-if=\"(showPrevButton||showPrevButtonSlot)\">\r\n\t\t\t\t<view :class=\"['swiper-button-prev',prevClass]\" @click=\"prevClick\">\r\n\t\t\t\t\t<view v-if=\"!showPrevButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_left\"></view>\r\n\t\t\t\t\t<slot v-else name=\"pre-button\"></slot>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t\t<template v-if=\"(showNextButton||showNextButtonSlot)\">\r\n\t\t\t\t<view :class=\"['swiper-button-next',nextClass]\" @click=\"nextClick\">\r\n\t\t\t\t\t<view v-if=\"!showNextButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_right\"></view>\r\n\t\t\t\t\t<slot v-else name=\"next-button\"></slot>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t\t<template v-if=\"scrollbarShow\">\r\n\t\t\t\t<view :class=\"['swiper-scrollbar',scrollbarClass]\" :style=\"[scrollbarStyle]\"\r\n\t\t\t\t\t@click.stop=\"onClickScrollbar\" @touchstart.stop=\"onTouchStartScrollbar\"\r\n\t\t\t\t\t@touchmove.stop.prevent=\"onTouchMoveScrollbar\" @touchend.stop=\"onTouchEndScrollbar\">\r\n\t\t\t\t\t<view class=\"swiper-scrollbar-drag\" :style=\"[scrollbarItemStyle]\">\r\n\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t</view>\r\n</template>\r\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\r\n<!-- #endif -->\r\n<script>\r\n\timport {\r\n\t\tgetAllRect,\r\n\t\tgetRect\r\n\t} from '../../libs/utils/utils.js';\r\n\t// vue2\r\n\timport {\r\n\t\tgetParams\r\n\t} from '../../libs/vue2/get-params.js';\r\n\timport {\r\n\t\tinitSwiper,\r\n\t\tmountSwiper\r\n\t} from '../../libs/vue2/init-swiper.js';\r\n\timport {\r\n\t\tneedsScrollbar,\r\n\t\tneedsNavigation,\r\n\t\tneedsPagination,\r\n\t\tuniqueClasses,\r\n\t\textend,\r\n\t} from '../../libs/vue2/utils.js';\r\n\timport {\r\n\t\trenderLoop,\r\n\t\tcalcLoopedSlides\r\n\t} from '../../libs/vue2/loop.js';\r\n\timport {\r\n\t\tgetChangedParams\r\n\t} from '../../libs/vue2/get-changed-params.js';\r\n\timport {\r\n\t\tupdateSwiper\r\n\t} from '../../libs/vue2/update-swiper.js';\r\n\timport {\r\n\t\trenderVirtual,\r\n\t\tupdateOnVirtualData\r\n\t} from '../../libs/vue2/virtual.js';\r\n\t//mixin\r\n\timport {\r\n\t\tParentMixin\r\n\t} from '../../libs/mixins/relation.js';\r\n\r\n\texport default {\r\n\t\tname: \"z-swipe\",\r\n\t\t// #ifdef MP-WEIXIN\r\n\t\toptions: {\r\n\t\t\tvirtualHost: true\r\n\t\t},\r\n\t\t// #endif\r\n\t\tmixins: [\r\n\t\t\tParentMixin('zSwipe')\r\n\t\t],\r\n\t\t// #ifdef VUE3\r\n\t\temits: ['update:modelValue', 'touch-start', 'touch-move', 'touch-end', 'transitionend', 'slideClick',\r\n\t\t\t'_beforeBreakpoint',\r\n\t\t\t'_containerClasses',\r\n\t\t\t'_slideClass',\r\n\t\t\t'_slideClasses', '_swiper',\r\n\t\t\t'activeIndexChange', 'afterInit', 'autoplay', 'autoplayStart', 'autoplayStop', 'autoplayPause',\r\n\t\t\t'autoplayResume', 'beforeDestroy', 'beforeInit', 'beforeLoopFix', 'beforeResize', 'beforeSlideChangeStart',\r\n\t\t\t'beforeTransitionStart', 'breakpoint', 'changeDirection', 'click', 'disable', 'doubleTap', 'doubleClick',\r\n\t\t\t'destroy', 'enable', 'fromEdge', 'hashChange', 'hashSet', 'imagesReady', 'init', 'keyPress',\r\n\t\t\t'lazyImageLoad', 'lazyImageReady', 'lock', 'loopFix', 'momentumBounce', 'navigationHide', 'navigationShow',\r\n\t\t\t'observerUpdate', 'orientationchange', 'paginationHide', 'paginationRender', 'paginationShow',\r\n\t\t\t'paginationUpdate', 'progress', 'reachBeginning', 'reachEnd', 'realIndexChange', 'resize', 'scroll',\r\n\t\t\t'scrollbarDragEnd', 'scrollbarDragMove', 'scrollbarDragStart', 'setTransition', 'setTranslate',\r\n\t\t\t'slideChange', 'slideChangeTransitionEnd', 'slideChangeTransitionStart', 'slideNextTransitionEnd',\r\n\t\t\t'slideNextTransitionStart', 'slidePrevTransitionEnd', 'slidePrevTransitionStart',\r\n\t\t\t'slideResetTransitionStart', 'slideResetTransitionEnd', 'sliderMove', 'sliderFirstMove',\r\n\t\t\t'slidesLengthChange', 'slidesGridLengthChange', 'snapGridLengthChange', 'snapIndexChange', 'swiper', 'tap',\r\n\t\t\t'toEdge', 'touchEnd', 'touchMove', 'touchMoveOpposite', 'touchStart', 'transitionEnd', 'transitionStart',\r\n\t\t\t'unlock', 'update', 'zoomChange', 'beforeMount', 'nextClick', 'prevClick', 'touchStartScrollbar',\r\n\t\t\t'touchMoveScrollbar', 'touchEndScrollbar', 'beforeUpdate', 'paginationItemClick'\r\n\t\t],\r\n\t\t// #endif\r\n\t\tprops: {\r\n\t\t\tcustomStyle: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn {};\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\toptions: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn {}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// #ifdef VUE2\r\n\t\t\tvalue: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef VUE3\r\n\t\t\tmodelValue: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\twxsTransform: \"\",\r\n\t\t\t\twrapperStyle: {},\r\n\t\t\t\tcontentClass: '',\r\n\t\t\t\tnextElClass: [],\r\n\t\t\t\tprevElClass: [],\r\n\t\t\t\tpaginationElClass: [],\r\n\t\t\t\tpaginationItemElClass: [],\r\n\t\t\t\tloopBlankShow: false,\r\n\t\t\t\tloopBlankNumber: 0,\r\n\t\t\t\tcubeShadowShowWrapper: false,\r\n\t\t\t\tcubeShadowShowRoot: false,\r\n\t\t\t\tcubeShadowStyle: {},\r\n\t\t\t\teventsListeners: {},\r\n\t\t\t\tshowPrevButton: false,\r\n\t\t\t\tshowPrevButtonSlot: false,\r\n\t\t\t\tshowNextButton: false,\r\n\t\t\t\tshowNextButtonSlot: false,\r\n\t\t\t\tshowIndicators: false,\r\n\t\t\t\tpaginationContent: [],\r\n\t\t\t\tpaginationType: '',\r\n\t\t\t\tpaginationStyle: {},\r\n\t\t\t\tscrollbarElClass: [],\r\n\t\t\t\tscrollbarStyle: {},\r\n\t\t\t\tscrollbarItemStyle: {},\r\n\t\t\t\trectInfo: null,\r\n\r\n\t\t\t\t// vue2\r\n\t\t\t\tcontainerClasses: 'swiper',\r\n\t\t\t\tvirtualData: null,\r\n\t\t\t\tfirstLoad: true,\r\n\t\t\t\toriginalDataList: [],\r\n\t\t\t\tloopUpdateData: false\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\t// #ifdef VUE3\r\n\t\t\tvalue() {\r\n\t\t\t\treturn this.modelValue\r\n\t\t\t},\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef VUE3\r\n\t\t\t_uid() {\r\n\t\t\t\treturn this._.uid\r\n\t\t\t},\r\n\t\t\t// #endif\r\n\t\t\tnextClass() {\r\n\t\t\t\treturn this.nextElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tprevClass() {\r\n\t\t\t\treturn this.prevElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tpaginationClass() {\r\n\t\t\t\treturn this.paginationElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tpaginationItemClass() {\r\n\t\t\t\treturn this.paginationItemElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tscrollbarClass() {\r\n\t\t\t\treturn this.scrollbarElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tscrollbarShow() {\r\n\t\t\t\treturn needsScrollbar(this.options)\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tconst {\r\n\t\t\t\tparams: swiperParams,\r\n\t\t\t\tpassedParams\r\n\t\t\t} = getParams(this.options);\r\n\t\t\tthis.swiperElRef = 'swiper';\r\n\t\t\tthis.swiperParams = swiperParams;\r\n\t\t\tthis.oldPassedParamsRef = passedParams;\r\n\t\t\tlet slidesRef = this.slidesRef;\r\n\r\n\t\t\tswiperParams.onAny = (event, ...args) => {\r\n\t\t\t\t// #ifdef MP\r\n\t\t\t\t// 字节小程序此处报错,因此无法使用v-on监听事件\r\n\t\t\t\t// #ifndef MP-TOUTIAO\r\n\t\t\t\tthis.$emit(event, {}, ...args.filter((item, index) => {\r\n\t\t\t\t\treturn index > 0\r\n\t\t\t\t}));\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP\r\n\t\t\t\tthis.$emit(event, ...args);\r\n\t\t\t\t// #endif\r\n\t\t\t};\r\n\t\t\tObject.assign(swiperParams.on, {\r\n\t\t\t\t_containerClasses(swiper, classes) {\r\n\t\t\t\t\tthis.containerClasses = classes;\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t\tthis.$watch(() => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tvalue: this.value,\r\n\t\t\t\t\toptions: this.options\r\n\t\t\t\t}\r\n\t\t\t}, (val) => {\r\n\t\t\t\t// virtual模式处理\r\n\t\t\t\tif (this.swiperParams && this.swiperParams.virtual) {\r\n\t\t\t\t\tif (!this.virtualData && val.options.virtual.slides.length) {\r\n\t\t\t\t\t\tthis.swiperParams.virtual.slides = val.options.virtual.slides;\r\n\t\t\t\t\t\tconst extendWith = {\r\n\t\t\t\t\t\t\tcache: false,\r\n\t\t\t\t\t\t\tslides: val.options.virtual.slides,\r\n\t\t\t\t\t\t\trenderExternal: data => {\r\n\t\t\t\t\t\t\t\tthis.virtualData = data;\r\n\t\t\t\t\t\t\t\t// #ifdef VUE2\r\n\t\t\t\t\t\t\t\tthis.$emit(\"input\", data.slides);\r\n\t\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t\t// #ifdef VUE3\r\n\t\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", data.slides);\r\n\t\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\trenderExternalUpdate: false\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\textend(this.swiperParams.virtual, extendWith);\r\n\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// loop模式处理\r\n\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\r\n\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList.toString() == val.value\r\n\t\t\t\t\t\t\t.toString())) {\r\n\t\t\t\t\t\tthis.loopUpdateData = true;\r\n\t\t\t\t\t\t// 百度小程序watch晚于子组件加载\r\n\t\t\t\t\t\t// #ifdef MP-BAIDU\r\n\t\t\t\t\t\tif (this.firstLoad) {\r\n\t\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.loopUpdateData = false;\r\n\t\t\t\t\t\tlet slides = renderLoop(this, this.swiperParams, this.value);\r\n\t\t\t\t\t\tif (this.swiperParams.loop && !this.loopUpdateData && slides.data.toString() !=\r\n\t\t\t\t\t\t\tval.value.toString()) {\r\n\t\t\t\t\t\t\tthis.loopUpdateData = true;\r\n\t\t\t\t\t\t\t// #ifdef VUE2\r\n\t\t\t\t\t\t\tthis.$emit(\"input\", slides.data)\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t// #ifdef VUE3\r\n\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", slides.data)\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (this.swiper && !this.firstLoad) {\r\n\t\t\t\t\tif (this.virtualData && val.options.virtual.type == \"cut\") {\r\n\t\t\t\t\t\tconst style = this.swiper.isHorizontal() ? {\r\n\t\t\t\t\t\t\t[this.swiper.rtlTranslate ? 'right' :\r\n\t\t\t\t\t\t\t\t'left'\r\n\t\t\t\t\t\t\t]: `${this.virtualData.offset}px`\r\n\t\t\t\t\t\t} : {\r\n\t\t\t\t\t\t\ttop: `${this.virtualData.offset}px`\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tthis.children\r\n\t\t\t\t\t\t\t.map(slide => {\r\n\t\t\t\t\t\t\t\tslide.css(style)\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\tthis.updateSwiper(val.value, val.options, this.children);\r\n\t\t\t\t}\r\n\t\t\t}, {\r\n\t\t\t\tdeep: true,\r\n\t\t\t\timmediate: true\r\n\t\t\t})\r\n\t\t\tthis.$watch(() => {\r\n\t\t\t\treturn this.$data\r\n\t\t\t}, (val) => {\r\n\t\t\t\tif (this.swiper && this.swiper.native) {\r\n\t\t\t\t\tObject.assign(this.swiper.native, {\r\n\t\t\t\t\t\tval\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, {\r\n\t\t\t\tdeep: true\r\n\t\t\t})\r\n\t\t\tthis.$watch(() => {\r\n\t\t\t\treturn this.virtualData\r\n\t\t\t}, (val) => {\r\n\t\t\t\tif (this.swiper && this.virtualData) {\r\n\t\t\t\t\tupdateOnVirtualData(this.swiper);\r\n\t\t\t\t}\r\n\t\t\t}, {\r\n\t\t\t\tdeep: true\r\n\t\t\t})\r\n\t\t\tuni.$on(\"childrenReady\" + this._uid, async (children) => {\r\n\t\t\t\tchildren.dataSwiperSlideIndex = children.index;\r\n\t\t\t\tif (this.children.length == this.value.length) {\r\n\t\t\t\t\tPromise.all(this.children.map((item) => {\r\n\t\t\t\t\t\treturn item.getSize();\r\n\t\t\t\t\t})).then((res) => {\r\n\t\t\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\r\n\t\t\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList\r\n\t\t\t\t\t\t\t\t\t.toString() == this.value\r\n\t\t\t\t\t\t\t\t\t.toString())) {\r\n\t\t\t\t\t\t\t\tif (this.firstLoad) {\r\n\t\t\t\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (this.firstLoad) {\r\n\t\t\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.updateSwiper(this.value, this.options, this.children);\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\t// #ifdef VUE2\r\n\t\tbeforeDestroy() {\r\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\r\n\t\t\t\tthis.swiper.destroy(true, false);\r\n\t\t\t}\r\n\t\t},\r\n\t\t// #endif\r\n\t\t// #ifdef VUE3\r\n\t\tbeforeUnmount() {\r\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\r\n\t\t\t\tthis.swiper.destroy(true, false);\r\n\t\t\t}\r\n\t\t},\r\n\t\t// #endif\r\n\t\tmethods: {\r\n\t\t\tloadSwiper() {\r\n\t\t\t\tlet swiperParams = this.swiperParams;\r\n\t\t\t\tthis.slidesRef = this.children;\r\n\t\t\t\tthis.oldSlidesRef = this.slidesRef;\r\n\t\t\t\tlet swiperRef = initSwiper(swiperParams, {\r\n\t\t\t\t\t...this.$data,\r\n\t\t\t\t\t...this.$props,\r\n\t\t\t\t\tswiperElId: 'swiper' + this._uid,\r\n\t\t\t\t\temit: this.emit.bind(this),\r\n\t\t\t\t\tupdateData: this.updateData.bind(this),\r\n\t\t\t\t\tgetRect: this.getRect.bind(this),\r\n\t\t\t\t\tgetRectScrollbar: this.getRectScrollbar.bind(this),\r\n\t\t\t\t\twillChange: this.willChange.bind(this),\r\n\t\t\t\t\ttransform: this.transform.bind(this),\r\n\t\t\t\t\ttransition: this.transition.bind(this),\r\n\t\t\t\t\tscrollbarTransform: this.scrollbarTransform.bind(this),\r\n\t\t\t\t\tscrollbarTransition: this.scrollbarTransition.bind(this),\r\n\t\t\t\t\tscrollbarItemTransform: this.scrollbarItemTransform.bind(this),\r\n\t\t\t\t\tscrollbarItemTransition: this.scrollbarItemTransition.bind(this),\r\n\t\t\t\t\taddClass: this.addClass.bind(this),\r\n\t\t\t\t\tremoveClass: this.removeClass.bind(this),\r\n\t\t\t\t\taddPaginationClass: this.addPaginationClass.bind(this),\r\n\t\t\t\t\tremovePaginationClass: this.removePaginationClass.bind(this),\r\n\t\t\t\t\taddScrollbarClass: this.addScrollbarClass.bind(this),\r\n\t\t\t\t\tremoveScrollbarClass: this.removeScrollbarClass.bind(this),\r\n\t\t\t\t\tsetCss: this.setCss.bind(this),\r\n\t\t\t\t\tcss: this.setCss.bind(this),\r\n\t\t\t\t\tpaginationCss: this.setPaginationCss.bind(this),\r\n\t\t\t\t\tscrollbarCss: this.scrollbarCss.bind(this),\r\n\t\t\t\t\tscrollbarItemCss: this.scrollbarItemCss.bind(this),\r\n\t\t\t\t\taddNextElClass: this.addNextElClass.bind(this),\r\n\t\t\t\t\taddPrevElClass: this.addPrevElClass.bind(this),\r\n\t\t\t\t\tremoveNextElClass: this.removeNextElClass.bind(this),\r\n\t\t\t\t\tremovePrevElClass: this.removePrevElClass.bind(this),\r\n\t\t\t\t\tcubeShadowCss: this.cubeShadowCss.bind(this),\r\n\t\t\t\t\tcubeShadowTransform: this.cubeShadowTransform.bind(this),\r\n\t\t\t\t\tcubeShadowTransition: this.cubeShadowTransition.bind(this),\r\n\t\t\t\t});\r\n\t\t\t\tthis.swiper = swiperRef;\r\n\t\t\t\tswiperRef.loopCreate = () => {};\r\n\t\t\t\tswiperRef.loopDestroy = () => {};\r\n\t\t\t\tif (swiperParams.loop) {\r\n\t\t\t\t\tswiperRef.loopedSlides = calcLoopedSlides(this.slidesRef, swiperParams);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!this.swiper) return;\r\n\t\t\t\tmountSwiper({\r\n\t\t\t\t\t\tel: this.swiperElRef,\r\n\t\t\t\t\t\tnextEl: this.nextElRef,\r\n\t\t\t\t\t\tprevEl: this.prevElRef,\r\n\t\t\t\t\t\tpaginationEl: this.paginationElRef,\r\n\t\t\t\t\t\tscrollbarEl: this.scrollbarElRef,\r\n\t\t\t\t\t\tswiper: this.swiper,\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.swiperParams,\r\n\t\t\t\t);\r\n\t\t\t\tthis.$emit('swiper');\r\n\t\t\t\tthis.firstLoad = false;\r\n\t\t\t},\r\n\t\t\tupdateSwiper(value, options, children) {\r\n\t\t\t\tthis.swiper.slides = children;\r\n\t\t\t\tthis.slidesRef = children;\r\n\t\t\t\tlet initializedRef = this.initializedRef;\r\n\t\t\t\tlet swiperRef = this.swiper;\r\n\t\t\t\tlet slidesRef = this.slidesRef;\r\n\t\t\t\tlet oldPassedParamsRef = this.oldPassedParamsRef;\r\n\t\t\t\tlet oldSlidesRef = this.oldSlidesRef;\r\n\t\t\t\tlet breakpointChanged = this.breakpointChanged;\r\n\t\t\t\tlet nextElRef = this.nextElRef;\r\n\t\t\t\tlet prevElRef = this.prevElRef;\r\n\t\t\t\tlet paginationElRef = this.paginationElRef;\r\n\t\t\t\tlet scrollbarElRef = this.scrollbarElRef;\r\n\t\t\t\t// set initialized flag\r\n\t\t\t\tif (!initializedRef && swiperRef) {\r\n\t\t\t\t\tswiperRef.emitSlidesClasses();\r\n\t\t\t\t\tinitializedRef = true;\r\n\t\t\t\t}\r\n\t\t\t\t// watch for params change\r\n\t\t\t\tconst {\r\n\t\t\t\t\tpassedParams: newPassedParams\r\n\t\t\t\t} = getParams(options);\r\n\t\t\t\tconst changedParams = getChangedParams(\r\n\t\t\t\t\tnewPassedParams,\r\n\t\t\t\t\toldPassedParamsRef,\r\n\t\t\t\t\tslidesRef,\r\n\t\t\t\t\toldSlidesRef,\r\n\t\t\t\t);\r\n\t\t\t\tthis.oldPassedParamsRef = newPassedParams;\r\n\t\t\t\tthis.oldSlidesRef = slidesRef;\r\n\t\t\t\tif (\r\n\t\t\t\t\t(changedParams.length || breakpointChanged) &&\r\n\t\t\t\t\tswiperRef &&\r\n\t\t\t\t\t!swiperRef.destroyed\r\n\t\t\t\t) {\r\n\t\t\t\t\tupdateSwiper({\r\n\t\t\t\t\t\tswiper: swiperRef,\r\n\t\t\t\t\t\tslides: slidesRef,\r\n\t\t\t\t\t\tpassedParams: newPassedParams,\r\n\t\t\t\t\t\tchangedParams,\r\n\t\t\t\t\t\tnextEl: nextElRef,\r\n\t\t\t\t\t\tprevEl: prevElRef,\r\n\t\t\t\t\t\tscrollbarEl: scrollbarElRef,\r\n\t\t\t\t\t\tpaginationEl: paginationElRef,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tbreakpointChanged = false;\r\n\t\t\t},\r\n\t\t\temit(event, data) {\r\n\t\t\t\tthis.$emit(event, ...data)\r\n\t\t\t},\r\n\t\t\tasync getRect() {\r\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper');\r\n\t\t\t\tthis.rectInfo = rectInfo;\r\n\t\t\t\treturn rectInfo;\r\n\t\t\t},\r\n\t\t\tasync getRectScrollbar() {\r\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper-scrollbar');\r\n\t\t\t\treturn rectInfo;\r\n\t\t\t},\r\n\t\t\tupdateData(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\twillChange(value) {\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'will-change', value)\r\n\t\t\t},\r\n\t\t\ttransform(value) {\r\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'transform', value)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.wxsTransform = value;\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\ttransition(value) {\r\n\t\t\t\t// #ifdef MP-BAIDU\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-BAIDU\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'transition-duration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\tsetCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.wrapperStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tscrollbarTransform(value) {\r\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transform', value)\r\n\t\t\t},\r\n\t\t\tscrollbarTransition(value) {\r\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t},\r\n\t\t\tscrollbarItemTransform(value) {\r\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transform', value)\r\n\t\t\t},\r\n\t\t\tscrollbarItemTransition(value) {\r\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t},\r\n\t\t\taddClass(value) {\r\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass.split(\" \"), ...value.split(\" \")])).join(\" \");\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass, ...value.split(\" \")]));\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\tremoveClass(value) {\r\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = this.contentClass.split(\" \").filter(item => !value.split(\" \").includes(item)).join(\r\n\t\t\t\t\t\" \");\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = this.contentClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\taddPaginationClass(value) {\r\n\t\t\t\tthis.paginationElClass = Array.from(new Set([...this.paginationElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremovePaginationClass(value) {\r\n\t\t\t\tthis.paginationElClass = this.paginationElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\taddScrollbarClass(value) {\r\n\t\t\t\tthis.scrollbarElClass = Array.from(new Set([...this.scrollbarElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremoveScrollbarClass(value) {\r\n\t\t\t\tthis.scrollbarElClass = this.scrollbarElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\tsetPaginationCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.paginationStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tscrollbarCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.scrollbarStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tscrollbarItemCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.scrollbarItemStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\taddNextElClass(value) {\r\n\t\t\t\tthis.nextElClass = Array.from(new Set([...this.nextElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\taddPrevElClass(value) {\r\n\t\t\t\tthis.prevElClass = Array.from(new Set([...this.prevElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremoveNextElClass(value) {\r\n\t\t\t\tthis.nextElClass = this.nextElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\tremovePrevElClass(value) {\r\n\t\t\t\tthis.prevElClass = this.prevElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\tsetSwiperOn(event, callback) {\r\n\t\t\t\tif (!this.eventsListeners[event]) this.eventsListeners[event] = {};\r\n\t\t\t\tthis.eventsListeners[event] = callback;\r\n\t\t\t},\r\n\t\t\tpaginationItemClick(index) {\r\n\t\t\t\tthis.swiper.emit(\"paginationItemClick\", index)\r\n\t\t\t},\r\n\t\t\tprevClick() {\r\n\t\t\t\tthis.swiper.emit(\"prevClick\");\r\n\t\t\t},\r\n\t\t\tnextClick() {\r\n\t\t\t\tthis.swiper.emit(\"nextClick\");\r\n\t\t\t},\r\n\t\t\tonTouchStart(event) {\r\n\t\t\t\tthis.swiper.onTouchStart(event);\r\n\t\t\t},\r\n\t\t\tonTouchStartSwiperWxs(event) {\r\n\t\t\t\tthis.swiper.onTouchStart(event);\r\n\t\t\t},\r\n\t\t\tonTouchMove(event) {\r\n\t\t\t\tthis.swiper.onTouchMove(event);\r\n\t\t\t},\r\n\t\t\tonTouchMoveSwiperWxs(event) {\r\n\t\t\t\tthis.swiper.onTouchMove(event);\r\n\t\t\t},\r\n\t\t\tonTouchEnd(event) {\r\n\t\t\t\tthis.swiper.onTouchEnd(event);\r\n\t\t\t},\r\n\t\t\tonTouchEndSwiperWxs(event) {\r\n\t\t\t\tthis.swiper.onTouchEnd(event);\r\n\t\t\t},\r\n\t\t\tonClickWrapper(event) {\r\n\t\t\t\tthis.$emit(\"click\", event);\r\n\t\t\t},\r\n\t\t\tonClickScrollbar(event) {\r\n\t\t\t\tthis.$emit(\"scrollbarClick\", event);\r\n\t\t\t},\r\n\t\t\tonTouchStartScrollbar(event) {\r\n\t\t\t\tthis.swiper.emit('touchStartScrollbar', event);\r\n\t\t\t},\r\n\t\t\tonTouchMoveScrollbar(event) {\r\n\t\t\t\tthis.swiper.emit('touchMoveScrollbar', event);\r\n\t\t\t},\r\n\t\t\tonTouchEndScrollbar(event) {\r\n\t\t\t\tthis.swiper.emit('touchEndScrollbar', event);\r\n\t\t\t},\r\n\t\t\tcubeShadowCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.cubeShadowStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcubeShadowTransform(value) {\r\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transform', value)\r\n\t\t\t},\r\n\t\t\tcubeShadowTransition(value) {\r\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t@import '../../libs/core.scss';\r\n\t@import \"../../static/css/iconfont.css\";\r\n\r\n\t.swiper {\r\n\t\t&__prev--button {\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\r\n\t\t&__prev--button--disable {\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\topacity: .35;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\r\n\t\t&__next--button {\r\n\t\t\tposition: absolute;\r\n\t\t\tright: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\r\n\t\t&__next--button--disable {\r\n\t\t\tposition: absolute;\r\n\t\t\tright: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\topacity: .35;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\t}\r\n</style>"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?253a","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?6904","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?157a","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?64f5","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?da48","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?2ebd","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?7ff6","webpack:///D:/coco/dream/uniapp/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?1260","uni-app:///uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue"],"names":[],"mappings":"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","file":"uni_modules/zebra-swiper/components/z-swiper/z-swiper.js","sourcesContent":["import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=style&index=0&id=2ff4d8de&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=style&index=0&id=2ff4d8de&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1721008753850\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import mod from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper%5Cz-swiper.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper%5Cz-swiper.vue&module=zSwiperWxs&lang=wxs\"","export default function (Component) {\n if(!Component.options.wxsCallMethods){\n Component.options.wxsCallMethods = []\n }\n Component.options.wxsCallMethods.push('onTouchStartSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchMoveSwiperWxs')\nComponent.options.wxsCallMethods.push('onTouchEndSwiperWxs')\n }","import { render, staticRenderFns, recyclableRender, components } from \"./z-swiper.vue?vue&type=template&id=2ff4d8de&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMzNjMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMzYzfX0%3D&\"\nvar renderjs\nimport script from \"./z-swiper.vue?vue&type=script&lang=js&\"\nexport * from \"./z-swiper.vue?vue&type=script&lang=js&\"\nimport style0 from \"./z-swiper.vue?vue&type=style&index=0&id=2ff4d8de&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2ff4d8de\",\n null,\n false,\n components,\n renderjs\n)\n\n/* custom blocks */\nimport block0 from \"../../wxs/z-swiper-wxs.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5Ccoco%5Cdream%5Cuniapp%5Cjueqing%5Cuni_modules%5Czebra-swiper%5Ccomponents%5Cz-swiper%5Cz-swiper.vue&module=zSwiperWxs&lang=wxs\"\nif (typeof block0 === 'function') block0(component)\n\ncomponent.options.__file = \"uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=template&id=2ff4d8de&scoped=true&filter-modules=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMzNjMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMzYzfX0%3D&\"","var components\ntry {\n components = {\n zSwiperItem: function() {\n return import(\n /* webpackChunkName: \"uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item\" */ \"@/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var s0 = _vm.__get_style([_vm.customStyle])\n\n var s1 = _vm.__get_style([_vm.wrapperStyle])\n\n var s2 = _vm.cubeShadowShowWrapper\n ? _vm.__get_style([_vm.cubeShadowStyle])\n : null\n var s3 = _vm.cubeShadowShowRoot\n ? _vm.__get_style([_vm.cubeShadowStyle])\n : null\n var s4 = _vm.showIndicators ? _vm.__get_style([_vm.paginationStyle]) : null\n var l0 =\n _vm.showIndicators && _vm.paginationType == \"bullets\"\n ? _vm.__map(_vm.paginationContent, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var s5 = _vm.__get_style([item.styleContent])\n\n var g0 = item.classContent.join(\" \")\n return {\n $orig: $orig,\n s5: s5,\n g0: g0\n }\n })\n : null\n var s6 =\n _vm.showIndicators && _vm.paginationType == \"progressbar\"\n ? _vm.__get_style([_vm.paginationContent.styleContent])\n : null\n var s7 = _vm.scrollbarShow ? _vm.__get_style([_vm.scrollbarStyle]) : null\n var s8 = _vm.scrollbarShow ? _vm.__get_style([_vm.scrollbarItemStyle]) : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n s0: s0,\n s1: s1,\n s2: s2,\n s3: s3,\n s4: s4,\n l0: l0,\n s6: s6,\n s7: s7,\n s8: s8\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view :id=\"'swiper'+_uid\"\r\n\t\t:class=\"['swiper',contentClass,containerClasses,options.direction === 'vertical'?'swiper-vertical':'']\"\r\n\t\t:style=\"[customStyle]\">\r\n\t\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\r\n\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\" @touchstart=\"onTouchStart\"\r\n\t\t\t@touchmove=\"onTouchMove\" @touchend=\"onTouchEnd\" @touchcancel=\"onTouchEnd\">\r\n\t\t<!-- #endif -->\r\n\t\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n\t\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\"\r\n\t\t\t\t@touchstart=\"zSwiperWxs.onTouchStartWxs\" @touchmove=\"zSwiperWxs.onTouchMoveWxs\"\r\n\t\t\t\t@touchend=\"zSwiperWxs.onTouchEndWxs\" @touchcancel=\"zSwiperWxs.onTouchEndWxs\"\r\n\t\t\t\t:swiperTransform=\"wxsTransform\" :change:swiperTransform=\"zSwiperWxs.wxsTransformObserver\">\r\n\t\t\t<!-- #endif -->\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t<!-- 在loop模式下,为group填充空白slide -->\r\n\t\t\t\t<template v-if=\"loopBlankShow\">\r\n\t\t\t\t\t<z-swiper-item v-for=\"(item,index) in loopBlankNumber\" :key=\"index\">\r\n\t\t\t\t\t</z-swiper-item>\r\n\t\t\t\t</template>\r\n\t\t\t\t<template v-if=\"cubeShadowShowWrapper\">\r\n\t\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\r\n\t\t\t\t</template>\r\n\t\t\t</view>\r\n\t\t\t<template v-if=\"cubeShadowShowRoot\">\r\n\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\r\n\t\t\t</template>\r\n\t\t\t<slot name=\"indicator\"></slot>\r\n\t\t\t<template v-if=\"showIndicators\">\r\n\t\t\t\t<view :class=\"['swiper-pagination',paginationClass]\" :style=\"[paginationStyle]\">\r\n\t\t\t\t\t<template v-if=\"paginationType == 'bullets'\">\r\n\t\t\t\t\t\t<view v-for=\"(item,index) in paginationContent\" :key=\"index\"\r\n\t\t\t\t\t\t\t:class=\"[item.classContent.join(' ')]\" :style=\"[item.styleContent]\"\r\n\t\t\t\t\t\t\t@click=\"paginationItemClick(index)\">\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<template v-if=\"paginationType == 'fraction'\">\r\n\t\t\t\t\t\t<text :class=\"paginationContent.currentClass\">{{paginationContent.text}}</text>/<text\r\n\t\t\t\t\t\t\t:class=\"paginationContent.totalClass\">{{paginationContent.total}}</text>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<template v-if=\"paginationType == 'progressbar'\">\r\n\t\t\t\t\t\t<text :class=\"paginationContent.progressbarFillClass\"\r\n\t\t\t\t\t\t\t:style=\"[paginationContent.styleContent]\"></text>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t\t<template v-if=\"(showPrevButton||showPrevButtonSlot)\">\r\n\t\t\t\t<view :class=\"['swiper-button-prev',prevClass]\" @click=\"prevClick\">\r\n\t\t\t\t\t<view v-if=\"!showPrevButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_left\"></view>\r\n\t\t\t\t\t<slot v-else name=\"pre-button\"></slot>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t\t<template v-if=\"(showNextButton||showNextButtonSlot)\">\r\n\t\t\t\t<view :class=\"['swiper-button-next',nextClass]\" @click=\"nextClick\">\r\n\t\t\t\t\t<view v-if=\"!showNextButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_right\"></view>\r\n\t\t\t\t\t<slot v-else name=\"next-button\"></slot>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t\t<template v-if=\"scrollbarShow\">\r\n\t\t\t\t<view :class=\"['swiper-scrollbar',scrollbarClass]\" :style=\"[scrollbarStyle]\"\r\n\t\t\t\t\t@click.stop=\"onClickScrollbar\" @touchstart.stop=\"onTouchStartScrollbar\"\r\n\t\t\t\t\t@touchmove.stop.prevent=\"onTouchMoveScrollbar\" @touchend.stop=\"onTouchEndScrollbar\">\r\n\t\t\t\t\t<view class=\"swiper-scrollbar-drag\" :style=\"[scrollbarItemStyle]\">\r\n\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t</view>\r\n</template>\r\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\r\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\r\n<!-- #endif -->\r\n<script>\r\n\timport {\r\n\t\tgetAllRect,\r\n\t\tgetRect\r\n\t} from '../../libs/utils/utils.js';\r\n\t// vue2\r\n\timport {\r\n\t\tgetParams\r\n\t} from '../../libs/vue2/get-params.js';\r\n\timport {\r\n\t\tinitSwiper,\r\n\t\tmountSwiper\r\n\t} from '../../libs/vue2/init-swiper.js';\r\n\timport {\r\n\t\tneedsScrollbar,\r\n\t\tneedsNavigation,\r\n\t\tneedsPagination,\r\n\t\tuniqueClasses,\r\n\t\textend,\r\n\t} from '../../libs/vue2/utils.js';\r\n\timport {\r\n\t\trenderLoop,\r\n\t\tcalcLoopedSlides\r\n\t} from '../../libs/vue2/loop.js';\r\n\timport {\r\n\t\tgetChangedParams\r\n\t} from '../../libs/vue2/get-changed-params.js';\r\n\timport {\r\n\t\tupdateSwiper\r\n\t} from '../../libs/vue2/update-swiper.js';\r\n\timport {\r\n\t\trenderVirtual,\r\n\t\tupdateOnVirtualData\r\n\t} from '../../libs/vue2/virtual.js';\r\n\t//mixin\r\n\timport {\r\n\t\tParentMixin\r\n\t} from '../../libs/mixins/relation.js';\r\n\r\n\texport default {\r\n\t\tname: \"z-swipe\",\r\n\t\t// #ifdef MP-WEIXIN\r\n\t\toptions: {\r\n\t\t\tvirtualHost: true\r\n\t\t},\r\n\t\t// #endif\r\n\t\tmixins: [\r\n\t\t\tParentMixin('zSwipe')\r\n\t\t],\r\n\t\t// #ifdef VUE3\r\n\t\temits: ['update:modelValue', 'touch-start', 'touch-move', 'touch-end', 'transitionend', 'slideClick',\r\n\t\t\t'_beforeBreakpoint',\r\n\t\t\t'_containerClasses',\r\n\t\t\t'_slideClass',\r\n\t\t\t'_slideClasses', '_swiper',\r\n\t\t\t'activeIndexChange', 'afterInit', 'autoplay', 'autoplayStart', 'autoplayStop', 'autoplayPause',\r\n\t\t\t'autoplayResume', 'beforeDestroy', 'beforeInit', 'beforeLoopFix', 'beforeResize', 'beforeSlideChangeStart',\r\n\t\t\t'beforeTransitionStart', 'breakpoint', 'changeDirection', 'click', 'disable', 'doubleTap', 'doubleClick',\r\n\t\t\t'destroy', 'enable', 'fromEdge', 'hashChange', 'hashSet', 'imagesReady', 'init', 'keyPress',\r\n\t\t\t'lazyImageLoad', 'lazyImageReady', 'lock', 'loopFix', 'momentumBounce', 'navigationHide', 'navigationShow',\r\n\t\t\t'observerUpdate', 'orientationchange', 'paginationHide', 'paginationRender', 'paginationShow',\r\n\t\t\t'paginationUpdate', 'progress', 'reachBeginning', 'reachEnd', 'realIndexChange', 'resize', 'scroll',\r\n\t\t\t'scrollbarDragEnd', 'scrollbarDragMove', 'scrollbarDragStart', 'setTransition', 'setTranslate',\r\n\t\t\t'slideChange', 'slideChangeTransitionEnd', 'slideChangeTransitionStart', 'slideNextTransitionEnd',\r\n\t\t\t'slideNextTransitionStart', 'slidePrevTransitionEnd', 'slidePrevTransitionStart',\r\n\t\t\t'slideResetTransitionStart', 'slideResetTransitionEnd', 'sliderMove', 'sliderFirstMove',\r\n\t\t\t'slidesLengthChange', 'slidesGridLengthChange', 'snapGridLengthChange', 'snapIndexChange', 'swiper', 'tap',\r\n\t\t\t'toEdge', 'touchEnd', 'touchMove', 'touchMoveOpposite', 'touchStart', 'transitionEnd', 'transitionStart',\r\n\t\t\t'unlock', 'update', 'zoomChange', 'beforeMount', 'nextClick', 'prevClick', 'touchStartScrollbar',\r\n\t\t\t'touchMoveScrollbar', 'touchEndScrollbar', 'beforeUpdate', 'paginationItemClick'\r\n\t\t],\r\n\t\t// #endif\r\n\t\tprops: {\r\n\t\t\tcustomStyle: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn {};\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\toptions: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn {}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// #ifdef VUE2\r\n\t\t\tvalue: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef VUE3\r\n\t\t\tmodelValue: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault: () => {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\twxsTransform: \"\",\r\n\t\t\t\twrapperStyle: {},\r\n\t\t\t\tcontentClass: '',\r\n\t\t\t\tnextElClass: [],\r\n\t\t\t\tprevElClass: [],\r\n\t\t\t\tpaginationElClass: [],\r\n\t\t\t\tpaginationItemElClass: [],\r\n\t\t\t\tloopBlankShow: false,\r\n\t\t\t\tloopBlankNumber: 0,\r\n\t\t\t\tcubeShadowShowWrapper: false,\r\n\t\t\t\tcubeShadowShowRoot: false,\r\n\t\t\t\tcubeShadowStyle: {},\r\n\t\t\t\teventsListeners: {},\r\n\t\t\t\tshowPrevButton: false,\r\n\t\t\t\tshowPrevButtonSlot: false,\r\n\t\t\t\tshowNextButton: false,\r\n\t\t\t\tshowNextButtonSlot: false,\r\n\t\t\t\tshowIndicators: false,\r\n\t\t\t\tpaginationContent: [],\r\n\t\t\t\tpaginationType: '',\r\n\t\t\t\tpaginationStyle: {},\r\n\t\t\t\tscrollbarElClass: [],\r\n\t\t\t\tscrollbarStyle: {},\r\n\t\t\t\tscrollbarItemStyle: {},\r\n\t\t\t\trectInfo: null,\r\n\r\n\t\t\t\t// vue2\r\n\t\t\t\tcontainerClasses: 'swiper',\r\n\t\t\t\tvirtualData: null,\r\n\t\t\t\tfirstLoad: true,\r\n\t\t\t\toriginalDataList: [],\r\n\t\t\t\tloopUpdateData: false\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\t// #ifdef VUE3\r\n\t\t\tvalue() {\r\n\t\t\t\treturn this.modelValue\r\n\t\t\t},\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef VUE3\r\n\t\t\t_uid() {\r\n\t\t\t\treturn this._.uid\r\n\t\t\t},\r\n\t\t\t// #endif\r\n\t\t\tnextClass() {\r\n\t\t\t\treturn this.nextElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tprevClass() {\r\n\t\t\t\treturn this.prevElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tpaginationClass() {\r\n\t\t\t\treturn this.paginationElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tpaginationItemClass() {\r\n\t\t\t\treturn this.paginationItemElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tscrollbarClass() {\r\n\t\t\t\treturn this.scrollbarElClass.join(\" \");\r\n\t\t\t},\r\n\t\t\tscrollbarShow() {\r\n\t\t\t\treturn needsScrollbar(this.options)\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tconst {\r\n\t\t\t\tparams: swiperParams,\r\n\t\t\t\tpassedParams\r\n\t\t\t} = getParams(this.options);\r\n\t\t\tthis.swiperElRef = 'swiper';\r\n\t\t\tthis.swiperParams = swiperParams;\r\n\t\t\tthis.oldPassedParamsRef = passedParams;\r\n\t\t\tlet slidesRef = this.slidesRef;\r\n\r\n\t\t\tswiperParams.onAny = (event, ...args) => {\r\n\t\t\t\t// #ifdef MP\r\n\t\t\t\t// 字节小程序此处报错,因此无法使用v-on监听事件\r\n\t\t\t\t// #ifndef MP-TOUTIAO\r\n\t\t\t\tthis.$emit(event, {}, ...args.filter((item, index) => {\r\n\t\t\t\t\treturn index > 0\r\n\t\t\t\t}));\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP\r\n\t\t\t\tthis.$emit(event, ...args);\r\n\t\t\t\t// #endif\r\n\t\t\t};\r\n\t\t\tObject.assign(swiperParams.on, {\r\n\t\t\t\t_containerClasses(swiper, classes) {\r\n\t\t\t\t\tthis.containerClasses = classes;\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t\tthis.$watch(() => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tvalue: this.value,\r\n\t\t\t\t\toptions: this.options\r\n\t\t\t\t}\r\n\t\t\t}, (val) => {\r\n\t\t\t\t// virtual模式处理\r\n\t\t\t\tif (this.swiperParams && this.swiperParams.virtual) {\r\n\t\t\t\t\tif (!this.virtualData && val.options.virtual.slides.length) {\r\n\t\t\t\t\t\tthis.swiperParams.virtual.slides = val.options.virtual.slides;\r\n\t\t\t\t\t\tconst extendWith = {\r\n\t\t\t\t\t\t\tcache: false,\r\n\t\t\t\t\t\t\tslides: val.options.virtual.slides,\r\n\t\t\t\t\t\t\trenderExternal: data => {\r\n\t\t\t\t\t\t\t\tthis.virtualData = data;\r\n\t\t\t\t\t\t\t\t// #ifdef VUE2\r\n\t\t\t\t\t\t\t\tthis.$emit(\"input\", data.slides);\r\n\t\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t\t// #ifdef VUE3\r\n\t\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", data.slides);\r\n\t\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\trenderExternalUpdate: false\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\textend(this.swiperParams.virtual, extendWith);\r\n\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// loop模式处理\r\n\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\r\n\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList.toString() == val.value\r\n\t\t\t\t\t\t\t.toString())) {\r\n\t\t\t\t\t\tthis.loopUpdateData = true;\r\n\t\t\t\t\t\t// 百度小程序watch晚于子组件加载\r\n\t\t\t\t\t\t// #ifdef MP-BAIDU\r\n\t\t\t\t\t\tif (this.firstLoad) {\r\n\t\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.loopUpdateData = false;\r\n\t\t\t\t\t\tlet slides = renderLoop(this, this.swiperParams, this.value);\r\n\t\t\t\t\t\tif (this.swiperParams.loop && !this.loopUpdateData && slides.data.toString() !=\r\n\t\t\t\t\t\t\tval.value.toString()) {\r\n\t\t\t\t\t\t\tthis.loopUpdateData = true;\r\n\t\t\t\t\t\t\t// #ifdef VUE2\r\n\t\t\t\t\t\t\tthis.$emit(\"input\", slides.data)\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t// #ifdef VUE3\r\n\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", slides.data)\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (this.swiper && !this.firstLoad) {\r\n\t\t\t\t\tif (this.virtualData && val.options.virtual.type == \"cut\") {\r\n\t\t\t\t\t\tconst style = this.swiper.isHorizontal() ? {\r\n\t\t\t\t\t\t\t[this.swiper.rtlTranslate ? 'right' :\r\n\t\t\t\t\t\t\t\t'left'\r\n\t\t\t\t\t\t\t]: `${this.virtualData.offset}px`\r\n\t\t\t\t\t\t} : {\r\n\t\t\t\t\t\t\ttop: `${this.virtualData.offset}px`\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tthis.children\r\n\t\t\t\t\t\t\t.map(slide => {\r\n\t\t\t\t\t\t\t\tslide.css(style)\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\tthis.updateSwiper(val.value, val.options, this.children);\r\n\t\t\t\t}\r\n\t\t\t}, {\r\n\t\t\t\tdeep: true,\r\n\t\t\t\timmediate: true\r\n\t\t\t})\r\n\t\t\tthis.$watch(() => {\r\n\t\t\t\treturn this.$data\r\n\t\t\t}, (val) => {\r\n\t\t\t\tif (this.swiper && this.swiper.native) {\r\n\t\t\t\t\tObject.assign(this.swiper.native, {\r\n\t\t\t\t\t\tval\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}, {\r\n\t\t\t\tdeep: true\r\n\t\t\t})\r\n\t\t\tthis.$watch(() => {\r\n\t\t\t\treturn this.virtualData\r\n\t\t\t}, (val) => {\r\n\t\t\t\tif (this.swiper && this.virtualData) {\r\n\t\t\t\t\tupdateOnVirtualData(this.swiper);\r\n\t\t\t\t}\r\n\t\t\t}, {\r\n\t\t\t\tdeep: true\r\n\t\t\t})\r\n\t\t\tuni.$on(\"childrenReady\" + this._uid, async (children) => {\r\n\t\t\t\tchildren.dataSwiperSlideIndex = children.index;\r\n\t\t\t\tif (this.children.length == this.value.length) {\r\n\t\t\t\t\tPromise.all(this.children.map((item) => {\r\n\t\t\t\t\t\treturn item.getSize();\r\n\t\t\t\t\t})).then((res) => {\r\n\t\t\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\r\n\t\t\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList\r\n\t\t\t\t\t\t\t\t\t.toString() == this.value\r\n\t\t\t\t\t\t\t\t\t.toString())) {\r\n\t\t\t\t\t\t\t\tif (this.firstLoad) {\r\n\t\t\t\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (this.firstLoad) {\r\n\t\t\t\t\t\t\t\tthis.loadSwiper();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.updateSwiper(this.value, this.options, this.children);\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\t// #ifdef VUE2\r\n\t\tbeforeDestroy() {\r\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\r\n\t\t\t\tthis.swiper.destroy(true, false);\r\n\t\t\t}\r\n\t\t},\r\n\t\t// #endif\r\n\t\t// #ifdef VUE3\r\n\t\tbeforeUnmount() {\r\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\r\n\t\t\t\tthis.swiper.destroy(true, false);\r\n\t\t\t}\r\n\t\t},\r\n\t\t// #endif\r\n\t\tmethods: {\r\n\t\t\tloadSwiper() {\r\n\t\t\t\tlet swiperParams = this.swiperParams;\r\n\t\t\t\tthis.slidesRef = this.children;\r\n\t\t\t\tthis.oldSlidesRef = this.slidesRef;\r\n\t\t\t\tlet swiperRef = initSwiper(swiperParams, {\r\n\t\t\t\t\t...this.$data,\r\n\t\t\t\t\t...this.$props,\r\n\t\t\t\t\tswiperElId: 'swiper' + this._uid,\r\n\t\t\t\t\temit: this.emit.bind(this),\r\n\t\t\t\t\tupdateData: this.updateData.bind(this),\r\n\t\t\t\t\tgetRect: this.getRect.bind(this),\r\n\t\t\t\t\tgetRectScrollbar: this.getRectScrollbar.bind(this),\r\n\t\t\t\t\twillChange: this.willChange.bind(this),\r\n\t\t\t\t\ttransform: this.transform.bind(this),\r\n\t\t\t\t\ttransition: this.transition.bind(this),\r\n\t\t\t\t\tscrollbarTransform: this.scrollbarTransform.bind(this),\r\n\t\t\t\t\tscrollbarTransition: this.scrollbarTransition.bind(this),\r\n\t\t\t\t\tscrollbarItemTransform: this.scrollbarItemTransform.bind(this),\r\n\t\t\t\t\tscrollbarItemTransition: this.scrollbarItemTransition.bind(this),\r\n\t\t\t\t\taddClass: this.addClass.bind(this),\r\n\t\t\t\t\tremoveClass: this.removeClass.bind(this),\r\n\t\t\t\t\taddPaginationClass: this.addPaginationClass.bind(this),\r\n\t\t\t\t\tremovePaginationClass: this.removePaginationClass.bind(this),\r\n\t\t\t\t\taddScrollbarClass: this.addScrollbarClass.bind(this),\r\n\t\t\t\t\tremoveScrollbarClass: this.removeScrollbarClass.bind(this),\r\n\t\t\t\t\tsetCss: this.setCss.bind(this),\r\n\t\t\t\t\tcss: this.setCss.bind(this),\r\n\t\t\t\t\tpaginationCss: this.setPaginationCss.bind(this),\r\n\t\t\t\t\tscrollbarCss: this.scrollbarCss.bind(this),\r\n\t\t\t\t\tscrollbarItemCss: this.scrollbarItemCss.bind(this),\r\n\t\t\t\t\taddNextElClass: this.addNextElClass.bind(this),\r\n\t\t\t\t\taddPrevElClass: this.addPrevElClass.bind(this),\r\n\t\t\t\t\tremoveNextElClass: this.removeNextElClass.bind(this),\r\n\t\t\t\t\tremovePrevElClass: this.removePrevElClass.bind(this),\r\n\t\t\t\t\tcubeShadowCss: this.cubeShadowCss.bind(this),\r\n\t\t\t\t\tcubeShadowTransform: this.cubeShadowTransform.bind(this),\r\n\t\t\t\t\tcubeShadowTransition: this.cubeShadowTransition.bind(this),\r\n\t\t\t\t});\r\n\t\t\t\tthis.swiper = swiperRef;\r\n\t\t\t\tswiperRef.loopCreate = () => {};\r\n\t\t\t\tswiperRef.loopDestroy = () => {};\r\n\t\t\t\tif (swiperParams.loop) {\r\n\t\t\t\t\tswiperRef.loopedSlides = calcLoopedSlides(this.slidesRef, swiperParams);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!this.swiper) return;\r\n\t\t\t\tmountSwiper({\r\n\t\t\t\t\t\tel: this.swiperElRef,\r\n\t\t\t\t\t\tnextEl: this.nextElRef,\r\n\t\t\t\t\t\tprevEl: this.prevElRef,\r\n\t\t\t\t\t\tpaginationEl: this.paginationElRef,\r\n\t\t\t\t\t\tscrollbarEl: this.scrollbarElRef,\r\n\t\t\t\t\t\tswiper: this.swiper,\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthis.swiperParams,\r\n\t\t\t\t);\r\n\t\t\t\tthis.$emit('swiper');\r\n\t\t\t\tthis.firstLoad = false;\r\n\t\t\t},\r\n\t\t\tupdateSwiper(value, options, children) {\r\n\t\t\t\tthis.swiper.slides = children;\r\n\t\t\t\tthis.slidesRef = children;\r\n\t\t\t\tlet initializedRef = this.initializedRef;\r\n\t\t\t\tlet swiperRef = this.swiper;\r\n\t\t\t\tlet slidesRef = this.slidesRef;\r\n\t\t\t\tlet oldPassedParamsRef = this.oldPassedParamsRef;\r\n\t\t\t\tlet oldSlidesRef = this.oldSlidesRef;\r\n\t\t\t\tlet breakpointChanged = this.breakpointChanged;\r\n\t\t\t\tlet nextElRef = this.nextElRef;\r\n\t\t\t\tlet prevElRef = this.prevElRef;\r\n\t\t\t\tlet paginationElRef = this.paginationElRef;\r\n\t\t\t\tlet scrollbarElRef = this.scrollbarElRef;\r\n\t\t\t\t// set initialized flag\r\n\t\t\t\tif (!initializedRef && swiperRef) {\r\n\t\t\t\t\tswiperRef.emitSlidesClasses();\r\n\t\t\t\t\tinitializedRef = true;\r\n\t\t\t\t}\r\n\t\t\t\t// watch for params change\r\n\t\t\t\tconst {\r\n\t\t\t\t\tpassedParams: newPassedParams\r\n\t\t\t\t} = getParams(options);\r\n\t\t\t\tconst changedParams = getChangedParams(\r\n\t\t\t\t\tnewPassedParams,\r\n\t\t\t\t\toldPassedParamsRef,\r\n\t\t\t\t\tslidesRef,\r\n\t\t\t\t\toldSlidesRef,\r\n\t\t\t\t);\r\n\t\t\t\tthis.oldPassedParamsRef = newPassedParams;\r\n\t\t\t\tthis.oldSlidesRef = slidesRef;\r\n\t\t\t\tif (\r\n\t\t\t\t\t(changedParams.length || breakpointChanged) &&\r\n\t\t\t\t\tswiperRef &&\r\n\t\t\t\t\t!swiperRef.destroyed\r\n\t\t\t\t) {\r\n\t\t\t\t\tupdateSwiper({\r\n\t\t\t\t\t\tswiper: swiperRef,\r\n\t\t\t\t\t\tslides: slidesRef,\r\n\t\t\t\t\t\tpassedParams: newPassedParams,\r\n\t\t\t\t\t\tchangedParams,\r\n\t\t\t\t\t\tnextEl: nextElRef,\r\n\t\t\t\t\t\tprevEl: prevElRef,\r\n\t\t\t\t\t\tscrollbarEl: scrollbarElRef,\r\n\t\t\t\t\t\tpaginationEl: paginationElRef,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tbreakpointChanged = false;\r\n\t\t\t},\r\n\t\t\temit(event, data) {\r\n\t\t\t\tthis.$emit(event, ...data)\r\n\t\t\t},\r\n\t\t\tasync getRect() {\r\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper');\r\n\t\t\t\tthis.rectInfo = rectInfo;\r\n\t\t\t\treturn rectInfo;\r\n\t\t\t},\r\n\t\t\tasync getRectScrollbar() {\r\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper-scrollbar');\r\n\t\t\t\treturn rectInfo;\r\n\t\t\t},\r\n\t\t\tupdateData(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\twillChange(value) {\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'will-change', value)\r\n\t\t\t},\r\n\t\t\ttransform(value) {\r\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'transform', value)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\r\n\t\t\t\tthis.wxsTransform = value;\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\ttransition(value) {\r\n\t\t\t\t// #ifdef MP-BAIDU\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-BAIDU\r\n\t\t\t\tthis.$set(this.wrapperStyle, 'transition-duration', `${value}ms`)\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\tsetCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.wrapperStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tscrollbarTransform(value) {\r\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transform', value)\r\n\t\t\t},\r\n\t\t\tscrollbarTransition(value) {\r\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t},\r\n\t\t\tscrollbarItemTransform(value) {\r\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transform', value)\r\n\t\t\t},\r\n\t\t\tscrollbarItemTransition(value) {\r\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t},\r\n\t\t\taddClass(value) {\r\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass.split(\" \"), ...value.split(\" \")])).join(\" \");\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass, ...value.split(\" \")]));\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\tremoveClass(value) {\r\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = this.contentClass.split(\" \").filter(item => !value.split(\" \").includes(item)).join(\r\n\t\t\t\t\t\" \");\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\r\n\t\t\t\tthis.contentClass = this.contentClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\taddPaginationClass(value) {\r\n\t\t\t\tthis.paginationElClass = Array.from(new Set([...this.paginationElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremovePaginationClass(value) {\r\n\t\t\t\tthis.paginationElClass = this.paginationElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\taddScrollbarClass(value) {\r\n\t\t\t\tthis.scrollbarElClass = Array.from(new Set([...this.scrollbarElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremoveScrollbarClass(value) {\r\n\t\t\t\tthis.scrollbarElClass = this.scrollbarElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\tsetPaginationCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.paginationStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tscrollbarCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.scrollbarStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tscrollbarItemCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.scrollbarItemStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\taddNextElClass(value) {\r\n\t\t\t\tthis.nextElClass = Array.from(new Set([...this.nextElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\taddPrevElClass(value) {\r\n\t\t\t\tthis.prevElClass = Array.from(new Set([...this.prevElClass, ...value.split(\" \")]));\r\n\t\t\t},\r\n\t\t\tremoveNextElClass(value) {\r\n\t\t\t\tthis.nextElClass = this.nextElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\tremovePrevElClass(value) {\r\n\t\t\t\tthis.prevElClass = this.prevElClass.filter(item => !value.split(\" \").includes(item));\r\n\t\t\t},\r\n\t\t\tsetSwiperOn(event, callback) {\r\n\t\t\t\tif (!this.eventsListeners[event]) this.eventsListeners[event] = {};\r\n\t\t\t\tthis.eventsListeners[event] = callback;\r\n\t\t\t},\r\n\t\t\tpaginationItemClick(index) {\r\n\t\t\t\tthis.swiper.emit(\"paginationItemClick\", index)\r\n\t\t\t},\r\n\t\t\tprevClick() {\r\n\t\t\t\tthis.swiper.emit(\"prevClick\");\r\n\t\t\t},\r\n\t\t\tnextClick() {\r\n\t\t\t\tthis.swiper.emit(\"nextClick\");\r\n\t\t\t},\r\n\t\t\tonTouchStart(event) {\r\n\t\t\t\tthis.swiper.onTouchStart(event);\r\n\t\t\t},\r\n\t\t\tonTouchStartSwiperWxs(event) {\r\n\t\t\t\tthis.swiper.onTouchStart(event);\r\n\t\t\t},\r\n\t\t\tonTouchMove(event) {\r\n\t\t\t\tthis.swiper.onTouchMove(event);\r\n\t\t\t},\r\n\t\t\tonTouchMoveSwiperWxs(event) {\r\n\t\t\t\tthis.swiper.onTouchMove(event);\r\n\t\t\t},\r\n\t\t\tonTouchEnd(event) {\r\n\t\t\t\tthis.swiper.onTouchEnd(event);\r\n\t\t\t},\r\n\t\t\tonTouchEndSwiperWxs(event) {\r\n\t\t\t\tthis.swiper.onTouchEnd(event);\r\n\t\t\t},\r\n\t\t\tonClickWrapper(event) {\r\n\t\t\t\tthis.$emit(\"click\", event);\r\n\t\t\t},\r\n\t\t\tonClickScrollbar(event) {\r\n\t\t\t\tthis.$emit(\"scrollbarClick\", event);\r\n\t\t\t},\r\n\t\t\tonTouchStartScrollbar(event) {\r\n\t\t\t\tthis.swiper.emit('touchStartScrollbar', event);\r\n\t\t\t},\r\n\t\t\tonTouchMoveScrollbar(event) {\r\n\t\t\t\tthis.swiper.emit('touchMoveScrollbar', event);\r\n\t\t\t},\r\n\t\t\tonTouchEndScrollbar(event) {\r\n\t\t\t\tthis.swiper.emit('touchEndScrollbar', event);\r\n\t\t\t},\r\n\t\t\tcubeShadowCss(value) {\r\n\t\t\t\tObject.keys(value).forEach((item) => {\r\n\t\t\t\t\tthis.$set(this.cubeShadowStyle, item, value[item])\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcubeShadowTransform(value) {\r\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transform', value)\r\n\t\t\t},\r\n\t\t\tcubeShadowTransition(value) {\r\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transitionDuration', `${value}ms`)\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t@import '../../libs/core.scss';\r\n\t@import \"../../static/css/iconfont.css\";\r\n\r\n\t.swiper {\r\n\t\t&__prev--button {\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\r\n\t\t&__prev--button--disable {\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\topacity: .35;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\r\n\t\t&__next--button {\r\n\t\t\tposition: absolute;\r\n\t\t\tright: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\r\n\t\t&__next--button--disable {\r\n\t\t\tposition: absolute;\r\n\t\t\tright: 30rpx;\r\n\t\t\ttop: 50%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tcolor: #1989fa;\r\n\t\t\tfont-size: 44rpx;\r\n\t\t\topacity: .35;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\t}\r\n</style>"],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/mp-weixin/pages/homeCards/index.js
View file @
40c476f5
...
...
@@ -213,7 +213,6 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
var
_default
=
{
data
:
function
data
()
{
...
...
@@ -222,8 +221,7 @@ var _default =
disabledSubmit
:
false
,
id
:
274
,
showUserInfo
:
false
,
userName
:
''
,
// avatarUrl: 'https://admin.mindepoch.com:8089/static/poster1.png',
userName
:
'卿羽'
,
code
:
''
,
clickNoArgee
:
false
,
clickArgee
:
false
,
...
...
@@ -265,7 +263,11 @@ var _default =
if
(
res
.
code
)
{
// uni.setStorageSync('code', res.code)
that
.
code
=
res
.
code
;
console
.
log
(
'code'
,
that
.
code
);
console
.
log
(
'code:'
,
that
.
code
);
// uni.showModal({
// title: 'wx.login:登录ing!',
// content: 'that.code:'+that.code + ''
// });
// 将 res.code 发送至后台服务器进行处理
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/wechat/CheckWxUserIsRegisterAndBindPhone'
,
...
...
@@ -275,7 +277,11 @@ var _default =
data
:
{
code
:
res
.
code
},
success
:
function
success
(
res
)
{
console
.
log
(
'resres'
,
res
);
console
.
log
(
'res:'
,
res
);
// uni.showModal({
// title: 'wx.login:登录成功!'+JSON.stringify(res),
// content: res.data.toString()
// });
that
.
isBindPhone
=
res
.
data
.
isBindPhone
;
that
.
wxUid
=
res
.
data
.
wxUid
;
...
...
@@ -292,11 +298,13 @@ var _default =
that
.
showUserInfo
=
true
;
}
}
},
fail
:
function
fail
(
err
)
{
console
.
log
(
err
);
console
.
log
(
'err:'
,
err
);
// uni.showModal({
// title: 'wx.login:登录失败!',
// content: JSON.stringify(err)
// });
}
});
}
else
{
...
...
@@ -320,14 +328,23 @@ var _default =
worldName
:
''
}
}).
then
(
function
(
result
)
{
console
.
log
(
111
,
result
[
1
].
data
);
console
.
log
(
'init:'
,
result
[
1
].
data
);
// uni.showModal({
// title: 'init:',
// content: result[1].data.worldInfoAndAsset.toString()
// });
if
(
result
[
1
].
data
.
code
===
1
)
{
if
(
result
[
1
].
data
.
worldInfoAndAsset
.
length
>
0
)
{
_this
.
list
=
result
[
1
].
data
.
worldInfoAndAsset
;
// this.list = [result[1].data.worldInfoAndAsset[1]]
}
}
}).
catch
(
function
(
err
)
{
console
.
log
(
222
,
err
);
// uni.showModal({
// title: 'init_error:',
// content: 'error'
// });
});
},
preImage
:
function
preImage
()
{
...
...
@@ -340,8 +357,23 @@ var _default =
},
//获取到用户昵称 以及用户头像
handleSubmit
:
function
handleSubmit
()
{
this
.
disabledSubmit
=
true
;
var
that
=
this
;
//1.昵称输入不可为空
if
(
this
.
userName
.
trim
()
==
""
)
{
uni
.
showToast
({
title
:
'昵称不可为空'
,
icon
:
'none'
});
return
;
}
//2.不上传头像需要下载 上传头像不需要下载
if
(
this
.
avatarUrl
==
"https://admin.mindepoch.com:8089/worlds/default.jpg"
)
{
uni
.
downloadFile
({
url
:
that
.
avatarUrl
,
success
:
function
success
(
downloadRes
)
{
if
(
downloadRes
.
statusCode
===
200
)
{
// 图片下载成功后获取临时文件路径
var
tempFilePath
=
downloadRes
.
tempFilePath
;
wx
.
login
({
success
:
function
success
(
res
)
{
if
(
!
res
.
code
)
{
...
...
@@ -350,23 +382,19 @@ var _default =
uni
.
uploadFile
({
url
:
'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin'
,
method
:
'POST'
,
filePath
:
that
.
avatarUrl
,
filePath
:
tempFilePath
,
name
:
'avatar'
,
formData
:
{
code
:
res
.
code
,
username
:
that
.
userName
},
success
:
function
success
(
uploadRes
)
{
uni
.
showToast
({
title
:
'AppletWeChatRegisterOrLogin'
,
icon
:
'none'
});
console
.
log
(
'上传成功uploadRes'
,
uploadRes
);
console
.
log
(
JSON
.
parse
(
uploadRes
.
data
));
// console.log(JSON.parse(uploadRes.data))
var
data
=
JSON
.
parse
(
uploadRes
.
data
);
if
(
data
.
code
===
1
)
{
uni
.
showToast
({
title
:
'
成功!'
,
title
:
'头像上传
成功!'
,
icon
:
'none'
});
uni
.
setStorageSync
(
'userName'
,
that
.
userName
);
...
...
@@ -377,9 +405,68 @@ var _default =
that
.
init
();
}
else
{
//失败
uni
.
showModal
({
title
:
'温馨提示'
,
// 弹窗的标题
content
:
'好像出了点问题呢,再试试呢!'
,
// 弹窗的文本内容
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
confirmText
:
'确定'
,
// 确定按钮的文字,默认为"确定"
confirmColor
:
'#576B95'
,
// 确定按钮的文字颜色
success
:
function
success
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
fail
:
function
fail
(
err
)
{
console
.
log
(
'API 调用失败: '
,
err
);
}
});
that
.
disabledSubmit
=
false
;
}
},
fail
:
function
fail
(
uploadErr
)
{
console
.
error
(
'上传失败'
,
uploadErr
);
uni
.
showModal
({
title
:
'失败'
,
// 弹窗的标题
content
:
'创建失败!'
,
// 弹窗的文本内容 JSON.parse(uploadErr.errMsg)
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
confirmText
:
'确定'
,
// 确定按钮的文字,默认为"确定"
confirmColor
:
'#576B95'
,
// 确定按钮的文字颜色
success
:
function
success
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
fail
:
function
fail
(
err
)
{
console
.
log
(
'API 调用失败: '
,
err
);
}
});
}
});
},
fail
:
function
fail
(
err
)
{
console
.
log
(
err
);
uni
.
showToast
({
title
:
err
.
toString
(),
icon
:
'none'
});
}
});
}
},
fail
:
function
fail
(
downloadErr
)
{
console
.
error
(
'下载图片失败'
,
downloadErr
);
// uni.showModal({
// title: '弹窗标题', // 弹窗的标题
// content: JSON.parse(uploadRes.data
), // 弹窗的文本内容
// content: JSON.stringify(downloadErr
), // 弹窗的文本内容
// showCancel: true, // 是否显示取消按钮,默认为 true
// cancelText: '取消', // 取消按钮的文字,默认为"取消"
// cancelColor: '#000000', // 取消按钮的文字颜色
...
...
@@ -396,14 +483,72 @@ var _default =
// console.log('API 调用失败: ', err);
// }
// });
}
});
}
else
{
this
.
disabledSubmit
=
true
;
wx
.
login
({
success
:
function
success
(
res
)
{
if
(
!
res
.
code
)
{
return
;
}
uni
.
uploadFile
({
url
:
'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin'
,
method
:
'POST'
,
filePath
:
that
.
avatarUrl
,
name
:
'avatar'
,
formData
:
{
code
:
res
.
code
,
username
:
that
.
userName
},
success
:
function
success
(
uploadRes
)
{
uni
.
showToast
({
title
:
'AppletWeChatRegisterOrLogin'
,
icon
:
'none'
});
console
.
log
(
'上传成功uploadRes'
,
uploadRes
);
console
.
log
(
JSON
.
parse
(
uploadRes
.
data
));
var
data
=
JSON
.
parse
(
uploadRes
.
data
);
if
(
data
.
code
===
1
)
{
uni
.
showToast
({
title
:
'成功!'
,
icon
:
'none'
});
uni
.
setStorageSync
(
'userName'
,
that
.
userName
);
uni
.
setStorageSync
(
'session_token'
,
uploadRes
.
cookies
[
0
].
split
(
';'
)[
0
]);
//保存cookie值
uni
.
setStorageSync
(
'wxUid'
,
data
.
wxUid
);
//保存用户id
uni
.
setStorageSync
(
'openId'
,
data
.
openId
);
//保存用户id
that
.
showUserInfo
=
false
;
//隐藏用户填写的表单
that
.
init
();
}
else
{
//失败
uni
.
showModal
({
title
:
'温馨提示'
,
// 弹窗的标题
content
:
'好像出了点问题呢,再试试呢!'
,
// 弹窗的文本内容
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
confirmText
:
'确定'
,
// 确定按钮的文字,默认为"确定"
confirmColor
:
'#576B95'
,
// 确定按钮的文字颜色
success
:
function
success
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
fail
:
function
fail
(
err
)
{
console
.
log
(
'API 调用失败: '
,
err
);
}
});
that
.
disabledSubmit
=
false
;
}
},
fail
:
function
fail
(
uploadErr
)
{
console
.
error
(
'上传失败'
,
uploadErr
);
uni
.
showModal
({
title
:
'弹窗标题
'
,
// 弹窗的标题
content
:
'1
'
,
// 弹窗的文本内容 JSON.parse(uploadErr.errMsg)
title
:
'失败
'
,
// 弹窗的标题
content
:
'创建失败!
'
,
// 弹窗的文本内容 JSON.parse(uploadErr.errMsg)
showCancel
:
true
,
// 是否显示取消按钮,默认为 true
cancelText
:
'取消'
,
// 取消按钮的文字,默认为"取消"
cancelColor
:
'#000000'
,
// 取消按钮的文字颜色
...
...
@@ -423,114 +568,6 @@ var _default =
}
});
// uni.downloadFile({
// url: that.avatarUrl,
// success: downloadRes => {
// if (downloadRes.statusCode === 200) {
// // 图片下载成功后获取临时文件路径
// const tempFilePath = downloadRes.tempFilePath;
// console.log('--------------',downloadRes)
// uni.uploadFile({
// url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',
// method: 'POST',
// filePath:tempFilePath,
// name: 'avatar',
// formData: {
// code: res.code,
// username: that.userName,
// },
// success: uploadRes => {
// uni.showToast({
// title: 'AppletWeChatRegisterOrLogin',
// icon: 'none'
// })
// console.log('上传成功uploadRes', uploadRes);
// console.log(JSON.parse(uploadRes.data))
// const data = JSON.parse(uploadRes.data)
// if(data.code===1){
// uni.showToast({
// title: '成功!',
// icon: 'none'
// });
// uni.setStorageSync('userName', that.userName);
// uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值
// uni.setStorageSync('wxUid', data.wxUid); //保存用户id
// uni.setStorageSync('openId', data.openId); //保存用户id
// that.showUserInfo = false //隐藏用户填写的表单
// that.init()
// }else{
// //失败
// // uni.showModal({
// // title: '弹窗标题', // 弹窗的标题
// // content: JSON.parse(uploadRes.data), // 弹窗的文本内容
// // showCancel: true, // 是否显示取消按钮,默认为 true
// // cancelText: '取消', // 取消按钮的文字,默认为"取消"
// // cancelColor: '#000000', // 取消按钮的文字颜色
// // confirmText: '确定', // 确定按钮的文字,默认为"确定"
// // confirmColor: '#576B95', // 确定按钮的文字颜色
// // success: function (res) {
// // if (res.confirm) {
// // console.log('用户点击确定');
// // } else if (res.cancel) {
// // console.log('用户点击取消');
// // }
// // },
// // fail: function (err) {
// // console.log('API 调用失败: ', err);
// // }
// // });
// that.disabledSubmit = false
// }
// },
// fail: uploadErr => {
// // uni.showModal({
// // title: '弹窗标题', // 弹窗的标题
// // content: JSON.parse(uploadErr), // 弹窗的文本内容
// // showCancel: true, // 是否显示取消按钮,默认为 true
// // cancelText: '取消', // 取消按钮的文字,默认为"取消"
// // cancelColor: '#000000', // 取消按钮的文字颜色
// // confirmText: '确定', // 确定按钮的文字,默认为"确定"
// // confirmColor: '#576B95', // 确定按钮的文字颜色
// // success: function (res) {
// // if (res.confirm) {
// // console.log('用户点击确定');
// // } else if (res.cancel) {
// // console.log('用户点击取消');
// // }
// // },
// // fail: function (err) {
// // console.log('API 调用失败: ', err);
// // }
// // });
// console.error('上传失败', uploadErr);
// }
// })
// }
// },
// fail: downloadErr => {
// console.error('下载图片失败', downloadErr)
// // uni.showModal({
// // title: '弹窗标题', // 弹窗的标题
// // content: JSON.stringify(downloadErr), // 弹窗的文本内容
// // showCancel: true, // 是否显示取消按钮,默认为 true
// // cancelText: '取消', // 取消按钮的文字,默认为"取消"
// // cancelColor: '#000000', // 取消按钮的文字颜色
// // confirmText: '确定', // 确定按钮的文字,默认为"确定"
// // confirmColor: '#576B95', // 确定按钮的文字颜色
// // success: function (res) {
// // if (res.confirm) {
// // console.log('用户点击确定');
// // } else if (res.cancel) {
// // console.log('用户点击取消');
// // }
// // },
// // fail: function (err) {
// // console.log('API 调用失败: ', err);
// // }
// // });
// }
// });
},
fail
:
function
fail
(
err
)
{
console
.
log
(
err
);
...
...
@@ -540,11 +577,13 @@ var _default =
}
});
}
},
onChooseAvatar
:
function
onChooseAvatar
(
e
)
{
console
.
log
(
'e'
,
e
);
var
avatarUrl
=
e
.
detail
.
avatarUrl
;
this
.
avatarUrl
=
avatarUrl
;
console
.
log
(
'this.avatarUrl'
,
this
.
avatarUrl
);
},
NavTo
:
function
NavTo
(
data
)
{
...
...
unpackage/dist/dev/mp-weixin/pages/homeCards/index.wxml
View file @
40c476f5
<view class="wrapper data-v-86ffa444"><block wx:if="{{showUserInfo}}"><view class="ttt data-v-86ffa444"><button class="avatar-wrapper data-v-86ffa444" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar data-v-86ffa444" src="{{avatarUrl}}"></image></button><view class="tipUserHeader data-v-86ffa444">设置头像</view><input class="weui-input data-v-86ffa444" placeholder="请输入昵称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" value="{{userName}}" bindinput="__e"/><button class="submit data-v-86ffa444" type="primary" disabled="{{disabledSubmit}}" data-event-opts="{{[['tap',[['handleSubmit',['$event']]]]]}}" bindtap="__e">提交</button></view></block><view class="shadow data-v-86ffa444"></view><view class="section data-v-86ffa444"><view class="shadowBoard data-v-86ffa444" style="{{'background-image:'+('url('+photo[i]+')')+';'}}"></view><view class="swiper data-v-86ffa444"><image class="scaleToFill data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['preImage',['$event']]]]]}}" bindtap="__e"></image><image class="scaleToFill2 data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['nextImage',['$event']]]]]}}" bindtap="__e"></image><z-swiper class="swiper data-v-86ffa444 vue-ref" vue-id="58f3e230-1" options="{{options}}" data-ref="zSwiper" value="{{list}}" data-event-opts="{{[['^slideChange',[['onSlideChange']]],['^input',[['__set_model',['','list','$event',[]]]]]]}}" bind:slideChange="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><z-swiper-item vue-id="{{('58f3e230-2-'+index)+','+('58f3e230-1')}}" custom-style="{{slideCustomStyle}}" class="data-v-86ffa444" bind:__l="__l" vue-slots="{{['default']}}"><button data-event-opts="{{[['tap',[['NavTo',['$0'],[[['list','',index]]]]]]]}}" class="btn data-v-86ffa444" bindtap="__e"><image class="image data-v-86ffa444" src="{{'https://admin.mindepoch.com:8089/worlds/'+item.name+'.png'}}" mode="aspectFill"></image><view class="CardContent data-v-86ffa444"><view class="card data-v-86ffa444"><view class="header1 data-v-86ffa444">{{item.name}}</view><view class="header2 data-v-86ffa444"><view class="sdsd data-v-86ffa444">{{item.worldHeader}}</view><view class="distence data-v-86ffa444"></view><view class="detail data-v-86ffa444">{{item.description}}</view></view></view></view></button></z-swiper-item></block></z-swiper></view></view></view>
\ No newline at end of file
<view class="wrapper data-v-86ffa444"><block wx:if="{{showUserInfo}}"><view class="ttt data-v-86ffa444"><button class="avatar-wrapper data-v-86ffa444" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar data-v-86ffa444" src="{{avatarUrl}}"></image></button><view class="tipUserHeader data-v-86ffa444">设置头像</view><input class="weui-input data-v-86ffa444" placeholder="请输入昵称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" value="{{userName}}" bindinput="__e"/><button class="submit data-v-86ffa444" type="primary" disabled="{{disabledSubmit}}" data-event-opts="{{[['tap',[['handleSubmit',['$event']]]]]}}" bindtap="__e">提交</button></view></block><button data-event-opts="{{[['tap',[['handleUserDestory',['$event']]]]]}}" bindtap="__e" class="data-v-86ffa444">用户注销</button><view class="shadow data-v-86ffa444"></view><view class="section data-v-86ffa444"><view class="shadowBoard data-v-86ffa444" style="{{'background-image:'+('url('+photo[i]+')')+';'}}"></view><view class="swiper data-v-86ffa444"><image class="scaleToFill data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['preImage',['$event']]]]]}}" bindtap="__e"></image><image class="scaleToFill2 data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['nextImage',['$event']]]]]}}" bindtap="__e"></image><z-swiper class="swiper data-v-86ffa444 vue-ref" vue-id="58f3e230-1" options="{{options}}" data-ref="zSwiper" value="{{list}}" data-event-opts="{{[['^slideChange',[['onSlideChange']]],['^input',[['__set_model',['','list','$event',[]]]]]]}}" bind:slideChange="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><z-swiper-item vue-id="{{('58f3e230-2-'+index)+','+('58f3e230-1')}}" custom-style="{{slideCustomStyle}}" class="data-v-86ffa444" bind:__l="__l" vue-slots="{{['default']}}"><button data-event-opts="{{[['tap',[['NavTo',['$0'],[[['list','',index]]]]]]]}}" class="btn data-v-86ffa444" bindtap="__e"><image class="image data-v-86ffa444" src="{{'https://admin.mindepoch.com:8089/worlds/'+item.name+'.png'}}" mode="aspectFill"></image><view class="CardContent data-v-86ffa444"><view class="card data-v-86ffa444"><view class="header1 data-v-86ffa444">{{item.name}}</view><view class="header2 data-v-86ffa444"><view class="sdsd data-v-86ffa444">{{item.worldHeader}}</view><view class="distence data-v-86ffa444"></view><view class="detail data-v-86ffa444">{{item.description}}</view></view></view></view></button></z-swiper-item></block></z-swiper></view></view></view>
\ No newline at end of file
unpackage/dist/dev/mp-weixin/pages/index/index.js
View file @
40c476f5
...
...
@@ -123,7 +123,7 @@ var render = function() {
var
_h
=
_vm
.
$createElement
var
_c
=
_vm
.
_self
.
_c
||
_h
var
l0
=
_vm
.
historyRecord
.
length
>
0
_vm
.
historyRecord
.
length
>
0
&&
_vm
.
normal
?
_vm
.
__map
(
_vm
.
historyRecord
,
function
(
item
,
index
)
{
var
$orig
=
_vm
.
__get_orig
(
item
)
...
...
@@ -587,6 +587,12 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
// import FullScreenLoading from '../../components/FullScreenLoading.vue';
var
recorderManager
=
uni
.
getRecorderManager
();
...
...
@@ -597,6 +603,11 @@ var _default =
{
data
:
function
data
()
{
return
{
UI_show
:
true
,
normal
:
false
,
ttf
:
false
,
jumping
:
false
,
pangbai_stop
:
false
,
//当新的消息发来以后 停止当前旁白框的内容
foot
:
true
,
loadingBG
:
false
,
BG
:
false
,
...
...
@@ -810,6 +821,31 @@ var _default =
}
},
methods
:
_defineProperty
({
shareToTimeline
:
function
shareToTimeline
()
{
uni
.
share
({
provider
:
'weixin'
,
// 分享服务提供商,weixin表示微信
title
:
'世界推演'
,
// 分享的标题
summary
:
'你爱我,我爱你,蜜雪冰城甜蜜蜜!'
,
// 分享的摘要
imageUrl
:
'https://admin.mindepoch.com:8089/worlds/default.jpg'
,
// 分享的图片链接,可选
// query: '分享的查询参数', // 分享的查询参数,可选
success
:
function
success
(
res
)
{
// 分享成功的回调
console
.
log
(
'分享成功'
,
res
);
},
fail
:
function
fail
(
err
)
{
// 分享失败的回调
console
.
error
(
'分享失败'
,
err
);
},
complete
:
function
complete
()
{
// 分享结束的回调(成功、失败都会执行)
console
.
log
(
'分享结束'
);
}
});
},
handlConnects
:
function
handlConnects
()
{
this
.
socketConnect
();
this
.
ttf
=
false
;
},
glb
:
function
glb
()
{
this
.
BG
=
false
;
this
.
loadingBG
=
false
;
...
...
@@ -826,14 +862,14 @@ var _default =
nextTips
:
function
nextTips
()
{
//结算当前语音的递归 进行下一次语音
// this.EPlayer.onEnded()
this
.
jumping
=
true
;
clearInterval
(
this
.
Strem
);
this
.
EPlayer
.
stop
();
this
.
EPlayer
.
onended
();
if
(
!
this
.
kill
)
{
this
.
yyds_pangbai
+=
this
.
str
;
}
this
.
jumping
=
false
;
this
.
EPlayer
.
onended
();
},
handleCloseDialog
:
function
handleCloseDialog
()
{
this
.
show
=
false
;
...
...
@@ -987,6 +1023,7 @@ var _default =
console
.
log
(
'message--------'
,
message
);
clearInterval
(
_this5
.
timerConsider
);
clearInterval
(
_this5
.
timer
);
_this5
.
jumping
=
false
;
uni
.
setNavigationBarTitle
({
title
:
_this5
.
currentPageData
.
name
});
...
...
@@ -1103,6 +1140,7 @@ var _default =
//服务器传来的内容处理 包括发声
var
ISLIU_content
=
backValue
.
ISLIU
?
backValue
.
ISLIU
:
''
;
if
(
ISLIU_content
!==
''
)
{
ISLIU_content
=
ISLIU_content
.
replaceAll
(
"“"
,
"
\"
"
).
replaceAll
(
"”"
,
"
\"
"
);
var
finalVal
=
_this5
.
extractQuotedTexts
(
ISLIU_content
).
join
(
","
);
...
...
@@ -1161,12 +1199,16 @@ var _default =
// 监听 WebSocket 错误事件
this
.
socketTask
.
onError
(
function
(
error
)
{
console
.
error
(
'WebSocket 错误:'
,
error
);
_this5
.
socketTask
=
null
;
_this5
.
badRequest
();
_this5
.
ttf
=
true
;
});
// 监听 WebSocket 连接关闭事件
this
.
socketTask
.
onClose
(
function
()
{
_this5
.
socketTask
=
null
;
_this5
.
badRequest
();
console
.
log
(
'WebSocket 连接已关闭'
);
_this5
.
ttf
=
true
;
});
},
...
...
@@ -1441,6 +1483,10 @@ var _default =
// url: `/pages/homeCards/index`
});
},
handleToggle
:
function
handleToggle
()
{
this
.
normal
=
!
this
.
normal
;
this
.
UI_show
=
!
this
.
UI_show
;
},
sendMoneyMethods
:
function
sendMoneyMethods
()
{
//弹窗出现 输入金额 确认 提交 发送
// this.showInputMoneyDialog = true
...
...
@@ -1680,6 +1726,10 @@ var _default =
},
handleSendMessage2
:
function
handleSendMessage2
()
{
var
_this11
=
this
;
if
(
this
.
socketTask
==
null
)
{
this
.
socketConnect
();
}
// console.log('click')
if
(
this
.
inputVal
.
trim
()
===
''
)
{
uni
.
showToast
({
...
...
@@ -1690,7 +1740,7 @@ var _default =
return
;
}
this
.
glod_user
=
true
;
this
.
inputVal
=
this
.
userDoing
?
'我'
+
this
.
inputVal
:
"
' "
+
this
.
inputVal
+
" '
"
;
this
.
inputVal
=
this
.
userDoing
?
'我'
+
this
.
inputVal
:
"
“ "
+
this
.
inputVal
+
" ”
"
;
// 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
...
...
@@ -1719,6 +1769,8 @@ var _default =
//关闭语音 防止多重语音
if
(
this
.
EPlayer
)
{
this
.
EPlayer
.
stop
();
clearInterval
(
this
.
Strem
);
this
.
jumping
=
true
;
}
console
.
log
(
'socketTask'
,
this
.
socketTask
);
this
.
socketTask
.
send
({
...
...
@@ -1777,7 +1829,6 @@ var _default =
var
Cobj2
=
this
.
computeLen
(
OriginObj
);
console
.
log
(
'llllllllll'
,
Cobj2
);
var
Asr
=
Cobj2
.
Sr
;
// this.str = Cobj2.Sr;
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/say/api/ra'
,
method
:
'post'
,
...
...
@@ -1835,7 +1886,6 @@ var _default =
var
arrObj
=
data
;
var
content
=
arrObj
[
0
].
text
;
var
voicer
=
arrObj
[
0
].
quoted
?
this
.
currentPageData
.
voiceGroups
[
1
]
:
this
.
currentPageData
.
voiceGroups
[
0
];
console
.
log
(
'--------------voicer------------------'
,
voicer
,
'-----------content---------------'
,
content
);
if
(
this
.
soundVoice
[
voicer
])
{
//假人音线
...
...
@@ -1860,7 +1910,7 @@ var _default =
_this14
.
glod_dp
=
true
;
// this.glod_user = false
_this14
.
yyds_dp
=
text
;
_this14
.
yyds_pangbai
+=
text
;
_this14
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
;
}
if
(
falg
)
{
console
.
log
(
'GoSound讲话完毕!'
);
...
...
@@ -1935,7 +1985,7 @@ var _default =
// 写入成功,使用小程序的背景音频播放器播放音频
if
(
that
.
EPlayer
)
{
// that.EPlayer.onended=null
that
.
EPlayer
.
onEnded
();
// that.EPlayer.onEnded()
that
.
EPlayer
.
stop
();
// that.EPlayer.cb && that.EPlayer.cb(that.Cobj.Sr, true)
}
...
...
@@ -1946,6 +1996,10 @@ var _default =
console
.
log
(
'GoSound----------oooooo'
);
that
.
EPlayer
.
cb
=
CB
;
var
Rfunc
=
function
Rfunc
()
{
if
(
that
.
jumping
)
{
return
;
}
that
.
jumping
=
true
;
console
.
log
(
'GoSoundrfun'
);
//移除旧文件
console
.
log
(
1123
,
that
.
tempFilePath
);
...
...
@@ -1966,15 +2020,18 @@ var _default =
// that.EPlayer.onEnded(Rfunc)
that
.
EPlayer
.
onended
();
},
1000
);
that
.
jumping
=
false
;
return
;
}
if
(
CB
)
CB
(
that
.
Cobj
.
Sr
,
true
);
that
.
jumping
=
false
;
return
;
}
var
Sobj
=
Sarry
.
shift
();
console
.
log
(
'Sobj'
,
Sobj
);
if
(
Sobj
.
S
==
null
)
{
CB
(
Sobj
.
S
);
that
.
jumping
=
false
;
Rfunc
();
}
else
{
that
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
"/tempAudio_"
.
concat
(
new
Date
().
getTime
(),
".mp3"
);
...
...
@@ -1996,6 +2053,7 @@ var _default =
fail
:
console
.
error
});
}
that
.
jumping
=
false
;
};
that
.
EPlayer
.
onEnded
(
Rfunc
);
that
.
EPlayer
.
onended
=
Rfunc
;
...
...
@@ -2053,6 +2111,10 @@ var _default =
console
.
log
(
'oooGoSayooo'
);
_this16
.
EPlayer
.
cb
=
CB
;
var
Rfunc
=
function
Rfunc
()
{
if
(
_this16
.
jumping
)
{
return
;
}
_this16
.
jumping
=
true
;
FileSystemManager
.
unlink
({
filePath
:
that
.
tempFilePath
,
success
:
function
success
(
res
)
{
...
...
@@ -2070,17 +2132,20 @@ var _default =
// this.EPlayer.onEnded(Rfunc)
_this16
.
EPlayer
.
onended
();
},
1000
);
_this16
.
jumping
=
false
;
return
;
}
if
(
CB
)
{
CB
(
_this16
.
Cobj2
.
Sr
,
true
);
}
_this16
.
jumping
=
false
;
return
;
}
var
Sobj
=
Sarry
.
shift
();
// this.str = Sobj.S
if
(
Sobj
.
A
==
null
)
{
CB
(
Sobj
.
S
);
_this16
.
jumping
=
false
;
Rfunc
();
}
else
{
_this16
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
"/tempAudio_"
.
concat
(
new
Date
().
getTime
(),
".mp3"
);
...
...
@@ -2101,6 +2166,7 @@ var _default =
fail
:
console
.
error
});
}
_this16
.
jumping
=
false
;
};
_this16
.
EPlayer
.
onEnded
(
Rfunc
);
_this16
.
EPlayer
.
onended
=
Rfunc
;
...
...
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
View file @
40c476f5
<view class="chat data-v-57280228"><uni-popup vue-id="8dd740cc-1" type="center" animation="{{false}}" data-ref="popup" class="data-v-57280228 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="wrapper_inputMoney data-v-57280228"><view class="wrapper_inputMoney_item data-v-57280228"><input type="number" placeholder="请输入金额" data-event-opts="{{[['input',[['__set_model',['','inputMoney','$event',['number']]],['handleInput',['$event']]]],['blur',[['$forceUpdate']]]]}}" value="{{inputMoney}}" bindinput="__e" bindblur="__e" class="data-v-57280228"/></view><button data-event-opts="{{[['tap',[['handleSendMoney',['$event']]]]]}}" class="yty data-v-57280228" bindtap="__e">提交</button></view></uni-popup><block wx:if="{{loading}}"><view class="full-screen-mask data-v-57280228"></view></block><block wx:if="{{loading2}}"><view class="full-screen-mask2 data-v-57280228"></view></block><block wx:if="{{loadingBG}}"><view data-event-opts="{{[['tap',[['handleBGHide',['$event']]]]]}}" class="full-screen-mask3 data-v-57280228" bindtap="__e"></view></block><view class="images data-v-57280228" style="{{'background-image:'+('url(https://admin.mindepoch.com:8089/worlds/'+currentPageData.name+'.png)')+';'}}"></view><block wx:if="{{showResult}}"><view data-event-opts="{{[['tap',[['getResults',['$event']]]]]}}" class="getResult data-v-57280228" style="{{'background-image:'+('url(https://admin.mindepoch.com:8089/worlds/查看结局.png)')+';'+('background-size:'+('100% 100%')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')}}" bindtap="__e">查看结局</view></block><view class="menu data-v-57280228"><view data-event-opts="{{[['tap',[['handleShowBG',['$event']]]]]}}" class="sendMoney plg1 data-v-57280228" bindtap="__e"></view><view class="sendMoney plg2 data-v-57280228"></view><view data-event-opts="{{[['tap',[['handleClearHistoryRecord',['$event']]]]]}}" class="sendMoney plg3 data-v-57280228" bindtap="__e"></view><view class="sendMoney plg4 data-v-57280228"></view><view data-event-opts="{{[['tap',[['sendMoneyMethods',['$event']]]]]}}" class="sendMoney plg5 data-v-57280228" bindtap="__e"></view><view data-event-opts="{{[['tap',[['handleMore',['$event']]]]]}}" class="sendMoney plg6 data-v-57280228" bindtap="__e"></view></view><block wx:if="{{false}}"><view class="dialog data-v-57280228"><view class="dialogHeader data-v-57280228">请输入您的昵称</view><view class="dialogContent data-v-57280228"><input class="inputU data-v-57280228 vue-ref" placeholder="请输入..." data-ref="inputU" data-event-opts="{{[['input',[['__set_model',['','userInputName','$event',[]]]]]]}}" value="{{userInputName}}" bindinput="__e"/></view><view class="dialogFooter data-v-57280228"><button data-event-opts="{{[['tap',[['submitUserName',['$event']]]]]}}" bindtap="__e" class="data-v-57280228">提交</button></view></view></block><block wx:if="{{board}}"><view data-event-opts="{{[['tap',[['handleHiddenShadow',['$event']]]]]}}" class="shadow data-v-57280228" bindtap="__e"></view></block><block wx:if="{{board}}"><view class="board data-v-57280228"><view class="jk data-v-57280228"><view class="imageH data-v-57280228" style="{{'background-image:'+('url('+base64Img+')')+';'+('background-size:'+('contain')+';')+('background-repeat:'+('no-repeat')+';')}}"></view><view class="jklock data-v-57280228"></view><view class="data-v-57280228"><view class="contentHeader data-v-57280228">{{storyContent[0]}}</view><view class="contentMain data-v-57280228"><text class="data-v-57280228">{{storyContent[1]}}</text></view></view></view><view class="footer data-v-57280228"><button data-event-opts="{{[['tap',[['backHome',['$event']]]]]}}" class="home data-v-57280228" bindtap="__e">返回首页</button><button data-event-opts="{{[['tap',[['handleClearHistoryRecord',['$event']]]]]}}" class="reload data-v-57280228" bindtap="__e">重新来过</button></view></view></block><block wx:if="{{BG}}"><view class="boardBG data-v-57280228"><view class="jk2 data-v-57280228"><view class="jklock data-v-57280228"></view><view class="HHH data-v-57280228"><view class="contentHeader2 data-v-57280228">故事背景</view><view class="wiik data-v-57280228">{{''+historyRecord[0].Message+''}}</view></view><view data-event-opts="{{[['tap',[['glb',['$event']]]]]}}" class="confirm data-v-57280228" bindtap="__e">确认</view></view></view></block><block wx:if="{{show}}"><view class="goods data-v-57280228"><view class="containerL data-v-57280228"><view class="hisd data-v-57280228"><image style="{{'height:'+('40rpx')+';'+('width:'+('40rpx')+';')+('position:'+('absolute')+';')+('right:'+('0')+';')+('top:'+('0')+';')}}" src="../../static/UI/退出.png" mode="scaleToFill" data-event-opts="{{[['tap',[['handleCloseDialog',['$event']]]]]}}" bindtap="__e" class="data-v-57280228"></image></view><view class="grid-container data-v-57280228"><block wx:for="{{imageList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="grid-item data-v-57280228"><view class="grid_item_box data-v-57280228"><image class="grid_item_box_image data-v-57280228" src="{{item.imgSrc}}"></image><view class="_br data-v-57280228"></view><text class="grid_item_box_image_text data-v-57280228">{{item.name}}</text></view></view></block></view></view></view></block><block wx:if="{{show}}"><view data-event-opts="{{[['tap',[['handleShow',['$event']]]]]}}" class="shadow data-v-57280228" bindtap="__e"></view></block><view class="shadows data-v-57280228"></view><block wx:if="{{historyRecord.length>0}}"><view data-ref="scrollViewHeightX" class="outside data-v-57280228 vue-ref"><scroll-view hidden="{{!(false)}}" class="container data-list-scroll data-v-57280228" style="{{'height:'+(scrollViewHeight)+';'}}" scroll-y="{{true}}" scroll-top="{{scrollTop}}" scroll-with-animation="{{true}}" scroll-into-view="{{bottomElement}}"><view id="scroll-view-content" class="data-v-57280228"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="historyListData data-v-57280228"><view class="historyListData_item parent-element data-v-57280228"><block wx:if="{{item.g0.length!==0}}"><view class="left distence leftPhoto data-v-57280228"><block wx:if="{{item.$orig.WObj.animaite}}"><view class="fuck data-v-57280228"><view class="photo data-v-57280228" style="{{'background-image:'+('url('+dpPhoto+')')+';'+('background-size:'+('cover')+';')+('background-repeat:'+('no-repeat')+';')+('background-position:'+('center center')+';')}}"></view><view class="allbody dealFloat li_left data-v-57280228"><view class="heartActive data-v-57280228"><view class="textStyle data-v-57280228">{{"正在思考中"+dots}}</view></view></view></view></block><block wx:else><view class="data-v-57280228"><view class="photo data-v-57280228" style="{{'background-image:'+('url('+dpPhoto+')')+';'+('background-size:'+('cover')+';')+('background-repeat:'+('no-repeat')+';')+('background-position:'+('center center')+';')}}"></view><view class="allbody dealFloat li_left data-v-57280228"><view class="heartActive doubleStatus data-v-57280228">{{'【时间】: '+item.$orig.WObj["时间"]+''}}</view><view class="_br data-v-57280228"></view><view class="heartActive doubleStatus data-v-57280228">{{'【地点】: '+item.$orig.WObj["地点"]+''}}</view><view class="heartActive data-v-57280228"><view class="textStyle data-v-57280228"><rich-text nodes="{{item.m0}}"></rich-text></view></view></view></view></block></view></block><block wx:else><view class="right distence rightPhoto data-v-57280228"><image class="photo data-v-57280228" src="{{userPhoto}}"></image><view class="li_right allbody dealFloat data-v-57280228"><view class="heartActive data-v-57280228">{{''+item.$orig.Message+''}}</view></view></view></block></view></view></block><view id="bottomElement" class="data-v-57280228"></view></view></scroll-view></view></block><view hidden="{{!(false)}}" class="formContainer data-v-57280228"><view class="itemContainer data-v-57280228"><view class="chat-window data-v-57280228"><view class="tongyi data-v-57280228" id="MyIn"></view><input class="{{['activeAnimaite','data-v-57280228',boxClass]}}" placeholder="请输入..." data-event-opts="{{[['focus',[['handleFocus',['$event']]]],['blur',[['hadnleBlur',['$event']]]],['input',[['__set_model',['','inputVal','$event',[]]]]]]}}" value="{{inputVal}}" bindfocus="__e" bindblur="__e" bindinput="__e"/><image class="{{['data-v-57280228',showSend]}}" id="Send" src="../../static/photo/Send.png" data-event-opts="{{[['tap',[['handleSendMessage',['$event']]]]]}}" bindtap="__e"></image><image class="{{['activeAnimaite','data-v-57280228',activeState,focus]}}" id="SendSound" src="../../static/photo/sound.png" data-event-opts="{{[['touchstart',[['startRecord',['$event']]]],['mousedown',[['startRecord',['$event']]]],['touchend',[['endRecord',['$event']]]],['mouseup',[['endRecord',['$event']]]]]}}" bindtouchstart="__e" bindmousedown="__e" bindtouchend="__e" bindmouseup="__e"></image></view></view></view><view class="UI data-v-57280228"><view class="UI_wrapper data-v-57280228"><view class="UI_head data-v-57280228"><view class="UI_head_title data-v-57280228">{{UITitle}}</view><view class="UI_head_timer data-v-57280228">{{UITimer}}</view></view><view class="UI_states data-v-57280228"><view class="UI_states_photo data-v-57280228"><view class="UI_states_photo_wrapper data-v-57280228"><view style="{{'width:'+('80%')+';'+('height:'+('80%')+';')+('border-radius:'+('50%')+';')+('background:'+('url('+userPhoto+')')+';')+('background-size:'+('100% 100%')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')+('position:'+('absolute')+';')+('top:'+('10%')+';')+('left:'+('10%')+';')}}" class="data-v-57280228"></view></view></view><view class="icon_log data-v-57280228"></view><view class="UI_states_value data-v-57280228"><block wx:for="{{worldParameter}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="processLine data-v-57280228"><view class="data-v-57280228"><block wx:if="{{index==0}}"><view class="processLine_item jiegan data-v-57280228"><view class="no1 ksp data-v-57280228" style="{{'width:'+(UIStatus_jiegan+'%')+';'+('background-size:'+(UIStatus_jiegan<=93?'auto 100%':'contain')+';')}}"></view><view class="sameFonts data-v-57280228" style="{{'z-index:'+(10)+';'}}">{{''+item+":"+UIStatus_jiegan+' / 100'}}</view></view></block><block wx:if="{{index==1}}"><view class="processLine_item kongjugan data-v-57280228"><view class="no1 ogc data-v-57280228" style="{{'width:'+(UIStatus_kongjugan+'%')+';'+('background-size:'+(UIStatus_kongjugan<=93?'auto 100%':'contain')+';')}}"></view><view class="sameFonts data-v-57280228" style="{{'z-index:'+(10)+';'}}">{{''+item+":"+UIStatus_kongjugan+' / 100'}}</view></view></block></view></view></block></view></view><view class="UI_body data-v-57280228"><view class="UI_body_right data-v-57280228"><block wx:if="{{glod_user}}"><view class="UI_body_right_content data-v-57280228"><view class="UI_body_right_content_text data-v-57280228"><view style="{{'line-height:'+('100rpx')+';'+('margin:'+('10rpx 40rpx 0 20rpx')+';')+('height:'+('100rpx')+';')+('overflow-y:'+('scroll')+';')+('text-indent:'+(0)+';')}}" class="data-v-57280228">{{inputVal_UI+''}}</view></view><view class="UI_body_right_content_photo data-v-57280228"><view style="{{'width:'+('80%')+';'+('height:'+('80%')+';')+('margin:'+('10% 0 0 10%')+';')+('border-radius:'+('50%')+';')+('background:'+('url('+userPhoto+')')+';')+('background-size:'+('cover')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')}}" class="data-v-57280228"></view></view></view></block><view class="UI_body_left data-v-57280228"><block wx:if="{{glod_dp}}"><view class="UI_body_left_content data-v-57280228"><view class="UI_body_left_content_photo data-v-57280228"><view style="{{'width:'+('80%')+';'+('height:'+('80%')+';')+('border-radius:'+('50%')+';')+('background:'+('url('+dpPhoto+')')+';')+('background-size:'+('cover')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')+('position:'+('absolute')+';')+('top:'+('11%')+';')+('left:'+('9.5%')+';')}}" class="data-v-57280228"></view></view><view class="UI_body_left_content_text data-v-57280228"><view style="{{'line-height:'+('100rpx')+';'+('margin:'+('10rpx 10rpx 0 50rpx')+';')+('height:'+('100rpx')+';')+('overflow-y:'+('scroll')+';')+('text-indent:'+(0)+';')}}" class="data-v-57280228">{{''+yyds_dp+''}}</view></view></view></block></view><view class="UI_body_left_Pangbai_content data-v-57280228"><view class="pangbai_title data-v-57280228"><text class="data-v-57280228">旁白</text><image class="tre data-v-57280228" src="../../static/UI/继续.png" mode="scaleToFill" data-event-opts="{{[['tap',[['nextTips',['$event']]]]]}}" bindtap="__e"></image></view><scroll-view class="pangbai_content data-v-57280228" style="{{'height:'+('200rpx')+';'}}" scroll-y="{{true}}" scroll-top="{{scrollTop_pangbai}}" scroll-with-animation="{{true}}" scroll-into-view="{{bottomElement_pangbai}}"><view id="scrollView" class="data-v-57280228"><view class="npc data-v-57280228">{{''+yyds_pangbai+''}}</view><view id="bottomElement_pangbai" class="data-v-57280228"></view></view></scroll-view></view></view></view><block wx:if="{{foot}}"><view class="UI_footer data-v-57280228"><view class="UI_footer_tool data-v-57280228"><view class="UI_footer_tool_wrapper data-v-57280228"><view data-event-opts="{{[['tap',[['handlSay',['$event']]]]]}}" class="{{['say','data-v-57280228',!userDoing?sayDoingClass:null]}}" bindtap="__e"></view><view data-event-opts="{{[['tap',[['handlDoing',['$event']]]]]}}" class="{{['doing','data-v-57280228',userDoing?sayDoingClass2:null]}}" bindtap="__e"></view><view class="input data-v-57280228"><input data-event-opts="{{[['input',[['__set_model',['','inputVal','$event',[]]]]]]}}" class="UI_input data-v-57280228" value="{{inputVal}}" bindinput="__e"/><view id="Send2" data-event-opts="{{[['tap',[['handleSendMessage2',['$event']]]]]}}" bindtap="__e" class="data-v-57280228"></view></view></view></view></view></block></view></view></view>
\ No newline at end of file
<view class="chat data-v-57280228"><uni-popup vue-id="8dd740cc-1" type="center" animation="{{false}}" data-ref="popup" class="data-v-57280228 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="wrapper_inputMoney data-v-57280228"><view class="wrapper_inputMoney_item data-v-57280228"><input type="number" placeholder="请输入金额" data-event-opts="{{[['input',[['__set_model',['','inputMoney','$event',['number']]],['handleInput',['$event']]]],['blur',[['$forceUpdate']]]]}}" value="{{inputMoney}}" bindinput="__e" bindblur="__e" class="data-v-57280228"/></view><button data-event-opts="{{[['tap',[['handleSendMoney',['$event']]]]]}}" class="yty data-v-57280228" bindtap="__e">提交</button></view></uni-popup><block wx:if="{{ttf}}"><view class="reload_connect data-v-57280228"><view style="text-align:center;" class="data-v-57280228">已断开连接,是否重连!</view><button data-event-opts="{{[['tap',[['handlConnects',['$event']]]]]}}" class="connect_start data-v-57280228" bindtap="__e">连接</button></view></block><block wx:if="{{loading}}"><view class="full-screen-mask data-v-57280228"></view></block><block wx:if="{{loading2}}"><view class="full-screen-mask2 data-v-57280228"></view></block><block wx:if="{{loadingBG}}"><view data-event-opts="{{[['tap',[['handleBGHide',['$event']]]]]}}" class="full-screen-mask3 data-v-57280228" bindtap="__e"></view></block><block wx:if="{{ttf}}"><view class="full-screen-mask4 data-v-57280228"></view></block><view class="images data-v-57280228" style="{{'background-image:'+('url(https://admin.mindepoch.com:8089/worlds/'+currentPageData.name+'.png)')+';'}}"></view><block wx:if="{{showResult}}"><view data-event-opts="{{[['tap',[['getResults',['$event']]]]]}}" class="getResult data-v-57280228" style="{{'background-image:'+('url(https://admin.mindepoch.com:8089/worlds/查看结局.png)')+';'+('background-size:'+('100% 100%')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')}}" bindtap="__e">查看结局</view></block><view class="menu data-v-57280228"><view data-event-opts="{{[['tap',[['handleShowBG',['$event']]]]]}}" class="sendMoney plg1 data-v-57280228" bindtap="__e"></view><view data-event-opts="{{[['tap',[['handleToggle',['$event']]]]]}}" class="sendMoney plg2 data-v-57280228" bindtap="__e"></view><view data-event-opts="{{[['tap',[['handleClearHistoryRecord',['$event']]]]]}}" class="sendMoney plg3 data-v-57280228" bindtap="__e"></view><view class="sendMoney plg4 data-v-57280228"><button class="shareWord data-v-57280228" open-type="share" data-event-opts="{{[['tap',[['shareToTimeline',['$event']]]]]}}" bindtap="__e"></button></view><view data-event-opts="{{[['tap',[['sendMoneyMethods',['$event']]]]]}}" class="sendMoney plg5 data-v-57280228" bindtap="__e"></view><view data-event-opts="{{[['tap',[['handleMore',['$event']]]]]}}" class="sendMoney plg6 data-v-57280228" bindtap="__e"></view></view><block wx:if="{{false}}"><view class="dialog data-v-57280228"><view class="dialogHeader data-v-57280228">请输入您的昵称</view><view class="dialogContent data-v-57280228"><input class="inputU data-v-57280228 vue-ref" placeholder="请输入..." data-ref="inputU" data-event-opts="{{[['input',[['__set_model',['','userInputName','$event',[]]]]]]}}" value="{{userInputName}}" bindinput="__e"/></view><view class="dialogFooter data-v-57280228"><button data-event-opts="{{[['tap',[['submitUserName',['$event']]]]]}}" bindtap="__e" class="data-v-57280228">提交</button></view></view></block><block wx:if="{{board}}"><view data-event-opts="{{[['tap',[['handleHiddenShadow',['$event']]]]]}}" class="shadow data-v-57280228" bindtap="__e"></view></block><block wx:if="{{board}}"><view class="board data-v-57280228"><view class="jk data-v-57280228"><view class="imageH data-v-57280228" style="{{'background-image:'+('url('+base64Img+')')+';'+('background-size:'+('contain')+';')+('background-repeat:'+('no-repeat')+';')}}"></view><view class="jklock data-v-57280228"></view><view class="data-v-57280228"><view class="contentHeader data-v-57280228">{{storyContent[0]}}</view><view class="contentMain data-v-57280228"><text class="data-v-57280228">{{storyContent[1]}}</text></view></view></view><view class="footer data-v-57280228"><button data-event-opts="{{[['tap',[['backHome',['$event']]]]]}}" class="home data-v-57280228" bindtap="__e">返回首页</button><button data-event-opts="{{[['tap',[['handleClearHistoryRecord',['$event']]]]]}}" class="reload data-v-57280228" bindtap="__e">重新来过</button></view></view></block><block wx:if="{{BG}}"><view class="boardBG data-v-57280228"><view class="jk2 data-v-57280228"><view class="contentHeader2 data-v-57280228">故事背景</view><view class="HHH data-v-57280228"><view class="wiik data-v-57280228"><text class="data-v-57280228">{{historyRecord[0].Message}}</text></view></view><view data-event-opts="{{[['tap',[['glb',['$event']]]]]}}" class="confirm data-v-57280228" bindtap="__e">确认</view></view></view></block><block wx:if="{{show}}"><view class="goods data-v-57280228"><view class="containerL data-v-57280228"><view class="hisd data-v-57280228"><image style="{{'height:'+('40rpx')+';'+('width:'+('40rpx')+';')+('position:'+('absolute')+';')+('right:'+('0')+';')+('top:'+('0')+';')}}" src="../../static/UI/退出.png" mode="scaleToFill" data-event-opts="{{[['tap',[['handleCloseDialog',['$event']]]]]}}" bindtap="__e" class="data-v-57280228"></image></view><view class="grid-container data-v-57280228"><block wx:for="{{imageList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="grid-item data-v-57280228"><view class="grid_item_box data-v-57280228"><image class="grid_item_box_image data-v-57280228" src="{{item.imgSrc}}"></image><view class="_br data-v-57280228"></view><text class="grid_item_box_image_text data-v-57280228">{{item.name}}</text></view></view></block></view></view></view></block><block wx:if="{{show}}"><view data-event-opts="{{[['tap',[['handleShow',['$event']]]]]}}" class="shadow data-v-57280228" bindtap="__e"></view></block><view class="shadows data-v-57280228"></view><block wx:if="{{historyRecord.length>0}}"><view class="outside data-v-57280228"><block wx:if="{{normal}}"><scroll-view class="container data-list-scroll data-v-57280228" style="{{'height:'+(scrollViewHeight)+';'}}" scroll-y="{{true}}" scroll-top="{{scrollTop}}" scroll-with-animation="{{true}}" scroll-into-view="{{bottomElement}}"><view id="scroll-view-content" class="data-v-57280228"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="historyListData data-v-57280228"><view class="historyListData_item parent-element data-v-57280228"><block wx:if="{{item.g0.length!==0}}"><view class="left distence leftPhoto data-v-57280228"><block wx:if="{{item.$orig.WObj.animaite}}"><view class="fuck data-v-57280228"><view class="photo data-v-57280228" style="{{'background-image:'+('url('+dpPhoto+')')+';'+('background-size:'+('cover')+';')+('background-repeat:'+('no-repeat')+';')+('background-position:'+('center center')+';')}}"></view><view class="allbody dealFloat li_left data-v-57280228"><view class="heartActive data-v-57280228"><view class="textStyle data-v-57280228">{{"正在思考中"+dots}}</view></view></view></view></block><block wx:else><view class="data-v-57280228"><view class="photo data-v-57280228" style="{{'background-image:'+('url('+dpPhoto+')')+';'+('background-size:'+('cover')+';')+('background-repeat:'+('no-repeat')+';')+('background-position:'+('center center')+';')}}"></view><view class="allbody dealFloat li_left data-v-57280228"><view class="heartActive doubleStatus data-v-57280228">{{'【时间】: '+item.$orig.WObj["时间"]+''}}</view><view class="_br data-v-57280228"></view><view class="heartActive doubleStatus data-v-57280228">{{'【地点】: '+item.$orig.WObj["地点"]+''}}</view><view class="heartActive data-v-57280228"><view class="textStyle data-v-57280228"><rich-text nodes="{{item.m0}}"></rich-text></view></view></view></view></block></view></block><block wx:else><view class="right distence rightPhoto data-v-57280228"><image class="photo data-v-57280228" src="{{userPhoto}}"></image><view class="li_right allbody dealFloat data-v-57280228"><view class="heartActive data-v-57280228">{{''+item.$orig.Message+''}}</view></view></view></block></view></view></block><view id="bottomElement" class="data-v-57280228"></view></view></scroll-view></block></view></block><block wx:if="{{false}}"><view class="formContainer data-v-57280228"><view class="itemContainer data-v-57280228"><view class="chat-window data-v-57280228"><view class="tongyi data-v-57280228" id="MyIn"></view><input class="{{['activeAnimaite','data-v-57280228',boxClass]}}" placeholder="请输入..." data-event-opts="{{[['focus',[['handleFocus',['$event']]]],['blur',[['hadnleBlur',['$event']]]],['input',[['__set_model',['','inputVal','$event',[]]]]]]}}" value="{{inputVal}}" bindfocus="__e" bindblur="__e" bindinput="__e"/><image class="{{['data-v-57280228',showSend]}}" id="Send" src="../../static/photo/Send.png" data-event-opts="{{[['tap',[['handleSendMessage',['$event']]]]]}}" bindtap="__e"></image><image class="{{['activeAnimaite','data-v-57280228',activeState,focus]}}" id="SendSound" src="../../static/photo/sound.png" data-event-opts="{{[['touchstart',[['startRecord',['$event']]]],['mousedown',[['startRecord',['$event']]]],['touchend',[['endRecord',['$event']]]],['mouseup',[['endRecord',['$event']]]]]}}" bindtouchstart="__e" bindmousedown="__e" bindtouchend="__e" bindmouseup="__e"></image></view></view></view></block><block wx:if="{{UI_show}}"><view class="UI data-v-57280228"><view class="UI_wrapper data-v-57280228"><view class="UI_head data-v-57280228"><view class="UI_head_title data-v-57280228">{{UITitle}}</view><view class="UI_head_timer data-v-57280228">{{UITimer}}</view></view><view class="UI_states data-v-57280228"><view class="UI_states_photo data-v-57280228"><view class="UI_states_photo_wrapper data-v-57280228"><view style="{{'width:'+('80%')+';'+('height:'+('80%')+';')+('border-radius:'+('50%')+';')+('background:'+('url('+userPhoto+')')+';')+('background-size:'+('100% 100%')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')+('position:'+('absolute')+';')+('top:'+('10%')+';')+('left:'+('10%')+';')}}" class="data-v-57280228"></view></view></view><view class="icon_log data-v-57280228"></view><view class="UI_states_value data-v-57280228"><block wx:for="{{worldParameter}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="processLine data-v-57280228"><view class="data-v-57280228"><block wx:if="{{index==0}}"><view class="processLine_item jiegan data-v-57280228"><view class="no1 ksp data-v-57280228" style="{{'width:'+(UIStatus_jiegan+'%')+';'+('background-size:'+(UIStatus_jiegan<=93?'auto 100%':'contain')+';')}}"></view><view class="sameFonts data-v-57280228" style="{{'z-index:'+(10)+';'}}">{{''+item+":"+UIStatus_jiegan+' / 100'}}</view></view></block><block wx:if="{{index==1}}"><view class="processLine_item kongjugan data-v-57280228"><view class="no1 ogc data-v-57280228" style="{{'width:'+(UIStatus_kongjugan+'%')+';'+('background-size:'+(UIStatus_kongjugan<=93?'auto 100%':'contain')+';')}}"></view><view class="sameFonts data-v-57280228" style="{{'z-index:'+(10)+';'}}">{{''+item+":"+UIStatus_kongjugan+' / 100'}}</view></view></block></view></view></block></view></view><view class="UI_body data-v-57280228"><view class="UI_body_right data-v-57280228"><block wx:if="{{glod_user}}"><view class="UI_body_right_content data-v-57280228"><view class="UI_body_right_content_text data-v-57280228"><view style="{{'line-height:'+('100rpx')+';'+('margin:'+('10rpx 40rpx 0 20rpx')+';')+('height:'+('100rpx')+';')+('overflow-y:'+('scroll')+';')+('text-indent:'+(0)+';')}}" class="data-v-57280228">{{inputVal_UI+''}}</view></view><view class="UI_body_right_content_photo data-v-57280228"><view style="{{'width:'+('80%')+';'+('height:'+('80%')+';')+('margin:'+('10% 0 0 10%')+';')+('border-radius:'+('50%')+';')+('background:'+('url('+userPhoto+')')+';')+('background-size:'+('cover')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')}}" class="data-v-57280228"></view></view></view></block><view class="UI_body_left data-v-57280228"><block wx:if="{{glod_dp}}"><view class="UI_body_left_content data-v-57280228"><view class="UI_body_left_content_photo data-v-57280228"><view style="{{'width:'+('80%')+';'+('height:'+('80%')+';')+('border-radius:'+('50%')+';')+('background:'+('url('+dpPhoto+')')+';')+('background-size:'+('cover')+';')+('background-position:'+('center')+';')+('background-repeat:'+('no-repeat')+';')+('position:'+('absolute')+';')+('top:'+('11%')+';')+('left:'+('9.5%')+';')}}" class="data-v-57280228"></view></view><view class="UI_body_left_content_text data-v-57280228"><view style="{{'line-height:'+('100rpx')+';'+('margin:'+('10rpx 10rpx 0 50rpx')+';')+('height:'+('100rpx')+';')+('overflow-y:'+('scroll')+';')+('text-indent:'+(0)+';')}}" class="data-v-57280228">{{''+yyds_dp+''}}</view></view></view></block></view><view class="UI_body_left_Pangbai_content data-v-57280228"><view class="pangbai_title data-v-57280228"><text class="data-v-57280228">旁白</text><image class="tre data-v-57280228" src="../../static/UI/继续.png" mode="scaleToFill" data-event-opts="{{[['tap',[['nextTips',['$event']]]]]}}" bindtap="__e"></image></view><scroll-view class="pangbai_content data-v-57280228" style="{{'height:'+('200rpx')+';'}}" scroll-y="{{true}}" scroll-top="{{scrollTop_pangbai}}" scroll-with-animation="{{true}}" scroll-into-view="{{bottomElement_pangbai}}"><view id="scrollView" class="data-v-57280228"><view class="npc data-v-57280228">{{''+yyds_pangbai+''}}</view><view id="bottomElement_pangbai" class="data-v-57280228"></view></view></scroll-view></view></view></view><block wx:if="{{foot}}"><view class="UI_footer data-v-57280228"><view class="UI_footer_tool data-v-57280228"><view class="UI_footer_tool_wrapper data-v-57280228"><view data-event-opts="{{[['tap',[['handlSay',['$event']]]]]}}" class="{{['say','data-v-57280228',!userDoing?sayDoingClass:null]}}" bindtap="__e"></view><view data-event-opts="{{[['tap',[['handlDoing',['$event']]]]]}}" class="{{['doing','data-v-57280228',userDoing?sayDoingClass2:null]}}" bindtap="__e"></view><view class="input data-v-57280228"><input data-event-opts="{{[['input',[['__set_model',['','inputVal','$event',[]]]]]]}}" class="UI_input data-v-57280228" value="{{inputVal}}" bindinput="__e"/><view id="Send2" data-event-opts="{{[['tap',[['handleSendMessage2',['$event']]]]]}}" bindtap="__e" class="data-v-57280228"></view></view></view></view></view></block></view></view></block></view>
\ No newline at end of file
unpackage/dist/dev/mp-weixin/pages/index/index.wxss
View file @
40c476f5
...
...
@@ -246,6 +246,15 @@
z-index: 999;
/* 半透明遮罩层 */
}
.full-screen-mask4.data-v-57280228{
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
/* 半透明遮罩层 */
}
.current.data-v-57280228 {
position: fixed;
top: 0;
...
...
@@ -399,7 +408,7 @@
position: fixed;
right: 5px;
bottom: 100px;
z-index:
99
;
z-index:
2
;
}
.ClearHistoryRecord.data-v-57280228{
/***
...
...
@@ -470,6 +479,11 @@
background-position: center;
background-repeat: no-repeat;
}
.shareWord.data-v-57280228{
width: 100%;
height: 100%;
opacity: 0;
}
.plg5.data-v-57280228{
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAABNCAYAAADAUrhlAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAylpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDkuMS1jMDAxIDc5LjE0NjI4OTk3NzcsIDIwMjMvMDYvMjUtMjM6NTc6MTQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyNS4xIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjc5REYxNzcxMTlDQTExRUY5NERFOTUxQjcyRjZCOTJBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjc5REYxNzcyMTlDQTExRUY5NERFOTUxQjcyRjZCOTJBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzlERjE3NkYxOUNBMTFFRjk0REU5NTFCNzJGNkI5MkEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzlERjE3NzAxOUNBMTFFRjk0REU5NTFCNzJGNkI5MkEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz72a28WAAAGBklEQVR4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);
background-size: contain;
...
...
@@ -556,7 +570,7 @@
}
.boardBG.data-v-57280228{
width: 80vw;
height: 8
5
vh;
height: 8
0
vh;
border-radius: 10rpx;
position: fixed;
top:50%;
...
...
@@ -567,14 +581,15 @@
}
.contentHeader.data-v-57280228{
text-align: center;
font-size:
6
0rpx;
font-size:
4
0rpx;
font-family: "隶书";
padding: 20rpx;
}
.contentHeader2.data-v-57280228{
text-align: center;
font-size:
6
0rpx;
font-size:
5
0rpx;
font-family: "隶书";
padding: 30rpx;
}
.wiik.data-v-57280228{
padding: 10rpx 30rpx;
...
...
@@ -606,11 +621,10 @@
background-position: center;
background-repeat: no-repeat;
width: 80vw;
height: 8
5
vh;
height: 8
0
vh;
z-index:-2;
}
.HHH.data-v-57280228{
padding-top: 30rpx;
position: relative;
}
.getResult.data-v-57280228{
...
...
@@ -684,6 +698,10 @@
.jk2.data-v-57280228{
height: 100%;
position: relative;
background-image: url(https://admin.mindepoch.com:8089/worlds/结局框.png);
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
.fuck.data-v-57280228{
display:flex;
...
...
@@ -1133,4 +1151,26 @@ to {
bottom: 30rpx;
right: 10rpx;
}
.reload_connect.data-v-57280228{
position: fixed;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
width:400rpx;
background-color: aliceblue;
font-size: 34rpx;
border-radius: 6rpx;
padding: 20rpx;
background-color: rgb(222, 223, 227);
z-index: 9999;
}
.connect_start.data-v-57280228{
margin-top: 40rpx;
width: 140rpx;
height: 60rpx;
line-height: 60rpx;
background-color: #8fb4be;
color: #fff;
}
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