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
d847ec3d
Commit
d847ec3d
authored
Aug 15, 2024
by
Ken Nakahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新代码
parent
a01172b9
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
318 additions
and
284 deletions
+318
-284
pages/index/index.vue
+70
-56
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/index/index.js
+232
-212
No files found.
pages/index/index.vue
View file @
d847ec3d
...
...
@@ -512,6 +512,7 @@ export default {
fontSize
:
0
,
boxHeight
:
210
,
debouncedNextTips
:
null
,
processingDialogue
:
false
,
quotedData
:[]
}
},
...
...
@@ -684,27 +685,31 @@ export default {
this
.
loadingBG
=
true
},
nextTips
(){
//结算当前语音的递归 进行下一次语音
//
结算当前语音的递归 进行下一次语音
// this.EPlayer.onEnded()
this
.
jumping
=
true
clearInterval
(
this
.
Strem
)
this
.
EPlayer
.
stop
()
if
(
!
this
.
kill
){
console
.
log
(
'NextStr'
,
this
.
str
)
this
.
yyds_pangbai
+=
this
.
str
}
this
.
jumping
=
false
this
.
EPlayer
.
onended
()
},
updateDialogueDisplay
(
dialogue
)
{
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'#pangbaiContainer'
).
boundingClientRect
((
res
)
=>
{
if
(
res
)
{
res
.
innerHTML
+=
dialogue
;
this
.
$nextTick
(()
=>
{
this
.
jumping
=
true
clearInterval
(
this
.
Strem
)
if
(
this
.
EPlayer
)
{
this
.
EPlayer
.
stop
()
}
if
(
this
.
glod_dp
&&
this
.
str
!=
""
)
{
console
.
log
(
'Text Appended'
)
this
.
realVoice
(
this
.
str
)
}
else
{
this
.
yyds_pangbai
+=
this
.
str
}
}).
exec
()
this
.
str
=
''
this
.
jumping
=
false
this
.
EPlayer
.
onended
()
console
.
log
(
'------------------'
)
});
},
realVoice
(
text
){
this
.
yyds_dp
=
text
this
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
},
debounce
(
fn
,
interval
)
{
console
.
log
(
'Test A'
);
var
timer
;
var
gapTime
=
interval
;
//间隔时间,如果interval不传,则默认1000ms
return
function
()
{
...
...
@@ -712,13 +717,13 @@ export default {
var
context
=
this
;
var
args
=
arguments
;
//保存此处的arguments,因为setTimeout是全局的,arguments不是防抖函数需要的。
timer
=
setTimeout
(
function
()
{
fn
.
call
(
context
,
args
);
fn
.
apply
(
context
,
args
);
},
gapTime
);
};
},
created
()
{
// Bind the debounced version of nextTips
this
.
debouncedNextTips
=
this
.
debounce
(
this
.
nextTips
,
30
0
);
this
.
debouncedNextTips
=
this
.
debounce
(
this
.
nextTips
,
75
0
);
},
handleCloseDialog
(){
this
.
show
=
false
...
...
@@ -1736,7 +1741,7 @@ export default {
if
(
Cobj2
.
content
!=
""
)
{
setTimeout
(()
=>
{
this
.
FetchAbuffer
(
Cobj2
,
voicer
,
Sarry
)
},
10
00
)
},
5
00
)
}
}).
catch
(
err
=>
{
console
.
log
(
1223
,
err
)
...
...
@@ -1765,7 +1770,7 @@ export default {
if
(
Cobj
.
content
!=
""
)
{
setTimeout
(()
=>
{
this
.
FetchAbuffer_real
(
Cobj
,
voicer
,
Sarry
)
},
10
00
)
},
5
00
)
}
})
},
...
...
@@ -1780,40 +1785,42 @@ export default {
// const voicer = arrObj[0].quoted ? this.currentPageData.voiceGroups[1] : this.currentPageData.voiceGroups[0];
let
arrObj
=
data
;
console
.
log
(
'arrObj_execFile'
,
arrObj
)
const
content
=
arrObj
[
0
].
text
;
const
voicer
=
arrObj
[
0
].
voicer
;
this
.
GoSay
(
content
,
voicer
,(
text
,
falg
)
=>
{
if
(
arrObj
[
0
].
quoted
){
if
(
text
!==
""
&&!
falg
){
this
.
glod_dp
=
true
// this.glod_user = false
this
.
yyds_dp
=
text
this
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
}
if
(
falg
)
{
console
.
log
(
'GoSound讲话完毕!'
)
arrObj
.
shift
()
console
.
log
(
'arrObj'
,
arrObj
)
if
(
arrObj
.
length
!==
0
){
this
.
execFile
(
arrObj
)
}
}
}
else
{
if
(
text
!==
""
&&!
falg
){
this
.
kill
=
false
this
.
delayText
(
text
)
}
if
(
falg
)
{
console
.
log
(
'GoSay讲话完毕!'
)
this
.
kill
=
true
arrObj
.
shift
()
console
.
log
(
'arrObj'
,
arrObj
)
if
(
arrObj
.
length
!==
0
){
this
.
execFile
(
arrObj
)
}
}
}
if
(
!
arrObj
||
arrObj
.
length
==
0
)
{
return
}
if
(
arrObj
[
0
].
quoted
){
if
(
text
!==
""
&&!
falg
){
console
.
log
(
'Quote Added'
)
this
.
glod_dp
=
true
// this.glod_user = false
this
.
yyds_dp
=
text
this
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
}
if
(
falg
)
{
console
.
log
(
'GoSound讲话完毕!'
)
arrObj
.
shift
()
console
.
log
(
'arrObj'
,
arrObj
)
if
(
arrObj
.
length
!==
0
){
this
.
execFile
(
arrObj
)
}
}
}
else
{
if
(
text
!==
""
&&
!
falg
)
{
this
.
kill
=
false
this
.
delayText
(
text
)
}
if
(
falg
)
{
console
.
log
(
'GoSay讲话完毕!'
)
this
.
kill
=
true
arrObj
.
shift
()
console
.
log
(
'arrObj'
,
arrObj
)
if
(
arrObj
.
length
!==
0
)
{
this
.
execFile
(
arrObj
)
}
}
}
})
// if(this.soundVoice[voicer]){
...
...
@@ -1873,7 +1880,7 @@ export default {
if
(
count
.
length
==
0
){
clearInterval
(
this
.
Strem
)
}
},
10
0
);
},
5
0
);
},
createSSML
(
text
,
voiceName
)
{
...
...
@@ -1889,11 +1896,13 @@ export default {
// GoSound 真人音线
GoSound
(
content
,
voicer
,
CB
)
{
// 要读的文字 声线 回调
console
.
log
(
'First'
)
const
that
=
this
let
Sarry
=
[];
this
.
Cobj
=
this
.
computeLen
({
content
});
this
.
str
=
this
.
Cobj
.
Sr
this
.
glod_dp
=
true
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/VoiceMode/GetVoiceEcho'
,
method
:
'post'
,
...
...
@@ -1969,6 +1978,8 @@ export default {
that
.
jumping
=
false
Rfunc
()
}
else
{
console
.
log
(
'Checkpoint'
)
this
.
str
=
Sobj
.
S
that
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
`/tempAudio_
${
new
Date
().
getTime
()}
.mp3`
;
FileSystemManager
.
writeFile
({
filePath
:
that
.
tempFilePath2
,
...
...
@@ -1995,7 +2006,7 @@ export default {
if
(
that
.
Cobj
.
content
!=
""
)
{
setTimeout
(()
=>
{
that
.
FetchAbuffer_real
(
that
.
Cobj
,
voicer
,
Sarry
,
CB
)
},
5
000
)
},
2
000
)
}
},
fail
:(
err
)
=>
{
...
...
@@ -2051,6 +2062,7 @@ export default {
console
.
log
(
'oooGoSayooo'
)
this
.
EPlayer
.
cb
=
CB
var
Rfunc
=
()
=>
{
console
.
log
(
'Sarry'
,
Sarry
)
if
(
this
.
jumping
){
return
}
...
...
@@ -2088,6 +2100,8 @@ export default {
this
.
jumping
=
false
Rfunc
()
}
else
{
console
.
log
(
'Checkpoint'
)
this
.
str
=
Sobj
.
S
this
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
`/tempAudio_
${
new
Date
().
getTime
()}
.mp3`
;
// const mark = that.Cobj2.Sr
FileSystemManager
.
writeFile
({
...
...
@@ -2113,7 +2127,7 @@ export default {
if
(
this
.
Cobj2
.
content
!=
""
)
{
setTimeout
(()
=>
{
this
.
FetchAbuffer
(
this
.
Cobj2
,
voicer
,
Sarry
,
CB
)
},
5
000
)
},
2
000
)
}
},
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
View file @
d847ec3d
{"version":3,"sources":["uni-app:///main.js",null,"webpack:////Users/kenji/Desktop/Intern/jueqing/App.vue?ab1f","uni-app:///App.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/App.vue?4931","webpack:////Users/kenji/Desktop/Intern/jueqing/App.vue?da82"],"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","onLaunch","console","onShow","onHide"],"mappings":";;;;;;;;;;;;;;AAAA;AAIA;AACA;AAAuB;AAAA;AAJvB;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAK1DC,YAAG,CAACC,MAAM,CAACC,aAAa,GAAG,KAAK;AAChCF,YAAG,CAACG,SAAS,CAACC,WAAW,GAAG;EAC1BC,UAAU,EAAE,KAAK;EAAE;EACnBC,aAAa,EAAC,EAAE;EAAE;EAClBC,cAAc,EAAC,EAAE;EAAE;EACnBC,KAAK,EAAC,CAAC;EAAE;EACTC,SAAS,EAAC,EAAE;EACZC,MAAM,EAAC,EAAE;EACTC,MAAM,EAAC,CAAC;EACRC,MAAM,EAAC,CAAC;EACRC,QAAQ,EAAC;AACX,CAAC;AACDC,YAAG,CAACC,MAAM,GAAG,KAAK;AAElB,IAAMC,GAAG,GAAG,IAAIhB,YAAG,mBACZc,YAAG,EACR;AACF,UAAAE,GAAG,EAACC,MAAM,EAAE,C;;;;;;;;;;;;;ACxBZ;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAmyB,CAAgB,iyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;eCCvzB;EACAC;IACAC;IACAA;EACA;EACAC;IACAD;EACA;EACAE;IACAF;EACA;AACA;AAAA,2B;;;;;;;;;;;;ACZA;AAAA;AAAA;AAAA;AAA0+C,CAAgB,g6CAAG,EAAC,C;;;;;;;;;;;ACA9/C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\n\nimport Vue from 'vue'\nimport App from './App'\n\nVue.config.productionTip = false\nVue.prototype.$globalData = {\n showEnding: false, //是否显示聊天结局\n EndingContent:[], //保存了聊天结束后的内容\n base64ImageStr:'', //存储的base64图片\n wxUid:0, //登陆成功后的用户id 用于聊天使用\n userPhoto:'',\n wxCode:'',\n monney:0,\n Monney:0,\n userTool:[]\n}\nApp.mpType = 'app'\n\nconst app = new Vue({\n ...App\n})\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 \"!../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\n\texport default {\n\t\tonLaunch: function() {\n\t\t\tconsole.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')\n\t\t\tconsole.log('App Launch')\n\t\t},\n\t\tonShow: function() {\n\t\t\tconsole.log('App Show')\n\t\t},\n\t\tonHide: function() {\n\t\t\tconsole.log('App Hide')\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\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}\n</style>\n","import mod from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/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 // 1723191564238\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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:////Users/kenji/Desktop/Intern/jueqing/App.vue?ab1f","uni-app:///App.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/App.vue?4931","webpack:////Users/kenji/Desktop/Intern/jueqing/App.vue?da82"],"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","onLaunch","console","onShow","onHide"],"mappings":";;;;;;;;;;;;;;AAAA;AAIA;AACA;AAAuB;AAAA;AAJvB;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAK1DC,YAAG,CAACC,MAAM,CAACC,aAAa,GAAG,KAAK;AAChCF,YAAG,CAACG,SAAS,CAACC,WAAW,GAAG;EAC1BC,UAAU,EAAE,KAAK;EAAE;EACnBC,aAAa,EAAC,EAAE;EAAE;EAClBC,cAAc,EAAC,EAAE;EAAE;EACnBC,KAAK,EAAC,CAAC;EAAE;EACTC,SAAS,EAAC,EAAE;EACZC,MAAM,EAAC,EAAE;EACTC,MAAM,EAAC,CAAC;EACRC,MAAM,EAAC,CAAC;EACRC,QAAQ,EAAC;AACX,CAAC;AACDC,YAAG,CAACC,MAAM,GAAG,KAAK;AAElB,IAAMC,GAAG,GAAG,IAAIhB,YAAG,mBACZc,YAAG,EACR;AACF,UAAAE,GAAG,EAACC,MAAM,EAAE,C;;;;;;;;;;;;;ACxBZ;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAmyB,CAAgB,iyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;eCCvzB;EACAC;IACAC;IACAA;EACA;EACAC;IACAD;EACA;EACAE;IACAF;EACA;AACA;AAAA,2B;;;;;;;;;;;;ACZA;AAAA;AAAA;AAAA;AAA0+C,CAAgB,g6CAAG,EAAC,C;;;;;;;;;;;ACA9/C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\n\nimport Vue from 'vue'\nimport App from './App'\n\nVue.config.productionTip = false\nVue.prototype.$globalData = {\n showEnding: false, //是否显示聊天结局\n EndingContent:[], //保存了聊天结束后的内容\n base64ImageStr:'', //存储的base64图片\n wxUid:0, //登陆成功后的用户id 用于聊天使用\n userPhoto:'',\n wxCode:'',\n monney:0,\n Monney:0,\n userTool:[]\n}\nApp.mpType = 'app'\n\nconst app = new Vue({\n ...App\n})\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 \"!../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\n\texport default {\n\t\tonLaunch: function() {\n\t\t\tconsole.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')\n\t\t\tconsole.log('App Launch')\n\t\t},\n\t\tonShow: function() {\n\t\t\tconsole.log('App Show')\n\t\t},\n\t\tonHide: function() {\n\t\t\tconsole.log('App Hide')\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\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}\n</style>\n","import mod from \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX.app/Contents/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 // 1723621061434\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 @
d847ec3d
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?7874","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?6cdd","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?8827","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?e529","uni-app:///pages/currentHome/index.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?c372","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?f42b"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","imgList","methods","swiperChange"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACgN;AAChN,gBAAgB,iNAAU;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;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCkBv1B;EACAC;IACA;MACAC,UACA,sCACA,yCACA;MACA;MAAA;IAEA;EACA;;EACAC;IACAC;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;ACpCA;AAAA;AAAA;AAAA;AAAwsC,CAAgB,wnCAAG,EAAC,C;;;;;;;;;;;ACA5tC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/currentHome/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"container\">\n <swiper \n class=\"swiper\" \n indicator-dots=\"false\" \n autoplay=\"true\" \n interval=\"3000\" \n duration=\"1000\" \n circular=\"true\"\n bindchange=\"swiperChange\">\n <swiper-item class=\"swiper-item\" v-for=\"(item, index) in imgList\" :key=\"index\">\n <image :src=\"item\" class=\"slide-image\" />\n </swiper-item>\n </swiper>\n </view>\n </template>\n \n <script>\n export default {\n data() {\n return {\n imgList: [\n '../../../static/photo/makeWord.png',\n '../../../static/photo/fightingAll.png',\n '../../../static/photo/forwardHouse.png' \n // 更多图片路径\n ],\n };\n },\n methods: {\n swiperChange(e) {\n const currentIndex = e.detail.current; // 获取当前swiper的索引\n // 根据currentIndex动态调整当前、前一张、后一张图片的样式以实现3D效果\n // 由于直接操作样式较为复杂,建议根据currentIndex修改数据驱动样式的变化\n }\n }\n };\n </script>\n\n<style scoped>\n.container {\n width: 100%;\n overflow: hidden;\n}\n.swiper {\n height: 200px;\n width: 100%;\n}\n.swiper-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n}\n.slide-image {\n width: 80%;\n height: 100%;\n transition: transform 1s;\n transform: scale(0.8); /* 默认状态为稍微缩小,聚焦时放大 */\n}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723191560603\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?7874","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?6cdd","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?8827","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?e529","uni-app:///pages/currentHome/index.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?c372","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/currentHome/index.vue?f42b"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","imgList","methods","swiperChange"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACgN;AAChN,gBAAgB,iNAAU;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;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCkBv1B;EACAC;IACA;MACAC,UACA,sCACA,yCACA;MACA;MAAA;IAEA;EACA;;EACAC;IACAC;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;ACpCA;AAAA;AAAA;AAAA;AAAwsC,CAAgB,wnCAAG,EAAC,C;;;;;;;;;;;ACA5tC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/currentHome/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"container\">\n <swiper \n class=\"swiper\" \n indicator-dots=\"false\" \n autoplay=\"true\" \n interval=\"3000\" \n duration=\"1000\" \n circular=\"true\"\n bindchange=\"swiperChange\">\n <swiper-item class=\"swiper-item\" v-for=\"(item, index) in imgList\" :key=\"index\">\n <image :src=\"item\" class=\"slide-image\" />\n </swiper-item>\n </swiper>\n </view>\n </template>\n \n <script>\n export default {\n data() {\n return {\n imgList: [\n '../../../static/photo/makeWord.png',\n '../../../static/photo/fightingAll.png',\n '../../../static/photo/forwardHouse.png' \n // 更多图片路径\n ],\n };\n },\n methods: {\n swiperChange(e) {\n const currentIndex = e.detail.current; // 获取当前swiper的索引\n // 根据currentIndex动态调整当前、前一张、后一张图片的样式以实现3D效果\n // 由于直接操作样式较为复杂,建议根据currentIndex修改数据驱动样式的变化\n }\n }\n };\n </script>\n\n<style scoped>\n.container {\n width: 100%;\n overflow: hidden;\n}\n.swiper {\n height: 200px;\n width: 100%;\n}\n.swiper-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n}\n.slide-image {\n width: 80%;\n height: 100%;\n transition: transform 1s;\n transform: scale(0.8); /* 默认状态为稍微缩小,聚焦时放大 */\n}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723621057826\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 @
d847ec3d
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?573e","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?e257","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?6e6b","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?f0a7","uni-app:///pages/homeCards/index.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?70b5","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?76a7"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","err","disabledSubmit","id","showUserInfo","userName","code","clickNoArgee","clickArgee","isBindPhone","needDialog","nickName","avatarUrl","OpenId","i","photo","list","options","effect","loop","slideCustomStyle","display","alignItems","justifyContent","borderRadius","mounted","success","that","console","uni","url","method","header","fail","onload","methods","init","worldName","preImage","nextImage","handleSubmit","title","icon","filePath","name","formData","username","content","showCancel","cancelText","cancelColor","confirmText","confirmColor","onChooseAvatar","NavTo","onSlideChange","getAuth","withCredentials","lang","desc","handleUserDestory"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACgN;AAChN,gBAAgB,iNAAU;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,KAAK;AACL;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;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCoDv1B;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACA;MACAC;MACAC;MACAC;MACAC,QACA,oDACA,oDACA,mDACA;MACAC;QACA;QACA;QACA;MAAA,CACA;MACAC;QACAC;QACAC;MACA;MACAC;QACAC;QACAC;QACAC;QACAC;MACA;IACA;EACA;EACAC;IACA;IACA;IACA;IACA9B;MACA+B;QACA;UACA;UACAC;UACAC;UACA;UACA;UACA;UACA;UACA;UACAC;YACAC;YACAC;YACAC;cACA;YACA;YACAhC;cAAAM;YAAA;YACAoB;cACAE;cACA;cACA;cACA;cACA;cACAD;cACAA;cAEA;gBACAE;gBACAA;gBACAA;gBACAF;cACA;gBACA;kBACA;kBACAA;gBACA;kBACAA;gBACA;cACA;YACA;YACAM;cACAL;cACA;cACA;cACA;cACA;YACA;UACA;QACA;UACAA;QACA;MACA;IACA;EAEA;EACAM;EACAC;IACAC;MAAA;MACAP;QACAC;QACAE;UACA;UACA;QACA;QACAD;QACA/B;UACAqC;QACA;MACA;QACAT;QACA;QACA;QACA;QACA;QACA;UACA;YACA;YACA;UACA;QACA;MACA;QACAA;QACA;QACA;QACA;QACA;MACA;IACA;IACAU;MACA;MACA;IACA;IACAC;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;MACA;QACAX;UACAY;UACAC;QACA;QACA;MACA;MACA;MACA;QACAb;UACAC;UACAJ;YACA;cACA;cACA;cACA/B;gBACA+B;kBACA;oBACA;kBACA;kBACAG;oBACAC;oBACAC;oBACAY;oBACAC;oBACAC;sBACAvC;sBACAwC;oBACA;oBACApB;sBACAE;sBACA;sBACA;sBACA;wBACAC;0BACAY;0BACAC;wBACA;wBACAb;wBACAA;wBACAA;wBACAA;wBACAF;wBACAA;sBACA;wBACA;wBACAE;0BACAY;0BAAA;0BACAM;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACA1B;4BACA;8BACAE;4BACA;8BACAA;4BACA;0BACA;0BACAK;4BACAL;0BACA;wBACA;wBACAD;sBACA;oBACA;oBACAM;sBACAL;sBACAC;wBACAY;wBAAA;wBACAM;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACA1B;0BACA;4BACAE;0BACA;4BACAA;0BACA;wBACA;wBACAK;0BACAL;wBACA;sBACA;oBAEA;kBACA;gBACA;gBACAK;kBACAL;kBACAC;oBACAY;oBACAC;kBACA;gBACA;cACA;YACA;UACA;UACAT;YACAL;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;UACA;QACA;MACA;QACA;QACAjC;UACA+B;YACA;cACA;YACA;YACAG;cACAC;cACAC;cACAY;cACAC;cACAC;gBACAvC;gBACAwC;cACA;cACApB;gBACAG;kBACAY;kBACAC;gBACA;gBACAd;gBACAA;gBACA;gBACA;kBACAC;oBACAY;oBACAC;kBACA;kBACAb;kBACAA;kBACAA;kBACAA;kBACAF;kBACAA;gBACA;kBACA;kBACAE;oBACAY;oBAAA;oBACAM;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACA1B;sBACA;wBACAE;sBACA;wBACAA;sBACA;oBACA;oBACAK;sBACAL;oBACA;kBACA;kBACAD;gBACA;cACA;cACAM;gBACAL;gBACAC;kBACAY;kBAAA;kBACAM;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACA1B;oBACA;sBACAE;oBACA;sBACAA;oBACA;kBACA;kBACAK;oBACAL;kBACA;gBACA;cAEA;YACA;UACA;UACAK;YACAL;YACAC;cACAY;cACAC;YACA;UACA;QACA;MACA;IACA;IACAW;MACAzB;MACA;MACA;MACAA;IACA;IAEA0B;MACAzB;QACAC;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAyB;MACA3B;MACA;MACA;QACA;MACA;QACA;MACA;QACA;MACA;MACA;MACA;MACA;MACA;IACA;IAEA4B;MACA7D;QACA8D;QACAC;QACAC;QACAjC;UACAE;UACA;UACA;UACA;UACA;UACA;UACA;QACA;;QACAK;UACAL;QACA;MACA;IACA;IAEAgC;MACA/B;QACAC;QACAC;QACAC;UACA;UACA;QACA;QACAhC;UAAAG;QAAA;QACAuB;UACAE;UACAC;YACAY;YACAC;UACA;QACA;QACAT;UACAL;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AChfA;AAAA;AAAA;AAAA;AAAwsC,CAAgB,wnCAAG,EAAC,C;;;;;;;;;;;ACA5tC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/homeCards/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"wrapper\">\n <!-- 获取用户信息 -->\n <view v-if=\"showUserInfo\" class=\"ttt\">\n <button class=\"avatar-wrapper\" open-type=\"chooseAvatar\" @chooseavatar=\"onChooseAvatar\">\n <image class=\"avatar\" :src=\"avatarUrl\"></image>\n </button> \n <view class=\"tipUserHeader\">设置头像</view>\n <input class=\"weui-input\" v-model=\"userName\" placeholder=\"请输入昵称\"/>\n <button type=\"primary\" :disabled=\"disabledSubmit\" @click=\"handleSubmit\" class=\"submit\">提交</button>\n </view>\n <button @click=\"handleUserDestory\"> 用户注销 </button>\n <view class=\"shadow\"></view>\n\n <view class=\"section\" >\n <view class=\"shadowBoard\" :style=\"{backgroundImage:'url('+ photo[i] +')'}\"></view>\n <view class=\"swiper\">\n <image\n @click=\"preImage\"\n class=\"scaleToFill\"\n src=\"../../static/photo/left.png\"\n mode=\"scaleToFill\"\n />\n <image\n @click=\"nextImage\"\n class=\"scaleToFill2\"\n src=\"../../static/photo/left.png\"\n mode=\"scaleToFill\"\n />\n <z-swiper ref=\"zSwiper\" v-model=\"list\" @slideChange=\"onSlideChange\" :options=\"options\" class=\"swiper\">\n <z-swiper-item :custom-style=\"slideCustomStyle\" v-for=\"(item,index) in list\" :key=\"index\">\n <button class=\"btn\" @click=\"NavTo(item)\">\n <image class=\"image\" :src=\"'https://admin.mindepoch.com:8089/worlds/' + item.name + '.png'\" mode=\"aspectFill\"></image>\n <view class=\"CardContent\">\n <view class=\"card\">\n <view class=\"header1\">{{item.name}}</view>\n <view class=\"header2\">\n <view class=\"sdsd\">{{item.worldHeader}}</view>\n <view class=\"distence\"></view>\n <view class=\"detail\">{{item.description}}</view>\n </view>\n </view>\n </view>\n </button>\n </z-swiper-item>\n </z-swiper>\n </view>\n </view>\n </view>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n err:null,\n disabledSubmit:false,\n id:274,\n showUserInfo:false,\n userName:'卿羽',\n code:'',\n clickNoArgee:false,\n clickArgee:false,\n isBindPhone:false,\n needDialog:true,\n nickName:'',\n // avatarUrl:'/static/photo/default.jpg',\n avatarUrl:'https://admin.mindepoch.com:8089/worlds/default.jpg',\n OpenId:'',\n i:0,\n photo:[\n 'https://admin.mindepoch.com:8089/worlds/情圣日记.png',\n 'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',\n 'https://admin.mindepoch.com:8089/worlds/舌战群儒.png'\n ],\n list: [\n // {image:'https://admin.mindepoch.com:8089/worlds/情圣日记.png',title:'情圣日记',content1:'-Love&Entropy',content2:'你还...记得我吗?'},\n // {image:'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\n // {image:'https://admin.mindepoch.com:8089/worlds/舌战群儒.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\n ],\n options:{\n effect: 'cards',\n loop : true,\n },\n slideCustomStyle: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '36rpx'\n }\n }\n },\n mounted() {\n //用户验证用户是否登陆过\n // console.log(this)\n var that = this\n wx.login({\n success(res) {\n if (res.code) {\n // uni.setStorageSync('code', res.code)\n that.code = res.code\n console.log('code:',that.code)\n // uni.showModal({\n // title: 'wx.login:登录ing!',\n // content: 'that.code:'+that.code + ''\n // });\n // 将 res.code 发送至后台服务器进行处理\n uni.request({\n url: 'https://admin.mindepoch.com:8089/wechat/CheckWxUserIsRegisterAndBindPhone',\n method: 'POST',\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n data: { code: res.code },\n success: function(res) {\n console.log('res:',res)\n // uni.showModal({\n // title: 'wx.login:登录成功!'+JSON.stringify(res),\n // content: res.data.toString()\n // });\n that.isBindPhone = res.data.isBindPhone\n that.wxUid = res.data.wxUid\n \n if(res.data.message===\"微信用户已注册,模拟登录成功!\"){\n uni.setStorageSync('wxUid', res.data.wxUid); //保存用户id\n uni.setStorageSync('userName', res.data.userName)\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]) //保存cookie值\n that.init()\n }else{\n if(res.data.code===1){\n //用户已注册\n that.init()\n }else{\n that.showUserInfo = true\n }\n }\n },\n fail: function(err) {\n console.log('err:',err)\n // uni.showModal({\n // title: 'wx.login:登录失败!',\n // content: JSON.stringify(err)\n // });\n }\n })\n } else {\n console.error('登录失败!' + res.errMsg);\n }\n }\n })\n \n },\n onload() {},\n methods: {\n init(){\n uni.request({\n url: 'https://admin.mindepoch.com:8089/QueryWorldsByLikeName',\n header: {\n 'Cookie': `${uni.getStorageSync('session_token')}`,\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n method: 'post',\n data:{\n worldName: ''\n }\n }).then(result => {\n console.log('init:',result[1].data)\n // uni.showModal({\n // title: 'init:',\n // content: result[1].data.worldInfoAndAsset.toString()\n // });\n if(result[1].data.code===1){\n if(result[1].data.worldInfoAndAsset.length>0){\n this.list = result[1].data.worldInfoAndAsset\n // this.list = [result[1].data.worldInfoAndAsset[1]]\n }\n }\n }).catch(err=> {\n console.log(222,err)\n // uni.showModal({\n // title: 'init_error:',\n // content: 'error'\n // });\n });\n },\n preImage(){\n // console.log('pre')\n this.$refs.zSwiper.swiper.slidePrev();\n },\n nextImage(){\n // console.log('next')\n this.$refs.zSwiper.swiper.slideNext();\n },\n //获取到用户昵称 以及用户头像\n handleSubmit(){\n var that = this\n //1.昵称输入不可为空\n if(this.userName.trim()==\"\"){\n uni.showToast({\n title: '昵称不可为空',\n icon: 'none'\n })\n return\n }\n //2.不上传头像需要下载 上传头像不需要下载\n if(this.avatarUrl==\"https://admin.mindepoch.com:8089/worlds/default.jpg\"){\n uni.downloadFile({\n url: that.avatarUrl,\n success: downloadRes => {\n if (downloadRes.statusCode === 200) {\n // 图片下载成功后获取临时文件路径\n const tempFilePath = downloadRes.tempFilePath;\n wx.login({\n success(res) {\n if(!res.code) {\n return\n }\n uni.uploadFile({\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\n method: 'POST',\n filePath:tempFilePath,\n name: 'avatar',\n formData: {\n code: res.code,\n username: that.userName\n },\n success: uploadRes => {\n console.log('上传成功uploadRes', uploadRes);\n // console.log(JSON.parse(uploadRes.data))\n const data = JSON.parse(uploadRes.data)\n if(data.code===1){\n uni.showToast({\n title: '头像上传成功!',\n icon: 'none'\n });\n uni.setStorageSync('userName', that.userName);\n uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\n uni.setStorageSync('wxUid', data.wxUid); //保存用户id\n uni.setStorageSync('openId', data.openId); //保存用户id\n that.showUserInfo = false //隐藏用户填写的表单\n that.init()\n }else{\n //失败\n uni.showModal({\n title: '温馨提示', // 弹窗的标题\n content: '好像出了点问题呢,再试试呢!', // 弹窗的文本内容\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n that.disabledSubmit = false\n }\n },\n fail: uploadErr => {\n console.error('上传失败', uploadErr);\n uni.showModal({\n title: '失败', // 弹窗的标题\n content: '创建失败!', // 弹窗的文本内容 JSON.parse(uploadErr.errMsg)\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n \n }\n }) \n },\n fail(err){\n console.log(err)\n uni.showToast({\n title: err.toString(),\n icon: 'none'\n })\n }\n })\n }\n },\n fail: downloadErr => {\n console.error('下载图片失败', downloadErr)\n // uni.showModal({\n // title: '弹窗标题', // 弹窗的标题\n // content: JSON.stringify(downloadErr), // 弹窗的文本内容\n // showCancel: true, // 是否显示取消按钮,默认为 true\n // cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n // cancelColor: '#000000', // 取消按钮的文字颜色\n // confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n // confirmColor: '#576B95', // 确定按钮的文字颜色\n // success: function (res) {\n // if (res.confirm) {\n // console.log('用户点击确定');\n // } else if (res.cancel) {\n // console.log('用户点击取消');\n // }\n // },\n // fail: function (err) {\n // console.log('API 调用失败: ', err);\n // }\n // });\n }\n });\n }else{\n this.disabledSubmit = true\n wx.login({\n success(res) {\n if(!res.code) {\n return\n }\n uni.uploadFile({\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\n method: 'POST',\n filePath:that.avatarUrl,\n name: 'avatar',\n formData: {\n code: res.code,\n username: that.userName\n },\n success: uploadRes => {\n uni.showToast({\n title: 'AppletWeChatRegisterOrLogin',\n icon: 'none'\n })\n console.log('上传成功uploadRes', uploadRes);\n console.log(JSON.parse(uploadRes.data))\n const data = JSON.parse(uploadRes.data)\n if(data.code===1){\n uni.showToast({\n title: '成功!',\n icon: 'none'\n });\n uni.setStorageSync('userName', that.userName);\n uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\n uni.setStorageSync('wxUid', data.wxUid); //保存用户id\n uni.setStorageSync('openId', data.openId); //保存用户id\n that.showUserInfo = false //隐藏用户填写的表单\n that.init()\n }else{\n //失败\n uni.showModal({\n title: '温馨提示', // 弹窗的标题\n content: '好像出了点问题呢,再试试呢!', // 弹窗的文本内容\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n that.disabledSubmit = false\n }\n },\n fail: uploadErr => {\n console.error('上传失败', uploadErr);\n uni.showModal({\n title: '失败', // 弹窗的标题\n content: '创建失败!', // 弹窗的文本内容 JSON.parse(uploadErr.errMsg)\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n \n }\n })\n },\n fail(err){\n console.log(err)\n uni.showToast({\n title: err.toString(),\n icon: 'none'\n })\n }\n })\n }\n },\n onChooseAvatar(e) {\n console.log('e',e)\n const { avatarUrl } = e.detail \n this.avatarUrl = avatarUrl\n console.log('this.avatarUrl',this.avatarUrl)\n },\n\n NavTo(data) {\n uni.navigateTo({\n url: `/pages/index/index?params=${JSON.stringify(data)}`\n });\n\n // console.log(title)\n // if(title==='情圣日记'){\n // }else{\n // uni.showToast({\n // title: '敬请期待',\n // icon: 'none'\n // });\n // }\n },\n onSlideChange(swiper,index) {\n console.log(swiper,index)\n // const len = this.photo.length + 1\n if(this.photo.length+1==index){\n this.i = 0\n }else if(index==0){\n this.i = this.photo.length-1\n }else{\n this.i = index-1\n }\n // 你可以在这里获取当前的swiper索引\n // const currentIndex = swiper.activeIndex;\n // 执行你想要的操作,比如更新页面标题\n // uni.setNavigationBarTitle('当前页: ' + (currentIndex + 1));\n },\n\n getAuth() {\n wx.getUserProfile({\n withCredentials: true,\n lang: 'zh_CN',\n desc:'提升用户体验,减少用户操作',\n success: function (userRes) {\n console.log('userRes',userRes)\n // var userInfo = userRes.userInfo;\n // console.log(\"用户昵称为:\" + userInfo.nickName);\n // console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\n // this.nickName = userInfo.nickName\n // this.avatarUrl = userInfo.avatarUrl\n // this.$globalData.userPhoto = userInfo.avatarUrl\n },\n fail: function () {\n console.error('获取用户信息失败');\n }\n });\n },\n\n handleUserDestory() {\n uni.request({\n url: 'https://admin.mindepoch.com:8089/UnregisterUser',\n method: 'POST',\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Cookie': `${uni.getStorageSync('session_token')}`,\n },\n data: { id: uni.getStorageSync('wxUid') },\n success:function(res) {\n console.log(res)\n uni.showToast({\n title: '注销成功!',\n icon: 'none'\n });\n },\n fail:function(err) {\n console.log(err)\n }\n })\n }\n }\n}\n</script>\n\n<style scoped>\n.wrapper{\n height: 100vh;\n width: 100vw;\n}\n.image {\n\theight:100%;\n\twidth: 100%;\n}\n.section{\n \n}\n.shadowBoard{\n /* 其他样式,如背景大小、位置等 */\n width: 100vw;\n height: 100vh;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n filter: blur(5px);\n z-index: -99;\n position: fixed;\n \n}\n.swiper{\n padding-top: 320rpx;\n position:relative;\n}\n.CardContent{\n position: absolute;\n top:0;\n left: 50%;\n transform: translateX(-50%);\n height: 100%;\n width: 85%;\n color: #fff;\n}\n.card{\n position: relative;\n width: 100%;\n height: 100%;\n}\n.header1{\n font-size: 40rpx;\n margin-top: 20rpx;\n text-align: left;\n}\n.header2{\n position: absolute;\n bottom:40rpx;\n left: 0;\n font-size: 38rpx;\n}\n.sdsd{\n text-align: left;\n}\n.distence{\n margin-top: 20rpx;\n}\n.detail{\n font-size: 24rpx;\n max-height: 100rpx;\n line-height: 38rpx;\n background-color: #00000039;\n padding: 6rpx;\n border-radius: 10rpx;\n text-align: left;\n overflow-y: scroll;\n}\n.shadow{\n position: fixed;\n width: 100vw;\n height: 100vh;\n \n}\n.shadow>image{\n width: auto;\n height: 100%;\n}\n.btn{\n padding: 0 !important;\n margin: 0 !important;\n display: block;\n z-index: 99;\n border-radius: 24rpx;\n height: 700rpx;\n width:450rpx;\n border: 1px solid #0000009a;\n box-shadow: 0 0 20rpx #fff;\n}\n.userInfoPression{\n background-color: #ffffff;\n height: 350rpx;\n border-radius: 20rpx 20rpx 0 0;\n}\n.mainInfo{\n\n}\n.infoHead{\n text-align: center;\n padding: 42rpx;\n font-weight: 700;\n}\n.infoFoot{\n display:flex;\n width: 100vw;\n position: absolute;\n bottom: 50rpx;\n left: 0;\n}\n.infoFoot>Button{\n width: 200rpx;\n height: 80rpx;\n line-height: 80rpx;\n font-size: 32rpx;\n color: #fff;\n \n}\n.infoFoot>Button:nth-child(1){\n background-color: gray;\n}\n.infoFoot>Button:nth-child(2){\n background-color: #1AAD19;\n}\n.ttt{\n position: absolute;\n top:0;\n left: 0;\n z-index: 9;\n width: 100vw;\n height: 100vh;\n background-color: #ffffff;\n}\n.pisition{\n padding-top: 300rpx;\n}\n.avatar-wrapper{\n border: 1px solid rgb(192, 176, 176);\n width: 200rpx;\n height: 200rpx;\n margin-top: 25rpx;\n}\n.avatar{\n width: 150rpx;\n height: 150rpx;\n margin-top: 25rpx;\n}\n.weui-input{\n border: 1px solid rgb(123, 108, 108);\n margin-top: 300rpx;\n width: 50vw;\n height: 70rpx;\n border-radius: 12rpx;\n margin: 200rpx auto;\n}\n.tipUserHeader{\n text-align: center;\n margin-top: 20rpx;\n color: rgb(123, 108, 108);\n}\n.submit{\n width: 250rpx;\n}\n.scaleToFill{\n position:absolute;\n top:62%;\n left:-10rpx;\n width:100rpx;\n height:100rpx;\n z-index:99;\n}\n.scaleToFill2{\n transform:rotate(180deg);\n position:absolute;\n top:62%;\n right:-10rpx;\n width:100rpx;\n height:100rpx;\n z-index:99;\n}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723191560620\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?573e","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?e257","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?6e6b","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?f0a7","uni-app:///pages/homeCards/index.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?70b5","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/homeCards/index.vue?76a7"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","err","disabledSubmit","id","showUserInfo","userName","code","clickNoArgee","clickArgee","isBindPhone","needDialog","nickName","avatarUrl","OpenId","i","photo","list","options","effect","loop","slideCustomStyle","display","alignItems","justifyContent","borderRadius","mounted","success","that","console","uni","url","method","header","fail","onload","methods","init","worldName","preImage","nextImage","handleSubmit","title","icon","filePath","name","formData","username","content","showCancel","cancelText","cancelColor","confirmText","confirmColor","onChooseAvatar","NavTo","onSlideChange","getAuth","withCredentials","lang","desc","handleUserDestory"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACgN;AAChN,gBAAgB,iNAAU;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,KAAK;AACL;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;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCoDv1B;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACA;MACAC;MACAC;MACAC;MACAC,QACA,oDACA,oDACA,mDACA;MACAC;QACA;QACA;QACA;MAAA,CACA;MACAC;QACAC;QACAC;MACA;MACAC;QACAC;QACAC;QACAC;QACAC;MACA;IACA;EACA;EACAC;IACA;IACA;IACA;IACA9B;MACA+B;QACA;UACA;UACAC;UACAC;UACA;UACA;UACA;UACA;UACA;UACAC;YACAC;YACAC;YACAC;cACA;YACA;YACAhC;cAAAM;YAAA;YACAoB;cACAE;cACA;cACA;cACA;cACA;cACAD;cACAA;cAEA;gBACAE;gBACAA;gBACAA;gBACAF;cACA;gBACA;kBACA;kBACAA;gBACA;kBACAA;gBACA;cACA;YACA;YACAM;cACAL;cACA;cACA;cACA;cACA;YACA;UACA;QACA;UACAA;QACA;MACA;IACA;EAEA;EACAM;EACAC;IACAC;MAAA;MACAP;QACAC;QACAE;UACA;UACA;QACA;QACAD;QACA/B;UACAqC;QACA;MACA;QACAT;QACA;QACA;QACA;QACA;QACA;UACA;YACA;YACA;UACA;QACA;MACA;QACAA;QACA;QACA;QACA;QACA;MACA;IACA;IACAU;MACA;MACA;IACA;IACAC;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;MACA;QACAX;UACAY;UACAC;QACA;QACA;MACA;MACA;MACA;QACAb;UACAC;UACAJ;YACA;cACA;cACA;cACA/B;gBACA+B;kBACA;oBACA;kBACA;kBACAG;oBACAC;oBACAC;oBACAY;oBACAC;oBACAC;sBACAvC;sBACAwC;oBACA;oBACApB;sBACAE;sBACA;sBACA;sBACA;wBACAC;0BACAY;0BACAC;wBACA;wBACAb;wBACAA;wBACAA;wBACAA;wBACAF;wBACAA;sBACA;wBACA;wBACAE;0BACAY;0BAAA;0BACAM;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACAC;0BAAA;0BACA1B;4BACA;8BACAE;4BACA;8BACAA;4BACA;0BACA;0BACAK;4BACAL;0BACA;wBACA;wBACAD;sBACA;oBACA;oBACAM;sBACAL;sBACAC;wBACAY;wBAAA;wBACAM;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACAC;wBAAA;wBACA1B;0BACA;4BACAE;0BACA;4BACAA;0BACA;wBACA;wBACAK;0BACAL;wBACA;sBACA;oBAEA;kBACA;gBACA;gBACAK;kBACAL;kBACAC;oBACAY;oBACAC;kBACA;gBACA;cACA;YACA;UACA;UACAT;YACAL;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;UACA;QACA;MACA;QACA;QACAjC;UACA+B;YACA;cACA;YACA;YACAG;cACAC;cACAC;cACAY;cACAC;cACAC;gBACAvC;gBACAwC;cACA;cACApB;gBACAG;kBACAY;kBACAC;gBACA;gBACAd;gBACAA;gBACA;gBACA;kBACAC;oBACAY;oBACAC;kBACA;kBACAb;kBACAA;kBACAA;kBACAA;kBACAF;kBACAA;gBACA;kBACA;kBACAE;oBACAY;oBAAA;oBACAM;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACAC;oBAAA;oBACA1B;sBACA;wBACAE;sBACA;wBACAA;sBACA;oBACA;oBACAK;sBACAL;oBACA;kBACA;kBACAD;gBACA;cACA;cACAM;gBACAL;gBACAC;kBACAY;kBAAA;kBACAM;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACA1B;oBACA;sBACAE;oBACA;sBACAA;oBACA;kBACA;kBACAK;oBACAL;kBACA;gBACA;cAEA;YACA;UACA;UACAK;YACAL;YACAC;cACAY;cACAC;YACA;UACA;QACA;MACA;IACA;IACAW;MACAzB;MACA;MACA;MACAA;IACA;IAEA0B;MACAzB;QACAC;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAyB;MACA3B;MACA;MACA;QACA;MACA;QACA;MACA;QACA;MACA;MACA;MACA;MACA;MACA;IACA;IAEA4B;MACA7D;QACA8D;QACAC;QACAC;QACAjC;UACAE;UACA;UACA;UACA;UACA;UACA;UACA;QACA;;QACAK;UACAL;QACA;MACA;IACA;IAEAgC;MACA/B;QACAC;QACAC;QACAC;UACA;UACA;QACA;QACAhC;UAAAG;QAAA;QACAuB;UACAE;UACAC;YACAY;YACAC;UACA;QACA;QACAT;UACAL;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AChfA;AAAA;AAAA;AAAA;AAAwsC,CAAgB,wnCAAG,EAAC,C;;;;;;;;;;;ACA5tC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/homeCards/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"wrapper\">\n <!-- 获取用户信息 -->\n <view v-if=\"showUserInfo\" class=\"ttt\">\n <button class=\"avatar-wrapper\" open-type=\"chooseAvatar\" @chooseavatar=\"onChooseAvatar\">\n <image class=\"avatar\" :src=\"avatarUrl\"></image>\n </button> \n <view class=\"tipUserHeader\">设置头像</view>\n <input class=\"weui-input\" v-model=\"userName\" placeholder=\"请输入昵称\"/>\n <button type=\"primary\" :disabled=\"disabledSubmit\" @click=\"handleSubmit\" class=\"submit\">提交</button>\n </view>\n <button @click=\"handleUserDestory\"> 用户注销 </button>\n <view class=\"shadow\"></view>\n\n <view class=\"section\" >\n <view class=\"shadowBoard\" :style=\"{backgroundImage:'url('+ photo[i] +')'}\"></view>\n <view class=\"swiper\">\n <image\n @click=\"preImage\"\n class=\"scaleToFill\"\n src=\"../../static/photo/left.png\"\n mode=\"scaleToFill\"\n />\n <image\n @click=\"nextImage\"\n class=\"scaleToFill2\"\n src=\"../../static/photo/left.png\"\n mode=\"scaleToFill\"\n />\n <z-swiper ref=\"zSwiper\" v-model=\"list\" @slideChange=\"onSlideChange\" :options=\"options\" class=\"swiper\">\n <z-swiper-item :custom-style=\"slideCustomStyle\" v-for=\"(item,index) in list\" :key=\"index\">\n <button class=\"btn\" @click=\"NavTo(item)\">\n <image class=\"image\" :src=\"'https://admin.mindepoch.com:8089/worlds/' + item.name + '.png'\" mode=\"aspectFill\"></image>\n <view class=\"CardContent\">\n <view class=\"card\">\n <view class=\"header1\">{{item.name}}</view>\n <view class=\"header2\">\n <view class=\"sdsd\">{{item.worldHeader}}</view>\n <view class=\"distence\"></view>\n <view class=\"detail\">{{item.description}}</view>\n </view>\n </view>\n </view>\n </button>\n </z-swiper-item>\n </z-swiper>\n </view>\n </view>\n </view>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n err:null,\n disabledSubmit:false,\n id:274,\n showUserInfo:false,\n userName:'卿羽',\n code:'',\n clickNoArgee:false,\n clickArgee:false,\n isBindPhone:false,\n needDialog:true,\n nickName:'',\n // avatarUrl:'/static/photo/default.jpg',\n avatarUrl:'https://admin.mindepoch.com:8089/worlds/default.jpg',\n OpenId:'',\n i:0,\n photo:[\n 'https://admin.mindepoch.com:8089/worlds/情圣日记.png',\n 'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',\n 'https://admin.mindepoch.com:8089/worlds/舌战群儒.png'\n ],\n list: [\n // {image:'https://admin.mindepoch.com:8089/worlds/情圣日记.png',title:'情圣日记',content1:'-Love&Entropy',content2:'你还...记得我吗?'},\n // {image:'https://admin.mindepoch.com:8089/worlds/荒村公寓.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\n // {image:'https://admin.mindepoch.com:8089/worlds/舌战群儒.png',title:'荒村公寓',content1:'-规则怪谈',content2:'一觉醒来,身处陌生的公寓,奇怪的规则,神秘的怪谈,我该如何逃生'},\n ],\n options:{\n effect: 'cards',\n loop : true,\n },\n slideCustomStyle: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '36rpx'\n }\n }\n },\n mounted() {\n //用户验证用户是否登陆过\n // console.log(this)\n var that = this\n wx.login({\n success(res) {\n if (res.code) {\n // uni.setStorageSync('code', res.code)\n that.code = res.code\n console.log('code:',that.code)\n // uni.showModal({\n // title: 'wx.login:登录ing!',\n // content: 'that.code:'+that.code + ''\n // });\n // 将 res.code 发送至后台服务器进行处理\n uni.request({\n url: 'https://admin.mindepoch.com:8089/wechat/CheckWxUserIsRegisterAndBindPhone',\n method: 'POST',\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n data: { code: res.code },\n success: function(res) {\n console.log('res:',res)\n // uni.showModal({\n // title: 'wx.login:登录成功!'+JSON.stringify(res),\n // content: res.data.toString()\n // });\n that.isBindPhone = res.data.isBindPhone\n that.wxUid = res.data.wxUid\n \n if(res.data.message===\"微信用户已注册,模拟登录成功!\"){\n uni.setStorageSync('wxUid', res.data.wxUid); //保存用户id\n uni.setStorageSync('userName', res.data.userName)\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]) //保存cookie值\n that.init()\n }else{\n if(res.data.code===1){\n //用户已注册\n that.init()\n }else{\n that.showUserInfo = true\n }\n }\n },\n fail: function(err) {\n console.log('err:',err)\n // uni.showModal({\n // title: 'wx.login:登录失败!',\n // content: JSON.stringify(err)\n // });\n }\n })\n } else {\n console.error('登录失败!' + res.errMsg);\n }\n }\n })\n \n },\n onload() {},\n methods: {\n init(){\n uni.request({\n url: 'https://admin.mindepoch.com:8089/QueryWorldsByLikeName',\n header: {\n 'Cookie': `${uni.getStorageSync('session_token')}`,\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n method: 'post',\n data:{\n worldName: ''\n }\n }).then(result => {\n console.log('init:',result[1].data)\n // uni.showModal({\n // title: 'init:',\n // content: result[1].data.worldInfoAndAsset.toString()\n // });\n if(result[1].data.code===1){\n if(result[1].data.worldInfoAndAsset.length>0){\n this.list = result[1].data.worldInfoAndAsset\n // this.list = [result[1].data.worldInfoAndAsset[1]]\n }\n }\n }).catch(err=> {\n console.log(222,err)\n // uni.showModal({\n // title: 'init_error:',\n // content: 'error'\n // });\n });\n },\n preImage(){\n // console.log('pre')\n this.$refs.zSwiper.swiper.slidePrev();\n },\n nextImage(){\n // console.log('next')\n this.$refs.zSwiper.swiper.slideNext();\n },\n //获取到用户昵称 以及用户头像\n handleSubmit(){\n var that = this\n //1.昵称输入不可为空\n if(this.userName.trim()==\"\"){\n uni.showToast({\n title: '昵称不可为空',\n icon: 'none'\n })\n return\n }\n //2.不上传头像需要下载 上传头像不需要下载\n if(this.avatarUrl==\"https://admin.mindepoch.com:8089/worlds/default.jpg\"){\n uni.downloadFile({\n url: that.avatarUrl,\n success: downloadRes => {\n if (downloadRes.statusCode === 200) {\n // 图片下载成功后获取临时文件路径\n const tempFilePath = downloadRes.tempFilePath;\n wx.login({\n success(res) {\n if(!res.code) {\n return\n }\n uni.uploadFile({\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\n method: 'POST',\n filePath:tempFilePath,\n name: 'avatar',\n formData: {\n code: res.code,\n username: that.userName\n },\n success: uploadRes => {\n console.log('上传成功uploadRes', uploadRes);\n // console.log(JSON.parse(uploadRes.data))\n const data = JSON.parse(uploadRes.data)\n if(data.code===1){\n uni.showToast({\n title: '头像上传成功!',\n icon: 'none'\n });\n uni.setStorageSync('userName', that.userName);\n uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\n uni.setStorageSync('wxUid', data.wxUid); //保存用户id\n uni.setStorageSync('openId', data.openId); //保存用户id\n that.showUserInfo = false //隐藏用户填写的表单\n that.init()\n }else{\n //失败\n uni.showModal({\n title: '温馨提示', // 弹窗的标题\n content: '好像出了点问题呢,再试试呢!', // 弹窗的文本内容\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n that.disabledSubmit = false\n }\n },\n fail: uploadErr => {\n console.error('上传失败', uploadErr);\n uni.showModal({\n title: '失败', // 弹窗的标题\n content: '创建失败!', // 弹窗的文本内容 JSON.parse(uploadErr.errMsg)\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n \n }\n }) \n },\n fail(err){\n console.log(err)\n uni.showToast({\n title: err.toString(),\n icon: 'none'\n })\n }\n })\n }\n },\n fail: downloadErr => {\n console.error('下载图片失败', downloadErr)\n // uni.showModal({\n // title: '弹窗标题', // 弹窗的标题\n // content: JSON.stringify(downloadErr), // 弹窗的文本内容\n // showCancel: true, // 是否显示取消按钮,默认为 true\n // cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n // cancelColor: '#000000', // 取消按钮的文字颜色\n // confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n // confirmColor: '#576B95', // 确定按钮的文字颜色\n // success: function (res) {\n // if (res.confirm) {\n // console.log('用户点击确定');\n // } else if (res.cancel) {\n // console.log('用户点击取消');\n // }\n // },\n // fail: function (err) {\n // console.log('API 调用失败: ', err);\n // }\n // });\n }\n });\n }else{\n this.disabledSubmit = true\n wx.login({\n success(res) {\n if(!res.code) {\n return\n }\n uni.uploadFile({\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatRegisterOrLogin',\n method: 'POST',\n filePath:that.avatarUrl,\n name: 'avatar',\n formData: {\n code: res.code,\n username: that.userName\n },\n success: uploadRes => {\n uni.showToast({\n title: 'AppletWeChatRegisterOrLogin',\n icon: 'none'\n })\n console.log('上传成功uploadRes', uploadRes);\n console.log(JSON.parse(uploadRes.data))\n const data = JSON.parse(uploadRes.data)\n if(data.code===1){\n uni.showToast({\n title: '成功!',\n icon: 'none'\n });\n uni.setStorageSync('userName', that.userName);\n uni.setStorageSync('session_token', uploadRes.cookies[0].split(';')[0]); //保存cookie值\n uni.setStorageSync('wxUid', data.wxUid); //保存用户id\n uni.setStorageSync('openId', data.openId); //保存用户id\n that.showUserInfo = false //隐藏用户填写的表单\n that.init()\n }else{\n //失败\n uni.showModal({\n title: '温馨提示', // 弹窗的标题\n content: '好像出了点问题呢,再试试呢!', // 弹窗的文本内容\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n that.disabledSubmit = false\n }\n },\n fail: uploadErr => {\n console.error('上传失败', uploadErr);\n uni.showModal({\n title: '失败', // 弹窗的标题\n content: '创建失败!', // 弹窗的文本内容 JSON.parse(uploadErr.errMsg)\n showCancel: true, // 是否显示取消按钮,默认为 true\n cancelText: '取消', // 取消按钮的文字,默认为\"取消\"\n cancelColor: '#000000', // 取消按钮的文字颜色\n confirmText: '确定', // 确定按钮的文字,默认为\"确定\"\n confirmColor: '#576B95', // 确定按钮的文字颜色\n success: function (res) {\n if (res.confirm) {\n console.log('用户点击确定');\n } else if (res.cancel) {\n console.log('用户点击取消');\n }\n },\n fail: function (err) {\n console.log('API 调用失败: ', err);\n }\n });\n \n }\n })\n },\n fail(err){\n console.log(err)\n uni.showToast({\n title: err.toString(),\n icon: 'none'\n })\n }\n })\n }\n },\n onChooseAvatar(e) {\n console.log('e',e)\n const { avatarUrl } = e.detail \n this.avatarUrl = avatarUrl\n console.log('this.avatarUrl',this.avatarUrl)\n },\n\n NavTo(data) {\n uni.navigateTo({\n url: `/pages/index/index?params=${JSON.stringify(data)}`\n });\n\n // console.log(title)\n // if(title==='情圣日记'){\n // }else{\n // uni.showToast({\n // title: '敬请期待',\n // icon: 'none'\n // });\n // }\n },\n onSlideChange(swiper,index) {\n console.log(swiper,index)\n // const len = this.photo.length + 1\n if(this.photo.length+1==index){\n this.i = 0\n }else if(index==0){\n this.i = this.photo.length-1\n }else{\n this.i = index-1\n }\n // 你可以在这里获取当前的swiper索引\n // const currentIndex = swiper.activeIndex;\n // 执行你想要的操作,比如更新页面标题\n // uni.setNavigationBarTitle('当前页: ' + (currentIndex + 1));\n },\n\n getAuth() {\n wx.getUserProfile({\n withCredentials: true,\n lang: 'zh_CN',\n desc:'提升用户体验,减少用户操作',\n success: function (userRes) {\n console.log('userRes',userRes)\n // var userInfo = userRes.userInfo;\n // console.log(\"用户昵称为:\" + userInfo.nickName);\n // console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\n // this.nickName = userInfo.nickName\n // this.avatarUrl = userInfo.avatarUrl\n // this.$globalData.userPhoto = userInfo.avatarUrl\n },\n fail: function () {\n console.error('获取用户信息失败');\n }\n });\n },\n\n handleUserDestory() {\n uni.request({\n url: 'https://admin.mindepoch.com:8089/UnregisterUser',\n method: 'POST',\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Cookie': `${uni.getStorageSync('session_token')}`,\n },\n data: { id: uni.getStorageSync('wxUid') },\n success:function(res) {\n console.log(res)\n uni.showToast({\n title: '注销成功!',\n icon: 'none'\n });\n },\n fail:function(err) {\n console.log(err)\n }\n })\n }\n }\n}\n</script>\n\n<style scoped>\n.wrapper{\n height: 100vh;\n width: 100vw;\n}\n.image {\n\theight:100%;\n\twidth: 100%;\n}\n.section{\n \n}\n.shadowBoard{\n /* 其他样式,如背景大小、位置等 */\n width: 100vw;\n height: 100vh;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n filter: blur(5px);\n z-index: -99;\n position: fixed;\n \n}\n.swiper{\n padding-top: 320rpx;\n position:relative;\n}\n.CardContent{\n position: absolute;\n top:0;\n left: 50%;\n transform: translateX(-50%);\n height: 100%;\n width: 85%;\n color: #fff;\n}\n.card{\n position: relative;\n width: 100%;\n height: 100%;\n}\n.header1{\n font-size: 40rpx;\n margin-top: 20rpx;\n text-align: left;\n}\n.header2{\n position: absolute;\n bottom:40rpx;\n left: 0;\n font-size: 38rpx;\n}\n.sdsd{\n text-align: left;\n}\n.distence{\n margin-top: 20rpx;\n}\n.detail{\n font-size: 24rpx;\n max-height: 100rpx;\n line-height: 38rpx;\n background-color: #00000039;\n padding: 6rpx;\n border-radius: 10rpx;\n text-align: left;\n overflow-y: scroll;\n}\n.shadow{\n position: fixed;\n width: 100vw;\n height: 100vh;\n \n}\n.shadow>image{\n width: auto;\n height: 100%;\n}\n.btn{\n padding: 0 !important;\n margin: 0 !important;\n display: block;\n z-index: 99;\n border-radius: 24rpx;\n height: 700rpx;\n width:450rpx;\n border: 1px solid #0000009a;\n box-shadow: 0 0 20rpx #fff;\n}\n.userInfoPression{\n background-color: #ffffff;\n height: 350rpx;\n border-radius: 20rpx 20rpx 0 0;\n}\n.mainInfo{\n\n}\n.infoHead{\n text-align: center;\n padding: 42rpx;\n font-weight: 700;\n}\n.infoFoot{\n display:flex;\n width: 100vw;\n position: absolute;\n bottom: 50rpx;\n left: 0;\n}\n.infoFoot>Button{\n width: 200rpx;\n height: 80rpx;\n line-height: 80rpx;\n font-size: 32rpx;\n color: #fff;\n \n}\n.infoFoot>Button:nth-child(1){\n background-color: gray;\n}\n.infoFoot>Button:nth-child(2){\n background-color: #1AAD19;\n}\n.ttt{\n position: absolute;\n top:0;\n left: 0;\n z-index: 9;\n width: 100vw;\n height: 100vh;\n background-color: #ffffff;\n}\n.pisition{\n padding-top: 300rpx;\n}\n.avatar-wrapper{\n border: 1px solid rgb(192, 176, 176);\n width: 200rpx;\n height: 200rpx;\n margin-top: 25rpx;\n}\n.avatar{\n width: 150rpx;\n height: 150rpx;\n margin-top: 25rpx;\n}\n.weui-input{\n border: 1px solid rgb(123, 108, 108);\n margin-top: 300rpx;\n width: 50vw;\n height: 70rpx;\n border-radius: 12rpx;\n margin: 200rpx auto;\n}\n.tipUserHeader{\n text-align: center;\n margin-top: 20rpx;\n color: rgb(123, 108, 108);\n}\n.submit{\n width: 250rpx;\n}\n.scaleToFill{\n position:absolute;\n top:62%;\n left:-10rpx;\n width:100rpx;\n height:100rpx;\n z-index:99;\n}\n.scaleToFill2{\n transform:rotate(180deg);\n position:absolute;\n top:62%;\n right:-10rpx;\n width:100rpx;\n height:100rpx;\n z-index:99;\n}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723621057833\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 @
d847ec3d
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 @
d847ec3d
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?6583","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?d8d0","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?b5df","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?8154","uni-app:///pages/init/index.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?a7a1","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?9e13"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","nickName","avatarUrl","OpenId","methods","getUserInfo","success","console","uni","url","method","header","code","that","withCredentials","lang","fail","getPhoneNumber","sendPhoneNumberToServer","username","openid","phone_code","reject_binding"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACgN;AAChN,gBAAgB,iNAAU;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;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCYv1B;EACAC;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACA;MACAV;QACAW;UACAC;UACA;YACA;YACAC;cACAC;cACAC;cACAC;gBACA;cACA;cACAX;gBAAAY;cAAA;cACAN;gBACAC;gBACAM;gBACA;;gBAEAL;kBACAM;kBACAC;kBACAT;oBACA;oBACAC;oBACAA;oBACAM;oBACAA;oBACAA;oBACA;kBAEA;;kBACAG;oBACAT;kBACA;gBACA;cACA;YACA;UACA;YACAA;UACA;QACA;MACA;IACA;IAEA;IACAU;MACAV;MACA;QACA;MACA;QACA;MACA;IACA;IACAW;MAAA;MACA;MACAV;QACAC;QACAC;QACAV;UACAmB;UACAC;UACAC;UACAC;QACA;QACAX;UACA;QACA;QACAL;UACAC;UACA;YACAA;YAEA;cACA;cACAC;cACAA;gBACAC;cACA;YACA;UACA;YACAF;UACA;QACA;QACAS;UACAT;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC/GA;AAAA;AAAA;AAAA;AAAwsC,CAAgB,wnCAAG,EAAC,C;;;;;;;;;;;ACA5tC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/init/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"init\">\n <view class=\"window\">\n <view class=\"getUserInfo\">用户服务隐私协议</view>\n <view class=\"content\">\n <button open-type=\"getPhoneNumber\" @getphonenumber=\"getPhoneNumber\" class=\"btn\" @click=\"getUserInfo\">授权</button>\n </view>\n </view>\n </view>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n nickName:'',\n avatarUrl:'',\n OpenId:''\n }\n },\n methods: {\n getUserInfo() {\n var that = this\n wx.login({\n success(res) {\n console.log(res)\n if (res.code) {\n // 将 res.code 发送至后台服务器进行处理\n uni.request({\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatLogin',\n method: 'POST',\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n data: { code: res.code },\n success: function (response) {\n console.log('登录成功', response);\n that.OpenId = response.data.OpenId\n // TODO: 根据后台返回的结果保存 openid、sessionKey 等信息\n\n uni.getUserInfo({\n withCredentials: true,\n lang: 'zh_CN',\n success: function (userRes) {\n var userInfo = userRes.userInfo;\n console.log(\"用户昵称为:\" + userInfo.nickName);\n console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\n that.nickName = userInfo.nickName\n that.avatarUrl = userInfo.avatarUrl\n that.$globalData.userPhoto = userInfo.avatarUrl\n // TODO: 将用户昵称和头像地址保存或上传至后台服务器\n\n },\n fail: function () {\n console.error('获取用户信息失败');\n }\n });\n }\n })\n } else {\n console.error('登录失败!' + res.errMsg);\n }\n }\n });\n },\n\n // 获取手机号\n getPhoneNumber(e) {\n console.log('e',e.detail.code)\n if(e.detail.code){\n this.sendPhoneNumberToServer(e.detail.code,'no');\n }else{\n this.sendPhoneNumberToServer(e.detail.code,'yes');\n }\n },\n sendPhoneNumberToServer(code,bool) {\n // 将code、encryptedData和iv发送到后端API\n uni.request({\n url: 'https://admin.mindepoch.com:8089/wechat/RegisterAndLoginWXUserPhone',\n method: 'POST',\n data:{\n username:this.nickName,\n openid:this.OpenId,\n phone_code:bool==\"no\"?code:'',\n reject_binding:bool\n },\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n success: (res) => {\n console.log('success',res)\n if (res.statusCode === 200) {\n console.log('手机号码传递成功', res);\n\n if(res.data.code===1){\n this.$globalData.wxUid = res.data.wxUid\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]); //保存cookie值\n uni.navigateTo({\n url: `/pages/homeCards/index`\n });\n }\n } else {\n console.log('服务器返回状态码异常', res.statusCode);\n }\n },\n fail: (err) => {\n console.log('发送失败', err);\n }\n });\n }\n }\n}\n</script>\n\n\n<style scoped>\n.init {\n width: 100vw;\n height: 100vh;\n background-color: rgb(146, 108, 126);\n}\n\n.window {\n width: 80vw;\n height: 300rpx;\n background-color: aliceblue;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 10rpx;\n font-size: 40rpx;\n box-shadow: 0 0 20rpx #fff;\n}\n\n.getUserInfo {\n text-align: center;\n padding: 20px;\n}\n\n.content {\n display: flex;\n margin-top: 50rpx;\n}\n\n.btn {\n width: 200rpx;\n height: 80rpx;\n line-height: 80rpx;\n font-size: 34rpx;\n}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723191560610\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?6583","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?d8d0","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?b5df","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?8154","uni-app:///pages/init/index.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?a7a1","webpack:////Users/kenji/Desktop/Intern/jueqing/pages/init/index.vue?9e13"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","nickName","avatarUrl","OpenId","methods","getUserInfo","success","console","uni","url","method","header","code","that","withCredentials","lang","fail","getPhoneNumber","sendPhoneNumberToServer","username","openid","phone_code","reject_binding"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AACgN;AAChN,gBAAgB,iNAAU;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;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eCYv1B;EACAC;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACA;MACAV;QACAW;UACAC;UACA;YACA;YACAC;cACAC;cACAC;cACAC;gBACA;cACA;cACAX;gBAAAY;cAAA;cACAN;gBACAC;gBACAM;gBACA;;gBAEAL;kBACAM;kBACAC;kBACAT;oBACA;oBACAC;oBACAA;oBACAM;oBACAA;oBACAA;oBACA;kBAEA;;kBACAG;oBACAT;kBACA;gBACA;cACA;YACA;UACA;YACAA;UACA;QACA;MACA;IACA;IAEA;IACAU;MACAV;MACA;QACA;MACA;QACA;MACA;IACA;IACAW;MAAA;MACA;MACAV;QACAC;QACAC;QACAV;UACAmB;UACAC;UACAC;UACAC;QACA;QACAX;UACA;QACA;QACAL;UACAC;UACA;YACAA;YAEA;cACA;cACAC;cACAA;gBACAC;cACA;YACA;UACA;YACAF;UACA;QACA;QACAS;UACAT;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC/GA;AAAA;AAAA;AAAA;AAAwsC,CAAgB,wnCAAG,EAAC,C;;;;;;;;;;;ACA5tC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/init/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"init\">\n <view class=\"window\">\n <view class=\"getUserInfo\">用户服务隐私协议</view>\n <view class=\"content\">\n <button open-type=\"getPhoneNumber\" @getphonenumber=\"getPhoneNumber\" class=\"btn\" @click=\"getUserInfo\">授权</button>\n </view>\n </view>\n </view>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n nickName:'',\n avatarUrl:'',\n OpenId:''\n }\n },\n methods: {\n getUserInfo() {\n var that = this\n wx.login({\n success(res) {\n console.log(res)\n if (res.code) {\n // 将 res.code 发送至后台服务器进行处理\n uni.request({\n url: 'https://admin.mindepoch.com:8089/wechat/AppletWeChatLogin',\n method: 'POST',\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n data: { code: res.code },\n success: function (response) {\n console.log('登录成功', response);\n that.OpenId = response.data.OpenId\n // TODO: 根据后台返回的结果保存 openid、sessionKey 等信息\n\n uni.getUserInfo({\n withCredentials: true,\n lang: 'zh_CN',\n success: function (userRes) {\n var userInfo = userRes.userInfo;\n console.log(\"用户昵称为:\" + userInfo.nickName);\n console.log(\"用户头像地址为:\" + userInfo.avatarUrl);\n that.nickName = userInfo.nickName\n that.avatarUrl = userInfo.avatarUrl\n that.$globalData.userPhoto = userInfo.avatarUrl\n // TODO: 将用户昵称和头像地址保存或上传至后台服务器\n\n },\n fail: function () {\n console.error('获取用户信息失败');\n }\n });\n }\n })\n } else {\n console.error('登录失败!' + res.errMsg);\n }\n }\n });\n },\n\n // 获取手机号\n getPhoneNumber(e) {\n console.log('e',e.detail.code)\n if(e.detail.code){\n this.sendPhoneNumberToServer(e.detail.code,'no');\n }else{\n this.sendPhoneNumberToServer(e.detail.code,'yes');\n }\n },\n sendPhoneNumberToServer(code,bool) {\n // 将code、encryptedData和iv发送到后端API\n uni.request({\n url: 'https://admin.mindepoch.com:8089/wechat/RegisterAndLoginWXUserPhone',\n method: 'POST',\n data:{\n username:this.nickName,\n openid:this.OpenId,\n phone_code:bool==\"no\"?code:'',\n reject_binding:bool\n },\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n success: (res) => {\n console.log('success',res)\n if (res.statusCode === 200) {\n console.log('手机号码传递成功', res);\n\n if(res.data.code===1){\n this.$globalData.wxUid = res.data.wxUid\n uni.setStorageSync('session_token', res.cookies[0].split(';')[0]); //保存cookie值\n uni.navigateTo({\n url: `/pages/homeCards/index`\n });\n }\n } else {\n console.log('服务器返回状态码异常', res.statusCode);\n }\n },\n fail: (err) => {\n console.log('发送失败', err);\n }\n });\n }\n }\n}\n</script>\n\n\n<style scoped>\n.init {\n width: 100vw;\n height: 100vh;\n background-color: rgb(146, 108, 126);\n}\n\n.window {\n width: 80vw;\n height: 300rpx;\n background-color: aliceblue;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 10rpx;\n font-size: 40rpx;\n box-shadow: 0 0 20rpx #fff;\n}\n\n.getUserInfo {\n text-align: center;\n padding: 20px;\n}\n\n.content {\n display: flex;\n margin-top: 50rpx;\n}\n\n.btn {\n width: 200rpx;\n height: 80rpx;\n line-height: 80rpx;\n font-size: 34rpx;\n}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723621057839\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 @
d847ec3d
{
"version"
:
3
,
"sources"
:
[
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?4c86"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?5baf"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?fbbd"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?3f44"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?d605"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?660a"
],
"names"
:
[
"t"
,
"name"
,
"mixins"
,
"emits"
,
"props"
,
"inputType"
,
"type"
,
"default"
,
"value"
,
"placeholder"
,
"mode"
,
"title"
,
"content"
,
"beforeClose"
,
"cancelText"
,
"confirmText"
,
"data"
,
"dialogType"
,
"focus"
,
"val"
,
"computed"
,
"okText"
,
"closeText"
,
"placeholderText"
,
"titleText"
,
"watch"
,
"created"
,
"mounted"
,
"methods"
,
"onOk"
,
"closeDialog"
,
"close"
],
"mappings"
:
";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACoE;AACL;AACc;;;AAG7E;AACsN;AACtN,gBAAgB,iNAAU;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;AAA42B,CAAgB,8yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;AC4Bh4B;AACA;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;EAAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA,eAoBA;EACAC;EACAC;EACAC;EACAC;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;IACAD;MACAA;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;IACAM;MACAP;MACAC;IACA;IACAO;MACAR;MACAC;IACA;IACAQ;MACAT;MACAC;IACA;EACA;EACAS;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IACAnB;MACA;IACA;IACAI;MACA;QACA;MACA;IACA;IACAF;MACA;IACA;EACA;EACAkB;IACA;IACA;IACA;IACA;MACA;MACA;IACA;MACA;IACA;EACA;EACAC;IACA;EACA;EACAC;IACA;AACA;AACA;IACAC;MACA;QACA;MACA;QACA;MACA;MACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;MACA;MACA;IACA;IACAC;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;AC7KA;AAAA;AAAA;AAAA;AAAmmD,CAAgB,66CAAG,EAAC,C;;;;;;;;;;;ACAvnD;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
\"
!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&
\"
"
,
"<template>
\n\t
<view class=
\"
uni-popup-dialog
\"
>
\n\t\t
<view class=
\"
uni-dialog-title
\"
>
\n\t\t\t
<text class=
\"
uni-dialog-title-text
\"
:class=
\"
['uni-popup__'+dialogType]
\"
>{{titleText}}</text>
\n\t\t
</view>
\n\t\t
<view v-if=
\"
mode === 'base'
\"
class=
\"
uni-dialog-content
\"
>
\n\t\t\t
<slot>
\n\t\t\t\t
<text class=
\"
uni-dialog-content-text
\"
>{{content}}</text>
\n\t\t\t
</slot>
\n\t\t
</view>
\n\t\t
<view v-else class=
\"
uni-dialog-content
\"
>
\n\t\t\t
<slot>
\n\t\t\t\t
<input class=
\"
uni-dialog-input
\"
v-model=
\"
val
\"
:type=
\"
inputType
\"
:placeholder=
\"
placeholderText
\"
:focus=
\"
focus
\"
>
\n\t\t\t
</slot>
\n\t\t
</view>
\n\t\t
<view class=
\"
uni-dialog-button-group
\"
>
\n\t\t\t
<view class=
\"
uni-dialog-button
\"
@click=
\"
closeDialog
\"
>
\n\t\t\t\t
<text class=
\"
uni-dialog-button-text
\"
>{{closeText}}</text>
\n\t\t\t
</view>
\n\t\t\t
<view class=
\"
uni-dialog-button uni-border-left
\"
@click=
\"
onOk
\"
>
\n\t\t\t\t
<text class=
\"
uni-dialog-button-text uni-button-color
\"
>{{okText}}</text>
\n\t\t\t
</view>
\n\t\t
</view>
\n\n\t
</view>
\n
</template>
\n\n
<script>
\n\t
import popup from '../uni-popup/popup.js'
\n\t
import {
\n\t
initVueI18n
\n\t
} from '@dcloudio/uni-i18n'
\n\t
import messages from '../uni-popup/i18n/index.js'
\n\t
const {
\t
t } = initVueI18n(messages)
\n\t
/**
\n\t
* PopUp 弹出层-对话框样式
\n\t
* @description 弹出层-对话框样式
\n\t
* @tutorial https://ext.dcloud.net.cn/plugin?id=329
\n\t
* @property {String} value input 模式下的默认值
\n\t
* @property {String} placeholder input 模式下输入提示
\n\t
* @property {String} type = [success|warning|info|error] 主题样式
\n\t
* @value success 成功
\n\t
*
\t
@value warning 提示
\n\t
*
\t
@value info 消息
\n\t
*
\t
@value error 错误
\n\t
* @property {String} mode = [base|input] 模式、
\n\t
*
\t
@value base 基础对话框
\n\t
*
\t
@value input 可输入对话框
\n\t
* @property {String} content 对话框内容
\n\t
* @property {Boolean} beforeClose 是否拦截取消事件
\n\t
* @event {Function} confirm 点击确认按钮触发
\n\t
* @event {Function} close 点击取消按钮触发
\n\t
*/
\n\n\t
export default {
\n\t\t
name:
\"
uniPopupDialog
\"
,
\n\t\t
mixins: [popup],
\n\t\t
emits:['confirm','close'],
\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
},
\n\t\t\t
value: {
\n\t\t\t\t
type: [String, Number],
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
placeholder: {
\n\t\t\t\t
type: [String, Number],
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
type: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'error'
\n\t\t\t
},
\n\t\t\t
mode: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'base'
\n\t\t\t
},
\n\t\t\t
title: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
content: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
beforeClose: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: false
\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
}
\n\t\t
},
\n\t\t
data() {
\n\t\t\t
return {
\n\t\t\t\t
dialogType: 'error',
\n\t\t\t\t
focus: false,
\n\t\t\t\t
val:
\"\"\n\t\t\t
}
\n\t\t
},
\n\t\t
computed: {
\n\t\t\t
okText() {
\n\t\t\t\t
return this.confirmText || t(
\"
uni-popup.ok
\"
)
\n\t\t\t
},
\n\t\t\t
closeText() {
\n\t\t\t\t
return this.cancelText || t(
\"
uni-popup.cancel
\"
)
\n\t\t\t
},
\n\t\t\t
placeholderText() {
\n\t\t\t\t
return this.placeholder || t(
\"
uni-popup.placeholder
\"
)
\n\t\t\t
},
\n\t\t\t
titleText() {
\n\t\t\t\t
return this.title || t(
\"
uni-popup.title
\"
)
\n\t\t\t
}
\n\t\t
},
\n\t\t
watch: {
\n\t\t\t
type(val) {
\n\t\t\t\t
this.dialogType = val
\n\t\t\t
},
\n\t\t\t
mode(val) {
\n\t\t\t\t
if (val === 'input') {
\n\t\t\t\t\t
this.dialogType = 'info'
\n\t\t\t\t
}
\n\t\t\t
},
\n\t\t\t
value(val) {
\n\t\t\t\t
this.val = val
\n\t\t\t
}
\n\t\t
},
\n\t\t
created() {
\n\t\t\t
// 对话框遮罩不可点击
\n\t\t\t
this.popup.disableMask()
\n\t\t\t
// this.popup.closeMask()
\n\t\t\t
if (this.mode === 'input') {
\n\t\t\t\t
this.dialogType = 'info'
\n\t\t\t\t
this.val = this.value
\n\t\t\t
} else {
\n\t\t\t\t
this.dialogType = this.type
\n\t\t\t
}
\n\t\t
},
\n\t\t
mounted() {
\n\t\t\t
this.focus = true
\n\t\t
},
\n\t\t
methods: {
\n\t\t\t
/**
\n\t\t\t
* 点击确认按钮
\n\t\t\t
*/
\n\t\t\t
onOk() {
\n\t\t\t\t
if (this.mode === 'input'){
\n\t\t\t\t\t
this.$emit('confirm', this.val)
\n\t\t\t\t
}else{
\n\t\t\t\t\t
this.$emit('confirm')
\n\t\t\t\t
}
\n\t\t\t\t
if(this.beforeClose) return
\n\t\t\t\t
this.popup.close()
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 点击取消按钮
\n\t\t\t
*/
\n\t\t\t
closeDialog() {
\n\t\t\t\t
this.$emit('close')
\n\t\t\t\t
if(this.beforeClose) return
\n\t\t\t\t
this.popup.close()
\n\t\t\t
},
\n\t\t\t
close(){
\n\t\t\t\t
this.popup.close()
\n\t\t\t
}
\n\t\t
}
\n\t
}
\n
</script>
\n\n
<style lang=
\"
scss
\"
>
\n\t
.uni-popup-dialog {
\n\t\t
width: 300px;
\n\t\t
border-radius: 11px;
\n\t\t
background-color: #fff;
\n\t
}
\n\n\t
.uni-dialog-title {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\t\t
flex-direction: row;
\n\t\t
justify-content: center;
\n\t\t
padding-top: 25px;
\n\t
}
\n\n\t
.uni-dialog-title-text {
\n\t\t
font-size: 16px;
\n\t\t
font-weight: 500;
\n\t
}
\n\n\t
.uni-dialog-content {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\t\t
flex-direction: row;
\n\t\t
justify-content: center;
\n\t\t
align-items: center;
\n\t\t
padding: 20px;
\n\t
}
\n\n\t
.uni-dialog-content-text {
\n\t\t
font-size: 14px;
\n\t\t
color: #6C6C6C;
\n\t
}
\n\n\t
.uni-dialog-button-group {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\t\t
flex-direction: row;
\n\t\t
border-top-color: #f5f5f5;
\n\t\t
border-top-style: solid;
\n\t\t
border-top-width: 1px;
\n\t
}
\n\n\t
.uni-dialog-button {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\n\t\t
flex: 1;
\n\t\t
flex-direction: row;
\n\t\t
justify-content: center;
\n\t\t
align-items: center;
\n\t\t
height: 45px;
\n\t
}
\n\n\t
.uni-border-left {
\n\t\t
border-left-color: #f0f0f0;
\n\t\t
border-left-style: solid;
\n\t\t
border-left-width: 1px;
\n\t
}
\n\n\t
.uni-dialog-button-text {
\n\t\t
font-size: 16px;
\n\t\t
color: #333;
\n\t
}
\n\n\t
.uni-button-color {
\n\t\t
color: #007aff;
\n\t
}
\n\n\t
.uni-dialog-input {
\n\t\t
flex: 1;
\n\t\t
font-size: 14px;
\n\t\t
border: 1px #eee solid;
\n\t\t
height: 40px;
\n\t\t
padding: 0 10px;
\n\t\t
border-radius: 5px;
\n\t\t
color: #555;
\n\t
}
\n\n\t
.uni-popup__success {
\n\t\t
color: #4cd964;
\n\t
}
\n\n\t
.uni-popup__warn {
\n\t\t
color: #f0ad4e;
\n\t
}
\n\n\t
.uni-popup__error {
\n\t\t
color: #dd524d;
\n\t
}
\n\n\t
.uni-popup__info {
\n\t\t
color: #909399;
\n\t
}
\n
</style>
\n
"
,
"import mod from
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
// 1723191563926
\n
var cssReload = require(
\"
/Applications/HBuilderX.app/Contents/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:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?4c86"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?5baf"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?fbbd"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?3f44"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?d605"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue?660a"
],
"names"
:
[
"t"
,
"name"
,
"mixins"
,
"emits"
,
"props"
,
"inputType"
,
"type"
,
"default"
,
"value"
,
"placeholder"
,
"mode"
,
"title"
,
"content"
,
"beforeClose"
,
"cancelText"
,
"confirmText"
,
"data"
,
"dialogType"
,
"focus"
,
"val"
,
"computed"
,
"okText"
,
"closeText"
,
"placeholderText"
,
"titleText"
,
"watch"
,
"created"
,
"mounted"
,
"methods"
,
"onOk"
,
"closeDialog"
,
"close"
],
"mappings"
:
";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACoE;AACL;AACc;;;AAG7E;AACsN;AACtN,gBAAgB,iNAAU;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;AAA42B,CAAgB,8yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;AC4Bh4B;AACA;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;EAAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlBA,eAoBA;EACAC;EACAC;EACAC;EACAC;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;IACAD;MACAA;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;IACAM;MACAP;MACAC;IACA;IACAO;MACAR;MACAC;IACA;IACAQ;MACAT;MACAC;IACA;EACA;EACAS;IACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IACAnB;MACA;IACA;IACAI;MACA;QACA;MACA;IACA;IACAF;MACA;IACA;EACA;EACAkB;IACA;IACA;IACA;IACA;MACA;MACA;IACA;MACA;IACA;EACA;EACAC;IACA;EACA;EACAC;IACA;AACA;AACA;IACAC;MACA;QACA;MACA;QACA;MACA;MACA;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;MACA;MACA;IACA;IACAC;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;AC7KA;AAAA;AAAA;AAAA;AAAmmD,CAAgB,66CAAG,EAAC,C;;;;;;;;;;;ACAvnD;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
\"
!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-popup-dialog.vue?vue&type=script&lang=js&
\"
"
,
"<template>
\n\t
<view class=
\"
uni-popup-dialog
\"
>
\n\t\t
<view class=
\"
uni-dialog-title
\"
>
\n\t\t\t
<text class=
\"
uni-dialog-title-text
\"
:class=
\"
['uni-popup__'+dialogType]
\"
>{{titleText}}</text>
\n\t\t
</view>
\n\t\t
<view v-if=
\"
mode === 'base'
\"
class=
\"
uni-dialog-content
\"
>
\n\t\t\t
<slot>
\n\t\t\t\t
<text class=
\"
uni-dialog-content-text
\"
>{{content}}</text>
\n\t\t\t
</slot>
\n\t\t
</view>
\n\t\t
<view v-else class=
\"
uni-dialog-content
\"
>
\n\t\t\t
<slot>
\n\t\t\t\t
<input class=
\"
uni-dialog-input
\"
v-model=
\"
val
\"
:type=
\"
inputType
\"
:placeholder=
\"
placeholderText
\"
:focus=
\"
focus
\"
>
\n\t\t\t
</slot>
\n\t\t
</view>
\n\t\t
<view class=
\"
uni-dialog-button-group
\"
>
\n\t\t\t
<view class=
\"
uni-dialog-button
\"
@click=
\"
closeDialog
\"
>
\n\t\t\t\t
<text class=
\"
uni-dialog-button-text
\"
>{{closeText}}</text>
\n\t\t\t
</view>
\n\t\t\t
<view class=
\"
uni-dialog-button uni-border-left
\"
@click=
\"
onOk
\"
>
\n\t\t\t\t
<text class=
\"
uni-dialog-button-text uni-button-color
\"
>{{okText}}</text>
\n\t\t\t
</view>
\n\t\t
</view>
\n\n\t
</view>
\n
</template>
\n\n
<script>
\n\t
import popup from '../uni-popup/popup.js'
\n\t
import {
\n\t
initVueI18n
\n\t
} from '@dcloudio/uni-i18n'
\n\t
import messages from '../uni-popup/i18n/index.js'
\n\t
const {
\t
t } = initVueI18n(messages)
\n\t
/**
\n\t
* PopUp 弹出层-对话框样式
\n\t
* @description 弹出层-对话框样式
\n\t
* @tutorial https://ext.dcloud.net.cn/plugin?id=329
\n\t
* @property {String} value input 模式下的默认值
\n\t
* @property {String} placeholder input 模式下输入提示
\n\t
* @property {String} type = [success|warning|info|error] 主题样式
\n\t
* @value success 成功
\n\t
*
\t
@value warning 提示
\n\t
*
\t
@value info 消息
\n\t
*
\t
@value error 错误
\n\t
* @property {String} mode = [base|input] 模式、
\n\t
*
\t
@value base 基础对话框
\n\t
*
\t
@value input 可输入对话框
\n\t
* @property {String} content 对话框内容
\n\t
* @property {Boolean} beforeClose 是否拦截取消事件
\n\t
* @event {Function} confirm 点击确认按钮触发
\n\t
* @event {Function} close 点击取消按钮触发
\n\t
*/
\n\n\t
export default {
\n\t\t
name:
\"
uniPopupDialog
\"
,
\n\t\t
mixins: [popup],
\n\t\t
emits:['confirm','close'],
\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
},
\n\t\t\t
value: {
\n\t\t\t\t
type: [String, Number],
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
placeholder: {
\n\t\t\t\t
type: [String, Number],
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
type: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'error'
\n\t\t\t
},
\n\t\t\t
mode: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: 'base'
\n\t\t\t
},
\n\t\t\t
title: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
content: {
\n\t\t\t\t
type: String,
\n\t\t\t\t
default: ''
\n\t\t\t
},
\n\t\t\t
beforeClose: {
\n\t\t\t\t
type: Boolean,
\n\t\t\t\t
default: false
\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
}
\n\t\t
},
\n\t\t
data() {
\n\t\t\t
return {
\n\t\t\t\t
dialogType: 'error',
\n\t\t\t\t
focus: false,
\n\t\t\t\t
val:
\"\"\n\t\t\t
}
\n\t\t
},
\n\t\t
computed: {
\n\t\t\t
okText() {
\n\t\t\t\t
return this.confirmText || t(
\"
uni-popup.ok
\"
)
\n\t\t\t
},
\n\t\t\t
closeText() {
\n\t\t\t\t
return this.cancelText || t(
\"
uni-popup.cancel
\"
)
\n\t\t\t
},
\n\t\t\t
placeholderText() {
\n\t\t\t\t
return this.placeholder || t(
\"
uni-popup.placeholder
\"
)
\n\t\t\t
},
\n\t\t\t
titleText() {
\n\t\t\t\t
return this.title || t(
\"
uni-popup.title
\"
)
\n\t\t\t
}
\n\t\t
},
\n\t\t
watch: {
\n\t\t\t
type(val) {
\n\t\t\t\t
this.dialogType = val
\n\t\t\t
},
\n\t\t\t
mode(val) {
\n\t\t\t\t
if (val === 'input') {
\n\t\t\t\t\t
this.dialogType = 'info'
\n\t\t\t\t
}
\n\t\t\t
},
\n\t\t\t
value(val) {
\n\t\t\t\t
this.val = val
\n\t\t\t
}
\n\t\t
},
\n\t\t
created() {
\n\t\t\t
// 对话框遮罩不可点击
\n\t\t\t
this.popup.disableMask()
\n\t\t\t
// this.popup.closeMask()
\n\t\t\t
if (this.mode === 'input') {
\n\t\t\t\t
this.dialogType = 'info'
\n\t\t\t\t
this.val = this.value
\n\t\t\t
} else {
\n\t\t\t\t
this.dialogType = this.type
\n\t\t\t
}
\n\t\t
},
\n\t\t
mounted() {
\n\t\t\t
this.focus = true
\n\t\t
},
\n\t\t
methods: {
\n\t\t\t
/**
\n\t\t\t
* 点击确认按钮
\n\t\t\t
*/
\n\t\t\t
onOk() {
\n\t\t\t\t
if (this.mode === 'input'){
\n\t\t\t\t\t
this.$emit('confirm', this.val)
\n\t\t\t\t
}else{
\n\t\t\t\t\t
this.$emit('confirm')
\n\t\t\t\t
}
\n\t\t\t\t
if(this.beforeClose) return
\n\t\t\t\t
this.popup.close()
\n\t\t\t
},
\n\t\t\t
/**
\n\t\t\t
* 点击取消按钮
\n\t\t\t
*/
\n\t\t\t
closeDialog() {
\n\t\t\t\t
this.$emit('close')
\n\t\t\t\t
if(this.beforeClose) return
\n\t\t\t\t
this.popup.close()
\n\t\t\t
},
\n\t\t\t
close(){
\n\t\t\t\t
this.popup.close()
\n\t\t\t
}
\n\t\t
}
\n\t
}
\n
</script>
\n\n
<style lang=
\"
scss
\"
>
\n\t
.uni-popup-dialog {
\n\t\t
width: 300px;
\n\t\t
border-radius: 11px;
\n\t\t
background-color: #fff;
\n\t
}
\n\n\t
.uni-dialog-title {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\t\t
flex-direction: row;
\n\t\t
justify-content: center;
\n\t\t
padding-top: 25px;
\n\t
}
\n\n\t
.uni-dialog-title-text {
\n\t\t
font-size: 16px;
\n\t\t
font-weight: 500;
\n\t
}
\n\n\t
.uni-dialog-content {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\t\t
flex-direction: row;
\n\t\t
justify-content: center;
\n\t\t
align-items: center;
\n\t\t
padding: 20px;
\n\t
}
\n\n\t
.uni-dialog-content-text {
\n\t\t
font-size: 14px;
\n\t\t
color: #6C6C6C;
\n\t
}
\n\n\t
.uni-dialog-button-group {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\t\t
flex-direction: row;
\n\t\t
border-top-color: #f5f5f5;
\n\t\t
border-top-style: solid;
\n\t\t
border-top-width: 1px;
\n\t
}
\n\n\t
.uni-dialog-button {
\n\t\t
/* #ifndef APP-NVUE */
\n\t\t
display: flex;
\n\t\t
/* #endif */
\n\n\t\t
flex: 1;
\n\t\t
flex-direction: row;
\n\t\t
justify-content: center;
\n\t\t
align-items: center;
\n\t\t
height: 45px;
\n\t
}
\n\n\t
.uni-border-left {
\n\t\t
border-left-color: #f0f0f0;
\n\t\t
border-left-style: solid;
\n\t\t
border-left-width: 1px;
\n\t
}
\n\n\t
.uni-dialog-button-text {
\n\t\t
font-size: 16px;
\n\t\t
color: #333;
\n\t
}
\n\n\t
.uni-button-color {
\n\t\t
color: #007aff;
\n\t
}
\n\n\t
.uni-dialog-input {
\n\t\t
flex: 1;
\n\t\t
font-size: 14px;
\n\t\t
border: 1px #eee solid;
\n\t\t
height: 40px;
\n\t\t
padding: 0 10px;
\n\t\t
border-radius: 5px;
\n\t\t
color: #555;
\n\t
}
\n\n\t
.uni-popup__success {
\n\t\t
color: #4cd964;
\n\t
}
\n\n\t
.uni-popup__warn {
\n\t\t
color: #f0ad4e;
\n\t
}
\n\n\t
.uni-popup__error {
\n\t\t
color: #dd524d;
\n\t
}
\n\n\t
.uni-popup__info {
\n\t\t
color: #909399;
\n\t
}
\n
</style>
\n
"
,
"import mod from
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
// 1723621061099
\n
var cssReload = require(
\"
/Applications/HBuilderX.app/Contents/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 @
d847ec3d
{
"version"
:
3
,
"sources"
:
[
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?ed1e"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?f417"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?757e"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?b8e7"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup/uni-popup.vue"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?b751"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?f193"
],
"names"
:
[
"name"
,
"components"
,
"emits"
,
"props"
,
"animation"
,
"type"
,
"default"
,
"isMaskClick"
,
"maskClick"
,
"backgroundColor"
,
"safeArea"
,
"maskBackgroundColor"
,
"watch"
,
"handler"
,
"immediate"
,
"isDesktop"
,
"showPopup"
,
"data"
,
"duration"
,
"ani"
,
"showTrans"
,
"popupWidth"
,
"popupHeight"
,
"config"
,
"top"
,
"bottom"
,
"center"
,
"left"
,
"right"
,
"message"
,
"dialog"
,
"share"
,
"maskClass"
,
"position"
,
"transClass"
,
"maskShow"
,
"mkclick"
,
"popupstyle"
,
"computed"
,
"bg"
,
"mounted"
,
"uni"
,
"windowWidth"
,
"windowHeight"
,
"windowTop"
,
"screenHeight"
,
"safeAreaInsets"
,
"fixSize"
,
"destroyed"
,
"created"
,
"methods"
,
"setH5Visible"
,
"closeMask"
,
"disableMask"
,
"clear"
,
"e"
,
"open"
,
"direction"
,
"console"
,
"show"
,
"close"
,
"clearTimeout"
,
"touchstart"
,
"onTap"
,
"paddingBottom"
,
"display"
,
"flexDirection"
,
"justifyContent"
,
"alignItems"
],
"mappings"
:
";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;AACc;;;AAGtE;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;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,mWAEN;AACP,KAAK;AACL;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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAq2B,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBz3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArBA,eAuBA;EACAA;EACAC,aAIA;EACAC;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACA;IACAD;MACAA;MACAC;IACA;IACA;IACAC;MACAF;MACAC;IACA;IACA;IACAE;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;EACA;EAEAM;IACA;AACA;AACA;IACAP;MACAQ;QACA;QACA;MACA;MACAC;IACA;IACAC;MACAF;QACA;QACA;MACA;MACAC;IACA;IACA;AACA;AACA;AACA;IACAN;MACAK;QACA;MACA;MACAC;IACA;IACAP;MACAM;QACA;MACA;MACAC;IACA;IACA;IACAE,qCAKA;EACA;EACAC;IACA;MACAC;MACAC;MACAH;MACAI;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;QACAC;QACAR;QACAD;QACAG;QACAC;QACAnB;MACA;MACAyB;QACAD;QACAN;QACAC;MACA;MACAO;MACAC;MACAC;IACA;EACA;EACAC;IACAvB;MACA;IACA;IACAwB;MACA;QACA;MACA;MACA;IACA;EACA;EACAC;IAAA;IACA;MACA,4BAOAC;QANAC;QACAC;QACAC;QACAlC;QACAmC;QACAC;MAEA;MACA;MACA;MACA;QAEA;MAKA;QACA;MACA;IACA;IACAC;EAOA;EAEA;EACAC;IACA;EACA;EAQAC;IACA;IACA;MACA;IACA;MACA;IACA;IACA;MACA;IACA;MACA;IACA;IACA;IACA;IACA;IACA;IACA;EACA;EACAC;IACAC,uCAKA;IACA;AACA;AACA;IACAC;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;IACA;IACA;IACAC;MAEAC;MAEA;IACA;IAEAC;MACA;MACA;QACA;MACA;MACA;MACA;QACAC;MACA;MACA;QACAC;QACA;MACA;MACA;MACA;QACAC;QACAtD;MACA;IACA;IACAuD;MAAA;MACA;MACA;QACAD;QACAtD;MACA;MACAwD;MACA;MACA;MACA;QACA;MACA;IACA;IACA;IACAC;MACA;IACA;IAEAC;MACA;QACA;QACA;QACA;MACA;MACA;MACA;MACA;IACA;IACA;AACA;AACA;IACAvC;MAAA;MACA;MACA;MACA;QACAS;QACAN;QACAC;QACAnB;MACA;MACA;MACA;MACA;MACA;MACA;QACA;UACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAgB;MACA;MACA;MACA;QACAQ;QACAN;QACAC;QACAH;QACAuC;QACAvD;MACA;MACA;MACA;MACA;MACA;IACA;IACA;AACA;AACA;IACAiB;MACA;MACA;MACA;QACAO;QAEAgC;QACAC;QAEAzC;QACAE;QACAC;QACAJ;QACA2C;QACAC;MACA;MACA;MACA;MACA;MACA;IACA;IACAzC;MACA;MACA;MACA;QACAM;QACAN;QACAF;QACAD;QACAf;QAEAwD;QACAC;MAEA;MACA;MACA;MACA;MACA;IACA;IACAtC;MACA;MACA;MACA;QACAK;QACAR;QACAG;QACAJ;QACAf;QAEAwD;QACAC;MAEA;MACA;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACnaA;AAAA;AAAA;AAAA;AAA4lD,CAAgB,s6CAAG,EAAC,C;;;;;;;;;;;ACAhnD;AACA,OAAO,KAAU,EAAE,kBAKd"
,
"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
\"
!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
// 1723191563906
\n
var cssReload = require(
\"
/Applications/HBuilderX.app/Contents/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:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?ed1e"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?f417"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?757e"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?b8e7"
,
"uni-app:///uni_modules/uni-popup/components/uni-popup/uni-popup.vue"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?b751"
,
"webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?f193"
],
"names"
:
[
"name"
,
"components"
,
"emits"
,
"props"
,
"animation"
,
"type"
,
"default"
,
"isMaskClick"
,
"maskClick"
,
"backgroundColor"
,
"safeArea"
,
"maskBackgroundColor"
,
"watch"
,
"handler"
,
"immediate"
,
"isDesktop"
,
"showPopup"
,
"data"
,
"duration"
,
"ani"
,
"showTrans"
,
"popupWidth"
,
"popupHeight"
,
"config"
,
"top"
,
"bottom"
,
"center"
,
"left"
,
"right"
,
"message"
,
"dialog"
,
"share"
,
"maskClass"
,
"position"
,
"transClass"
,
"maskShow"
,
"mkclick"
,
"popupstyle"
,
"computed"
,
"bg"
,
"mounted"
,
"uni"
,
"windowWidth"
,
"windowHeight"
,
"windowTop"
,
"screenHeight"
,
"safeAreaInsets"
,
"fixSize"
,
"destroyed"
,
"created"
,
"methods"
,
"setH5Visible"
,
"closeMask"
,
"disableMask"
,
"clear"
,
"e"
,
"open"
,
"direction"
,
"console"
,
"show"
,
"close"
,
"clearTimeout"
,
"touchstart"
,
"onTap"
,
"paddingBottom"
,
"display"
,
"flexDirection"
,
"justifyContent"
,
"alignItems"
],
"mappings"
:
";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;AACc;;;AAGtE;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;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,mWAEN;AACP,KAAK;AACL;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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAq2B,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBz3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArBA,eAuBA;EACAA;EACAC,aAIA;EACAC;EACAC;IACA;IACAC;MACAC;MACAC;IACA;IACA;IACA;IACAD;MACAA;MACAC;IACA;IACA;IACAC;MACAF;MACAC;IACA;IACA;IACAE;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;IACA;IACAK;MACAN;MACAC;IACA;EACA;EAEAM;IACA;AACA;AACA;IACAP;MACAQ;QACA;QACA;MACA;MACAC;IACA;IACAC;MACAF;QACA;QACA;MACA;MACAC;IACA;IACA;AACA;AACA;AACA;IACAN;MACAK;QACA;MACA;MACAC;IACA;IACAP;MACAM;QACA;MACA;MACAC;IACA;IACA;IACAE,qCAKA;EACA;EACAC;IACA;MACAC;MACAC;MACAH;MACAI;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;QACAC;QACAR;QACAD;QACAG;QACAC;QACAnB;MACA;MACAyB;QACAD;QACAN;QACAC;MACA;MACAO;MACAC;MACAC;IACA;EACA;EACAC;IACAvB;MACA;IACA;IACAwB;MACA;QACA;MACA;MACA;IACA;EACA;EACAC;IAAA;IACA;MACA,4BAOAC;QANAC;QACAC;QACAC;QACAlC;QACAmC;QACAC;MAEA;MACA;MACA;MACA;QAEA;MAKA;QACA;MACA;IACA;IACAC;EAOA;EAEA;EACAC;IACA;EACA;EAQAC;IACA;IACA;MACA;IACA;MACA;IACA;IACA;MACA;IACA;MACA;IACA;IACA;IACA;IACA;IACA;IACA;EACA;EACAC;IACAC,uCAKA;IACA;AACA;AACA;IACAC;MACA;IACA;IACA;AACA;AACA;IACAC;MACA;IACA;IACA;IACAC;MAEAC;MAEA;IACA;IAEAC;MACA;MACA;QACA;MACA;MACA;MACA;QACAC;MACA;MACA;QACAC;QACA;MACA;MACA;MACA;QACAC;QACAtD;MACA;IACA;IACAuD;MAAA;MACA;MACA;QACAD;QACAtD;MACA;MACAwD;MACA;MACA;MACA;QACA;MACA;IACA;IACA;IACAC;MACA;IACA;IAEAC;MACA;QACA;QACA;QACA;MACA;MACA;MACA;MACA;IACA;IACA;AACA;AACA;IACAvC;MAAA;MACA;MACA;MACA;QACAS;QACAN;QACAC;QACAnB;MACA;MACA;MACA;MACA;MACA;MACA;QACA;UACA;QACA;MACA;IACA;IACA;AACA;AACA;IACAgB;MACA;MACA;MACA;QACAQ;QACAN;QACAC;QACAH;QACAuC;QACAvD;MACA;MACA;MACA;MACA;MACA;IACA;IACA;AACA;AACA;IACAiB;MACA;MACA;MACA;QACAO;QAEAgC;QACAC;QAEAzC;QACAE;QACAC;QACAJ;QACA2C;QACAC;MACA;MACA;MACA;MACA;MACA;IACA;IACAzC;MACA;MACA;MACA;QACAM;QACAN;QACAF;QACAD;QACAf;QAEAwD;QACAC;MAEA;MACA;MACA;MACA;MACA;IACA;IACAtC;MACA;MACA;MACA;QACAK;QACAR;QACAG;QACAJ;QACAf;QAEAwD;QACAC;MAEA;MACA;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACnaA;AAAA;AAAA;AAAA;AAA4lD,CAAgB,s6CAAG,EAAC,C;;;;;;;;;;;ACAhnD;AACA,OAAO,KAAU,EAAE,kBAKd"
,
"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
\"
!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
\"
-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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
// 1723621061117
\n
var cssReload = require(
\"
/Applications/HBuilderX.app/Contents/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 @
d847ec3d
{"version":3,"sources":["webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?6109","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?1f53","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?0138","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?cc43","uni-app:///uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?eb81","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?42b5","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?a3a0","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?60d3"],"names":["name","options","virtualHost","mixins","props","customStyle","type","default","swiperItemWidth","swiperItemHeight","data","wxsItemTransform","itemStyle","offsetLeft","offsetTop","itemClass","width","height","mounted","computed","slideClass","watch","handler","immediate","methods","unitFormat","onClickSlide","event","index","transform","transition","willChange","css","Object","transitionEnd","setTimeout","getSize","query","resolve","addClass","removeClass","hasClass","nextAll","prevAll"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA0V;AAC1V;AACiE;AACL;AACsC;;;AAGlG;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,wTAAM;AACR,EAAE,iUAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,4TAAU;AACZ;AACA;;AAEA;AAC0P;AAC1P,WAAW,uQAAM,iBAAiB,+QAAM;;AAExC;AACe,gF;;;;;;;;;;;;AC3Bf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAy2B,CAAgB,2yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;ACe73B;AAGA;;;;;;;;;;;;;;;gBAGA;EACAA;EAEAC;IACAC;EACA;EAEAC;EACAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;EACA;EACAG;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;IACAC;MACA;IACA;EACA;EACAC;IACAb;MACAc;QACA;UACA;QACA;MACA;MACAC;IACA;IACAd;MACAa;QACA;UACA;QACA;MACA;MACAC;IACA;EACA;EACAC;IACAC;MACA;QACA;UACA;QACA;UACA;QACA;MACA;MACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;MACA;IACA;IACAC;MACA;QACAC;QACAC;MACA;MACA;MACA;IACA;IACAC;MAKA;IAEA;IACAC;MAKA;IAEA;IACAC;MACA;IACA;IACAC;MAAA;MACAC;QACA;MACA;IACA;IACAC;MACAC;IACA;IACAC;MAAA;MACA;MACA;QACAC;UACA;YACA;YACA;UACA;UACA;YACA;YACA;UACA;UACA;YACA;YACA;UACA;UACAC;YACAtB;YACAC;UACA;QACA;MACA;IACA;IACAsB;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAC;MACA;IACA;IACAC;MAAA;MACA;QACA;MACA;IACA;IACAC;MAAA;MACA;QACA;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;;ACnLA;AAAA;AAAA;AAAA;AAAwnD,CAAgB,k8CAAG,EAAC,C;;;;;;;;;;;ACA5oD;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA,wCAAia,CAAgB,wdAAG,EAAC,C;;;;;;;;;;;;ACArb;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,M","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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjU4OSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjU4OX19&\"\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 \"!../../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper-item%2Fz-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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjU4OSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjU4OX19&\"","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 _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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=script&lang=js&\"","<template>\n\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\n\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\">\n\t\t<!-- #endif -->\n\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\n\t\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\"\n\t\t\t:swiperItemTransform=\"wxsItemTransform\" :change:swiperItemTransform=\"zSwiperWxs.wxsItemTransformObserver\">\n\t\t\t<!-- #endif -->\n\t\t\t<slot></slot>\n\t\t</view>\n</template>\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\n<!-- #endif -->\n<script>\n\timport {\n\t\tChildrenMixin\n\t} from '../../libs/mixins/relation.js';\n\timport {\n\t\tgetRect\n\t} from '../../libs/utils/utils.js';\n\texport default {\n\t\tname: \"z-swipe-item\",\n\t\t// #ifdef MP-WEIXIN\n\t\toptions: {\n\t\t\tvirtualHost: true\n\t\t},\n\t\t// #endif\n\t\tmixins: [ChildrenMixin('zSwipe')],\n\t\tprops: {\n\t\t\tcustomStyle: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {};\n\t\t\t\t}\n\t\t\t},\n\t\t\tswiperItemWidth: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 0\n\t\t\t},\n\t\t\tswiperItemHeight: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 0\n\t\t\t},\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\twxsItemTransform: \"\",\n\t\t\t\titemStyle: {},\n\t\t\t\toffsetLeft: 0,\n\t\t\t\toffsetTop: 0,\n\t\t\t\titemClass: [],\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t};\n\t\t},\n\t\tmounted() {\n\t\t\tthis.getSize();\n\t\t},\n\t\tcomputed: {\n\t\t\tslideClass() {\n\t\t\t\treturn this.itemClass.join(\" \");\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tswiperItemWidth: {\n\t\t\t\thandler(val) {\n\t\t\t\t\tif (val) {\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'width', this.unitFormat(val, \"rpx\"))\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\timmediate: true\n\t\t\t},\n\t\t\tswiperItemHeight: {\n\t\t\t\thandler(val) {\n\t\t\t\t\tif (val) {\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'height', this.unitFormat(val, \"rpx\"))\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\timmediate: true\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tunitFormat(val, type) {\n\t\t\t\tif (type == \"rpx\") {\n\t\t\t\t\tif (val.includes(\"rpx\") || val.includes(\"px\")) {\n\t\t\t\t\t\treturn val;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn val + 'px';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (type == \"number\") {\n\t\t\t\t\tif (val.includes(\"rpx\")) {\n\t\t\t\t\t\treturn uni.upx2px(parseInt(val.replace(\"rpx\", \"\")))\n\t\t\t\t\t} else if (!val.includes(\"rpx\") && val.includes(\"px\")) {\n\t\t\t\t\t\treturn parseInt(val.replace(\"px\", \"\"))\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tonClickSlide(event) {\n\t\t\t\tthis.$emit(\"click\", {\n\t\t\t\t\tevent,\n\t\t\t\t\tindex: this.index\n\t\t\t\t});\n\t\t\t\tthis.parent.swiper.updateClickedSlide(this.index);\n\t\t\t\tthis.parent.swiper.emit(\"slideClick\", this.index);\n\t\t\t},\n\t\t\ttransform(value) {\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.$set(this.itemStyle, 'transform', value)\n\t\t\t\t// #endif\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.wxsItemTransform = value\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\ttransition(value) {\n\t\t\t\t// #ifdef MP-BAIDU\n\t\t\t\tthis.$set(this.itemStyle, 'transitionDuration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-BAIDU\n\t\t\t\tthis.$set(this.itemStyle, 'transition-duration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\twillChange(value) {\n\t\t\t\tthis.$set(this.itemStyle, 'will-change', value)\n\t\t\t},\n\t\t\tcss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.itemStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\ttransitionEnd(callback, duration) {\n\t\t\t\tsetTimeout(callback, duration)\n\t\t\t},\n\t\t\tgetSize() {\n\t\t\t\tconst query = uni.createSelectorQuery().in(this);\n\t\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\t\tquery.select('.swiper-slide').boundingClientRect(data => {\n\t\t\t\t\t\tif (this.swiperItemWidth) {\n\t\t\t\t\t\t\tthis.width = this.unitFormat(this.swiperItemWidth, \"number\");\n\t\t\t\t\t\t\tthis.height = data.height;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.swiperItemHeight) {\n\t\t\t\t\t\t\tthis.width = data.width;\n\t\t\t\t\t\t\tthis.height = this.unitFormat(this.swiperItemHeight, \"number\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!this.swiperItemWidth && !this.swiperItemHeight) {\n\t\t\t\t\t\t\tthis.width = data.width;\n\t\t\t\t\t\t\tthis.height = data.height;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresolve({\n\t\t\t\t\t\t\twidth: this.width,\n\t\t\t\t\t\t\theight: this.height\n\t\t\t\t\t\t})\n\t\t\t\t\t}).exec();\n\t\t\t\t})\n\t\t\t},\n\t\t\taddClass(value) {\n\t\t\t\tthis.itemClass = Array.from(new Set([...this.itemClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremoveClass(value) {\n\t\t\t\tthis.itemClass = this.itemClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\thasClass(value) {\n\t\t\t\treturn this.itemClass.includes(value);\n\t\t\t},\n\t\t\tnextAll() {\n\t\t\t\treturn this.parent.children.filter((item) => {\n\t\t\t\t\treturn item.index > this.index\n\t\t\t\t})\n\t\t\t},\n\t\t\tprevAll() {\n\t\t\t\treturn this.parent.children.filter((item) => {\n\t\t\t\t\treturn item.index < this.index\n\t\t\t\t}).reverse()\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t@import '../../libs/core.scss';\n</style>\n","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723191564021\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper-item%2Fz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper-item%2Fz-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:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?6109","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?1f53","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?0138","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?cc43","uni-app:///uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?eb81","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper-item/z-swiper-item.vue?42b5","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?a3a0","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?60d3"],"names":["name","options","virtualHost","mixins","props","customStyle","type","default","swiperItemWidth","swiperItemHeight","data","wxsItemTransform","itemStyle","offsetLeft","offsetTop","itemClass","width","height","mounted","computed","slideClass","watch","handler","immediate","methods","unitFormat","onClickSlide","event","index","transform","transition","willChange","css","Object","transitionEnd","setTimeout","getSize","query","resolve","addClass","removeClass","hasClass","nextAll","prevAll"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA0V;AAC1V;AACiE;AACL;AACsC;;;AAGlG;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,wTAAM;AACR,EAAE,iUAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,4TAAU;AACZ;AACA;;AAEA;AAC0P;AAC1P,WAAW,uQAAM,iBAAiB,+QAAM;;AAExC;AACe,gF;;;;;;;;;;;;AC3Bf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAy2B,CAAgB,2yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;ACe73B;AAGA;;;;;;;;;;;;;;;gBAGA;EACAA;EAEAC;IACAC;EACA;EAEAC;EACAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACAC;MACAF;MACAC;IACA;IACAE;MACAH;MACAC;IACA;EACA;EACAG;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;IACAC;MACA;IACA;EACA;EACAC;IACAb;MACAc;QACA;UACA;QACA;MACA;MACAC;IACA;IACAd;MACAa;QACA;UACA;QACA;MACA;MACAC;IACA;EACA;EACAC;IACAC;MACA;QACA;UACA;QACA;UACA;QACA;MACA;MACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;MACA;IACA;IACAC;MACA;QACAC;QACAC;MACA;MACA;MACA;IACA;IACAC;MAKA;IAEA;IACAC;MAKA;IAEA;IACAC;MACA;IACA;IACAC;MAAA;MACAC;QACA;MACA;IACA;IACAC;MACAC;IACA;IACAC;MAAA;MACA;MACA;QACAC;UACA;YACA;YACA;UACA;UACA;YACA;YACA;UACA;UACA;YACA;YACA;UACA;UACAC;YACAtB;YACAC;UACA;QACA;MACA;IACA;IACAsB;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAC;MACA;IACA;IACAC;MAAA;MACA;QACA;MACA;IACA;IACAC;MAAA;MACA;QACA;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;;ACnLA;AAAA;AAAA;AAAA;AAAwnD,CAAgB,k8CAAG,EAAC,C;;;;;;;;;;;ACA5oD;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA,wCAAia,CAAgB,wdAAG,EAAC,C;;;;;;;;;;;;ACArb;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,M","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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjU4OSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjU4OX19&\"\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 \"!../../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper-item%2Fz-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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjU4OSwiYXR0cnMiOnsic3JjIjoiLi4vLi4vd3hzL3otc3dpcGVyLXd4cy53eHMiLCJtb2R1bGUiOiJ6U3dpcGVyV3hzIiwibGFuZyI6Ind4cyJ9LCJlbmQiOjU4OX19&\"","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 _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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper-item.vue?vue&type=script&lang=js&\"","<template>\n\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\n\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\">\n\t\t<!-- #endif -->\n\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\n\t\t<view :class=\"['swiper-slide',slideClass]\" :style=\"[itemStyle,customStyle]\" @click.stop=\"onClickSlide\"\n\t\t\t:swiperItemTransform=\"wxsItemTransform\" :change:swiperItemTransform=\"zSwiperWxs.wxsItemTransformObserver\">\n\t\t\t<!-- #endif -->\n\t\t\t<slot></slot>\n\t\t</view>\n</template>\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\n<!-- #endif -->\n<script>\n\timport {\n\t\tChildrenMixin\n\t} from '../../libs/mixins/relation.js';\n\timport {\n\t\tgetRect\n\t} from '../../libs/utils/utils.js';\n\texport default {\n\t\tname: \"z-swipe-item\",\n\t\t// #ifdef MP-WEIXIN\n\t\toptions: {\n\t\t\tvirtualHost: true\n\t\t},\n\t\t// #endif\n\t\tmixins: [ChildrenMixin('zSwipe')],\n\t\tprops: {\n\t\t\tcustomStyle: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {};\n\t\t\t\t}\n\t\t\t},\n\t\t\tswiperItemWidth: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 0\n\t\t\t},\n\t\t\tswiperItemHeight: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 0\n\t\t\t},\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\twxsItemTransform: \"\",\n\t\t\t\titemStyle: {},\n\t\t\t\toffsetLeft: 0,\n\t\t\t\toffsetTop: 0,\n\t\t\t\titemClass: [],\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t};\n\t\t},\n\t\tmounted() {\n\t\t\tthis.getSize();\n\t\t},\n\t\tcomputed: {\n\t\t\tslideClass() {\n\t\t\t\treturn this.itemClass.join(\" \");\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tswiperItemWidth: {\n\t\t\t\thandler(val) {\n\t\t\t\t\tif (val) {\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'width', this.unitFormat(val, \"rpx\"))\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\timmediate: true\n\t\t\t},\n\t\t\tswiperItemHeight: {\n\t\t\t\thandler(val) {\n\t\t\t\t\tif (val) {\n\t\t\t\t\t\tthis.$set(this.itemStyle, 'height', this.unitFormat(val, \"rpx\"))\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\timmediate: true\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tunitFormat(val, type) {\n\t\t\t\tif (type == \"rpx\") {\n\t\t\t\t\tif (val.includes(\"rpx\") || val.includes(\"px\")) {\n\t\t\t\t\t\treturn val;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn val + 'px';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (type == \"number\") {\n\t\t\t\t\tif (val.includes(\"rpx\")) {\n\t\t\t\t\t\treturn uni.upx2px(parseInt(val.replace(\"rpx\", \"\")))\n\t\t\t\t\t} else if (!val.includes(\"rpx\") && val.includes(\"px\")) {\n\t\t\t\t\t\treturn parseInt(val.replace(\"px\", \"\"))\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tonClickSlide(event) {\n\t\t\t\tthis.$emit(\"click\", {\n\t\t\t\t\tevent,\n\t\t\t\t\tindex: this.index\n\t\t\t\t});\n\t\t\t\tthis.parent.swiper.updateClickedSlide(this.index);\n\t\t\t\tthis.parent.swiper.emit(\"slideClick\", this.index);\n\t\t\t},\n\t\t\ttransform(value) {\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.$set(this.itemStyle, 'transform', value)\n\t\t\t\t// #endif\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.wxsItemTransform = value\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\ttransition(value) {\n\t\t\t\t// #ifdef MP-BAIDU\n\t\t\t\tthis.$set(this.itemStyle, 'transitionDuration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-BAIDU\n\t\t\t\tthis.$set(this.itemStyle, 'transition-duration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\twillChange(value) {\n\t\t\t\tthis.$set(this.itemStyle, 'will-change', value)\n\t\t\t},\n\t\t\tcss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.itemStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\ttransitionEnd(callback, duration) {\n\t\t\t\tsetTimeout(callback, duration)\n\t\t\t},\n\t\t\tgetSize() {\n\t\t\t\tconst query = uni.createSelectorQuery().in(this);\n\t\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\t\tquery.select('.swiper-slide').boundingClientRect(data => {\n\t\t\t\t\t\tif (this.swiperItemWidth) {\n\t\t\t\t\t\t\tthis.width = this.unitFormat(this.swiperItemWidth, \"number\");\n\t\t\t\t\t\t\tthis.height = data.height;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.swiperItemHeight) {\n\t\t\t\t\t\t\tthis.width = data.width;\n\t\t\t\t\t\t\tthis.height = this.unitFormat(this.swiperItemHeight, \"number\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!this.swiperItemWidth && !this.swiperItemHeight) {\n\t\t\t\t\t\t\tthis.width = data.width;\n\t\t\t\t\t\t\tthis.height = data.height;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresolve({\n\t\t\t\t\t\t\twidth: this.width,\n\t\t\t\t\t\t\theight: this.height\n\t\t\t\t\t\t})\n\t\t\t\t\t}).exec();\n\t\t\t\t})\n\t\t\t},\n\t\t\taddClass(value) {\n\t\t\t\tthis.itemClass = Array.from(new Set([...this.itemClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremoveClass(value) {\n\t\t\t\tthis.itemClass = this.itemClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\thasClass(value) {\n\t\t\t\treturn this.itemClass.includes(value);\n\t\t\t},\n\t\t\tnextAll() {\n\t\t\t\treturn this.parent.children.filter((item) => {\n\t\t\t\t\treturn item.index > this.index\n\t\t\t\t})\n\t\t\t},\n\t\t\tprevAll() {\n\t\t\t\treturn this.parent.children.filter((item) => {\n\t\t\t\t\treturn item.index < this.index\n\t\t\t\t}).reverse()\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t@import '../../libs/core.scss';\n</style>\n","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723621061220\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper-item%2Fz-swiper-item.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper-item%2Fz-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 @
d847ec3d
{"version":3,"sources":["webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?6a0e","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?3970","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?e270","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?7dcf","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?92e6","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?2f85","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?7ee6","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?a33e","uni-app:///uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue"],"names":["name","options","virtualHost","mixins","props","customStyle","type","default","value","data","wxsTransform","wrapperStyle","contentClass","nextElClass","prevElClass","paginationElClass","paginationItemElClass","loopBlankShow","loopBlankNumber","cubeShadowShowWrapper","cubeShadowShowRoot","cubeShadowStyle","eventsListeners","showPrevButton","showPrevButtonSlot","showNextButton","showNextButtonSlot","showIndicators","paginationContent","paginationType","paginationStyle","scrollbarElClass","scrollbarStyle","scrollbarItemStyle","rectInfo","containerClasses","virtualData","firstLoad","originalDataList","loopUpdateData","computed","nextClass","prevClass","paginationClass","paginationItemClass","scrollbarClass","scrollbarShow","created","swiperParams","passedParams","args","Object","_containerClasses","cache","slides","renderExternal","renderExternalUpdate","toString","val","top","map","slide","deep","immediate","uni","children","Promise","beforeDestroy","methods","loadSwiper","swiperElId","emit","updateData","getRect","getRectScrollbar","willChange","transform","transition","scrollbarTransform","scrollbarTransition","scrollbarItemTransform","scrollbarItemTransition","addClass","removeClass","addPaginationClass","removePaginationClass","addScrollbarClass","removeScrollbarClass","setCss","css","paginationCss","scrollbarCss","scrollbarItemCss","addNextElClass","addPrevElClass","removeNextElClass","removePrevElClass","cubeShadowCss","cubeShadowTransform","cubeShadowTransition","swiperRef","el","nextEl","prevEl","paginationEl","scrollbarEl","swiper","updateSwiper","initializedRef","newPassedParams","oldPassedParamsRef","slidesRef","oldSlidesRef","changedParams","breakpointChanged","setPaginationCss","setSwiperOn","paginationItemClick","prevClick","nextClick","onTouchStart","onTouchStartSwiperWxs","onTouchMove","onTouchMoveSwiperWxs","onTouchEnd","onTouchEndSwiperWxs","onClickWrapper","onClickScrollbar","onTouchStartScrollbar","onTouchMoveScrollbar","onTouchEndScrollbar"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAmnD,CAAgB,67CAAG,EAAC,C;;;;;;;;;;;ACAvoD;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA,wCAAuZ,CAAgB,8cAAG,EAAC,C;;;;;;;;;;;;ACA3a;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,M;;;;;;;;;;;;ACPA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2V;AAC3V;AAC4D;AACL;AACsC;;;AAG7F;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,yTAAM;AACR,EAAE,kUAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,6TAAU;AACZ;AACA;;AAEA;AACgP;AAChP,WAAW,6PAAM,iBAAiB,qQAAM;;AAExC;AACe,gF;;;;;;;;;;;;AC3Bf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,uVAEN;AACP,KAAK;AACL;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC7EA;AAAA;AAAA;AAAA;AAAo2B,CAAgB,syBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;ACyEx3B;AAKA;AAGA;AAIA;AAOA;AAIA;AAGA;AAGA;AAKA;AAEA;AAAA;AAAA,gBAEA;EACAA;EAEAC;IACAC;EACA;EAEAC,SACA,qCACA;EAwBAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACAN;MACAK;MACAC;QACA;MACA;IACA;IAEAC;MACAF;MACAC;QACA;MACA;IACA;EAUA;EACAE;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MAEA;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IAWAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IAAA;IACA,iBAGA;MAFAC;MACAC;IAEA;IACA;IACA;IACA;IAEAD;MAAA;QAAAE;MAAA;MAEA;;MAEA;QACA;MACA;IAMA;IACAC;MACAC;QACA;MACA;IACA;IACA;MACA;QACA5C;QACAP;MACA;IACA;MACA;MACA;QACA;UACA;UACA;YACAoD;YACAC;YACAC;cACA;cAEA;YAKA;YACAC;UACA;UACA;UACA;QACA;MACA;MACA;MACA;QACA,oFACAC;UACA;UACA;QAMA;UACA;UACA;UACA,kFACAC;YACA;YAEA;YAKA;UACA;QACA;MACA;MACA;QACA;UACA,4EACA,sCACA,kBACA,mCACA;YACAC;UACA;UACA,eACAC;YACAC;UACA;QAEA;QAGA;MACA;IACA;MACAC;MACAC;IACA;IACA;MACA;IACA;MACA;QACAZ;UACAO;QACA;MACA;IACA;MACAI;IACA;IACA;MACA;IACA;MACA;QACA;MACA;IACA;MACAA;IACA;IACAE;MAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBACA;kBACAC;oBACA;kBACA;oBACA;sBACA,4DACAT,0BACAA;wBACA;0BACA;wBACA;sBACA;wBACA;sBACA;oBACA;sBACA;wBACA;sBACA;oBACA;oBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,CACA;MAAA;QAAA;MAAA;IAAA;EACA;EAEAU;IACA;MACA;IACA;EACA;EASAC;IACAC;MACA;MACA;MACA;MACA,wGACA,aACA;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MAAA,GACA;MACA;MACAC;MACAA;MACA;QACAA;MACA;MAEA;MACA;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA,GACA,kBACA;MACA;MACA;IACA;IACAC;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;QACAP;QACAQ;MACA;MACA;MACA,kBAEA;QADAC;MAEA,4DACAA,iBACAC,oBACAC,WACAC,aACA;MACA;MACA;MACA,IACA,+CACAZ,aACA,sBACA;QACA;UACAM;UACApD;UACAL;UACAgE;UACAX;UACAC;UACAE;UACAD;QACA;MACA;MACAU;IACA;IACA3C;MACA;IACA;IACAE;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;cAAA;gBAAAvC;gBACA;gBAAA,kCACAA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAwC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;cAAA;gBAAAxC;gBAAA,kCACAA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAsC;MAAA;MACArB;QACA;MACA;IACA;IACAwB;MACA;IACA;IACAC;MAKA;IAEA;IACAC;MAKA;IAEA;IACAW;MAAA;MACArC;QACA;MACA;IACA;IACA2B;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MAKA;IAEA;IACAC;MAMA;QAAA;MAAA;IAEA;IACAC;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAC;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACA4B;MAAA;MACAhE;QACA;MACA;IACA;IACAwC;MAAA;MACAxC;QACA;MACA;IACA;IACAyC;MAAA;MACAzC;QACA;MACA;IACA;IACA0C;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAoB;MACA;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAjC;MAAA;MACA9C;QACA;MACA;IACA;IACA+C;MACA;IACA;IACAC;MACA;IACA;EACA;AACA;AAAA,4B","file":"uni_modules/zebra-swiper/components/z-swiper/z-swiper.js","sourcesContent":["import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723191564229\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper%2Fz-swiper.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper%2Fz-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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMyOTMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMjkzfX0%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 \"!../../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper%2Fz-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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMyOTMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMjkzfX0%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 var s1 = _vm.__get_style([_vm.wrapperStyle])\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 var s5 = _vm.__get_style([item.styleContent])\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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=script&lang=js&\"","<template>\n\t<view :id=\"'swiper'+_uid\"\n\t\t:class=\"['swiper',contentClass,containerClasses,options.direction === 'vertical'?'swiper-vertical':'']\"\n\t\t:style=\"[customStyle]\">\n\t\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\n\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\" @touchstart=\"onTouchStart\"\n\t\t\t@touchmove=\"onTouchMove\" @touchend=\"onTouchEnd\" @touchcancel=\"onTouchEnd\">\n\t\t<!-- #endif -->\n\t\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\n\t\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\"\n\t\t\t\t@touchstart=\"zSwiperWxs.onTouchStartWxs\" @touchmove=\"zSwiperWxs.onTouchMoveWxs\"\n\t\t\t\t@touchend=\"zSwiperWxs.onTouchEndWxs\" @touchcancel=\"zSwiperWxs.onTouchEndWxs\"\n\t\t\t\t:swiperTransform=\"wxsTransform\" :change:swiperTransform=\"zSwiperWxs.wxsTransformObserver\">\n\t\t\t<!-- #endif -->\n\t\t\t\t<slot></slot>\n\t\t\t\t<!-- 在loop模式下,为group填充空白slide -->\n\t\t\t\t<template v-if=\"loopBlankShow\">\n\t\t\t\t\t<z-swiper-item v-for=\"(item,index) in loopBlankNumber\" :key=\"index\">\n\t\t\t\t\t</z-swiper-item>\n\t\t\t\t</template>\n\t\t\t\t<template v-if=\"cubeShadowShowWrapper\">\n\t\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\n\t\t\t\t</template>\n\t\t\t</view>\n\t\t\t<template v-if=\"cubeShadowShowRoot\">\n\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\n\t\t\t</template>\n\t\t\t<slot name=\"indicator\"></slot>\n\t\t\t<template v-if=\"showIndicators\">\n\t\t\t\t<view :class=\"['swiper-pagination',paginationClass]\" :style=\"[paginationStyle]\">\n\t\t\t\t\t<template v-if=\"paginationType == 'bullets'\">\n\t\t\t\t\t\t<view v-for=\"(item,index) in paginationContent\" :key=\"index\"\n\t\t\t\t\t\t\t:class=\"[item.classContent.join(' ')]\" :style=\"[item.styleContent]\"\n\t\t\t\t\t\t\t@click=\"paginationItemClick(index)\">\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</template>\n\t\t\t\t\t<template v-if=\"paginationType == 'fraction'\">\n\t\t\t\t\t\t<text :class=\"paginationContent.currentClass\">{{paginationContent.text}}</text>/<text\n\t\t\t\t\t\t\t:class=\"paginationContent.totalClass\">{{paginationContent.total}}</text>\n\t\t\t\t\t</template>\n\t\t\t\t\t<template v-if=\"paginationType == 'progressbar'\">\n\t\t\t\t\t\t<text :class=\"paginationContent.progressbarFillClass\"\n\t\t\t\t\t\t\t:style=\"[paginationContent.styleContent]\"></text>\n\t\t\t\t\t</template>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t\t<template v-if=\"(showPrevButton||showPrevButtonSlot)\">\n\t\t\t\t<view :class=\"['swiper-button-prev',prevClass]\" @click=\"prevClick\">\n\t\t\t\t\t<view v-if=\"!showPrevButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_left\"></view>\n\t\t\t\t\t<slot v-else name=\"pre-button\"></slot>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t\t<template v-if=\"(showNextButton||showNextButtonSlot)\">\n\t\t\t\t<view :class=\"['swiper-button-next',nextClass]\" @click=\"nextClick\">\n\t\t\t\t\t<view v-if=\"!showNextButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_right\"></view>\n\t\t\t\t\t<slot v-else name=\"next-button\"></slot>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t\t<template v-if=\"scrollbarShow\">\n\t\t\t\t<view :class=\"['swiper-scrollbar',scrollbarClass]\" :style=\"[scrollbarStyle]\"\n\t\t\t\t\t@click.stop=\"onClickScrollbar\" @touchstart.stop=\"onTouchStartScrollbar\"\n\t\t\t\t\t@touchmove.stop.prevent=\"onTouchMoveScrollbar\" @touchend.stop=\"onTouchEndScrollbar\">\n\t\t\t\t\t<view class=\"swiper-scrollbar-drag\" :style=\"[scrollbarItemStyle]\">\n\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t</view>\n</template>\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\n<!-- #endif -->\n<script>\n\timport {\n\t\tgetAllRect,\n\t\tgetRect\n\t} from '../../libs/utils/utils.js';\n\t// vue2\n\timport {\n\t\tgetParams\n\t} from '../../libs/vue2/get-params.js';\n\timport {\n\t\tinitSwiper,\n\t\tmountSwiper\n\t} from '../../libs/vue2/init-swiper.js';\n\timport {\n\t\tneedsScrollbar,\n\t\tneedsNavigation,\n\t\tneedsPagination,\n\t\tuniqueClasses,\n\t\textend,\n\t} from '../../libs/vue2/utils.js';\n\timport {\n\t\trenderLoop,\n\t\tcalcLoopedSlides\n\t} from '../../libs/vue2/loop.js';\n\timport {\n\t\tgetChangedParams\n\t} from '../../libs/vue2/get-changed-params.js';\n\timport {\n\t\tupdateSwiper\n\t} from '../../libs/vue2/update-swiper.js';\n\timport {\n\t\trenderVirtual,\n\t\tupdateOnVirtualData\n\t} from '../../libs/vue2/virtual.js';\n\t//mixin\n\timport {\n\t\tParentMixin\n\t} from '../../libs/mixins/relation.js';\n\n\texport default {\n\t\tname: \"z-swipe\",\n\t\t// #ifdef MP-WEIXIN\n\t\toptions: {\n\t\t\tvirtualHost: true\n\t\t},\n\t\t// #endif\n\t\tmixins: [\n\t\t\tParentMixin('zSwipe')\n\t\t],\n\t\t// #ifdef VUE3\n\t\temits: ['update:modelValue', 'touch-start', 'touch-move', 'touch-end', 'transitionend', 'slideClick',\n\t\t\t'_beforeBreakpoint',\n\t\t\t'_containerClasses',\n\t\t\t'_slideClass',\n\t\t\t'_slideClasses', '_swiper',\n\t\t\t'activeIndexChange', 'afterInit', 'autoplay', 'autoplayStart', 'autoplayStop', 'autoplayPause',\n\t\t\t'autoplayResume', 'beforeDestroy', 'beforeInit', 'beforeLoopFix', 'beforeResize', 'beforeSlideChangeStart',\n\t\t\t'beforeTransitionStart', 'breakpoint', 'changeDirection', 'click', 'disable', 'doubleTap', 'doubleClick',\n\t\t\t'destroy', 'enable', 'fromEdge', 'hashChange', 'hashSet', 'imagesReady', 'init', 'keyPress',\n\t\t\t'lazyImageLoad', 'lazyImageReady', 'lock', 'loopFix', 'momentumBounce', 'navigationHide', 'navigationShow',\n\t\t\t'observerUpdate', 'orientationchange', 'paginationHide', 'paginationRender', 'paginationShow',\n\t\t\t'paginationUpdate', 'progress', 'reachBeginning', 'reachEnd', 'realIndexChange', 'resize', 'scroll',\n\t\t\t'scrollbarDragEnd', 'scrollbarDragMove', 'scrollbarDragStart', 'setTransition', 'setTranslate',\n\t\t\t'slideChange', 'slideChangeTransitionEnd', 'slideChangeTransitionStart', 'slideNextTransitionEnd',\n\t\t\t'slideNextTransitionStart', 'slidePrevTransitionEnd', 'slidePrevTransitionStart',\n\t\t\t'slideResetTransitionStart', 'slideResetTransitionEnd', 'sliderMove', 'sliderFirstMove',\n\t\t\t'slidesLengthChange', 'slidesGridLengthChange', 'snapGridLengthChange', 'snapIndexChange', 'swiper', 'tap',\n\t\t\t'toEdge', 'touchEnd', 'touchMove', 'touchMoveOpposite', 'touchStart', 'transitionEnd', 'transitionStart',\n\t\t\t'unlock', 'update', 'zoomChange', 'beforeMount', 'nextClick', 'prevClick', 'touchStartScrollbar',\n\t\t\t'touchMoveScrollbar', 'touchEndScrollbar', 'beforeUpdate', 'paginationItemClick'\n\t\t],\n\t\t// #endif\n\t\tprops: {\n\t\t\tcustomStyle: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {};\n\t\t\t\t}\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {}\n\t\t\t\t}\n\t\t\t},\n\t\t\t// #ifdef VUE2\n\t\t\tvalue: {\n\t\t\t\ttype: Array,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn []\n\t\t\t\t}\n\t\t\t},\n\t\t\t// #endif\n\t\t\t// #ifdef VUE3\n\t\t\tmodelValue: {\n\t\t\t\ttype: Array,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn []\n\t\t\t\t}\n\t\t\t}\n\t\t\t// #endif\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\twxsTransform: \"\",\n\t\t\t\twrapperStyle: {},\n\t\t\t\tcontentClass: '',\n\t\t\t\tnextElClass: [],\n\t\t\t\tprevElClass: [],\n\t\t\t\tpaginationElClass: [],\n\t\t\t\tpaginationItemElClass: [],\n\t\t\t\tloopBlankShow: false,\n\t\t\t\tloopBlankNumber: 0,\n\t\t\t\tcubeShadowShowWrapper: false,\n\t\t\t\tcubeShadowShowRoot: false,\n\t\t\t\tcubeShadowStyle: {},\n\t\t\t\teventsListeners: {},\n\t\t\t\tshowPrevButton: false,\n\t\t\t\tshowPrevButtonSlot: false,\n\t\t\t\tshowNextButton: false,\n\t\t\t\tshowNextButtonSlot: false,\n\t\t\t\tshowIndicators: false,\n\t\t\t\tpaginationContent: [],\n\t\t\t\tpaginationType: '',\n\t\t\t\tpaginationStyle: {},\n\t\t\t\tscrollbarElClass: [],\n\t\t\t\tscrollbarStyle: {},\n\t\t\t\tscrollbarItemStyle: {},\n\t\t\t\trectInfo: null,\n\n\t\t\t\t// vue2\n\t\t\t\tcontainerClasses: 'swiper',\n\t\t\t\tvirtualData: null,\n\t\t\t\tfirstLoad: true,\n\t\t\t\toriginalDataList: [],\n\t\t\t\tloopUpdateData: false\n\t\t\t};\n\t\t},\n\t\tcomputed: {\n\t\t\t// #ifdef VUE3\n\t\t\tvalue() {\n\t\t\t\treturn this.modelValue\n\t\t\t},\n\t\t\t// #endif\n\t\t\t// #ifdef VUE3\n\t\t\t_uid() {\n\t\t\t\treturn this._.uid\n\t\t\t},\n\t\t\t// #endif\n\t\t\tnextClass() {\n\t\t\t\treturn this.nextElClass.join(\" \");\n\t\t\t},\n\t\t\tprevClass() {\n\t\t\t\treturn this.prevElClass.join(\" \");\n\t\t\t},\n\t\t\tpaginationClass() {\n\t\t\t\treturn this.paginationElClass.join(\" \");\n\t\t\t},\n\t\t\tpaginationItemClass() {\n\t\t\t\treturn this.paginationItemElClass.join(\" \");\n\t\t\t},\n\t\t\tscrollbarClass() {\n\t\t\t\treturn this.scrollbarElClass.join(\" \");\n\t\t\t},\n\t\t\tscrollbarShow() {\n\t\t\t\treturn needsScrollbar(this.options)\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tconst {\n\t\t\t\tparams: swiperParams,\n\t\t\t\tpassedParams\n\t\t\t} = getParams(this.options);\n\t\t\tthis.swiperElRef = 'swiper';\n\t\t\tthis.swiperParams = swiperParams;\n\t\t\tthis.oldPassedParamsRef = passedParams;\n\t\t\tlet slidesRef = this.slidesRef;\n\n\t\t\tswiperParams.onAny = (event, ...args) => {\n\t\t\t\t// #ifdef MP\n\t\t\t\t// 字节小程序此处报错,因此无法使用v-on监听事件\n\t\t\t\t// #ifndef MP-TOUTIAO\n\t\t\t\tthis.$emit(event, {}, ...args.filter((item, index) => {\n\t\t\t\t\treturn index > 0\n\t\t\t\t}));\n\t\t\t\t// #endif\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP\n\t\t\t\tthis.$emit(event, ...args);\n\t\t\t\t// #endif\n\t\t\t};\n\t\t\tObject.assign(swiperParams.on, {\n\t\t\t\t_containerClasses(swiper, classes) {\n\t\t\t\t\tthis.containerClasses = classes;\n\t\t\t\t},\n\t\t\t});\n\t\t\tthis.$watch(() => {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: this.value,\n\t\t\t\t\toptions: this.options\n\t\t\t\t}\n\t\t\t}, (val) => {\n\t\t\t\t// virtual模式处理\n\t\t\t\tif (this.swiperParams && this.swiperParams.virtual) {\n\t\t\t\t\tif (!this.virtualData && val.options.virtual.slides.length) {\n\t\t\t\t\t\tthis.swiperParams.virtual.slides = val.options.virtual.slides;\n\t\t\t\t\t\tconst extendWith = {\n\t\t\t\t\t\t\tcache: false,\n\t\t\t\t\t\t\tslides: val.options.virtual.slides,\n\t\t\t\t\t\t\trenderExternal: data => {\n\t\t\t\t\t\t\t\tthis.virtualData = data;\n\t\t\t\t\t\t\t\t// #ifdef VUE2\n\t\t\t\t\t\t\t\tthis.$emit(\"input\", data.slides);\n\t\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t\t// #ifdef VUE3\n\t\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", data.slides);\n\t\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trenderExternalUpdate: false\n\t\t\t\t\t\t};\n\t\t\t\t\t\textend(this.swiperParams.virtual, extendWith);\n\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// loop模式处理\n\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\n\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList.toString() == val.value\n\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tthis.loopUpdateData = true;\n\t\t\t\t\t\t// 百度小程序watch晚于子组件加载\n\t\t\t\t\t\t// #ifdef MP-BAIDU\n\t\t\t\t\t\tif (this.firstLoad) {\n\t\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #endif\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.loopUpdateData = false;\n\t\t\t\t\t\tlet slides = renderLoop(this, this.swiperParams, this.value);\n\t\t\t\t\t\tif (this.swiperParams.loop && !this.loopUpdateData && slides.data.toString() !=\n\t\t\t\t\t\t\tval.value.toString()) {\n\t\t\t\t\t\t\tthis.loopUpdateData = true;\n\t\t\t\t\t\t\t// #ifdef VUE2\n\t\t\t\t\t\t\tthis.$emit(\"input\", slides.data)\n\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t// #ifdef VUE3\n\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", slides.data)\n\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (this.swiper && !this.firstLoad) {\n\t\t\t\t\tif (this.virtualData && val.options.virtual.type == \"cut\") {\n\t\t\t\t\t\tconst style = this.swiper.isHorizontal() ? {\n\t\t\t\t\t\t\t[this.swiper.rtlTranslate ? 'right' :\n\t\t\t\t\t\t\t\t'left'\n\t\t\t\t\t\t\t]: `${this.virtualData.offset}px`\n\t\t\t\t\t\t} : {\n\t\t\t\t\t\t\ttop: `${this.virtualData.offset}px`\n\t\t\t\t\t\t};\n\t\t\t\t\t\tthis.children\n\t\t\t\t\t\t\t.map(slide => {\n\t\t\t\t\t\t\t\tslide.css(style)\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tthis.updateSwiper(val.value, val.options, this.children);\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tdeep: true,\n\t\t\t\timmediate: true\n\t\t\t})\n\t\t\tthis.$watch(() => {\n\t\t\t\treturn this.$data\n\t\t\t}, (val) => {\n\t\t\t\tif (this.swiper && this.swiper.native) {\n\t\t\t\t\tObject.assign(this.swiper.native, {\n\t\t\t\t\t\tval\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tdeep: true\n\t\t\t})\n\t\t\tthis.$watch(() => {\n\t\t\t\treturn this.virtualData\n\t\t\t}, (val) => {\n\t\t\t\tif (this.swiper && this.virtualData) {\n\t\t\t\t\tupdateOnVirtualData(this.swiper);\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tdeep: true\n\t\t\t})\n\t\t\tuni.$on(\"childrenReady\" + this._uid, async (children) => {\n\t\t\t\tchildren.dataSwiperSlideIndex = children.index;\n\t\t\t\tif (this.children.length == this.value.length) {\n\t\t\t\t\tPromise.all(this.children.map((item) => {\n\t\t\t\t\t\treturn item.getSize();\n\t\t\t\t\t})).then((res) => {\n\t\t\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\n\t\t\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList\n\t\t\t\t\t\t\t\t\t.toString() == this.value\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\t\t\tif (this.firstLoad) {\n\t\t\t\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (this.firstLoad) {\n\t\t\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.updateSwiper(this.value, this.options, this.children);\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t// #ifdef VUE2\n\t\tbeforeDestroy() {\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\n\t\t\t\tthis.swiper.destroy(true, false);\n\t\t\t}\n\t\t},\n\t\t// #endif\n\t\t// #ifdef VUE3\n\t\tbeforeUnmount() {\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\n\t\t\t\tthis.swiper.destroy(true, false);\n\t\t\t}\n\t\t},\n\t\t// #endif\n\t\tmethods: {\n\t\t\tloadSwiper() {\n\t\t\t\tlet swiperParams = this.swiperParams;\n\t\t\t\tthis.slidesRef = this.children;\n\t\t\t\tthis.oldSlidesRef = this.slidesRef;\n\t\t\t\tlet swiperRef = initSwiper(swiperParams, {\n\t\t\t\t\t...this.$data,\n\t\t\t\t\t...this.$props,\n\t\t\t\t\tswiperElId: 'swiper' + this._uid,\n\t\t\t\t\temit: this.emit.bind(this),\n\t\t\t\t\tupdateData: this.updateData.bind(this),\n\t\t\t\t\tgetRect: this.getRect.bind(this),\n\t\t\t\t\tgetRectScrollbar: this.getRectScrollbar.bind(this),\n\t\t\t\t\twillChange: this.willChange.bind(this),\n\t\t\t\t\ttransform: this.transform.bind(this),\n\t\t\t\t\ttransition: this.transition.bind(this),\n\t\t\t\t\tscrollbarTransform: this.scrollbarTransform.bind(this),\n\t\t\t\t\tscrollbarTransition: this.scrollbarTransition.bind(this),\n\t\t\t\t\tscrollbarItemTransform: this.scrollbarItemTransform.bind(this),\n\t\t\t\t\tscrollbarItemTransition: this.scrollbarItemTransition.bind(this),\n\t\t\t\t\taddClass: this.addClass.bind(this),\n\t\t\t\t\tremoveClass: this.removeClass.bind(this),\n\t\t\t\t\taddPaginationClass: this.addPaginationClass.bind(this),\n\t\t\t\t\tremovePaginationClass: this.removePaginationClass.bind(this),\n\t\t\t\t\taddScrollbarClass: this.addScrollbarClass.bind(this),\n\t\t\t\t\tremoveScrollbarClass: this.removeScrollbarClass.bind(this),\n\t\t\t\t\tsetCss: this.setCss.bind(this),\n\t\t\t\t\tcss: this.setCss.bind(this),\n\t\t\t\t\tpaginationCss: this.setPaginationCss.bind(this),\n\t\t\t\t\tscrollbarCss: this.scrollbarCss.bind(this),\n\t\t\t\t\tscrollbarItemCss: this.scrollbarItemCss.bind(this),\n\t\t\t\t\taddNextElClass: this.addNextElClass.bind(this),\n\t\t\t\t\taddPrevElClass: this.addPrevElClass.bind(this),\n\t\t\t\t\tremoveNextElClass: this.removeNextElClass.bind(this),\n\t\t\t\t\tremovePrevElClass: this.removePrevElClass.bind(this),\n\t\t\t\t\tcubeShadowCss: this.cubeShadowCss.bind(this),\n\t\t\t\t\tcubeShadowTransform: this.cubeShadowTransform.bind(this),\n\t\t\t\t\tcubeShadowTransition: this.cubeShadowTransition.bind(this),\n\t\t\t\t});\n\t\t\t\tthis.swiper = swiperRef;\n\t\t\t\tswiperRef.loopCreate = () => {};\n\t\t\t\tswiperRef.loopDestroy = () => {};\n\t\t\t\tif (swiperParams.loop) {\n\t\t\t\t\tswiperRef.loopedSlides = calcLoopedSlides(this.slidesRef, swiperParams);\n\t\t\t\t}\n\n\t\t\t\tif (!this.swiper) return;\n\t\t\t\tmountSwiper({\n\t\t\t\t\t\tel: this.swiperElRef,\n\t\t\t\t\t\tnextEl: this.nextElRef,\n\t\t\t\t\t\tprevEl: this.prevElRef,\n\t\t\t\t\t\tpaginationEl: this.paginationElRef,\n\t\t\t\t\t\tscrollbarEl: this.scrollbarElRef,\n\t\t\t\t\t\tswiper: this.swiper,\n\t\t\t\t\t},\n\t\t\t\t\tthis.swiperParams,\n\t\t\t\t);\n\t\t\t\tthis.$emit('swiper');\n\t\t\t\tthis.firstLoad = false;\n\t\t\t},\n\t\t\tupdateSwiper(value, options, children) {\n\t\t\t\tthis.swiper.slides = children;\n\t\t\t\tthis.slidesRef = children;\n\t\t\t\tlet initializedRef = this.initializedRef;\n\t\t\t\tlet swiperRef = this.swiper;\n\t\t\t\tlet slidesRef = this.slidesRef;\n\t\t\t\tlet oldPassedParamsRef = this.oldPassedParamsRef;\n\t\t\t\tlet oldSlidesRef = this.oldSlidesRef;\n\t\t\t\tlet breakpointChanged = this.breakpointChanged;\n\t\t\t\tlet nextElRef = this.nextElRef;\n\t\t\t\tlet prevElRef = this.prevElRef;\n\t\t\t\tlet paginationElRef = this.paginationElRef;\n\t\t\t\tlet scrollbarElRef = this.scrollbarElRef;\n\t\t\t\t// set initialized flag\n\t\t\t\tif (!initializedRef && swiperRef) {\n\t\t\t\t\tswiperRef.emitSlidesClasses();\n\t\t\t\t\tinitializedRef = true;\n\t\t\t\t}\n\t\t\t\t// watch for params change\n\t\t\t\tconst {\n\t\t\t\t\tpassedParams: newPassedParams\n\t\t\t\t} = getParams(options);\n\t\t\t\tconst changedParams = getChangedParams(\n\t\t\t\t\tnewPassedParams,\n\t\t\t\t\toldPassedParamsRef,\n\t\t\t\t\tslidesRef,\n\t\t\t\t\toldSlidesRef,\n\t\t\t\t);\n\t\t\t\tthis.oldPassedParamsRef = newPassedParams;\n\t\t\t\tthis.oldSlidesRef = slidesRef;\n\t\t\t\tif (\n\t\t\t\t\t(changedParams.length || breakpointChanged) &&\n\t\t\t\t\tswiperRef &&\n\t\t\t\t\t!swiperRef.destroyed\n\t\t\t\t) {\n\t\t\t\t\tupdateSwiper({\n\t\t\t\t\t\tswiper: swiperRef,\n\t\t\t\t\t\tslides: slidesRef,\n\t\t\t\t\t\tpassedParams: newPassedParams,\n\t\t\t\t\t\tchangedParams,\n\t\t\t\t\t\tnextEl: nextElRef,\n\t\t\t\t\t\tprevEl: prevElRef,\n\t\t\t\t\t\tscrollbarEl: scrollbarElRef,\n\t\t\t\t\t\tpaginationEl: paginationElRef,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tbreakpointChanged = false;\n\t\t\t},\n\t\t\temit(event, data) {\n\t\t\t\tthis.$emit(event, ...data)\n\t\t\t},\n\t\t\tasync getRect() {\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper');\n\t\t\t\tthis.rectInfo = rectInfo;\n\t\t\t\treturn rectInfo;\n\t\t\t},\n\t\t\tasync getRectScrollbar() {\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper-scrollbar');\n\t\t\t\treturn rectInfo;\n\t\t\t},\n\t\t\tupdateData(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\twillChange(value) {\n\t\t\t\tthis.$set(this.wrapperStyle, 'will-change', value)\n\t\t\t},\n\t\t\ttransform(value) {\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.$set(this.wrapperStyle, 'transform', value)\n\t\t\t\t// #endif\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.wxsTransform = value;\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\ttransition(value) {\n\t\t\t\t// #ifdef MP-BAIDU\n\t\t\t\tthis.$set(this.wrapperStyle, 'transitionDuration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-BAIDU\n\t\t\t\tthis.$set(this.wrapperStyle, 'transition-duration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\tsetCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.wrapperStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tscrollbarTransform(value) {\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transform', value)\n\t\t\t},\n\t\t\tscrollbarTransition(value) {\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transitionDuration', `${value}ms`)\n\t\t\t},\n\t\t\tscrollbarItemTransform(value) {\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transform', value)\n\t\t\t},\n\t\t\tscrollbarItemTransition(value) {\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transitionDuration', `${value}ms`)\n\t\t\t},\n\t\t\taddClass(value) {\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass.split(\" \"), ...value.split(\" \")])).join(\" \");\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass, ...value.split(\" \")]));\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\tremoveClass(value) {\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = this.contentClass.split(\" \").filter(item => !value.split(\" \").includes(item)).join(\n\t\t\t\t\t\" \");\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = this.contentClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\taddPaginationClass(value) {\n\t\t\t\tthis.paginationElClass = Array.from(new Set([...this.paginationElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremovePaginationClass(value) {\n\t\t\t\tthis.paginationElClass = this.paginationElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\taddScrollbarClass(value) {\n\t\t\t\tthis.scrollbarElClass = Array.from(new Set([...this.scrollbarElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremoveScrollbarClass(value) {\n\t\t\t\tthis.scrollbarElClass = this.scrollbarElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\tsetPaginationCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.paginationStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tscrollbarCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.scrollbarStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tscrollbarItemCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.scrollbarItemStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\taddNextElClass(value) {\n\t\t\t\tthis.nextElClass = Array.from(new Set([...this.nextElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\taddPrevElClass(value) {\n\t\t\t\tthis.prevElClass = Array.from(new Set([...this.prevElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremoveNextElClass(value) {\n\t\t\t\tthis.nextElClass = this.nextElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\tremovePrevElClass(value) {\n\t\t\t\tthis.prevElClass = this.prevElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\tsetSwiperOn(event, callback) {\n\t\t\t\tif (!this.eventsListeners[event]) this.eventsListeners[event] = {};\n\t\t\t\tthis.eventsListeners[event] = callback;\n\t\t\t},\n\t\t\tpaginationItemClick(index) {\n\t\t\t\tthis.swiper.emit(\"paginationItemClick\", index)\n\t\t\t},\n\t\t\tprevClick() {\n\t\t\t\tthis.swiper.emit(\"prevClick\");\n\t\t\t},\n\t\t\tnextClick() {\n\t\t\t\tthis.swiper.emit(\"nextClick\");\n\t\t\t},\n\t\t\tonTouchStart(event) {\n\t\t\t\tthis.swiper.onTouchStart(event);\n\t\t\t},\n\t\t\tonTouchStartSwiperWxs(event) {\n\t\t\t\tthis.swiper.onTouchStart(event);\n\t\t\t},\n\t\t\tonTouchMove(event) {\n\t\t\t\tthis.swiper.onTouchMove(event);\n\t\t\t},\n\t\t\tonTouchMoveSwiperWxs(event) {\n\t\t\t\tthis.swiper.onTouchMove(event);\n\t\t\t},\n\t\t\tonTouchEnd(event) {\n\t\t\t\tthis.swiper.onTouchEnd(event);\n\t\t\t},\n\t\t\tonTouchEndSwiperWxs(event) {\n\t\t\t\tthis.swiper.onTouchEnd(event);\n\t\t\t},\n\t\t\tonClickWrapper(event) {\n\t\t\t\tthis.$emit(\"click\", event);\n\t\t\t},\n\t\t\tonClickScrollbar(event) {\n\t\t\t\tthis.$emit(\"scrollbarClick\", event);\n\t\t\t},\n\t\t\tonTouchStartScrollbar(event) {\n\t\t\t\tthis.swiper.emit('touchStartScrollbar', event);\n\t\t\t},\n\t\t\tonTouchMoveScrollbar(event) {\n\t\t\t\tthis.swiper.emit('touchMoveScrollbar', event);\n\t\t\t},\n\t\t\tonTouchEndScrollbar(event) {\n\t\t\t\tthis.swiper.emit('touchEndScrollbar', event);\n\t\t\t},\n\t\t\tcubeShadowCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.cubeShadowStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tcubeShadowTransform(value) {\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transform', value)\n\t\t\t},\n\t\t\tcubeShadowTransition(value) {\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transitionDuration', `${value}ms`)\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t@import '../../libs/core.scss';\n\t@import \"../../static/css/iconfont.css\";\n\n\t.swiper {\n\t\t&__prev--button {\n\t\t\tposition: absolute;\n\t\t\tleft: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\tz-index: 10;\n\t\t}\n\n\t\t&__prev--button--disable {\n\t\t\tposition: absolute;\n\t\t\tleft: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\topacity: .35;\n\t\t\tz-index: 10;\n\t\t}\n\n\t\t&__next--button {\n\t\t\tposition: absolute;\n\t\t\tright: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\tz-index: 10;\n\t\t}\n\n\t\t&__next--button--disable {\n\t\t\tposition: absolute;\n\t\t\tright: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\topacity: .35;\n\t\t\tz-index: 10;\n\t\t}\n\t}\n</style>"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?6a0e","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?3970","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?e270","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/wxs/z-swiper-wxs.wxs?7dcf","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?92e6","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?2f85","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?7ee6","webpack:////Users/kenji/Desktop/Intern/jueqing/uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue?a33e","uni-app:///uni_modules/zebra-swiper/components/z-swiper/z-swiper.vue"],"names":["name","options","virtualHost","mixins","props","customStyle","type","default","value","data","wxsTransform","wrapperStyle","contentClass","nextElClass","prevElClass","paginationElClass","paginationItemElClass","loopBlankShow","loopBlankNumber","cubeShadowShowWrapper","cubeShadowShowRoot","cubeShadowStyle","eventsListeners","showPrevButton","showPrevButtonSlot","showNextButton","showNextButtonSlot","showIndicators","paginationContent","paginationType","paginationStyle","scrollbarElClass","scrollbarStyle","scrollbarItemStyle","rectInfo","containerClasses","virtualData","firstLoad","originalDataList","loopUpdateData","computed","nextClass","prevClass","paginationClass","paginationItemClass","scrollbarClass","scrollbarShow","created","swiperParams","passedParams","args","Object","_containerClasses","cache","slides","renderExternal","renderExternalUpdate","toString","val","top","map","slide","deep","immediate","uni","children","Promise","beforeDestroy","methods","loadSwiper","swiperElId","emit","updateData","getRect","getRectScrollbar","willChange","transform","transition","scrollbarTransform","scrollbarTransition","scrollbarItemTransform","scrollbarItemTransition","addClass","removeClass","addPaginationClass","removePaginationClass","addScrollbarClass","removeScrollbarClass","setCss","css","paginationCss","scrollbarCss","scrollbarItemCss","addNextElClass","addPrevElClass","removeNextElClass","removePrevElClass","cubeShadowCss","cubeShadowTransform","cubeShadowTransition","swiperRef","el","nextEl","prevEl","paginationEl","scrollbarEl","swiper","updateSwiper","initializedRef","newPassedParams","oldPassedParamsRef","slidesRef","oldSlidesRef","changedParams","breakpointChanged","setPaginationCss","setSwiperOn","paginationItemClick","prevClick","nextClick","onTouchStart","onTouchStartSwiperWxs","onTouchMove","onTouchMoveSwiperWxs","onTouchEnd","onTouchEndSwiperWxs","onClickWrapper","onClickScrollbar","onTouchStartScrollbar","onTouchMoveScrollbar","onTouchEndScrollbar"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAmnD,CAAgB,67CAAG,EAAC,C;;;;;;;;;;;ACAvoD;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA,wCAAuZ,CAAgB,8cAAG,EAAC,C;;;;;;;;;;;;ACA3a;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,M;;;;;;;;;;;;ACPA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2V;AAC3V;AAC4D;AACL;AACsC;;;AAG7F;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,yTAAM;AACR,EAAE,kUAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,6TAAU;AACZ;AACA;;AAEA;AACgP;AAChP,WAAW,6PAAM,iBAAiB,qQAAM;;AAExC;AACe,gF;;;;;;;;;;;;AC3Bf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,uVAEN;AACP,KAAK;AACL;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC7EA;AAAA;AAAA;AAAA;AAAo2B,CAAgB,syBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;ACyEx3B;AAKA;AAGA;AAIA;AAOA;AAIA;AAGA;AAGA;AAKA;AAEA;AAAA;AAAA,gBAEA;EACAA;EAEAC;IACAC;EACA;EAEAC,SACA,qCACA;EAwBAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;IACAN;MACAK;MACAC;QACA;MACA;IACA;IAEAC;MACAF;MACAC;QACA;MACA;IACA;EAUA;EACAE;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MAEA;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IAWAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IAAA;IACA,iBAGA;MAFAC;MACAC;IAEA;IACA;IACA;IACA;IAEAD;MAAA;QAAAE;MAAA;MAEA;;MAEA;QACA;MACA;IAMA;IACAC;MACAC;QACA;MACA;IACA;IACA;MACA;QACA5C;QACAP;MACA;IACA;MACA;MACA;QACA;UACA;UACA;YACAoD;YACAC;YACAC;cACA;cAEA;YAKA;YACAC;UACA;UACA;UACA;QACA;MACA;MACA;MACA;QACA,oFACAC;UACA;UACA;QAMA;UACA;UACA;UACA,kFACAC;YACA;YAEA;YAKA;UACA;QACA;MACA;MACA;QACA;UACA,4EACA,sCACA,kBACA,mCACA;YACAC;UACA;UACA,eACAC;YACAC;UACA;QAEA;QAGA;MACA;IACA;MACAC;MACAC;IACA;IACA;MACA;IACA;MACA;QACAZ;UACAO;QACA;MACA;IACA;MACAI;IACA;IACA;MACA;IACA;MACA;QACA;MACA;IACA;MACAA;IACA;IACAE;MAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBACA;kBACAC;oBACA;kBACA;oBACA;sBACA,4DACAT,0BACAA;wBACA;0BACA;wBACA;sBACA;wBACA;sBACA;oBACA;sBACA;wBACA;sBACA;oBACA;oBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,CACA;MAAA;QAAA;MAAA;IAAA;EACA;EAEAU;IACA;MACA;IACA;EACA;EASAC;IACAC;MACA;MACA;MACA;MACA,wGACA,aACA;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MAAA,GACA;MACA;MACAC;MACAA;MACA;QACAA;MACA;MAEA;MACA;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA,GACA,kBACA;MACA;MACA;IACA;IACAC;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;QACAP;QACAQ;MACA;MACA;MACA,kBAEA;QADAC;MAEA,4DACAA,iBACAC,oBACAC,WACAC,aACA;MACA;MACA;MACA,IACA,+CACAZ,aACA,sBACA;QACA;UACAM;UACApD;UACAL;UACAgE;UACAX;UACAC;UACAE;UACAD;QACA;MACA;MACAU;IACA;IACA3C;MACA;IACA;IACAE;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;cAAA;gBAAAvC;gBACA;gBAAA,kCACAA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAwC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;cAAA;gBAAAxC;gBAAA,kCACAA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAsC;MAAA;MACArB;QACA;MACA;IACA;IACAwB;MACA;IACA;IACAC;MAKA;IAEA;IACAC;MAKA;IAEA;IACAW;MAAA;MACArC;QACA;MACA;IACA;IACA2B;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MAKA;IAEA;IACAC;MAMA;QAAA;MAAA;IAEA;IACAC;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAC;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACA4B;MAAA;MACAhE;QACA;MACA;IACA;IACAwC;MAAA;MACAxC;QACA;MACA;IACA;IACAyC;MAAA;MACAzC;QACA;MACA;IACA;IACA0C;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAC;MACA;QAAA;MAAA;IACA;IACAoB;MACA;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAjC;MAAA;MACA9C;QACA;MACA;IACA;IACA+C;MACA;IACA;IACAC;MACA;IACA;EACA;AACA;AAAA,4B","file":"uni_modules/zebra-swiper/components/z-swiper/z-swiper.js","sourcesContent":["import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 // 1723621061297\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper%2Fz-swiper.vue&module=zSwiperWxs&lang=wxs\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper%2Fz-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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMyOTMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMjkzfX0%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 \"!../../../../../../../../../Applications/HBuilderX.app/Contents/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=%2FUsers%2Fkenji%2FDesktop%2FIntern%2Fjueqing%2Funi_modules%2Fzebra-swiper%2Fcomponents%2Fz-swiper%2Fz-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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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=eyJ6U3dpcGVyV3hzIjp7InR5cGUiOiJzY3JpcHQiLCJjb250ZW50IjoiIiwic3RhcnQiOjMyOTMsImF0dHJzIjp7InNyYyI6Ii4uLy4uL3d4cy96LXN3aXBlci13eHMud3hzIiwibW9kdWxlIjoielN3aXBlcld4cyIsImxhbmciOiJ3eHMifSwiZW5kIjozMjkzfX0%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 var s1 = _vm.__get_style([_vm.wrapperStyle])\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 var s5 = _vm.__get_style([item.styleContent])\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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./z-swiper.vue?vue&type=script&lang=js&\"","<template>\n\t<view :id=\"'swiper'+_uid\"\n\t\t:class=\"['swiper',contentClass,containerClasses,options.direction === 'vertical'?'swiper-vertical':'']\"\n\t\t:style=\"[customStyle]\">\n\t\t<!-- #ifndef MP-WEIXIN || MP-QQ -->\n\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\" @touchstart=\"onTouchStart\"\n\t\t\t@touchmove=\"onTouchMove\" @touchend=\"onTouchEnd\" @touchcancel=\"onTouchEnd\">\n\t\t<!-- #endif -->\n\t\t\t<!-- #ifdef MP-WEIXIN || MP-QQ -->\n\t\t\t<view :class=\"['swiper-wrapper']\" :style=\"[wrapperStyle]\" @click=\"onClickWrapper\"\n\t\t\t\t@touchstart=\"zSwiperWxs.onTouchStartWxs\" @touchmove=\"zSwiperWxs.onTouchMoveWxs\"\n\t\t\t\t@touchend=\"zSwiperWxs.onTouchEndWxs\" @touchcancel=\"zSwiperWxs.onTouchEndWxs\"\n\t\t\t\t:swiperTransform=\"wxsTransform\" :change:swiperTransform=\"zSwiperWxs.wxsTransformObserver\">\n\t\t\t<!-- #endif -->\n\t\t\t\t<slot></slot>\n\t\t\t\t<!-- 在loop模式下,为group填充空白slide -->\n\t\t\t\t<template v-if=\"loopBlankShow\">\n\t\t\t\t\t<z-swiper-item v-for=\"(item,index) in loopBlankNumber\" :key=\"index\">\n\t\t\t\t\t</z-swiper-item>\n\t\t\t\t</template>\n\t\t\t\t<template v-if=\"cubeShadowShowWrapper\">\n\t\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\n\t\t\t\t</template>\n\t\t\t</view>\n\t\t\t<template v-if=\"cubeShadowShowRoot\">\n\t\t\t\t<view class=\"swiper-cube-shadow\" :style=\"[cubeShadowStyle]\"></view>\n\t\t\t</template>\n\t\t\t<slot name=\"indicator\"></slot>\n\t\t\t<template v-if=\"showIndicators\">\n\t\t\t\t<view :class=\"['swiper-pagination',paginationClass]\" :style=\"[paginationStyle]\">\n\t\t\t\t\t<template v-if=\"paginationType == 'bullets'\">\n\t\t\t\t\t\t<view v-for=\"(item,index) in paginationContent\" :key=\"index\"\n\t\t\t\t\t\t\t:class=\"[item.classContent.join(' ')]\" :style=\"[item.styleContent]\"\n\t\t\t\t\t\t\t@click=\"paginationItemClick(index)\">\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</template>\n\t\t\t\t\t<template v-if=\"paginationType == 'fraction'\">\n\t\t\t\t\t\t<text :class=\"paginationContent.currentClass\">{{paginationContent.text}}</text>/<text\n\t\t\t\t\t\t\t:class=\"paginationContent.totalClass\">{{paginationContent.total}}</text>\n\t\t\t\t\t</template>\n\t\t\t\t\t<template v-if=\"paginationType == 'progressbar'\">\n\t\t\t\t\t\t<text :class=\"paginationContent.progressbarFillClass\"\n\t\t\t\t\t\t\t:style=\"[paginationContent.styleContent]\"></text>\n\t\t\t\t\t</template>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t\t<template v-if=\"(showPrevButton||showPrevButtonSlot)\">\n\t\t\t\t<view :class=\"['swiper-button-prev',prevClass]\" @click=\"prevClick\">\n\t\t\t\t\t<view v-if=\"!showPrevButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_left\"></view>\n\t\t\t\t\t<slot v-else name=\"pre-button\"></slot>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t\t<template v-if=\"(showNextButton||showNextButtonSlot)\">\n\t\t\t\t<view :class=\"['swiper-button-next',nextClass]\" @click=\"nextClick\">\n\t\t\t\t\t<view v-if=\"!showNextButtonSlot\" class=\"zebra-icon zebra-icon-circle_chevron_right\"></view>\n\t\t\t\t\t<slot v-else name=\"next-button\"></slot>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t\t<template v-if=\"scrollbarShow\">\n\t\t\t\t<view :class=\"['swiper-scrollbar',scrollbarClass]\" :style=\"[scrollbarStyle]\"\n\t\t\t\t\t@click.stop=\"onClickScrollbar\" @touchstart.stop=\"onTouchStartScrollbar\"\n\t\t\t\t\t@touchmove.stop.prevent=\"onTouchMoveScrollbar\" @touchend.stop=\"onTouchEndScrollbar\">\n\t\t\t\t\t<view class=\"swiper-scrollbar-drag\" :style=\"[scrollbarItemStyle]\">\n\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t</view>\n</template>\n<!-- #ifdef MP-WEIXIN || MP-QQ -->\n<script src=\"../../wxs/z-swiper-wxs.wxs\" module=\"zSwiperWxs\" lang=\"wxs\"></script>\n<!-- #endif -->\n<script>\n\timport {\n\t\tgetAllRect,\n\t\tgetRect\n\t} from '../../libs/utils/utils.js';\n\t// vue2\n\timport {\n\t\tgetParams\n\t} from '../../libs/vue2/get-params.js';\n\timport {\n\t\tinitSwiper,\n\t\tmountSwiper\n\t} from '../../libs/vue2/init-swiper.js';\n\timport {\n\t\tneedsScrollbar,\n\t\tneedsNavigation,\n\t\tneedsPagination,\n\t\tuniqueClasses,\n\t\textend,\n\t} from '../../libs/vue2/utils.js';\n\timport {\n\t\trenderLoop,\n\t\tcalcLoopedSlides\n\t} from '../../libs/vue2/loop.js';\n\timport {\n\t\tgetChangedParams\n\t} from '../../libs/vue2/get-changed-params.js';\n\timport {\n\t\tupdateSwiper\n\t} from '../../libs/vue2/update-swiper.js';\n\timport {\n\t\trenderVirtual,\n\t\tupdateOnVirtualData\n\t} from '../../libs/vue2/virtual.js';\n\t//mixin\n\timport {\n\t\tParentMixin\n\t} from '../../libs/mixins/relation.js';\n\n\texport default {\n\t\tname: \"z-swipe\",\n\t\t// #ifdef MP-WEIXIN\n\t\toptions: {\n\t\t\tvirtualHost: true\n\t\t},\n\t\t// #endif\n\t\tmixins: [\n\t\t\tParentMixin('zSwipe')\n\t\t],\n\t\t// #ifdef VUE3\n\t\temits: ['update:modelValue', 'touch-start', 'touch-move', 'touch-end', 'transitionend', 'slideClick',\n\t\t\t'_beforeBreakpoint',\n\t\t\t'_containerClasses',\n\t\t\t'_slideClass',\n\t\t\t'_slideClasses', '_swiper',\n\t\t\t'activeIndexChange', 'afterInit', 'autoplay', 'autoplayStart', 'autoplayStop', 'autoplayPause',\n\t\t\t'autoplayResume', 'beforeDestroy', 'beforeInit', 'beforeLoopFix', 'beforeResize', 'beforeSlideChangeStart',\n\t\t\t'beforeTransitionStart', 'breakpoint', 'changeDirection', 'click', 'disable', 'doubleTap', 'doubleClick',\n\t\t\t'destroy', 'enable', 'fromEdge', 'hashChange', 'hashSet', 'imagesReady', 'init', 'keyPress',\n\t\t\t'lazyImageLoad', 'lazyImageReady', 'lock', 'loopFix', 'momentumBounce', 'navigationHide', 'navigationShow',\n\t\t\t'observerUpdate', 'orientationchange', 'paginationHide', 'paginationRender', 'paginationShow',\n\t\t\t'paginationUpdate', 'progress', 'reachBeginning', 'reachEnd', 'realIndexChange', 'resize', 'scroll',\n\t\t\t'scrollbarDragEnd', 'scrollbarDragMove', 'scrollbarDragStart', 'setTransition', 'setTranslate',\n\t\t\t'slideChange', 'slideChangeTransitionEnd', 'slideChangeTransitionStart', 'slideNextTransitionEnd',\n\t\t\t'slideNextTransitionStart', 'slidePrevTransitionEnd', 'slidePrevTransitionStart',\n\t\t\t'slideResetTransitionStart', 'slideResetTransitionEnd', 'sliderMove', 'sliderFirstMove',\n\t\t\t'slidesLengthChange', 'slidesGridLengthChange', 'snapGridLengthChange', 'snapIndexChange', 'swiper', 'tap',\n\t\t\t'toEdge', 'touchEnd', 'touchMove', 'touchMoveOpposite', 'touchStart', 'transitionEnd', 'transitionStart',\n\t\t\t'unlock', 'update', 'zoomChange', 'beforeMount', 'nextClick', 'prevClick', 'touchStartScrollbar',\n\t\t\t'touchMoveScrollbar', 'touchEndScrollbar', 'beforeUpdate', 'paginationItemClick'\n\t\t],\n\t\t// #endif\n\t\tprops: {\n\t\t\tcustomStyle: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {};\n\t\t\t\t}\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn {}\n\t\t\t\t}\n\t\t\t},\n\t\t\t// #ifdef VUE2\n\t\t\tvalue: {\n\t\t\t\ttype: Array,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn []\n\t\t\t\t}\n\t\t\t},\n\t\t\t// #endif\n\t\t\t// #ifdef VUE3\n\t\t\tmodelValue: {\n\t\t\t\ttype: Array,\n\t\t\t\tdefault: () => {\n\t\t\t\t\treturn []\n\t\t\t\t}\n\t\t\t}\n\t\t\t// #endif\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\twxsTransform: \"\",\n\t\t\t\twrapperStyle: {},\n\t\t\t\tcontentClass: '',\n\t\t\t\tnextElClass: [],\n\t\t\t\tprevElClass: [],\n\t\t\t\tpaginationElClass: [],\n\t\t\t\tpaginationItemElClass: [],\n\t\t\t\tloopBlankShow: false,\n\t\t\t\tloopBlankNumber: 0,\n\t\t\t\tcubeShadowShowWrapper: false,\n\t\t\t\tcubeShadowShowRoot: false,\n\t\t\t\tcubeShadowStyle: {},\n\t\t\t\teventsListeners: {},\n\t\t\t\tshowPrevButton: false,\n\t\t\t\tshowPrevButtonSlot: false,\n\t\t\t\tshowNextButton: false,\n\t\t\t\tshowNextButtonSlot: false,\n\t\t\t\tshowIndicators: false,\n\t\t\t\tpaginationContent: [],\n\t\t\t\tpaginationType: '',\n\t\t\t\tpaginationStyle: {},\n\t\t\t\tscrollbarElClass: [],\n\t\t\t\tscrollbarStyle: {},\n\t\t\t\tscrollbarItemStyle: {},\n\t\t\t\trectInfo: null,\n\n\t\t\t\t// vue2\n\t\t\t\tcontainerClasses: 'swiper',\n\t\t\t\tvirtualData: null,\n\t\t\t\tfirstLoad: true,\n\t\t\t\toriginalDataList: [],\n\t\t\t\tloopUpdateData: false\n\t\t\t};\n\t\t},\n\t\tcomputed: {\n\t\t\t// #ifdef VUE3\n\t\t\tvalue() {\n\t\t\t\treturn this.modelValue\n\t\t\t},\n\t\t\t// #endif\n\t\t\t// #ifdef VUE3\n\t\t\t_uid() {\n\t\t\t\treturn this._.uid\n\t\t\t},\n\t\t\t// #endif\n\t\t\tnextClass() {\n\t\t\t\treturn this.nextElClass.join(\" \");\n\t\t\t},\n\t\t\tprevClass() {\n\t\t\t\treturn this.prevElClass.join(\" \");\n\t\t\t},\n\t\t\tpaginationClass() {\n\t\t\t\treturn this.paginationElClass.join(\" \");\n\t\t\t},\n\t\t\tpaginationItemClass() {\n\t\t\t\treturn this.paginationItemElClass.join(\" \");\n\t\t\t},\n\t\t\tscrollbarClass() {\n\t\t\t\treturn this.scrollbarElClass.join(\" \");\n\t\t\t},\n\t\t\tscrollbarShow() {\n\t\t\t\treturn needsScrollbar(this.options)\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tconst {\n\t\t\t\tparams: swiperParams,\n\t\t\t\tpassedParams\n\t\t\t} = getParams(this.options);\n\t\t\tthis.swiperElRef = 'swiper';\n\t\t\tthis.swiperParams = swiperParams;\n\t\t\tthis.oldPassedParamsRef = passedParams;\n\t\t\tlet slidesRef = this.slidesRef;\n\n\t\t\tswiperParams.onAny = (event, ...args) => {\n\t\t\t\t// #ifdef MP\n\t\t\t\t// 字节小程序此处报错,因此无法使用v-on监听事件\n\t\t\t\t// #ifndef MP-TOUTIAO\n\t\t\t\tthis.$emit(event, {}, ...args.filter((item, index) => {\n\t\t\t\t\treturn index > 0\n\t\t\t\t}));\n\t\t\t\t// #endif\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP\n\t\t\t\tthis.$emit(event, ...args);\n\t\t\t\t// #endif\n\t\t\t};\n\t\t\tObject.assign(swiperParams.on, {\n\t\t\t\t_containerClasses(swiper, classes) {\n\t\t\t\t\tthis.containerClasses = classes;\n\t\t\t\t},\n\t\t\t});\n\t\t\tthis.$watch(() => {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: this.value,\n\t\t\t\t\toptions: this.options\n\t\t\t\t}\n\t\t\t}, (val) => {\n\t\t\t\t// virtual模式处理\n\t\t\t\tif (this.swiperParams && this.swiperParams.virtual) {\n\t\t\t\t\tif (!this.virtualData && val.options.virtual.slides.length) {\n\t\t\t\t\t\tthis.swiperParams.virtual.slides = val.options.virtual.slides;\n\t\t\t\t\t\tconst extendWith = {\n\t\t\t\t\t\t\tcache: false,\n\t\t\t\t\t\t\tslides: val.options.virtual.slides,\n\t\t\t\t\t\t\trenderExternal: data => {\n\t\t\t\t\t\t\t\tthis.virtualData = data;\n\t\t\t\t\t\t\t\t// #ifdef VUE2\n\t\t\t\t\t\t\t\tthis.$emit(\"input\", data.slides);\n\t\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t\t// #ifdef VUE3\n\t\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", data.slides);\n\t\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trenderExternalUpdate: false\n\t\t\t\t\t\t};\n\t\t\t\t\t\textend(this.swiperParams.virtual, extendWith);\n\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// loop模式处理\n\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\n\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList.toString() == val.value\n\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tthis.loopUpdateData = true;\n\t\t\t\t\t\t// 百度小程序watch晚于子组件加载\n\t\t\t\t\t\t// #ifdef MP-BAIDU\n\t\t\t\t\t\tif (this.firstLoad) {\n\t\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #endif\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.loopUpdateData = false;\n\t\t\t\t\t\tlet slides = renderLoop(this, this.swiperParams, this.value);\n\t\t\t\t\t\tif (this.swiperParams.loop && !this.loopUpdateData && slides.data.toString() !=\n\t\t\t\t\t\t\tval.value.toString()) {\n\t\t\t\t\t\t\tthis.loopUpdateData = true;\n\t\t\t\t\t\t\t// #ifdef VUE2\n\t\t\t\t\t\t\tthis.$emit(\"input\", slides.data)\n\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t// #ifdef VUE3\n\t\t\t\t\t\t\tthis.$emit(\"update:modelValue\", slides.data)\n\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (this.swiper && !this.firstLoad) {\n\t\t\t\t\tif (this.virtualData && val.options.virtual.type == \"cut\") {\n\t\t\t\t\t\tconst style = this.swiper.isHorizontal() ? {\n\t\t\t\t\t\t\t[this.swiper.rtlTranslate ? 'right' :\n\t\t\t\t\t\t\t\t'left'\n\t\t\t\t\t\t\t]: `${this.virtualData.offset}px`\n\t\t\t\t\t\t} : {\n\t\t\t\t\t\t\ttop: `${this.virtualData.offset}px`\n\t\t\t\t\t\t};\n\t\t\t\t\t\tthis.children\n\t\t\t\t\t\t\t.map(slide => {\n\t\t\t\t\t\t\t\tslide.css(style)\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tthis.updateSwiper(val.value, val.options, this.children);\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tdeep: true,\n\t\t\t\timmediate: true\n\t\t\t})\n\t\t\tthis.$watch(() => {\n\t\t\t\treturn this.$data\n\t\t\t}, (val) => {\n\t\t\t\tif (this.swiper && this.swiper.native) {\n\t\t\t\t\tObject.assign(this.swiper.native, {\n\t\t\t\t\t\tval\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tdeep: true\n\t\t\t})\n\t\t\tthis.$watch(() => {\n\t\t\t\treturn this.virtualData\n\t\t\t}, (val) => {\n\t\t\t\tif (this.swiper && this.virtualData) {\n\t\t\t\t\tupdateOnVirtualData(this.swiper);\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\tdeep: true\n\t\t\t})\n\t\t\tuni.$on(\"childrenReady\" + this._uid, async (children) => {\n\t\t\t\tchildren.dataSwiperSlideIndex = children.index;\n\t\t\t\tif (this.children.length == this.value.length) {\n\t\t\t\t\tPromise.all(this.children.map((item) => {\n\t\t\t\t\t\treturn item.getSize();\n\t\t\t\t\t})).then((res) => {\n\t\t\t\t\t\tif (this.swiperParams && this.swiperParams.loop) {\n\t\t\t\t\t\t\tif (this.originalDataList.length && (this.originalDataList\n\t\t\t\t\t\t\t\t\t.toString() == this.value\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\t\t\tif (this.firstLoad) {\n\t\t\t\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (this.firstLoad) {\n\t\t\t\t\t\t\t\tthis.loadSwiper();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.updateSwiper(this.value, this.options, this.children);\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t// #ifdef VUE2\n\t\tbeforeDestroy() {\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\n\t\t\t\tthis.swiper.destroy(true, false);\n\t\t\t}\n\t\t},\n\t\t// #endif\n\t\t// #ifdef VUE3\n\t\tbeforeUnmount() {\n\t\t\tif (this.swiper && !this.swiper.destroyed) {\n\t\t\t\tthis.swiper.destroy(true, false);\n\t\t\t}\n\t\t},\n\t\t// #endif\n\t\tmethods: {\n\t\t\tloadSwiper() {\n\t\t\t\tlet swiperParams = this.swiperParams;\n\t\t\t\tthis.slidesRef = this.children;\n\t\t\t\tthis.oldSlidesRef = this.slidesRef;\n\t\t\t\tlet swiperRef = initSwiper(swiperParams, {\n\t\t\t\t\t...this.$data,\n\t\t\t\t\t...this.$props,\n\t\t\t\t\tswiperElId: 'swiper' + this._uid,\n\t\t\t\t\temit: this.emit.bind(this),\n\t\t\t\t\tupdateData: this.updateData.bind(this),\n\t\t\t\t\tgetRect: this.getRect.bind(this),\n\t\t\t\t\tgetRectScrollbar: this.getRectScrollbar.bind(this),\n\t\t\t\t\twillChange: this.willChange.bind(this),\n\t\t\t\t\ttransform: this.transform.bind(this),\n\t\t\t\t\ttransition: this.transition.bind(this),\n\t\t\t\t\tscrollbarTransform: this.scrollbarTransform.bind(this),\n\t\t\t\t\tscrollbarTransition: this.scrollbarTransition.bind(this),\n\t\t\t\t\tscrollbarItemTransform: this.scrollbarItemTransform.bind(this),\n\t\t\t\t\tscrollbarItemTransition: this.scrollbarItemTransition.bind(this),\n\t\t\t\t\taddClass: this.addClass.bind(this),\n\t\t\t\t\tremoveClass: this.removeClass.bind(this),\n\t\t\t\t\taddPaginationClass: this.addPaginationClass.bind(this),\n\t\t\t\t\tremovePaginationClass: this.removePaginationClass.bind(this),\n\t\t\t\t\taddScrollbarClass: this.addScrollbarClass.bind(this),\n\t\t\t\t\tremoveScrollbarClass: this.removeScrollbarClass.bind(this),\n\t\t\t\t\tsetCss: this.setCss.bind(this),\n\t\t\t\t\tcss: this.setCss.bind(this),\n\t\t\t\t\tpaginationCss: this.setPaginationCss.bind(this),\n\t\t\t\t\tscrollbarCss: this.scrollbarCss.bind(this),\n\t\t\t\t\tscrollbarItemCss: this.scrollbarItemCss.bind(this),\n\t\t\t\t\taddNextElClass: this.addNextElClass.bind(this),\n\t\t\t\t\taddPrevElClass: this.addPrevElClass.bind(this),\n\t\t\t\t\tremoveNextElClass: this.removeNextElClass.bind(this),\n\t\t\t\t\tremovePrevElClass: this.removePrevElClass.bind(this),\n\t\t\t\t\tcubeShadowCss: this.cubeShadowCss.bind(this),\n\t\t\t\t\tcubeShadowTransform: this.cubeShadowTransform.bind(this),\n\t\t\t\t\tcubeShadowTransition: this.cubeShadowTransition.bind(this),\n\t\t\t\t});\n\t\t\t\tthis.swiper = swiperRef;\n\t\t\t\tswiperRef.loopCreate = () => {};\n\t\t\t\tswiperRef.loopDestroy = () => {};\n\t\t\t\tif (swiperParams.loop) {\n\t\t\t\t\tswiperRef.loopedSlides = calcLoopedSlides(this.slidesRef, swiperParams);\n\t\t\t\t}\n\n\t\t\t\tif (!this.swiper) return;\n\t\t\t\tmountSwiper({\n\t\t\t\t\t\tel: this.swiperElRef,\n\t\t\t\t\t\tnextEl: this.nextElRef,\n\t\t\t\t\t\tprevEl: this.prevElRef,\n\t\t\t\t\t\tpaginationEl: this.paginationElRef,\n\t\t\t\t\t\tscrollbarEl: this.scrollbarElRef,\n\t\t\t\t\t\tswiper: this.swiper,\n\t\t\t\t\t},\n\t\t\t\t\tthis.swiperParams,\n\t\t\t\t);\n\t\t\t\tthis.$emit('swiper');\n\t\t\t\tthis.firstLoad = false;\n\t\t\t},\n\t\t\tupdateSwiper(value, options, children) {\n\t\t\t\tthis.swiper.slides = children;\n\t\t\t\tthis.slidesRef = children;\n\t\t\t\tlet initializedRef = this.initializedRef;\n\t\t\t\tlet swiperRef = this.swiper;\n\t\t\t\tlet slidesRef = this.slidesRef;\n\t\t\t\tlet oldPassedParamsRef = this.oldPassedParamsRef;\n\t\t\t\tlet oldSlidesRef = this.oldSlidesRef;\n\t\t\t\tlet breakpointChanged = this.breakpointChanged;\n\t\t\t\tlet nextElRef = this.nextElRef;\n\t\t\t\tlet prevElRef = this.prevElRef;\n\t\t\t\tlet paginationElRef = this.paginationElRef;\n\t\t\t\tlet scrollbarElRef = this.scrollbarElRef;\n\t\t\t\t// set initialized flag\n\t\t\t\tif (!initializedRef && swiperRef) {\n\t\t\t\t\tswiperRef.emitSlidesClasses();\n\t\t\t\t\tinitializedRef = true;\n\t\t\t\t}\n\t\t\t\t// watch for params change\n\t\t\t\tconst {\n\t\t\t\t\tpassedParams: newPassedParams\n\t\t\t\t} = getParams(options);\n\t\t\t\tconst changedParams = getChangedParams(\n\t\t\t\t\tnewPassedParams,\n\t\t\t\t\toldPassedParamsRef,\n\t\t\t\t\tslidesRef,\n\t\t\t\t\toldSlidesRef,\n\t\t\t\t);\n\t\t\t\tthis.oldPassedParamsRef = newPassedParams;\n\t\t\t\tthis.oldSlidesRef = slidesRef;\n\t\t\t\tif (\n\t\t\t\t\t(changedParams.length || breakpointChanged) &&\n\t\t\t\t\tswiperRef &&\n\t\t\t\t\t!swiperRef.destroyed\n\t\t\t\t) {\n\t\t\t\t\tupdateSwiper({\n\t\t\t\t\t\tswiper: swiperRef,\n\t\t\t\t\t\tslides: slidesRef,\n\t\t\t\t\t\tpassedParams: newPassedParams,\n\t\t\t\t\t\tchangedParams,\n\t\t\t\t\t\tnextEl: nextElRef,\n\t\t\t\t\t\tprevEl: prevElRef,\n\t\t\t\t\t\tscrollbarEl: scrollbarElRef,\n\t\t\t\t\t\tpaginationEl: paginationElRef,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tbreakpointChanged = false;\n\t\t\t},\n\t\t\temit(event, data) {\n\t\t\t\tthis.$emit(event, ...data)\n\t\t\t},\n\t\t\tasync getRect() {\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper');\n\t\t\t\tthis.rectInfo = rectInfo;\n\t\t\t\treturn rectInfo;\n\t\t\t},\n\t\t\tasync getRectScrollbar() {\n\t\t\t\tlet rectInfo = await getRect(this, '.swiper-scrollbar');\n\t\t\t\treturn rectInfo;\n\t\t\t},\n\t\t\tupdateData(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\twillChange(value) {\n\t\t\t\tthis.$set(this.wrapperStyle, 'will-change', value)\n\t\t\t},\n\t\t\ttransform(value) {\n\t\t\t\t// #ifndef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.$set(this.wrapperStyle, 'transform', value)\n\t\t\t\t// #endif\n\t\t\t\t// #ifdef MP-WEIXIN || MP-QQ\n\t\t\t\tthis.wxsTransform = value;\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\ttransition(value) {\n\t\t\t\t// #ifdef MP-BAIDU\n\t\t\t\tthis.$set(this.wrapperStyle, 'transitionDuration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-BAIDU\n\t\t\t\tthis.$set(this.wrapperStyle, 'transition-duration', `${value}ms`)\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\tsetCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.wrapperStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tscrollbarTransform(value) {\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transform', value)\n\t\t\t},\n\t\t\tscrollbarTransition(value) {\n\t\t\t\tthis.$set(this.scrollbarStyle, 'transitionDuration', `${value}ms`)\n\t\t\t},\n\t\t\tscrollbarItemTransform(value) {\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transform', value)\n\t\t\t},\n\t\t\tscrollbarItemTransition(value) {\n\t\t\t\tthis.$set(this.scrollbarItemStyle, 'transitionDuration', `${value}ms`)\n\t\t\t},\n\t\t\taddClass(value) {\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass.split(\" \"), ...value.split(\" \")])).join(\" \");\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = Array.from(new Set([...this.contentClass, ...value.split(\" \")]));\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\tremoveClass(value) {\n\t\t\t\t// #ifdef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = this.contentClass.split(\" \").filter(item => !value.split(\" \").includes(item)).join(\n\t\t\t\t\t\" \");\n\t\t\t\t// #endif\n\t\t\t\t// #ifndef MP-ALIPAY || MP-TOUTIAO\n\t\t\t\tthis.contentClass = this.contentClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\taddPaginationClass(value) {\n\t\t\t\tthis.paginationElClass = Array.from(new Set([...this.paginationElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremovePaginationClass(value) {\n\t\t\t\tthis.paginationElClass = this.paginationElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\taddScrollbarClass(value) {\n\t\t\t\tthis.scrollbarElClass = Array.from(new Set([...this.scrollbarElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremoveScrollbarClass(value) {\n\t\t\t\tthis.scrollbarElClass = this.scrollbarElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\tsetPaginationCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.paginationStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tscrollbarCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.scrollbarStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tscrollbarItemCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.scrollbarItemStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\taddNextElClass(value) {\n\t\t\t\tthis.nextElClass = Array.from(new Set([...this.nextElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\taddPrevElClass(value) {\n\t\t\t\tthis.prevElClass = Array.from(new Set([...this.prevElClass, ...value.split(\" \")]));\n\t\t\t},\n\t\t\tremoveNextElClass(value) {\n\t\t\t\tthis.nextElClass = this.nextElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\tremovePrevElClass(value) {\n\t\t\t\tthis.prevElClass = this.prevElClass.filter(item => !value.split(\" \").includes(item));\n\t\t\t},\n\t\t\tsetSwiperOn(event, callback) {\n\t\t\t\tif (!this.eventsListeners[event]) this.eventsListeners[event] = {};\n\t\t\t\tthis.eventsListeners[event] = callback;\n\t\t\t},\n\t\t\tpaginationItemClick(index) {\n\t\t\t\tthis.swiper.emit(\"paginationItemClick\", index)\n\t\t\t},\n\t\t\tprevClick() {\n\t\t\t\tthis.swiper.emit(\"prevClick\");\n\t\t\t},\n\t\t\tnextClick() {\n\t\t\t\tthis.swiper.emit(\"nextClick\");\n\t\t\t},\n\t\t\tonTouchStart(event) {\n\t\t\t\tthis.swiper.onTouchStart(event);\n\t\t\t},\n\t\t\tonTouchStartSwiperWxs(event) {\n\t\t\t\tthis.swiper.onTouchStart(event);\n\t\t\t},\n\t\t\tonTouchMove(event) {\n\t\t\t\tthis.swiper.onTouchMove(event);\n\t\t\t},\n\t\t\tonTouchMoveSwiperWxs(event) {\n\t\t\t\tthis.swiper.onTouchMove(event);\n\t\t\t},\n\t\t\tonTouchEnd(event) {\n\t\t\t\tthis.swiper.onTouchEnd(event);\n\t\t\t},\n\t\t\tonTouchEndSwiperWxs(event) {\n\t\t\t\tthis.swiper.onTouchEnd(event);\n\t\t\t},\n\t\t\tonClickWrapper(event) {\n\t\t\t\tthis.$emit(\"click\", event);\n\t\t\t},\n\t\t\tonClickScrollbar(event) {\n\t\t\t\tthis.$emit(\"scrollbarClick\", event);\n\t\t\t},\n\t\t\tonTouchStartScrollbar(event) {\n\t\t\t\tthis.swiper.emit('touchStartScrollbar', event);\n\t\t\t},\n\t\t\tonTouchMoveScrollbar(event) {\n\t\t\t\tthis.swiper.emit('touchMoveScrollbar', event);\n\t\t\t},\n\t\t\tonTouchEndScrollbar(event) {\n\t\t\t\tthis.swiper.emit('touchEndScrollbar', event);\n\t\t\t},\n\t\t\tcubeShadowCss(value) {\n\t\t\t\tObject.keys(value).forEach((item) => {\n\t\t\t\t\tthis.$set(this.cubeShadowStyle, item, value[item])\n\t\t\t\t})\n\t\t\t},\n\t\t\tcubeShadowTransform(value) {\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transform', value)\n\t\t\t},\n\t\t\tcubeShadowTransition(value) {\n\t\t\t\tthis.$set(this.cubeShadowStyle, 'transitionDuration', `${value}ms`)\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t@import '../../libs/core.scss';\n\t@import \"../../static/css/iconfont.css\";\n\n\t.swiper {\n\t\t&__prev--button {\n\t\t\tposition: absolute;\n\t\t\tleft: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\tz-index: 10;\n\t\t}\n\n\t\t&__prev--button--disable {\n\t\t\tposition: absolute;\n\t\t\tleft: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\topacity: .35;\n\t\t\tz-index: 10;\n\t\t}\n\n\t\t&__next--button {\n\t\t\tposition: absolute;\n\t\t\tright: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\tz-index: 10;\n\t\t}\n\n\t\t&__next--button--disable {\n\t\t\tposition: absolute;\n\t\t\tright: 30rpx;\n\t\t\ttop: 50%;\n\t\t\tdisplay: flex;\n\t\t\tcolor: #1989fa;\n\t\t\tfont-size: 44rpx;\n\t\t\topacity: .35;\n\t\t\tz-index: 10;\n\t\t}\n\t}\n</style>"],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/mp-weixin/pages/index/index.js
View file @
d847ec3d
...
...
@@ -711,6 +711,7 @@ var _default = {
fontSize
:
0
,
boxHeight
:
210
,
debouncedNextTips
:
null
,
processingDialogue
:
false
,
quotedData
:
[]
};
},
...
...
@@ -887,27 +888,32 @@ var _default = {
this
.
loadingBG
=
true
;
},
nextTips
:
function
nextTips
()
{
//结算当前语音的递归 进行下一次语音
var
_this2
=
this
;
// 结算当前语音的递归 进行下一次语音
// this.EPlayer.onEnded()
this
.
jumping
=
true
;
clearInterval
(
this
.
Strem
);
this
.
EPlayer
.
stop
();
if
(
!
this
.
kill
)
{
console
.
log
(
'NextStr'
,
this
.
str
);
this
.
yyds_pangbai
+=
this
.
str
;
}
this
.
jumping
=
false
;
this
.
EPlayer
.
onended
();
},
updateDialogueDisplay
:
function
updateDialogueDisplay
(
dialogue
)
{
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'#pangbaiContainer'
).
boundingClientRect
(
function
(
res
)
{
if
(
res
)
{
res
.
innerHTML
+=
dialogue
;
this
.
$nextTick
(
function
()
{
_this2
.
jumping
=
true
;
clearInterval
(
_this2
.
Strem
);
if
(
_this2
.
EPlayer
)
{
_this2
.
EPlayer
.
stop
();
}
}).
exec
();
if
(
_this2
.
glod_dp
&&
_this2
.
str
!=
""
)
{
console
.
log
(
'Text Appended'
);
_this2
.
realVoice
(
_this2
.
str
);
}
else
{
_this2
.
yyds_pangbai
+=
_this2
.
str
;
}
_this2
.
str
=
''
;
_this2
.
jumping
=
false
;
_this2
.
EPlayer
.
onended
();
console
.
log
(
'------------------'
);
});
},
realVoice
:
function
realVoice
(
text
)
{
this
.
yyds_dp
=
text
;
this
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
;
},
debounce
:
function
debounce
(
fn
,
interval
)
{
console
.
log
(
'Test A'
);
var
timer
;
var
gapTime
=
interval
;
//间隔时间,如果interval不传,则默认1000ms
return
function
()
{
...
...
@@ -915,13 +921,13 @@ var _default = {
var
context
=
this
;
var
args
=
arguments
;
//保存此处的arguments,因为setTimeout是全局的,arguments不是防抖函数需要的。
timer
=
setTimeout
(
function
()
{
fn
.
call
(
context
,
args
);
fn
.
apply
(
context
,
args
);
},
gapTime
);
};
},
created
:
function
created
()
{
// Bind the debounced version of nextTips
this
.
debouncedNextTips
=
this
.
debounce
(
this
.
nextTips
,
30
0
);
this
.
debouncedNextTips
=
this
.
debounce
(
this
.
nextTips
,
75
0
);
},
handleCloseDialog
:
function
handleCloseDialog
()
{
this
.
show
=
false
;
...
...
@@ -950,22 +956,22 @@ var _default = {
console
.
log
(
this
.
inputVal
);
},
scrollToBottom
:
function
scrollToBottom
()
{
var
_this
2
=
this
;
var
_this
3
=
this
;
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'#scroll-view-content'
).
boundingClientRect
(
function
(
res
)
{
// console.log('res',res,this.historyRecord.length)
if
(
res
)
{
_this
2
.
scrollTop
=
res
.
height
;
_this
3
.
scrollTop
=
res
.
height
;
}
else
{
_this
2
.
scrollTop
=
_this2
.
historyRecord
.
length
*
1000
;
_this
3
.
scrollTop
=
_this3
.
historyRecord
.
length
*
1000
;
}
}).
exec
();
},
scrollToBottom_pangbai
:
function
scrollToBottom_pangbai
()
{
var
_this
3
=
this
;
var
_this
4
=
this
;
this
.
$nextTick
(
function
()
{
uni
.
createSelectorQuery
().
in
(
_this
3
).
select
(
'#scrollView'
).
boundingClientRect
(
function
(
res
)
{
uni
.
createSelectorQuery
().
in
(
_this
4
).
select
(
'#scrollView'
).
boundingClientRect
(
function
(
res
)
{
if
(
res
)
{
_this
3
.
scrollTop_pangbai
=
res
.
height
*
2
;
_this
4
.
scrollTop_pangbai
=
res
.
height
*
2
;
}
else
{
//this.scrollTop_pangbai = this.historyRecord.length * 1000;
}
...
...
@@ -1018,7 +1024,7 @@ var _default = {
return
result
;
},
handleSendMoney
:
function
handleSendMoney
()
{
var
_this
4
=
this
;
var
_this
5
=
this
;
if
(
this
.
inputMoney
==
""
&&
this
.
inputMoney
.
trim
()
==
""
)
{
uni
.
showToast
({
title
:
'金额不可为空!'
,
...
...
@@ -1034,14 +1040,14 @@ var _default = {
}),
success
:
function
success
()
{
console
.
log
(
'消息发送成功'
);
_this
4
.
loading
=
true
;
_this
5
.
loading
=
true
;
// uni.showLoading({
// title: '思考中...',
// mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
// });
var
str
=
'对方正在输入...'
;
var
i
=
6
;
_this
4
.
timer
=
setInterval
(
function
()
{
_this
5
.
timer
=
setInterval
(
function
()
{
if
(
i
<
10
)
{
i
+=
1
;
}
else
{
...
...
@@ -1075,7 +1081,7 @@ var _default = {
},
//websocket 连接
socketConnect
:
function
socketConnect
()
{
var
_this
5
=
this
;
var
_this
6
=
this
;
console
.
log
(
123
,
this
.
currentPageData
.
name
);
// console.log(this.userInputName,uni.getStorageSync('userName'))
this
.
socketTask
=
uni
.
connectSocket
({
...
...
@@ -1097,44 +1103,44 @@ var _default = {
// 监听接收到服务器发送的消息事件
this
.
socketTask
.
onMessage
(
function
(
message
)
{
// console.log('message--------',message)
clearInterval
(
_this
5
.
timerConsider
);
clearInterval
(
_this
5
.
timer
);
_this
5
.
jumping
=
false
;
clearInterval
(
_this
6
.
timerConsider
);
clearInterval
(
_this
6
.
timer
);
_this
6
.
jumping
=
false
;
uni
.
setNavigationBarTitle
({
title
:
_this
5
.
currentPageData
.
name
title
:
_this
6
.
currentPageData
.
name
});
_this
5
.
loading
=
false
;
_this
5
.
loading2
=
false
;
_this
6
.
loading
=
false
;
_this
6
.
loading2
=
false
;
uni
.
hideLoading
();
//处理把数据添加至页面
var
backValue
=
JSON
.
parse
(
message
.
data
);
// console.log('----onMessage----',backValue)
if
(
!
_this
5
.
header
)
{
_this
5
.
glod_dp
=
false
;
//先隐藏数字人对话框
if
(
!
_this
6
.
header
)
{
_this
6
.
glod_dp
=
false
;
//先隐藏数字人对话框
}
if
(
backValue
.
code
===
0
)
{
_this
5
.
badRequest
();
_this
6
.
badRequest
();
}
else
if
(
backValue
.
code
===
3
)
{
_this
5
.
badRequest
();
_this
6
.
badRequest
();
}
else
if
(
backValue
.
code
===
4
)
{
_this
5
.
badRequest
();
_this
6
.
badRequest
();
}
else
if
(
backValue
.
code
===
-
1
)
{
_this
5
.
badRequest
();
_this
6
.
badRequest
();
}
else
if
(
backValue
.
code
===
1
)
{
//非第一次连接
if
(
!
backValue
.
content
)
{
if
(
backValue
.
WObj
[
'地点'
])
{
_this
5
.
UITitle
=
backValue
.
WObj
[
'地点'
];
_this
6
.
UITitle
=
backValue
.
WObj
[
'地点'
];
}
if
(
backValue
.
WObj
[
'时间'
])
{
_this
5
.
UITimer
=
backValue
.
WObj
[
'时间'
];
_this
6
.
UITimer
=
backValue
.
WObj
[
'时间'
];
}
if
(
backValue
.
WObj
[
'恐惧感'
])
{
_this
5
.
UIStatus_kongjugan
=
backValue
.
WObj
[
'恐惧感'
];
_this
6
.
UIStatus_kongjugan
=
backValue
.
WObj
[
'恐惧感'
];
}
if
(
backValue
.
WObj
[
'饥饿感'
])
{
_this
5
.
UIStatus_jiegan
=
backValue
.
WObj
[
'饥饿感'
];
_this
6
.
UIStatus_jiegan
=
backValue
.
WObj
[
'饥饿感'
];
}
//物品栏WObjj 物品数组存在 且有余额和道具 物品中包含了 存款和道具
...
...
@@ -1142,21 +1148,21 @@ var _default = {
if
(
backValue
.
WObj
[
'物品'
])
{
if
(
backValue
.
WObj
[
'物品'
].
length
>
0
)
{
//所有道具名
_this
5
.
items
=
backValue
.
WObj
[
'物品'
].
filter
(
function
(
val
)
{
_this
6
.
items
=
backValue
.
WObj
[
'物品'
].
filter
(
function
(
val
)
{
return
!
val
.
includes
(
"存款:"
);
});
_this
5
.
items
=
_this5
.
items
.
map
(
function
(
val
)
{
_this
6
.
items
=
_this6
.
items
.
map
(
function
(
val
)
{
return
val
.
split
(
"("
)[
0
];
});
console
.
log
(
'所有道具有'
,
_this
5
.
items
);
console
.
log
(
'所有道具有'
,
_this
6
.
items
);
//清空图片数组 根据历史记录 得到道具名称 根据道具名称请求图片资源
_this
5
.
imageList
=
[];
_this
6
.
imageList
=
[];
var
_loop
=
function
_loop
(
i
)
{
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/AiDraw'
,
method
:
'post'
,
data
:
{
name
:
_this
5
.
items
[
i
]
name
:
_this
6
.
items
[
i
]
},
header
:
{
'Cookie'
:
""
.
concat
(
uni
.
getStorageSync
(
'session_token'
)),
...
...
@@ -1165,16 +1171,16 @@ var _default = {
}).
then
(
function
(
res
)
{
// console.log('当前道具名称对应的图片资源',res[1].data)
if
(
res
[
1
].
data
.
code
===
1
)
{
_this
5
.
imageList
.
push
({
_this
6
.
imageList
.
push
({
imgSrc
:
'https://admin.mindepoch.com:8089'
+
res
[
1
].
data
.
propImagePath
,
name
:
_this
5
.
items
[
i
]
name
:
_this
6
.
items
[
i
]
});
}
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
};
for
(
var
i
=
0
;
i
<
_this
5
.
items
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
_this
6
.
items
.
length
;
i
++
)
{
_loop
(
i
);
}
//余额显示
...
...
@@ -1182,18 +1188,18 @@ var _default = {
return
val
.
includes
(
"存款:"
);
});
if
(
monney
[
0
])
{
_this
5
.
monney
=
monney
[
0
].
match
(
/
\d
+/
);
_this
6
.
monney
=
monney
[
0
].
match
(
/
\d
+/
);
}
else
{
_this
5
.
monney
=
0
;
_this
6
.
monney
=
0
;
}
//结局 有EndStr字段
if
(
backValue
.
WObj
.
EndStr
)
{
if
(
backValue
.
WObj
.
EndStr
!==
""
)
{
_this
5
.
storyContent
=
backValue
.
WObj
.
EndStr
.
split
(
'@'
);
_this
6
.
storyContent
=
backValue
.
WObj
.
EndStr
.
split
(
'@'
);
//出现结局面板 请求背景图片
uni
.
request
({
url
:
"https://admin.mindepoch.com:8089/worlds/"
.
concat
(
_this
5
.
storyContent
[
0
],
".png"
),
url
:
"https://admin.mindepoch.com:8089/worlds/"
.
concat
(
_this
6
.
storyContent
[
0
],
".png"
),
method
:
'get'
,
responseType
:
'arraybuffer'
,
header
:
{
...
...
@@ -1201,20 +1207,20 @@ var _default = {
}
}).
then
(
function
(
res
)
{
// console.log('图片资源',res)
_this
5
.
base64Img
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
res
[
1
].
data
);
_this
5
.
loading
=
true
;
_this
5
.
foot
=
false
;
//输入框区域隐藏
_this
5
.
showResult
=
true
;
//展示查看结局按钮
_this
6
.
base64Img
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
res
[
1
].
data
);
_this
6
.
loading
=
true
;
_this
6
.
foot
=
false
;
//输入框区域隐藏
_this
6
.
showResult
=
true
;
//展示查看结局按钮
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
}
else
{
//未到达结局 因此不展示结局面板
_this
5
.
board
=
false
;
//隐藏结局面板
_this
5
.
foot
=
true
;
//输入框区域显示
_this
5
.
showResult
=
false
;
//隐藏查看结局按钮
_this
5
.
loading
=
false
;
_this
6
.
board
=
false
;
//隐藏结局面板
_this
6
.
foot
=
true
;
//输入框区域显示
_this
6
.
showResult
=
false
;
//隐藏查看结局按钮
_this
6
.
loading
=
false
;
}
}
}
...
...
@@ -1234,57 +1240,57 @@ var _default = {
}
}).
then
(
function
(
res
)
{
ISLIU_content
=
ISLIU_content
.
replaceAll
(
"“"
,
"
\"
"
).
replaceAll
(
"”"
,
"
\"
"
);
var
finalVal
=
_this
5
.
extractQuotedTexts
(
ISLIU_content
).
join
(
","
);
var
text
=
_this
5
.
splitString
(
ISLIU_content
);
_this
5
.
total_val
=
res
[
1
].
data
.
results
;
var
finalVal
=
_this
6
.
extractQuotedTexts
(
ISLIU_content
).
join
(
","
);
var
text
=
_this
6
.
splitString
(
ISLIU_content
);
_this
6
.
total_val
=
res
[
1
].
data
.
results
;
// this.total_val.unshift()
_this
5
.
total_val
=
_this5
.
total_val
.
splice
(
1
,
_this5
.
total_val
.
length
);
console
.
log
(
text
,
_this
5
.
total_val
);
_this
6
.
total_val
=
_this6
.
total_val
.
splice
(
1
,
_this6
.
total_val
.
length
);
console
.
log
(
text
,
_this
6
.
total_val
);
// console.log('finalVal',finalVal)
// console.log('ISLIU_content',ISLIU_content,'text',text,'total_val',res[1].data.results)
text
=
text
.
map
(
function
(
item
)
{
if
(
!
item
.
quoted
)
{
item
.
voicer
=
_this
5
.
currentPageData
.
voiceGroups
[
'2'
];
item
.
voicer
=
_this
6
.
currentPageData
.
voiceGroups
[
'2'
];
}
else
{
if
(
_this
5
.
total_val
.
length
!=
0
)
{
var
double
=
_this
5
.
separateChineseAndNumbers
(
_this5
.
total_val
[
0
]);
var
voicer
=
_this
5
.
currentPageData
.
voiceGroups
[
double
[
1
]]
?
_this5
.
currentPageData
.
voiceGroups
[
double
[
1
]]
:
_this5
.
currentPageData
.
voiceGroups
[
double
[
0
]];
if
(
_this
6
.
total_val
.
length
!=
0
)
{
var
double
=
_this
6
.
separateChineseAndNumbers
(
_this6
.
total_val
[
0
]);
var
voicer
=
_this
6
.
currentPageData
.
voiceGroups
[
double
[
1
]]
?
_this6
.
currentPageData
.
voiceGroups
[
double
[
1
]]
:
_this6
.
currentPageData
.
voiceGroups
[
double
[
0
]];
item
.
voicer
=
voicer
;
_this
5
.
total_val
=
_this5
.
total_val
.
splice
(
1
,
_this5
.
total_val
.
length
);
_this
6
.
total_val
=
_this6
.
total_val
.
splice
(
1
,
_this6
.
total_val
.
length
);
}
}
return
item
;
});
_this
5
.
execFile
(
text
,
ISLIU_content
);
_this
6
.
execFile
(
text
,
ISLIU_content
);
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
//把用户的聊天内容加入到页面中
_this
5
.
historyRecord
.
push
({
_this
6
.
historyRecord
.
push
({
Message
:
backValue
.
ISLIU
,
WObj
:
backValue
.
WObj
});
//删除动画效果
_this
5
.
historyRecord
=
_this5
.
historyRecord
.
filter
(
function
(
item
)
{
_this
6
.
historyRecord
=
_this6
.
historyRecord
.
filter
(
function
(
item
)
{
return
!
item
.
Message
.
includes
(
"正在思考中"
);
});
// console.log('historyRecord',this.historyRecord)
// this.inputVal = '' //清空输入框
_this
5
.
yyds_pangbai
=
''
;
_this
5
.
yyds_dp
=
''
;
_this
5
.
inputVal
=
''
;
_this
5
.
loading
=
false
;
//隐藏蒙版
_this
6
.
yyds_pangbai
=
''
;
_this
6
.
yyds_dp
=
''
;
_this
6
.
inputVal
=
''
;
_this
6
.
loading
=
false
;
//隐藏蒙版
uni
.
hideLoading
();
//滚动条触底
_this
5
.
scrollToBottom
();
_this
6
.
scrollToBottom
();
//处理用户出现结局后 未清除意识流 再次进来 点击重新来过
if
(
_this
5
.
reset
)
{
_this
5
.
reset
=
false
;
_this
5
.
clearISU
();
if
(
_this
6
.
reset
)
{
_this
6
.
reset
=
false
;
_this
6
.
clearISU
();
}
}
else
{
//表示跟服务器建立第一次连接
...
...
@@ -1294,20 +1300,20 @@ var _default = {
// 监听 WebSocket 错误事件
this
.
socketTask
.
onError
(
function
(
error
)
{
console
.
error
(
'WebSocket 错误:'
,
error
);
_this
5
.
socketTask
=
null
;
_this
5
.
badRequest
();
_this
5
.
ttf
=
true
;
_this
6
.
socketTask
=
null
;
_this
6
.
badRequest
();
_this
6
.
ttf
=
true
;
});
// 监听 WebSocket 连接关闭事件
this
.
socketTask
.
onClose
(
function
()
{
_this
5
.
socketTask
=
null
;
_this
5
.
badRequest
();
_this
6
.
socketTask
=
null
;
_this
6
.
badRequest
();
console
.
log
(
'WebSocket 连接已关闭'
);
_this
5
.
ttf
=
true
;
_this
6
.
ttf
=
true
;
});
},
getHistoryContentAndPhoto
:
function
getHistoryContentAndPhoto
()
{
var
_this
6
=
this
;
var
_this
7
=
this
;
this
.
showResult
=
true
;
//展示查看结局按钮
this
.
foot
=
false
;
//输入框区域显示
this
.
loading
=
true
;
...
...
@@ -1321,14 +1327,14 @@ var _default = {
}
}).
then
(
function
(
res
)
{
console
.
log
(
'图片资源'
,
res
);
_this
6
.
base64Img
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
res
[
1
].
data
);
_this
7
.
base64Img
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
res
[
1
].
data
);
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
},
//获取历史聊天记录
getHistory
:
function
getHistory
()
{
var
_this
7
=
this
;
var
_this
8
=
this
;
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/worldChat-history'
,
method
:
'post'
,
...
...
@@ -1345,42 +1351,42 @@ var _default = {
//需要根据历史纪录最后一条 来处理是否还需要往下面聊
if
(
res
[
1
].
data
.
code
===
1
)
{
if
(
res
[
1
].
data
.
chatRecordInfo
)
{
_this
7
.
historyRecord
=
res
[
1
].
data
.
chatRecordInfo
.
Records
;
if
(
_this
7
.
historyRecord
.
length
!==
0
)
{
_this
8
.
historyRecord
=
res
[
1
].
data
.
chatRecordInfo
.
Records
;
if
(
_this
8
.
historyRecord
.
length
!==
0
)
{
//回显的数据
_this
7
.
UITitle
=
_this7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
].
WObj
[
"地点"
];
_this
7
.
UITimer
=
_this7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
].
WObj
[
"时间"
];
_this
7
.
header
=
_this7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
];
_this
8
.
UITitle
=
_this8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
].
WObj
[
"地点"
];
_this
8
.
UITimer
=
_this8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
].
WObj
[
"时间"
];
_this
8
.
header
=
_this8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
];
//展示旁白信息 数字人和用户对话信息
if
(
_this
7
.
header
)
{
var
result
=
_this
7
.
extractText
(
_this7
.
header
.
Message
);
if
(
_this
8
.
header
)
{
var
result
=
_this
8
.
extractText
(
_this8
.
header
.
Message
);
var
len
=
result
.
insideQuotesText
.
length
;
// console.log('result',result)
if
(
result
.
insideQuotesText
.
length
==
0
)
{
//数字人对话框是否需要显示
_this
7
.
glod_dp
=
false
;
_this
8
.
glod_dp
=
false
;
}
else
{
_this
7
.
glod_dp
=
true
;
_this
8
.
glod_dp
=
true
;
}
_this
7
.
yyds_dp
=
result
.
insideQuotesText
[
len
-
1
];
_this
8
.
yyds_dp
=
result
.
insideQuotesText
[
len
-
1
];
//筛选出数字人发来的文字
_this
7
.
yyds_pangbai
=
result
.
outsideQuotesText
;
_this
8
.
yyds_pangbai
=
result
.
outsideQuotesText
;
//状态值
_this
7
.
UIStatus_jiegan
=
_this7
.
header
.
WObj
[
"饥饿感"
]
?
_this7
.
header
.
WObj
[
"饥饿感"
]
:
0
;
_this
7
.
UIStatus_kongjugan
=
_this7
.
header
.
WObj
[
"恐惧感"
]
?
_this7
.
header
.
WObj
[
"恐惧感"
]
:
0
;
_this
8
.
UIStatus_jiegan
=
_this8
.
header
.
WObj
[
"饥饿感"
]
?
_this8
.
header
.
WObj
[
"饥饿感"
]
:
0
;
_this
8
.
UIStatus_kongjugan
=
_this8
.
header
.
WObj
[
"恐惧感"
]
?
_this8
.
header
.
WObj
[
"恐惧感"
]
:
0
;
}
if
(
_this
7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
)
{
if
(
_this
7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
!==
""
)
{
if
(
_this
7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
.
includes
(
"怒删微信"
)
||
_this7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
.
includes
(
"意识被吞噬"
))
{
if
(
_this
8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
)
{
if
(
_this
8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
!==
""
)
{
if
(
_this
8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
.
includes
(
"怒删微信"
)
||
_this8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
].
WObj
.
EndStr
.
includes
(
"意识被吞噬"
))
{
//当前聊天不可继续 根据历史聊天记录的最后一条 用于 显示余额 显示道具 删除微信后的背景图片 以及不在进行websocket连接
if
(
_this
7
.
historyRecord
[
_this7
.
historyRecord
.
length
-
1
].
WObj
[
'物品'
])
{
if
(
_this
8
.
historyRecord
[
_this8
.
historyRecord
.
length
-
1
].
WObj
[
'物品'
])
{
// 根据历史纪录来获取 结局以后的内容和图片
_this
7
.
getHistoryContentAndPhoto
();
var
_monneyAndTool
=
_this
7
.
historyRecord
.
filter
(
function
(
item
,
index
)
{
return
_this
7
.
historyRecord
.
length
-
1
==
index
&&
Object
.
keys
(
_this7
.
historyRecord
[
index
].
WObj
).
length
>
0
;
_this
8
.
getHistoryContentAndPhoto
();
var
_monneyAndTool
=
_this
8
.
historyRecord
.
filter
(
function
(
item
,
index
)
{
return
_this
8
.
historyRecord
.
length
-
1
==
index
&&
Object
.
keys
(
_this8
.
historyRecord
[
index
].
WObj
).
length
>
0
;
});
//拿到物品和余额的数组
var
tool
=
_monneyAndTool
[
0
].
WObj
[
'物品'
];
...
...
@@ -1393,18 +1399,18 @@ var _default = {
return
!
tool
[
index
].
includes
(
"存款"
);
});
if
(
monney
[
0
])
{
_this
7
.
monney
=
monney
[
0
].
match
(
/
\d
+/
);
_this
8
.
monney
=
monney
[
0
].
match
(
/
\d
+/
);
}
else
{
_this
7
.
monney
=
0
;
_this
8
.
monney
=
0
;
}
for
(
var
i
=
0
;
i
<
allTools
.
length
;
i
++
)
{
_this
7
.
imageList
.
push
({
_this
8
.
imageList
.
push
({
imgSrc
:
'https://admin.mindepoch.com:8089/worlds/items/'
+
allTools
[
i
].
split
(
"("
)[
0
]
+
'.png'
,
name
:
allTools
[
i
].
split
(
"("
)[
0
]
});
}
//滚动条触底
_this
7
.
scrollToBottom
();
_this
8
.
scrollToBottom
();
return
;
}
}
...
...
@@ -1412,8 +1418,8 @@ var _default = {
}
//没有走到结局 根据最后两条两条对聊记录处理 物品的显示
var
monneyAndTool
=
_this
7
.
historyRecord
.
filter
(
function
(
item
,
index
)
{
return
_this
7
.
historyRecord
.
length
==
index
&&
Object
.
keys
(
_this7
.
historyRecord
[
index
].
WObj
).
length
>
0
||
_this7
.
historyRecord
.
length
-
1
==
index
&&
Object
.
keys
(
_this7
.
historyRecord
[
index
].
WObj
).
length
>
0
;
var
monneyAndTool
=
_this
8
.
historyRecord
.
filter
(
function
(
item
,
index
)
{
return
_this
8
.
historyRecord
.
length
==
index
&&
Object
.
keys
(
_this8
.
historyRecord
[
index
].
WObj
).
length
>
0
||
_this8
.
historyRecord
.
length
-
1
==
index
&&
Object
.
keys
(
_this8
.
historyRecord
[
index
].
WObj
).
length
>
0
;
});
console
.
log
(
'monneyAndTool'
,
monneyAndTool
);
//余额 道具 的展示
...
...
@@ -1429,12 +1435,12 @@ var _default = {
return
!
_tool
[
index
].
includes
(
"存款"
);
});
if
(
_monney
[
0
])
{
_this
7
.
monney
=
_monney
[
0
].
match
(
/
\d
+/
);
_this
8
.
monney
=
_monney
[
0
].
match
(
/
\d
+/
);
}
else
{
_this
7
.
monney
=
0
;
_this
8
.
monney
=
0
;
}
for
(
var
_i
=
0
;
_i
<
_allTools
.
length
;
_i
++
)
{
_this
7
.
imageList
.
push
({
_this
8
.
imageList
.
push
({
imgSrc
:
'https://admin.mindepoch.com:8089/worlds/items/'
+
_allTools
[
_i
].
split
(
"("
)[
0
]
+
'.png'
,
name
:
_allTools
[
_i
].
split
(
"("
)[
0
]
});
...
...
@@ -1442,26 +1448,26 @@ var _default = {
}
}
//滚动条触底
_this
7
.
scrollToBottom
();
_this
8
.
scrollToBottom
();
//启动 webscoket 连接
}
else
{
// 没有历史记录
}
_this
7
.
socketConnect
();
_this
8
.
socketConnect
();
}
}
else
{
// uni.showToast({
// title: res[1].data.message,
// icon: 'none'
// })
_this
7
.
socketConnect
();
_this
8
.
socketConnect
();
}
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
},
getPhoto
:
function
getPhoto
()
{
var
_this
8
=
this
,
var
_this
9
=
this
,
_uni$request
,
_uni$request2
;
//获取背景图
...
...
@@ -1478,7 +1484,7 @@ var _default = {
}
}).
then
(
function
(
res
)
{
var
arrayBuffer
=
res
[
1
].
data
;
_this
8
.
codeUrl
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
arrayBuffer
);
_this
9
.
codeUrl
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
arrayBuffer
);
}).
catch
(
function
(
err
)
{
return
console
.
log
(
err
);
});
...
...
@@ -1496,7 +1502,7 @@ var _default = {
"Cache-Control"
:
"no-cache"
}),
_uni$request
)).
then
(
function
(
res
)
{
var
arrayBuffer
=
res
[
1
].
data
;
_this
8
.
dpPhoto
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
arrayBuffer
);
_this
9
.
dpPhoto
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
arrayBuffer
);
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
...
...
@@ -1514,7 +1520,7 @@ var _default = {
"Cache-Control"
:
"no-cache"
}),
_uni$request2
)).
then
(
function
(
res
)
{
var
arrayBuffer
=
res
[
1
].
data
;
_this
8
.
userPhoto
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
arrayBuffer
);
_this
9
.
userPhoto
=
'data:image/png;base64,'
+
uni
.
arrayBufferToBase64
(
arrayBuffer
);
}).
catch
(
function
(
err
)
{
return
console
.
log
(
err
);
});
...
...
@@ -1581,7 +1587,7 @@ var _default = {
this
.
$refs
.
popup
.
open
(
'center'
);
},
clearISU
:
function
clearISU
()
{
var
_this
9
=
this
;
var
_this
10
=
this
;
this
.
historyRecord
=
[];
//清除页面显示的聊天记录
this
.
showResult
=
false
;
//隐藏底部的查看结局按钮
this
.
board
=
false
;
//隐藏弹窗
...
...
@@ -1608,12 +1614,12 @@ var _default = {
}).
then
(
function
(
res
)
{
console
.
log
(
'重置世界'
,
res
);
if
(
res
[
1
].
data
.
code
===
1
)
{
_this
9
.
loading
=
false
;
//隐藏遮挡层
_this
10
.
loading
=
false
;
//隐藏遮挡层
uni
.
hideLoading
();
// location.reload() //页面刷新
}
}).
catch
(
function
(
err
)
{
_this
9
.
loading
=
false
;
//隐藏遮挡层
_this
10
.
loading
=
false
;
//隐藏遮挡层
uni
.
hideLoading
();
});
},
...
...
@@ -1751,7 +1757,7 @@ var _default = {
});
},
handleSendMessage
:
function
handleSendMessage
()
{
var
_this1
0
=
this
;
var
_this1
1
=
this
;
// console.log('click')
if
(
this
.
inputVal
.
trim
()
===
''
)
{
uni
.
showToast
({
...
...
@@ -1763,7 +1769,7 @@ var _default = {
}
// 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
this
.
timerConsider
=
setInterval
(
function
()
{
_this1
0
.
count
++
;
_this1
1
.
count
++
;
},
1000
);
this
.
historyRecord
.
push
({
Message
:
this
.
inputVal
,
...
...
@@ -1778,11 +1784,11 @@ var _default = {
// this.inputVal = ''
//滚动条触底
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'#scroll-view-content'
).
boundingClientRect
(
function
(
res
)
{
console
.
log
(
'res'
,
res
,
_this1
0
.
historyRecord
.
length
);
console
.
log
(
'res'
,
res
,
_this1
1
.
historyRecord
.
length
);
if
(
res
)
{
_this1
0
.
scrollTop
=
res
.
height
;
_this1
1
.
scrollTop
=
res
.
height
;
}
else
{
_this1
0
.
scrollTop
=
_this10
.
historyRecord
.
length
*
1000
;
_this1
1
.
scrollTop
=
_this11
.
historyRecord
.
length
*
1000
;
}
}).
exec
();
this
.
socketTask
.
send
({
...
...
@@ -1792,7 +1798,7 @@ var _default = {
}),
success
:
function
success
()
{
console
.
log
(
'消息发送成功'
);
_this1
0
.
loading
=
true
;
_this1
1
.
loading
=
true
;
// uni.showLoading({
// title: '思考中...',
// mask: true // 是否显示透明蒙层,防止触摸穿透,默认为 false
...
...
@@ -1800,7 +1806,7 @@ var _default = {
var
str
=
'对方正在输入...'
;
var
i
=
6
;
_this1
0
.
timer
=
setInterval
(
function
()
{
_this1
1
.
timer
=
setInterval
(
function
()
{
if
(
i
<
10
)
{
i
+=
1
;
}
else
{
...
...
@@ -1814,7 +1820,7 @@ var _default = {
});
},
handleSendMessage2
:
function
handleSendMessage2
()
{
var
_this1
1
=
this
;
var
_this1
2
=
this
;
if
(
this
.
socketTask
==
null
)
{
this
.
socketConnect
();
}
...
...
@@ -1833,7 +1839,7 @@ var _default = {
// 用户的每个输入需要立即回显,并回复一个[思考中...]的动画
this
.
timerConsider
=
setInterval
(
function
()
{
_this1
1
.
count
++
;
_this1
2
.
count
++
;
},
1000
);
this
.
historyRecord
.
push
({
Message
:
this
.
inputVal
,
...
...
@@ -1848,11 +1854,11 @@ var _default = {
// this.inputVal = ''
//滚动条触底
uni
.
createSelectorQuery
().
in
(
this
).
select
(
'#scroll-view-content'
).
boundingClientRect
(
function
(
res
)
{
console
.
log
(
'res'
,
res
,
_this1
1
.
historyRecord
.
length
);
console
.
log
(
'res'
,
res
,
_this1
2
.
historyRecord
.
length
);
if
(
res
)
{
_this1
1
.
scrollTop
=
res
.
height
;
_this1
2
.
scrollTop
=
res
.
height
;
}
else
{
_this1
1
.
scrollTop
=
_this11
.
historyRecord
.
length
*
1000
;
_this1
2
.
scrollTop
=
_this12
.
historyRecord
.
length
*
1000
;
}
}).
exec
();
...
...
@@ -1870,15 +1876,15 @@ var _default = {
}),
success
:
function
success
()
{
console
.
log
(
'消息发送成功'
);
_this1
1
.
loading
=
true
;
_this1
1
.
inputVal_UI
=
_this11
.
inputVal
;
_this1
1
.
inputVal
=
''
;
_this1
1
.
glod_dp
=
false
;
_this1
2
.
loading
=
true
;
_this1
2
.
inputVal_UI
=
_this12
.
inputVal
;
_this1
2
.
inputVal
=
''
;
_this1
2
.
glod_dp
=
false
;
// this.glod_user = true
var
str
=
'对方正在输入...'
;
var
i
=
6
;
_this1
1
.
timer
=
setInterval
(
function
()
{
_this1
2
.
timer
=
setInterval
(
function
()
{
if
(
i
<
10
)
{
i
+=
1
;
}
else
{
...
...
@@ -1887,7 +1893,7 @@ var _default = {
uni
.
setNavigationBarTitle
({
title
:
str
.
substr
(
0
,
i
)
});
_this1
1
.
yyds_pangbai
=
str
.
substr
(
0
,
i
);
_this1
2
.
yyds_pangbai
=
str
.
substr
(
0
,
i
);
},
400
);
}
});
...
...
@@ -1916,7 +1922,7 @@ var _default = {
},
//假人音线
FetchAbuffer
:
function
FetchAbuffer
(
OriginObj
,
voicer
,
Sarry
,
CB
)
{
var
_this1
2
=
this
;
var
_this1
3
=
this
;
var
Cobj2
=
this
.
computeLen
(
OriginObj
);
// console.log('llllllllll',Cobj2)
var
Asr
=
Cobj2
.
Sr
;
...
...
@@ -1937,13 +1943,13 @@ var _default = {
S
:
Asr
});
// OriginObj = Cobj2
_this1
2
.
Cobj2
.
content
=
Cobj2
.
content
;
_this1
2
.
Cobj2
.
Sr
=
Cobj2
.
Sr
;
_this1
3
.
Cobj2
.
content
=
Cobj2
.
content
;
_this1
3
.
Cobj2
.
Sr
=
Cobj2
.
Sr
;
// console.log('OriginObj',OriginObj)
if
(
Cobj2
.
content
!=
""
)
{
setTimeout
(
function
()
{
_this1
2
.
FetchAbuffer
(
Cobj2
,
voicer
,
Sarry
);
},
10
00
);
_this1
3
.
FetchAbuffer
(
Cobj2
,
voicer
,
Sarry
);
},
5
00
);
}
}).
catch
(
function
(
err
)
{
console
.
log
(
1223
,
err
);
...
...
@@ -1951,7 +1957,7 @@ var _default = {
},
//真人音线
FetchAbuffer_real
:
function
FetchAbuffer_real
(
OriginObj
,
voicer
,
Sarry
,
CB
)
{
var
_this1
3
=
this
;
var
_this1
4
=
this
;
var
Cobj
=
this
.
computeLen
(
OriginObj
);
var
Asr
=
Cobj
.
Sr
;
uni
.
request
({
...
...
@@ -1971,17 +1977,17 @@ var _default = {
S
:
Asr
});
// OriginObj = Cobj
_this1
3
.
Cobj
.
content
=
Cobj
.
content
;
_this1
3
.
Cobj
.
Sr
=
Cobj
.
Sr
;
_this1
4
.
Cobj
.
content
=
Cobj
.
content
;
_this1
4
.
Cobj
.
Sr
=
Cobj
.
Sr
;
if
(
Cobj
.
content
!=
""
)
{
setTimeout
(
function
()
{
_this1
3
.
FetchAbuffer_real
(
Cobj
,
voicer
,
Sarry
);
},
10
00
);
_this1
4
.
FetchAbuffer_real
(
Cobj
,
voicer
,
Sarry
);
},
5
00
);
}
});
},
execFile
:
function
execFile
(
data
,
ISLIU_content
)
{
var
_this1
4
=
this
;
var
_this1
5
=
this
;
// let arrObj = data;
// const content = arrObj[0].text;
// quoted为真 或为假 表示 真假音线
...
...
@@ -1991,36 +1997,41 @@ var _default = {
// const voicer = arrObj[0].quoted ? this.currentPageData.voiceGroups[1] : this.currentPageData.voiceGroups[0];
var
arrObj
=
data
;
console
.
log
(
'arrObj_execFile'
,
arrObj
);
var
content
=
arrObj
[
0
].
text
;
var
voicer
=
arrObj
[
0
].
voicer
;
this
.
GoSay
(
content
,
voicer
,
function
(
text
,
falg
)
{
if
(
!
arrObj
||
arrObj
.
length
==
0
)
{
return
;
}
if
(
arrObj
[
0
].
quoted
)
{
if
(
text
!==
""
&&
!
falg
)
{
_this14
.
glod_dp
=
true
;
console
.
log
(
'Quote Added'
);
_this15
.
glod_dp
=
true
;
// this.glod_user = false
_this1
4
.
yyds_dp
=
text
;
_this1
4
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
;
_this1
5
.
yyds_dp
=
text
;
_this1
5
.
yyds_pangbai
+=
" “ "
+
text
+
" ” "
;
}
if
(
falg
)
{
console
.
log
(
'GoSound讲话完毕!'
);
arrObj
.
shift
();
console
.
log
(
'arrObj'
,
arrObj
);
if
(
arrObj
.
length
!==
0
)
{
_this1
4
.
execFile
(
arrObj
);
_this1
5
.
execFile
(
arrObj
);
}
}
}
else
{
if
(
text
!==
""
&&
!
falg
)
{
_this1
4
.
kill
=
false
;
_this1
4
.
delayText
(
text
);
_this1
5
.
kill
=
false
;
_this1
5
.
delayText
(
text
);
}
if
(
falg
)
{
console
.
log
(
'GoSay讲话完毕!'
);
_this1
4
.
kill
=
true
;
_this1
5
.
kill
=
true
;
arrObj
.
shift
();
console
.
log
(
'arrObj'
,
arrObj
);
if
(
arrObj
.
length
!==
0
)
{
_this1
4
.
execFile
(
arrObj
);
_this1
5
.
execFile
(
arrObj
);
}
}
}
...
...
@@ -2069,20 +2080,20 @@ var _default = {
return
matches
||
[];
},
delayText
:
function
delayText
(
text
)
{
var
_this1
5
=
this
;
var
_this1
6
=
this
;
var
count
=
text
.
split
(
""
);
clearInterval
(
this
.
Strem
);
this
.
Strem
=
setInterval
(
function
()
{
// let Nc = count.shift()
_this1
5
.
Nc
=
count
.
shift
();
_this1
6
.
Nc
=
count
.
shift
();
// console.log('this.Nc text',count,this.Nc)
_this1
5
.
yyds_pangbai
+=
_this15
.
Nc
;
_this1
5
.
str
=
count
.
join
(
""
);
_this1
5
.
scrollToBottom_pangbai
();
//滚动条到底部
_this1
6
.
yyds_pangbai
+=
_this16
.
Nc
;
_this1
6
.
str
=
count
.
join
(
""
);
_this1
6
.
scrollToBottom_pangbai
();
//滚动条到底部
if
(
count
.
length
==
0
)
{
clearInterval
(
_this1
5
.
Strem
);
clearInterval
(
_this1
6
.
Strem
);
}
},
10
0
);
},
5
0
);
},
createSSML
:
function
createSSML
(
text
,
voiceName
)
{
return
'
\
...
...
@@ -2097,11 +2108,14 @@ var _default = {
// GoSound 真人音线
GoSound
:
function
GoSound
(
content
,
voicer
,
CB
)
{
// 要读的文字 声线 回调
console
.
log
(
'First'
);
var
that
=
this
;
var
Sarry
=
[];
this
.
Cobj
=
this
.
computeLen
({
content
:
content
});
this
.
str
=
this
.
Cobj
.
Sr
;
this
.
glod_dp
=
true
;
uni
.
request
({
url
:
'https://admin.mindepoch.com:8089/VoiceMode/GetVoiceEcho'
,
method
:
'post'
,
...
...
@@ -2126,6 +2140,7 @@ var _default = {
data
:
arrayBuffer
[
1
].
data
,
encoding
:
'binary'
,
success
:
function
success
()
{
var
_this17
=
this
;
// 写入成功,使用小程序的背景音频播放器播放音频
if
(
that
.
EPlayer
)
{
// that.EPlayer.onended=null
...
...
@@ -2178,6 +2193,8 @@ var _default = {
that
.
jumping
=
false
;
Rfunc
();
}
else
{
console
.
log
(
'Checkpoint'
);
_this17
.
str
=
Sobj
.
S
;
that
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
"/tempAudio_"
.
concat
(
new
Date
().
getTime
(),
".mp3"
);
FileSystemManager
.
writeFile
({
filePath
:
that
.
tempFilePath2
,
...
...
@@ -2203,7 +2220,7 @@ var _default = {
if
(
that
.
Cobj
.
content
!=
""
)
{
setTimeout
(
function
()
{
that
.
FetchAbuffer_real
(
that
.
Cobj
,
voicer
,
Sarry
,
CB
);
},
5
000
);
},
2
000
);
}
},
fail
:
function
fail
(
err
)
{
...
...
@@ -2216,7 +2233,7 @@ var _default = {
},
//假人音线
GoSay
:
function
GoSay
(
content
,
voicer
,
CB
)
{
var
_this1
6
=
this
;
var
_this1
8
=
this
;
if
(
!
this
.
soundVoice
[
voicer
])
{
//真人音线
this
.
GoSound
(
content
,
voicer
,
CB
);
...
...
@@ -2241,32 +2258,33 @@ var _default = {
}).
then
(
function
(
arrayBuffer
)
{
// console.log('arrayBuffer',arrayBuffer)
var
FileSystemManager
=
wx
.
getFileSystemManager
();
_this1
6
.
tempFilePath
=
wx
.
env
.
USER_DATA_PATH
+
"/tempAudio_"
.
concat
(
new
Date
().
getTime
(),
".mp3"
);
// 或者其他音频格式,根据实际情况而定
_this1
8
.
tempFilePath
=
wx
.
env
.
USER_DATA_PATH
+
"/tempAudio_"
.
concat
(
new
Date
().
getTime
(),
".mp3"
);
// 或者其他音频格式,根据实际情况而定
// console.log('tempFilePath:',this.tempFilePath);
FileSystemManager
.
writeFile
({
filePath
:
_this1
6
.
tempFilePath
,
filePath
:
_this1
8
.
tempFilePath
,
data
:
arrayBuffer
[
1
].
data
,
encoding
:
'binary'
,
success
:
function
success
()
{
// 写入成功,使用小程序的背景音频播放器播放音频
if
(
_this1
6
.
EPlayer
)
{
if
(
_this1
8
.
EPlayer
)
{
// this.EPlayer.onended=null
// this.EPlayer.onEnded()
_this1
6
.
EPlayer
.
stop
();
_this1
8
.
EPlayer
.
stop
();
// that.EPlayer.cb && that.EPlayer.cb(that.Cobj2.Sr, true, true)
}
if
(
CB
)
CB
(
_this1
6
.
Cobj2
.
Sr
);
_this1
6
.
EPlayer
=
wx
.
createInnerAudioContext
();
_this1
6
.
EPlayer
.
src
=
_this16
.
tempFilePath
;
_this1
6
.
EPlayer
.
play
();
if
(
CB
)
CB
(
_this1
8
.
Cobj2
.
Sr
);
_this1
8
.
EPlayer
=
wx
.
createInnerAudioContext
();
_this1
8
.
EPlayer
.
src
=
_this18
.
tempFilePath
;
_this1
8
.
EPlayer
.
play
();
console
.
log
(
'oooGoSayooo'
);
_this1
6
.
EPlayer
.
cb
=
CB
;
_this1
8
.
EPlayer
.
cb
=
CB
;
var
Rfunc
=
function
Rfunc
()
{
if
(
_this16
.
jumping
)
{
console
.
log
(
'Sarry'
,
Sarry
);
if
(
_this18
.
jumping
)
{
return
;
}
_this1
6
.
jumping
=
true
;
_this1
8
.
jumping
=
true
;
FileSystemManager
.
unlink
({
filePath
:
that
.
tempFilePath
,
success
:
function
success
(
res
)
{
...
...
@@ -2277,53 +2295,55 @@ var _default = {
}
});
if
(
Sarry
.
length
==
0
)
{
_this1
6
.
kill
=
true
;
if
(
_this1
6
.
Cobj2
.
content
!=
''
)
{
_this1
8
.
kill
=
true
;
if
(
_this1
8
.
Cobj2
.
content
!=
''
)
{
setTimeout
(
function
()
{
// this.EPlayer.onEnded(Rfunc)
_this1
6
.
EPlayer
.
onended
();
_this1
8
.
EPlayer
.
onended
();
},
1000
);
_this1
6
.
jumping
=
false
;
_this1
8
.
jumping
=
false
;
return
;
}
if
(
CB
)
{
CB
(
_this1
6
.
Cobj2
.
Sr
,
true
);
CB
(
_this1
8
.
Cobj2
.
Sr
,
true
);
}
_this1
6
.
jumping
=
false
;
_this1
8
.
jumping
=
false
;
return
;
}
var
Sobj
=
Sarry
.
shift
();
if
(
Sobj
.
A
==
null
)
{
CB
(
Sobj
.
S
);
_this1
6
.
jumping
=
false
;
_this1
8
.
jumping
=
false
;
Rfunc
();
}
else
{
_this16
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
"/tempAudio_"
.
concat
(
new
Date
().
getTime
(),
".mp3"
);
console
.
log
(
'Checkpoint'
);
_this18
.
str
=
Sobj
.
S
;
_this18
.
tempFilePath2
=
wx
.
env
.
USER_DATA_PATH
+
"/tempAudio_"
.
concat
(
new
Date
().
getTime
(),
".mp3"
);
// const mark = that.Cobj2.Sr
FileSystemManager
.
writeFile
({
filePath
:
_this1
6
.
tempFilePath2
,
filePath
:
_this1
8
.
tempFilePath2
,
data
:
Sobj
.
A
,
encoding
:
'binary'
,
success
:
function
success
()
{
_this1
6
.
tempFilePath
=
_this16
.
tempFilePath2
;
_this1
8
.
tempFilePath
=
_this18
.
tempFilePath2
;
if
(
CB
)
CB
(
Sobj
.
S
);
_this1
6
.
EPlayer
=
wx
.
createInnerAudioContext
();
_this1
6
.
EPlayer
.
src
=
_this16
.
tempFilePath
;
_this1
6
.
EPlayer
.
play
();
_this1
6
.
EPlayer
.
onEnded
(
Rfunc
);
_this1
6
.
EPlayer
.
onended
=
Rfunc
;
_this1
8
.
EPlayer
=
wx
.
createInnerAudioContext
();
_this1
8
.
EPlayer
.
src
=
_this18
.
tempFilePath
;
_this1
8
.
EPlayer
.
play
();
_this1
8
.
EPlayer
.
onEnded
(
Rfunc
);
_this1
8
.
EPlayer
.
onended
=
Rfunc
;
},
fail
:
console
.
error
});
}
_this1
6
.
jumping
=
false
;
_this1
8
.
jumping
=
false
;
};
_this1
6
.
EPlayer
.
onEnded
(
Rfunc
);
_this1
6
.
EPlayer
.
onended
=
Rfunc
;
if
(
_this1
6
.
Cobj2
.
content
!=
""
)
{
_this1
8
.
EPlayer
.
onEnded
(
Rfunc
);
_this1
8
.
EPlayer
.
onended
=
Rfunc
;
if
(
_this1
8
.
Cobj2
.
content
!=
""
)
{
setTimeout
(
function
()
{
_this1
6
.
FetchAbuffer
(
_this16
.
Cobj2
,
voicer
,
Sarry
,
CB
);
},
5
000
);
_this1
8
.
FetchAbuffer
(
_this18
.
Cobj2
,
voicer
,
Sarry
,
CB
);
},
2
000
);
}
},
fail
:
function
fail
(
err
)
{
...
...
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