|
@@ -6,12 +6,16 @@
|
|
|
<!-- 第二层:地图 -->
|
|
|
<view class="map-layer" id="mapLayer" :style="{ transform: `translateX(${translateX}px)` }" @touchstart="touchStart" @touchmove="touchMove" @touchend="touchEnd" @mousedown="onmousedown" @mousemove="onmousemove" @mouseup="onmouseup">
|
|
|
<image class="island-image" src="/static/island/island.png" mode="widthFix" style="width:1536rpx; bottom: 0rpx;left: 0rpx; position: absolute;"></image>
|
|
|
- <view style="position: absolute;width: 670rpx;left: 680rpx; bottom:430rpx;align-items: center;">
|
|
|
- <image class="house-image" src="/static/island/building/4.png" mode="widthFix" style="width:670rpx; position: static;" @click="onHouseClick" :animation="houseAnimationData"> </image>
|
|
|
+ <view style="position: absolute;width: 670rpx;left: 340rpx; bottom:320rpx;align-items: center;">
|
|
|
+ <image class="house-image" src="/static/island/building/home1.png" mode="widthFix" style="width:670rpx; position: static;" @click="onHouseClick" :animation="houseAnimationData"> </image>
|
|
|
</view>
|
|
|
|
|
|
- <view style="position: absolute;width: 670rpx;left:180rpx; bottom:130rpx;align-items: center;">
|
|
|
- <image class="hall-image" src="/static/island/building/1.png" mode="widthFix" style="width:670rpx; position: static;" @click="onHallClick" :animation="hallAnimationData"> </image>
|
|
|
+ <view style="position: absolute;width: 300rpx;left:280rpx; bottom:200rpx;align-items: center;">
|
|
|
+ <image class="table-image" src="/static/island/building/workTable.png" mode="widthFix" style="width:670rpx; position: static;" @click="onHallClick" :animation="hallAnimationData"> </image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="position: absolute;width:200rpx;left:660rpx; bottom:260rpx;align-items: center;">
|
|
|
+ <image class="mailBox-image" src="/static/island/building/mailBox.png" mode="widthFix" style="width:670rpx; position: static;" > </image>
|
|
|
</view>
|
|
|
|
|
|
<!-- 主岛箭头 -->
|
|
@@ -24,6 +28,17 @@
|
|
|
<!-- 第一层:UI -->
|
|
|
<view class="ui-layer">
|
|
|
<view class="ui-content">
|
|
|
+ <!-- 添加货币计数器 -->
|
|
|
+ <view class="currency-display" >
|
|
|
+ <view class="currency-item">
|
|
|
+ <image src="/static/island/UI/wd_icon_coin.png" mode="widthFix" class="currency-icon"></image>
|
|
|
+ <text class="currency-value">9999</text>
|
|
|
+ </view>
|
|
|
+ <view class="currency-item">
|
|
|
+ <image src="/static/island/UI/wd_icon_xingyuan.png" mode="widthFix" class="currency-icon"></image>
|
|
|
+ <text class="currency-value">9999</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="ui-buttons">
|
|
|
<button class="ui-button" @click="showInventory">背包</button>
|
|
|
<button class="ui-button" @click="showCharacter">角色</button>
|
|
@@ -38,6 +53,13 @@
|
|
|
<character-dialog :visible.sync="characterVisible" @close="onCharacterClose"></character-dialog>
|
|
|
<shop-dialog :visible.sync="shopVisible" @close="onShopClose" @buy="onShopBuy"></shop-dialog>
|
|
|
<task-dialog class="task-dialog" :visible.sync="taskVisible" @close="onTaskClose"></task-dialog>
|
|
|
+
|
|
|
+ <!-- 引导对话组件 -->
|
|
|
+ <talk-guide
|
|
|
+ :guide-data="guideData"
|
|
|
+ :player-name="playerName"
|
|
|
+ @guide-complete="onGuideComplete"
|
|
|
+ ></talk-guide>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -47,13 +69,15 @@ import InventoryDialog from '@/components/dialogs/InventoryDialog.vue'
|
|
|
import CharacterDialog from '@/components/dialogs/CharacterDialog.vue'
|
|
|
import ShopDialog from '@/components/dialogs/ShopDialog.vue'
|
|
|
import TaskDialog from './TaskDialog.vue'
|
|
|
+import TalkGuide from './talkGuide.vue'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
InventoryDialog,
|
|
|
CharacterDialog,
|
|
|
ShopDialog,
|
|
|
- TaskDialog
|
|
|
+ TaskDialog,
|
|
|
+ TalkGuide
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -79,6 +103,37 @@ export default {
|
|
|
mainArrowAnimating: false,
|
|
|
mainArrowVisible: false,
|
|
|
taskVisible: false,
|
|
|
+ playerName: '梦幻',
|
|
|
+ guideData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '这位大人,这里太大了吧....',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/building/1.png',
|
|
|
+ characterName: '我',
|
|
|
+ text: '好的,我马上上会教付清',
|
|
|
+ position: 'right',
|
|
|
+ isMirror: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/building/1.png',
|
|
|
+ characterName: '我',
|
|
|
+ text: '很奇怪不是吗?',
|
|
|
+ position: 'right',
|
|
|
+ isMirror: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '怎么回事',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -336,6 +391,11 @@ export default {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/isLand/mainLand'
|
|
|
});
|
|
|
+ },
|
|
|
+ onGuideComplete() {
|
|
|
+ console.log('引导完成')
|
|
|
+ // 这里可以添加引导完成后的逻辑
|
|
|
+ uni.setStorageSync('isGuideCompleted', true)
|
|
|
}
|
|
|
},
|
|
|
beforeDestroy() {
|