Browse Source

修改bug

master
岳鹏龙 7 months ago
parent
commit
5ac35836af
  1. 12
      src/pages/index/ChatDialog.vue
  2. 4
      src/pages/index/bnbdetail.vue
  3. 60
      src/pages/index/index.vue
  4. 56
      src/pages/index/shoppage/mtbmakeMessage.vue
  5. 2
      src/pages/index/shoppage/qyhelpDetail.vue
  6. 49
      src/pages/index/specialSubject.vue
  7. 18
      src/pages/index/subform.vue
  8. 3
      src/pages/index/ztdetail.vue
  9. 5
      src/pages/mine/associatedEnterprise.vue
  10. 3
      src/pages/mine/myCourses.vue
  11. BIN
      src/static/img/close.png
  12. BIN
      src/static/img/nodata.png

12
src/pages/index/ChatDialog.vue

@ -9,16 +9,22 @@
mode="widthFix" mode="widthFix"
></image> ></image>
<view style="display: flex; align-items: center"> <view style="display: flex; align-items: center">
<view style="font-size: 70rpx; color: #007fff" @click="close">×</view> <!-- <view style="font-size: 80rpx; color: #007fff" @click="close">×</view> -->
<image
style="width: 40rpx; height: 40rpx;"
@click="close"
src="@/static/img/close.png"
mode=""
></image>
<image <image
style="width: 40rpx; height: 40rpx; margin-left: 40rpx;margin-top: 8rpx;" style="width: 40rpx; height: 40rpx; margin-left: 40rpx;"
@click="dxclick" @click="dxclick"
:src="isdx ? '/static/img/sx.png' : '/static/img/fd.png'" :src="isdx ? '/static/img/sx.png' : '/static/img/fd.png'"
mode="" mode=""
></image> ></image>
</view> </view>
</view> </view>
<scroll-view class="message-box" scroll-y :style="{ height: isdx ? '80%' : '70%' }"> <scroll-view class="message-box" scroll-y :style="{ height: isdx ? '80%' : '74%' }">
<view class="akstart" v-if="showfirst"> <view class="akstart" v-if="showfirst">
<view v-for="(msg, index) in messages" :key="index" :class="['message', msg.role]"> <view v-for="(msg, index) in messages" :key="index" :class="['message', msg.role]">
<image class="aicon" src="@/static/img/aiicon.png" mode=""></image> <image class="aicon" src="@/static/img/aiicon.png" mode=""></image>

4
src/pages/index/bnbdetail.vue

@ -23,7 +23,7 @@
import { import {
ReportDetail ReportDetail
} from '@/api/shop' } from '@/api/shop'
import uvparse from '@/uni_modules/uv-parse/components/uv-parse/uv-parse.vue' import uvparse from '@/uni_modules/uv-parse/components/uv-parse/uv-parse.vue'
const titleData = ref([]) const titleData = ref([])
@ -46,7 +46,7 @@ import uvparse from '@/uni_modules/uv-parse/components/uv-parse/uv-parse.vue'
<style scoped lang="scss"> <style scoped lang="scss">
.container { .container {
background-color: #ffffff; background-color: #ffffff;
height: calc(100vh - 350rpx); height: 100vh;
width: 100%; width: 100%;
padding: 48rpx; padding: 48rpx;
box-sizing: border-box; box-sizing: border-box;

60
src/pages/index/index.vue

@ -2,31 +2,49 @@
<u-navbar title="惠企帮" placeholder="true" bg-color="#F1F3F9" left-icon="map" left-icon-size="24rpx" left-text="呼和浩特" <u-navbar title="惠企帮" placeholder="true" bg-color="#F1F3F9" left-icon="map" left-icon-size="24rpx" left-text="呼和浩特"
@leftClick="leftClick"></u-navbar> @leftClick="leftClick"></u-navbar>
<view class="container"> <view class="container">
<u-swiper :list="list5" @change="change" :autoplay="true" radius="0 0 60rpx 60rpx" height="260" <u-swiper :list="list5" @change="change" :autoplay="true" height="230"
key-name="pic_path" @click="swiperClick"> key-name="pic_path" @click="swiperClick">
<template #indicator> <!-- <template #indicator>
<view class="indicator"> <view class="indicator">
<view class="indicator__dot" v-for="(item, index) in list5" :key="index" <view class="indicator__dot" v-for="(item, index) in list5" :key="index"
:class="index === current ? 'indicator__dotactive' : ''"></view> :class="index === current ? 'indicator__dotactive' : ''"></view>
</view> </view>
</template> </template> -->
</u-swiper> </u-swiper>
<view class="box"> <view class="box">
<view class="buttonCard">
<view class="but" @click="gotz('wx2eec5fb00157a603','')">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/cxw.png" mode=""></image>
<text class="butext">查小微</text>
</view>
<view class="but" @click="gotz('wxbebb3cdd9b331046','')">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/czl.png" mode=""></image>
<text class="butext">查专利</text>
</view>
<view class="but" @click="gotz('wxbbb4319bf073a6ff','')">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/cbz.png" mode=""></image>
<text class="butext">查标准</text>
</view>
<view class="but" @click="kfz">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/bnb.png" mode=""></image>
<text class="butext">办年报</text>
</view>
</view>
<!-- <image class="zuanti" :src="url + '/' + ztdata.home_img" mode="scaleToFill" @click="goZT(ztdata.id)"> --> <!-- <image class="zuanti" :src="url + '/' + ztdata.home_img" mode="scaleToFill" @click="goZT(ztdata.id)"> -->
<!-- </image> --> <!-- </image> -->
<u-swiper :list="ztdata" @change="change1" height="218rpx" key-name="home_img" circular :autoplay="false" <u-swiper :list="ztdata" @change="change1" height="218rpx" key-name="home_img" circular :autoplay="false"
radius="40rpx" @click="goZT"> radius="24rpx" @click="goZT">
<!-- <template #indicator> <template #indicator>
<view class="indicator"> <view class="indicator">
<view class="indicator__dot" v-for="(item, ind) in ztdata" :key="ind" <view class="indicator__dot" v-for="(item, ind) in ztdata" :key="ind"
:class="ind === current1 ? 'indicator__dotactive' : ''"></view> :class="ind === current1 ? 'indicator__dotactive' : ''"></view>
</view> </view>
</template> --> </template>
</u-swiper> </u-swiper>
<view class="indicator"> <!-- <view class="indicator">
<view class="indicator__dot" v-for="(item, ind) in ztdata" :key="ind" <view class="indicator__dot" v-for="(item, ind) in ztdata" :key="ind"
:class="ind === current1 ? 'indicator__dotactive' : ''"></view> :class="ind === current1 ? 'indicator__dotactive' : ''"></view>
</view> </view> -->
<view class="titlebox" style="margin-top: 40rpx;"> <view class="titlebox" style="margin-top: 40rpx;">
<view class="left"> <view class="left">
<image style="width: 28rpx; height: 28rpx" src="@/static/img/yaohuodong.png" mode=""></image> <image style="width: 28rpx; height: 28rpx" src="@/static/img/yaohuodong.png" mode=""></image>
@ -74,25 +92,6 @@
</view> </view>
</view> </view>
<view class="buttonCard">
<view class="but" @click="gotz('wx2eec5fb00157a603','')">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/cxw.png" mode=""></image>
<text class="butext">查小微</text>
</view>
<view class="but" @click="gotz('wxbebb3cdd9b331046','')">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/czl.png" mode=""></image>
<text class="butext">查专利</text>
</view>
<view class="but" @click="gotz('wxbbb4319bf073a6ff','')">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/cbz.png" mode=""></image>
<text class="butext">查标准</text>
</view>
<view class="but" @click="kfz">
<image style="width: 96rpx;height: 96rpx;" src="@/static/img/bnb.png" mode=""></image>
<text class="butext">办年报</text>
</view>
</view>
<view class="tjback"> <view class="tjback">
<view class="titlebox"> <view class="titlebox">
<view class="left"> <view class="left">
@ -477,18 +476,18 @@
height: 16rpx; height: 16rpx;
width: 16rpx; width: 16rpx;
border-radius: 200rpx; border-radius: 200rpx;
background-color: rgba(0, 127, 255, 0.4); background-color: #B2C6E5;
margin: 0 10rpx; margin: 0 10rpx;
transition: background-color 0.3s; transition: background-color 0.3s;
} }
.indicator__dotactive { .indicator__dotactive {
background-color: #007FFF; background-color: #8A9AB2;
} }
} }
.box { .box {
margin-top: -140rpx; margin-top: -40rpx;
position: relative; position: relative;
border-radius: 85rpx 85rpx 0 0; border-radius: 85rpx 85rpx 0 0;
background-color: #f1f3f9; background-color: #f1f3f9;
@ -655,6 +654,7 @@
} }
.buttonCard { .buttonCard {
margin-bottom: 30rpx;
margin-top: 40rpx; margin-top: 40rpx;
width: 100%; width: 100%;
height: 192rpx; height: 192rpx;

56
src/pages/index/shoppage/mtbmakeMessage.vue

@ -3,7 +3,7 @@
<view class="container"> <view class="container">
<view class="formlist"> <view class="formlist">
<u-form :model="form" ref="uFormRef" label-position="top" :rules="rules"> <u-form :model="form" ref="uFormRef" label-position="top" :rules="rules">
<u-form-item label="头像" prop="head_pic"> <u-form-item label="头像" prop="head_pic" required>
<u-upload class="uploadbox" @afterRead="txafterRead" :max-count="1" :image-mode="'heightFix'" :width="auto" :height="144"> <u-upload class="uploadbox" @afterRead="txafterRead" :max-count="1" :image-mode="'heightFix'" :width="auto" :height="144">
<view class="yyzz" v-if="form.head_pic === ''"> <view class="yyzz" v-if="form.head_pic === ''">
<image style="width: 40rpx; height: 40rpx" src="@/static/img/yyzz.png" mode=""></image> <image style="width: 40rpx; height: 40rpx" src="@/static/img/yyzz.png" mode=""></image>
@ -17,10 +17,10 @@
></image> ></image>
</u-upload> </u-upload>
</u-form-item> </u-form-item>
<u-form-item label="姓名" prop="name"> <u-form-item label="媒体/姓名" prop="name" required>
<u-input v-model="form.name" placeholder="请输入真实姓名" placeholder-style="color: #D3D3D3;" /> <u-input v-model="form.name" placeholder="请输入媒体/姓名" placeholder-style="color: #D3D3D3;" />
</u-form-item> </u-form-item>
<u-form-item label="标签" prop="type"> <u-form-item label="标签" prop="type" required>
<u-input <u-input
v-model="form.type" v-model="form.type"
placeholder="请选择" placeholder="请选择"
@ -30,7 +30,7 @@
/> />
<u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="show = false" key-name="name"></u-picker> <u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="show = false" key-name="name"></u-picker>
</u-form-item> </u-form-item>
<u-form-item label="联系方式" prop="tel"> <u-form-item label="联系方式" prop="tel" required>
<u-input v-model="form.tel" placeholder="请输入联系方式" placeholder-style="color: #D3D3D3;" /> <u-input v-model="form.tel" placeholder="请输入联系方式" placeholder-style="color: #D3D3D3;" />
</u-form-item> </u-form-item>
<u-form-item label="微信二维码" prop="code_pic"> <u-form-item label="微信二维码" prop="code_pic">
@ -50,7 +50,7 @@
<u-form-item label="邮箱" prop="email"> <u-form-item label="邮箱" prop="email">
<u-input v-model="form.email" placeholder="请输入邮箱地址" placeholder-style="color: #D3D3D3;" /> <u-input v-model="form.email" placeholder="请输入邮箱地址" placeholder-style="color: #D3D3D3;" />
</u-form-item> </u-form-item>
<u-form-item label="宣传封面" prop="publicize_pic"> <u-form-item label="宣传封面" prop="publicize_pic" required>
<u-upload class="uploadbox" @afterRead="afterRead" :max-count="1" :image-mode="'heightFix'" :width="auto" :height="144"> <u-upload class="uploadbox" @afterRead="afterRead" :max-count="1" :image-mode="'heightFix'" :width="auto" :height="144">
<view class="yyzz" v-if="form.publicize_pic === ''"> <view class="yyzz" v-if="form.publicize_pic === ''">
<image style="width: 40rpx; height: 40rpx" src="@/static/img/yyzz.png" mode=""></image> <image style="width: 40rpx; height: 40rpx" src="@/static/img/yyzz.png" mode=""></image>
@ -125,7 +125,7 @@ const rules = {
name: [ name: [
{ {
required: true, required: true,
message: '请输入姓名', message: '请输入媒体/姓名',
trigger: ['blur', 'change'] trigger: ['blur', 'change']
} }
], ],
@ -143,13 +143,13 @@ const rules = {
trigger: ['blur', 'change'] trigger: ['blur', 'change']
} }
], ],
email: [ // email: [
{ // {
required: true, // required: true,
message: '请输入邮箱地址', // message: '',
trigger: ['blur', 'change'] // trigger: ['blur', 'change']
} // }
], // ],
publicize_pic: [ publicize_pic: [
{ {
required: true, required: true,
@ -157,13 +157,13 @@ const rules = {
trigger: ['blur', 'change'] trigger: ['blur', 'change']
} }
], ],
code_pic: [ // code_pic: [
{ // {
required: true, // required: true,
message: '请上传微信二维码', // message: '',
trigger: ['blur', 'change'] // trigger: ['blur', 'change']
} // }
], // ],
head_pic: [ head_pic: [
{ {
required: true, required: true,
@ -171,13 +171,13 @@ const rules = {
trigger: ['blur', 'change'] trigger: ['blur', 'change']
} }
], ],
content: [ // content: [
{ // {
required: true, // required: true,
message: '请输入真实案例', // message: '',
trigger: ['blur', 'change'] // trigger: ['blur', 'change']
} // }
] // ]
} }
const afterRead = async (e) => { const afterRead = async (e) => {

2
src/pages/index/shoppage/qyhelpDetail.vue

@ -1,5 +1,5 @@
<template> <template>
<u-navbar :title="'开店帮'" placeholder="true" bg-color="#F1F3F9" :auto-back="true" /> <u-navbar :title="'企业帮'" placeholder="true" bg-color="#F1F3F9" :auto-back="true" />
<view class="container"> <view class="container">
<text class="title">{{ xdbData.title }}</text> <text class="title">{{ xdbData.title }}</text>
<text class="fbr">发布人{{ xdbData.publisher }}</text> <text class="fbr">发布人{{ xdbData.publisher }}</text>

49
src/pages/index/specialSubject.vue

@ -1,5 +1,5 @@
<template> <template>
<u-navbar :title="'“' + titleData.title + '”' + '专题'" placeholder="true" bg-color="#F1F3F9" :auto-back="true"></u-navbar> <u-navbar :title="titleData.title" placeholder="true" bg-color="#F1F3F9" :auto-back="true"></u-navbar>
<view class="container"> <view class="container">
<!-- <view class="headpart"> <!-- <view class="headpart">
<view class="lefttxt"> <view class="lefttxt">
@ -12,7 +12,7 @@
<image style="width: 298rpx;height: 160rpx;" src="@/static/img/zticon.png" mode=""></image> <image style="width: 298rpx;height: 160rpx;" src="@/static/img/zticon.png" mode=""></image>
</view> --> </view> -->
<image class="headpart" :src="url + '/' + titleData.top_img" mode=""></image> <image class="headpart" :src="url + '/' + titleData.top_img" mode=""></image>
<view class="main" v-if="ztList.length !== 0"> <scroll-view scroll-y class="main" @scrolltolower="scrolltolower" v-if="ztList.length !== 0">
<u-box height="400rpx" gap="24rpx"> <u-box height="400rpx" gap="24rpx">
<template #left> <template #left>
<view class="leftmk" @click="godetail(ztList[0]?.id)"> <view class="leftmk" @click="godetail(ztList[0]?.id)">
@ -75,7 +75,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </scroll-view>
</view> </view>
</template> </template>
@ -95,25 +95,41 @@ const godetail = (id) => {
url: '/pages/index/ztdetail?id=' + id + '&type=' + 'zt' url: '/pages/index/ztdetail?id=' + id + '&type=' + 'zt'
}) })
} }
const ztid = ref('')
const page = ref(1)
const limit = ref(7)
const getspecialList = async() =>{
let params = {
special_id: ztid.value,
page: page.value,
limit: limit.value
}
const res1 = await specialList(params)
if (res1.code === 1) {
ztList.value = [...ztList.value,...res1.data.data]
}
}
const scrolltolower = () => {
page.value+=1
getspecialList()
}
onLoad(async (param) => { onLoad(async (param) => {
ztid.value = param.id
const res = await specialInfo(param.id) const res = await specialInfo(param.id)
if (res.code === 1) { if (res.code === 1) {
titleData.value = res.data titleData.value = res.data
} }
let params = { ztList.value = []
special_id: param.id, page.value = 1
page: 1, limit.value = 7
limit: 15 getspecialList()
}
const res1 = await specialList(params)
if (res1.code === 1) {
ztList.value = res1.data.data
console.log(ztList.value)
}
}) })
const leftClick = () => { const leftClick = () => {
uni.navigateBack() uni.navigateBack()
} }
</script> </script>
@ -181,7 +197,7 @@ const leftClick = () => {
border-radius: 40rpx 40rpx 0rpx 0rpx; border-radius: 40rpx 40rpx 0rpx 0rpx;
background: #ffffff; background: #ffffff;
width: 100%; width: 100%;
height: 69vh; max-height: 69vh;
padding: 40rpx 24rpx 0 24rpx; padding: 40rpx 24rpx 0 24rpx;
box-sizing: border-box; box-sizing: border-box;
position: absolute; position: absolute;
@ -460,9 +476,6 @@ const leftClick = () => {
} }
.ztlist { .ztlist {
max-height: 40vh;
overflow-y: auto;
.ztone { .ztone {
display: flex; display: flex;
align-items: center; align-items: center;

18
src/pages/index/subform.vue

@ -6,7 +6,7 @@
<u-input v-model="item.answer" v-if="item.type === 'input'" /> <u-input v-model="item.answer" v-if="item.type === 'input'" />
<u-textarea v-model="item.answer" v-if="item.type === 'textarea'" placeholder="请输入内容" <u-textarea v-model="item.answer" v-if="item.type === 'textarea'" placeholder="请输入内容"
autoHeight></u-textarea> autoHeight></u-textarea>
<u-input v-model="item.answer" @focus="showpicker = true" v-if="item.type === 'radio'" /> <u-input v-model="item.answer" readonly="true" @tap="showpicker = true" v-if="item.type === 'radio'" />
<u-picker v-if="item.type === 'radio'" :show="showpicker" v-model="item.answer" :columns="[arrtoarr(item.choose)]" @cancel="showpicker = false" @confirm="showpicker = false"></u-picker> <u-picker v-if="item.type === 'radio'" :show="showpicker" v-model="item.answer" :columns="[arrtoarr(item.choose)]" @cancel="showpicker = false" @confirm="showpicker = false"></u-picker>
<!-- <u-radio-group v-model="item.answer" v-if="item.type === 'radio'" placement="column" <!-- <u-radio-group v-model="item.answer" v-if="item.type === 'radio'" placement="column"
@change="groupChange"> @change="groupChange">
@ -92,12 +92,13 @@
} }
}) })
if(istrue) { if(istrue) {
let param = {
special_list_id: ztid.value,
form_id: titleData.value.form_id,
answer: processCheckboxAnswers(titleData.value.question)
}
if(type.value === 'zt') { if(type.value === 'zt') {
let param = {
special_list_id: ztid.value,
form_id: titleData.value.form_id,
answer: processCheckboxAnswers(titleData.value.question)
}
specialSign(param).then((res)=> { specialSign(param).then((res)=> {
if(res.code === 1) { if(res.code === 1) {
uni.showToast({ uni.showToast({
@ -114,6 +115,11 @@
} }
}) })
} else { } else {
let param = {
activity_id: ztid.value,
form_id: titleData.value.form_id,
answer: processCheckboxAnswers(titleData.value.question)
}
activitySign(param).then((res)=> { activitySign(param).then((res)=> {
if(res.code === 1) { if(res.code === 1) {
uni.showToast({ uni.showToast({

3
src/pages/index/ztdetail.vue

@ -9,6 +9,7 @@
</view> </view>
<!-- <image style="width: 100%;height: 436rpx;margin-top: 48rpx;" src="@/static/img/Bitmap.png" mode=""></image> --> <!-- <image style="width: 100%;height: 436rpx;margin-top: 48rpx;" src="@/static/img/Bitmap.png" mode=""></image> -->
<uvparse :content="titleData.content"></uvparse> <uvparse :content="titleData.content"></uvparse>
<!-- <rich-text class="richt" :nodes="titleData.content"></rich-text> -->
<view class="fbtime">{{ titleData.create_time }}</view> <view class="fbtime">{{ titleData.create_time }}</view>
</view> </view>
<view class="baombut" v-if="titleData.form"> <view class="baombut" v-if="titleData.form">
@ -52,7 +53,7 @@ import uvparse from '@/uni_modules/uv-parse/components/uv-parse/uv-parse.vue'
titleData.value = res.data titleData.value = res.data
} }
} }
titleData.value.content = titleData.value.content.replace(/<img/g, titleData.value.content.replace(/<img/g,
'<img style="width: 100%; max-width: 100%; height: auto;"') '<img style="width: 100%; max-width: 100%; height: auto;"')
}) })
</script> </script>

5
src/pages/mine/associatedEnterprise.vue

@ -4,7 +4,10 @@
<text class="title">{{ item.title }}</text> <text class="title">{{ item.title }}</text>
<!-- <text class="text">关联时间{{item.time}}</text> --> <!-- <text class="text">关联时间{{item.time}}</text> -->
</view> </view>
</view> <view v-if="classList.length === 0" style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;">
<image style="width: 70%;" src="@/static/img/nodata.png" alt="" mode="widthFix" />
</view>
</view>
</template> </template>
<script setup> <script setup>

3
src/pages/mine/myCourses.vue

@ -8,6 +8,9 @@
<text class="time">{{ item.update_time.slice(0, 10) }}</text> <text class="time">{{ item.update_time.slice(0, 10) }}</text>
</view> </view>
</view> </view>
<view v-if="classList.length === 0" style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;">
<image style="width: 70%;" src="@/static/img/nodata.png" alt="" mode="widthFix" />
</view>
</view> </view>
</template> </template>

BIN
src/static/img/close.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

BIN
src/static/img/nodata.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Loading…
Cancel
Save