Browse Source

修改bug

master
岳鹏龙 9 months ago
parent
commit
4a393c6bbf
  1. 24
      src/main.ts
  2. 48
      src/pages/index/index.vue
  3. 13
      src/pages/login/login.vue
  4. BIN
      src/static/img/jrb.png
  5. BIN
      src/static/img/kdb.png
  6. BIN
      src/static/img/mtb.png
  7. BIN
      src/static/img/qyb.png

24
src/main.ts

@ -7,10 +7,20 @@ import fengUniappExploit from 'feng-uniapp-exploit'
import store from './store' import store from './store'
export function createApp() { export function createApp() {
const app = createSSRApp(App) const app = createSSRApp(App)
app.use(uviewPlus) app.use(uviewPlus)
app.use(fengUniappExploit) app.use(fengUniappExploit)
app.use(store) app.use(store)
app.mixin({
return { app } onShareAppMessage() { // 分享给好友
} return {
title: '惠企帮',
path: '/pages/index/index',
}
},
onShareTimeline() { // 分享朋友圈
return { title: '惠企帮' }
}
})
return { app }
}

48
src/pages/index/index.vue

@ -3,7 +3,7 @@
@leftClick="leftClick"> @leftClick="leftClick">
</u-navbar> </u-navbar>
<view class="container"> <view class="container">
<u-swiper :list="list5" @change="change" :autoplay="false" radius="0" height="180" keyName="pic_path" <u-swiper :list="list5" @change="change" :autoplay="true" radius="0" height="260" keyName="pic_path"
@click="swiperClick" :displayMultipleItems="0"> @click="swiperClick" :displayMultipleItems="0">
<template #indicator> <template #indicator>
<view class="indicator"> <view class="indicator">
@ -48,19 +48,19 @@
<view class="bangCart"> <view class="bangCart">
<view class="bangone1" @click="gokdb"> <view class="bangone1" @click="gokdb">
<text class="btext">开店帮</text> <text class="btext">开店帮</text>
<image style="height: 100%;width: 140rpx;" src="@/static/img/kdb.png" mode=""></image> <image style="height: 32px;width: 80rpx;" src="@/static/img/kdb.png" mode=""></image>
</view> </view>
<view class="bangone2" @click="kfz"> <view class="bangone2" @click="kfz">
<text class="btext">企业帮</text> <text class="btext">企业帮</text>
<image style="height: 100%;width: 140rpx;" src="@/static/img/qyb.png" mode=""></image> <image style="height: 32px;width: 80rpx;" src="@/static/img/qyb.png" mode=""></image>
</view> </view>
<view class="bangone3" @click="gojrb"> <view class="bangone3" @click="gojrb">
<text class="btext">金融帮</text> <text class="btext">金融帮</text>
<image style="height: 100%;width: 140rpx;" src="@/static/img/jrb.png" mode=""></image> <image style="height: 32px;width: 80rpx;" src="@/static/img/jrb.png" mode=""></image>
</view> </view>
<view class="bangone4" @click="gomtb"> <view class="bangone4" @click="gomtb">
<text class="btext">媒体帮</text> <text class="btext">媒体帮</text>
<image style="height: 100%;width: 140rpx;" src="@/static/img/mtb.png" mode=""></image> <image style="height: 32px;width: 80rpx;" src="@/static/img/mtb.png" mode=""></image>
</view> </view>
</view> </view>
</view> </view>
@ -121,7 +121,8 @@
<liuDragButton :widthPx="'145rpx'"> <liuDragButton :widthPx="'145rpx'">
<!-- <image class="xzs" v-if="showtypeChat" src="@/static/img/aiicon.png" mode="aspectFit" <!-- <image class="xzs" v-if="showtypeChat" src="@/static/img/aiicon.png" mode="aspectFit"
@click="showtypeChat = false"></image> --> @click="showtypeChat = false"></image> -->
<image class="xzs1" :style="{right: showtypeChat?'-105rpx': '-20rpx'}" v-show="!showChat" src="@/static/img/xzs.png" mode="aspectFit" @click="clickchat"></image> <image class="xzs1" :style="{right: showtypeChat?'-145rpx': '-30rpx'}" v-show="!showChat"
src="@/static/img/xzs.png" mode="widthFix" @click="clickchat"></image>
</liuDragButton> </liuDragButton>
<chatdialog :visible="showChat" @close="showChat = false" /> <chatdialog :visible="showChat" @close="showChat = false" />
</template> </template>
@ -314,33 +315,34 @@
icon: 'none' icon: 'none'
}) })
} }
const clickcount = ref(0) const clickcount = ref(0)
const clickchat = () =>{ const clickchat = () => {
clickcount.value++ clickcount.value++
if(!showtypeChat.value) { if (!showtypeChat.value) {
showChat.value = true showChat.value = true
clickcount.value = 0 clickcount.value = 0
} else { } else {
if(clickcount.value === 1) { if (clickcount.value === 1) {
showtypeChat.value = false showtypeChat.value = false
} }
} }
} }
let intervalId; let intervalId;
function myPeriodicFunction() { function myPeriodicFunction() {
if(!showChat.value) { if (!showChat.value) {
showtypeChat.value = true showtypeChat.value = true
clickcount.value = 0 clickcount.value = 0
} }
} }
onMounted(() => { onMounted(() => {
intervalId = setInterval(myPeriodicFunction, 5000); intervalId = setInterval(myPeriodicFunction, 5000);
}); });
onUnmounted(() => { onUnmounted(() => {
clearInterval(intervalId); clearInterval(intervalId);
}); });
@ -351,6 +353,7 @@
currentTab.value = '' currentTab.value = ''
await getMemberCenter(currentTab.value) await getMemberCenter(currentTab.value)
}) })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@ -402,6 +405,9 @@
} }
.box { .box {
margin-top: -70px;
position: relative;
border-radius: 85rpx 85rpx 0 0;
background-color: #F1F3F9; background-color: #F1F3F9;
padding: 0 24rpx; padding: 0 24rpx;
@ -409,7 +415,7 @@
width: 100%; width: 100%;
height: 160rpx; height: 160rpx;
border-radius: 134rpx; border-radius: 134rpx;
margin-top: 40rpx; margin-top: 30rpx;
} }
.scroll-view_H { .scroll-view_H {
@ -508,7 +514,7 @@
border: 0.4rpx solid #007FFF; border: 0.4rpx solid #007FFF;
background: #EDF5FF; background: #EDF5FF;
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
align-items: center; align-items: center;
} }
@ -520,7 +526,7 @@
border: 0.4rpx solid #FF2228; border: 0.4rpx solid #FF2228;
background: #FFF1F3; background: #FFF1F3;
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
align-items: center; align-items: center;
} }
@ -533,7 +539,7 @@
border: 0.4rpx solid #FD8702; border: 0.4rpx solid #FD8702;
background: #FFE7CE; background: #FFE7CE;
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
align-items: center; align-items: center;
} }
@ -546,7 +552,7 @@
border: 0.4rpx solid #08B4BD; border: 0.4rpx solid #08B4BD;
background: #E5FEFF; background: #E5FEFF;
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
align-items: center; align-items: center;
} }
@ -704,7 +710,7 @@
} }
.xzs1 { .xzs1 {
width: 180rpx; width: 250rpx;
position: fixed; position: fixed;
// top: 70%; // top: 70%;
} }

13
src/pages/login/login.vue

@ -66,7 +66,12 @@
}, 1000) }, 1000)
} }
}) })
}
const goback = ()=> {
uni.switchTab({
url: '/pages/index/index'
})
} }
onLoad((options : any) => { onLoad((options : any) => {
@ -85,6 +90,9 @@
<view class="btn_box"> <view class="btn_box">
<u-button @getphonenumber="onGetPhoneNumber" text="手机号登录" icon-color="#fff" open-type="getPhoneNumber" <u-button @getphonenumber="onGetPhoneNumber" text="手机号登录" icon-color="#fff" open-type="getPhoneNumber"
color="linear-gradient(270deg, rgba(232, 123, 7, 1) 0%, rgba(247, 205, 77, 1) 100%)" shape="circle" /> color="linear-gradient(270deg, rgba(232, 123, 7, 1) 0%, rgba(247, 205, 77, 1) 100%)" shape="circle" />
<view class="backindex" @click="goback">
返回主页
</view>
</view> </view>
</view> </view>
</template> </template>
@ -108,4 +116,7 @@
.btn_box { .btn_box {
margin-top: 60rpx; margin-top: 60rpx;
} }
.backindex {
margin-top: 20px;
}
</style> </style>

BIN
src/static/img/jrb.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
src/static/img/kdb.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
src/static/img/mtb.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
src/static/img/qyb.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Loading…
Cancel
Save