Commit 1907a85c by Ken Nakahira

提交更新代码

parent 6039374a
......@@ -361,30 +361,26 @@
<view class="UI_body_left_Pangbai_content">
<view class="pangbai_title">
<text>旁白</text>
<image
@click="nextTips"
src="../../static/UI/继续.png"
class="tre"
mode="scaleToFill"
/>
</view>
<scroll-view
:scroll-y="true"
:scroll-top="scrollTop_pangbai"
:style="{height: '215rpx'}"
:style="{height: '7.5rem'}"
:scroll-into-view="bottomElement_pangbai"
class="pangbai_content"
>
<view id="scrollView">
<view class="npc">
{{yyds_pangbai}}
</view>
<view class="npc" id="pangbai">{{yyds_pangbai}}</view>
<!-- 最后一个元素,用于滚动定位 -->
<view id="bottomElement_pangbai">
<text class="npc">ㅤ ㅤ</text>
</view>
<view id="bottomElement_pangbai"></view>
</view>
</scroll-view>
<image
@click="nextTips"
src="../../static/UI/继续.png"
class="tre"
mode="scaleToFill"
/>
</view>
</view>
</view>
......@@ -721,6 +717,8 @@ export default {
scrollToBottom(){
uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect((res)=>{
// console.log('res',res,this.historyRecord.length)
console.log('width', wx.getWindowInfo().screenWidth)
console.log('height', wx.getWindowInfo().screenHeight)
if(res){
this.scrollTop=res.height;
}else{
......@@ -741,6 +739,13 @@ export default {
});
},
calcFontSize() {
let windowInfo = wx.getWindowInfo();
let FontSizeRPX = 26 / (430/750);
let FontSizePX = FontSizeRPX * (windowInfo.windowWidth/750);
document.getElementById('pangbai').style.fontSize = FontSizePX;
},
splitString(str) {
const result = [];
let currentText = '';
......@@ -3186,7 +3191,7 @@ export default {
.tre{
position:absolute;
right:30rpx;
bottom:-250rpx;
bottom:0rpx;
width:36rpx;
height:27rpx;
z-index:99;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<view class="wrapper data-v-86ffa444">
<block wx:if="{{showUserInfo}}">
<view class="ttt data-v-86ffa444"><button class="avatar-wrapper data-v-86ffa444" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e">
<image class="avatar data-v-86ffa444" src="{{avatarUrl}}"></image>
</button>
<view class="tipUserHeader data-v-86ffa444">设置头像</view><input class="weui-input data-v-86ffa444" placeholder="请输入昵称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" value="{{userName}}" bindinput="__e" /><button class="submit data-v-86ffa444" type="primary" disabled="{{disabledSubmit}}" data-event-opts="{{[['tap',[['handleSubmit',['$event']]]]]}}" bindtap="__e">提交</button>
</view>
</block><button data-event-opts="{{[['tap',[['handleUserDestory',['$event']]]]]}}" bindtap="__e" class="data-v-86ffa444">用户注销</button>
<view class="shadow data-v-86ffa444"></view>
<view class="section data-v-86ffa444">
<view class="shadowBoard data-v-86ffa444" style="{{'background-image:'+('url('+photo[i]+')')+';'}}"></view>
<view class="swiper data-v-86ffa444">
<image class="scaleToFill data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['preImage',['$event']]]]]}}" bindtap="__e"></image>
<image class="scaleToFill2 data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['nextImage',['$event']]]]]}}" bindtap="__e"></image>
<z-swiper class="swiper data-v-86ffa444 vue-ref" vue-id="58f3e230-1" options="{{options}}" data-ref="zSwiper" value="{{list}}" data-event-opts="{{[['^slideChange',[['onSlideChange']]],['^input',[['__set_model',['','list','$event',[]]]]]]}}" bind:slideChange="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}">
<block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<z-swiper-item vue-id="{{('58f3e230-2-'+index)+','+('58f3e230-1')}}" custom-style="{{slideCustomStyle}}" class="data-v-86ffa444" bind:__l="__l" vue-slots="{{['default']}}"><button data-event-opts="{{[['tap',[['NavTo',['$0'],[[['list','',index]]]]]]]}}" class="btn data-v-86ffa444" bindtap="__e">
<image class="image data-v-86ffa444" src="{{'https://admin.mindepoch.com:8089/worlds/'+item.name+'.png'}}" mode="aspectFill"></image>
<view class="CardContent data-v-86ffa444">
<view class="card data-v-86ffa444">
<view class="header1 data-v-86ffa444">{{item.name}}</view>
<view class="header2 data-v-86ffa444">
<view class="sdsd data-v-86ffa444">{{item.worldHeader}}</view>
<view class="distence data-v-86ffa444"></view>
<view class="detail data-v-86ffa444">{{item.description}}</view>
</view>
</view>
</view>
</button></z-swiper-item>
</block>
</z-swiper>
</view>
</view>
</view>
\ No newline at end of file
<view class="wrapper data-v-86ffa444"><block wx:if="{{showUserInfo}}"><view class="ttt data-v-86ffa444"><button class="avatar-wrapper data-v-86ffa444" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar data-v-86ffa444" src="{{avatarUrl}}"></image></button><view class="tipUserHeader data-v-86ffa444">设置头像</view><input class="weui-input data-v-86ffa444" placeholder="请输入昵称" data-event-opts="{{[['input',[['__set_model',['','userName','$event',[]]]]]]}}" value="{{userName}}" bindinput="__e"/><button class="submit data-v-86ffa444" type="primary" disabled="{{disabledSubmit}}" data-event-opts="{{[['tap',[['handleSubmit',['$event']]]]]}}" bindtap="__e">提交</button></view></block><button data-event-opts="{{[['tap',[['handleUserDestory',['$event']]]]]}}" bindtap="__e" class="data-v-86ffa444">用户注销</button><view class="shadow data-v-86ffa444"></view><view class="section data-v-86ffa444"><view class="shadowBoard data-v-86ffa444" style="{{'background-image:'+('url('+photo[i]+')')+';'}}"></view><view class="swiper data-v-86ffa444"><image class="scaleToFill data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['preImage',['$event']]]]]}}" bindtap="__e"></image><image class="scaleToFill2 data-v-86ffa444" src="../../static/photo/left.png" mode="scaleToFill" data-event-opts="{{[['tap',[['nextImage',['$event']]]]]}}" bindtap="__e"></image><z-swiper class="swiper data-v-86ffa444 vue-ref" vue-id="58f3e230-1" options="{{options}}" data-ref="zSwiper" value="{{list}}" data-event-opts="{{[['^slideChange',[['onSlideChange']]],['^input',[['__set_model',['','list','$event',[]]]]]]}}" bind:slideChange="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><z-swiper-item vue-id="{{('58f3e230-2-'+index)+','+('58f3e230-1')}}" custom-style="{{slideCustomStyle}}" class="data-v-86ffa444" bind:__l="__l" vue-slots="{{['default']}}"><button data-event-opts="{{[['tap',[['NavTo',['$0'],[[['list','',index]]]]]]]}}" class="btn data-v-86ffa444" bindtap="__e"><image class="image data-v-86ffa444" src="{{'https://admin.mindepoch.com:8089/worlds/'+item.name+'.png'}}" mode="aspectFill"></image><view class="CardContent data-v-86ffa444"><view class="card data-v-86ffa444"><view class="header1 data-v-86ffa444">{{item.name}}</view><view class="header2 data-v-86ffa444"><view class="sdsd data-v-86ffa444">{{item.worldHeader}}</view><view class="distence data-v-86ffa444"></view><view class="detail data-v-86ffa444">{{item.description}}</view></view></view></view></button></z-swiper-item></block></z-swiper></view></view></view>
\ No newline at end of file
......@@ -605,10 +605,6 @@ var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runt
//
//
//
//
//
//
//
// import FullScreenLoading from '../../components/FullScreenLoading.vue';
var recorderManager = uni.getRecorderManager();
......@@ -922,6 +918,8 @@ var _default = {
var _this2 = this;
uni.createSelectorQuery().in(this).select('#scroll-view-content').boundingClientRect(function (res) {
// console.log('res',res,this.historyRecord.length)
console.log('width', wx.getWindowInfo().screenWidth);
console.log('height', wx.getWindowInfo().screenHeight);
if (res) {
_this2.scrollTop = res.height;
} else {
......@@ -941,6 +939,12 @@ var _default = {
}).exec();
});
},
calcFontSize: function calcFontSize() {
var windowInfo = wx.getWindowInfo();
var FontSizeRPX = 26 / (430 / 750);
var FontSizePX = FontSizeRPX * (windowInfo.windowWidth / 750);
document.getElementById('pangbai').style.fontSize = FontSizePX;
},
splitString: function splitString(str) {
var result = [];
var currentText = '';
......
......@@ -1124,7 +1124,7 @@ to {
.tre.data-v-57280228{
position:absolute;
right:30rpx;
bottom:-250rpx;
bottom:0rpx;
width:36rpx;
height:27rpx;
z-index:99;
......
<block wx:if="{{showPopup}}">
<view class="{{['uni-popup',popupstyle,isDesktop?'fixforpc-z-index':'']}}">
<view data-event-opts="{{[['touchstart',[['touchstart',['$event']]]]]}}" bindtouchstart="__e">
<block wx:if="{{maskShow}}">
<uni-transition vue-id="0c37304b-1" name="mask" mode-class="fade" styles="{{maskClass}}" duration="{{duration}}" show="{{showTrans}}" data-event-opts="{{[['^click',[['onTap']]]]}}" bind:click="__e" bind:__l="__l"></uni-transition>
</block>
<uni-transition vue-id="0c37304b-2" mode-class="{{ani}}" name="content" styles="{{transClass}}" duration="{{duration}}" show="{{showTrans}}" data-event-opts="{{[['^click',[['onTap']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">
<view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="{{['uni-popup__wrapper',popupstyle]}}" style="{{'background-color:'+(bg)+';'}}" bindtap="__e">
<slot></slot>
</view>
</uni-transition>
</view>
</view>
</block>
\ No newline at end of file
<block wx:if="{{showPopup}}"><view class="{{['uni-popup',popupstyle,isDesktop?'fixforpc-z-index':'']}}"><view data-event-opts="{{[['touchstart',[['touchstart',['$event']]]]]}}" bindtouchstart="__e"><block wx:if="{{maskShow}}"><uni-transition vue-id="0c37304b-1" name="mask" mode-class="fade" styles="{{maskClass}}" duration="{{duration}}" show="{{showTrans}}" data-event-opts="{{[['^click',[['onTap']]]]}}" bind:click="__e" bind:__l="__l"></uni-transition></block><uni-transition vue-id="0c37304b-2" mode-class="{{ani}}" name="content" styles="{{transClass}}" duration="{{duration}}" show="{{showTrans}}" data-event-opts="{{[['^click',[['onTap']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="{{['uni-popup__wrapper',popupstyle]}}" style="{{'background-color:'+(bg)+';'}}" bindtap="__e"><slot></slot></view></uni-transition></view></view></block>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment