Browse Source

修改bug

master
岳鹏龙 9 months ago
parent
commit
4a393c6bbf
  1. 22
      src/main.ts
  2. 42
      src/pages/index/index.vue
  3. 11
      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

22
src/main.ts

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

42
src/pages/index/index.vue

@ -3,7 +3,7 @@
@leftClick="leftClick">
</u-navbar>
<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">
<template #indicator>
<view class="indicator">
@ -48,19 +48,19 @@
<view class="bangCart">
<view class="bangone1" @click="gokdb">
<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 class="bangone2" @click="kfz">
<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 class="bangone3" @click="gojrb">
<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 class="bangone4" @click="gomtb">
<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>
@ -121,7 +121,8 @@
<liuDragButton :widthPx="'145rpx'">
<!-- <image class="xzs" v-if="showtypeChat" src="@/static/img/aiicon.png" mode="aspectFit"
@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>
<chatdialog :visible="showChat" @close="showChat = false" />
</template>
@ -316,31 +317,32 @@
}
const clickcount = ref(0)
const clickchat = () =>{
const clickchat = () => {
clickcount.value++
if(!showtypeChat.value) {
if (!showtypeChat.value) {
showChat.value = true
clickcount.value = 0
} else {
if(clickcount.value === 1) {
if (clickcount.value === 1) {
showtypeChat.value = false
}
}
}
let intervalId;
function myPeriodicFunction() {
if(!showChat.value) {
if (!showChat.value) {
showtypeChat.value = true
clickcount.value = 0
}
}
onMounted(() => {
intervalId = setInterval(myPeriodicFunction, 5000);
intervalId = setInterval(myPeriodicFunction, 5000);
});
onUnmounted(() => {
clearInterval(intervalId);
clearInterval(intervalId);
});
@ -351,6 +353,7 @@
currentTab.value = ''
await getMemberCenter(currentTab.value)
})
</script>
<style scoped lang="scss">
@ -402,6 +405,9 @@
}
.box {
margin-top: -70px;
position: relative;
border-radius: 85rpx 85rpx 0 0;
background-color: #F1F3F9;
padding: 0 24rpx;
@ -409,7 +415,7 @@
width: 100%;
height: 160rpx;
border-radius: 134rpx;
margin-top: 40rpx;
margin-top: 30rpx;
}
.scroll-view_H {
@ -508,7 +514,7 @@
border: 0.4rpx solid #007FFF;
background: #EDF5FF;
display: flex;
justify-content: space-between;
justify-content: space-around;
align-items: center;
}
@ -520,7 +526,7 @@
border: 0.4rpx solid #FF2228;
background: #FFF1F3;
display: flex;
justify-content: space-between;
justify-content: space-around;
align-items: center;
}
@ -533,7 +539,7 @@
border: 0.4rpx solid #FD8702;
background: #FFE7CE;
display: flex;
justify-content: space-between;
justify-content: space-around;
align-items: center;
}
@ -546,7 +552,7 @@
border: 0.4rpx solid #08B4BD;
background: #E5FEFF;
display: flex;
justify-content: space-between;
justify-content: space-around;
align-items: center;
}
@ -704,7 +710,7 @@
}
.xzs1 {
width: 180rpx;
width: 250rpx;
position: fixed;
// top: 70%;
}

11
src/pages/login/login.vue

@ -66,7 +66,12 @@
}, 1000)
}
})
}
const goback = ()=> {
uni.switchTab({
url: '/pages/index/index'
})
}
onLoad((options : any) => {
@ -85,6 +90,9 @@
<view class="btn_box">
<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" />
<view class="backindex" @click="goback">
返回主页
</view>
</view>
</view>
</template>
@ -108,4 +116,7 @@
.btn_box {
margin-top: 60rpx;
}
.backindex {
margin-top: 20px;
}
</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