修改援助样式,新增人员所在单位

This commit is contained in:
qiaomu 2024-11-29 17:27:18 +08:00
parent 3ad21ea708
commit a164ec227b
3 changed files with 16 additions and 5 deletions

View File

@ -3,6 +3,8 @@ import { alertInfo } from "../../utils/index";
import request from '../../utils/request' import request from '../../utils/request'
const { OK } = request; const { OK } = request;
const result = wx.getAccountInfoSync();
const { envVersion } = result.miniProgram;
// pages/home/components/home-swiper/index.js // pages/home/components/home-swiper/index.js
Component({ Component({
@ -28,8 +30,8 @@ Component({
data: { data: {
indicatorDots: true, indicatorDots: true,
vertical: false, vertical: false,
autoplay: false, autoplay: true,
interval: 2000, interval: 6000,
duration: 500, duration: 500,
list: [], list: [],
}, },
@ -53,7 +55,7 @@ Component({
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: data.appid, appId: data.appid,
path: data.wxPath, path: data.wxPath,
envVersion: "trial" envVersion: envVersion
}) })
break; break;
case 2: case 2:

View File

@ -1,9 +1,10 @@
<!--pages/home/components/home-swiper/index.wxml--> <!--pages/home/components/home-swiper/index.wxml-->
<swiper <swiper
indicator-dots="{{indicatorDots}}" indicator-dots="{{list.length > 1}}"
autoplay="{{autoplay}}" autoplay="{{autoplay}}"
interval="{{interval}}" interval="{{interval}}"
duration="{{duration}}" duration="{{duration}}"
circular="{{true}}"
wx:if="{{list.length}}" wx:if="{{list.length}}"
style="height: 288rpx" style="height: 288rpx"
> >

View File

@ -18,6 +18,14 @@
type="textarea" type="textarea"
border="{{ false }}" border="{{ false }}"
/> />
<van-field
value="{{detail.company}}"
label="所在单位"
readonly
autosize="{{true}}"
type="textarea"
border="{{ false }}"
/>
<van-field <van-field
value="{{detail.synopsis}}" value="{{detail.synopsis}}"
label="简介" label="简介"
@ -40,6 +48,6 @@
<mp-html content="{{detail.detail}}" /> <mp-html content="{{detail.detail}}" />
</view> </view>
</van-cell-group> </van-cell-group>
<view style="margin-top: 40rpx;margin-left: 30rpx;margin-bottom: 30rpx;"> <view style="margin-top: 40rpx;margin-left: 30rpx;margin-bottom: 30rpx;margin-right: 30rpx;">
<van-button type="info" block class="save" bind:click="connect">去联系</van-button> <van-button type="info" block class="save" bind:click="connect">去联系</van-button>
</view> </view>