Compare commits

..

2 Commits

  1. 7
      pages/info/info.vue
  2. 5
      pages/person/person.vue
  3. BIN
      static/image/info.png
  4. BIN
      static/image/person26.png
  5. BIN
      static/image/person27.png
  6. 20
      team/article/article.vue

@ -1,10 +1,10 @@
<template> <template>
<view> <view>
<view class="search-wrap"> <view class="search-wrap">
<image class="bg" src="@/static/image/info-bg.jpg"></image> <image class="bg" src="@/static/image/info.png"></image>
<view class="info"> <view class="info">
<view class="text">行业资讯与活动</view> <!-- <view class="text">行业资讯与活动</view>
<view class="text">速览</view> <view class="text">速览</view> -->
<uni-search-bar class="search" radius="30" placeholder="请输入文章名称,标签" v-model="keyword" clearButton="auto" cancelButton="none" bgColor="#fff" /> <uni-search-bar class="search" radius="30" placeholder="请输入文章名称,标签" v-model="keyword" clearButton="auto" cancelButton="none" bgColor="#fff" />
</view> </view>
</view> </view>
@ -191,6 +191,7 @@
} }
.info { .info {
position: relative; position: relative;
margin-top: 160rpx;
} }
.text { .text {
margin: 0 10px 10rpx; margin: 0 10px 10rpx;

@ -41,14 +41,15 @@
</view> --> </view> -->
<view v-if="auth('我的:市场服务费')" class="item"> <view v-if="auth('我的:市场服务费')" class="item">
<view class="left"> <view class="left">
<image class="icon" src="@/static/image/person6.png" mode=""></image> <image class="icon" src="@/static/image/person26.png" mode=""></image>
<text class="name">市场服务费</text> <text class="name">市场服务费</text>
</view> </view>
<text class="val">{{ my.teamInfo.annualMarketingFee ? '项目抽成' + my.teamInfo.annualMarketingFee + '%' :'-' }}</text> <text class="val">{{ my.teamInfo.annualMarketingFee ? '项目抽成' + my.teamInfo.annualMarketingFee + '%' :'-' }}</text>
</view> </view>
<view v-if="auth('我的:团队年费')" class="item"> <view v-if="auth('我的:团队年费')" class="item">
<view class="left"> <view class="left">
<image class="icon" src="@/static/image/person7.png" mode=""></image> <image class="icon" src="@/static/image/person27.png" mode=""></image>
<text class="name">团队年费</text> <text class="name">团队年费</text>
</view> </view>
<text class="val">{{ my.teamInfo.annualTeamFee ? '固定年费' + my.teamInfo.annualTeamFee + 'w' : '-' }}</text> <text class="val">{{ my.teamInfo.annualTeamFee ? '固定年费' + my.teamInfo.annualTeamFee + 'w' : '-' }}</text>

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

@ -65,9 +65,9 @@
const newStyle = 'width: 85% !important; height: auto;'; const newStyle = 'width: 85% !important; height: auto;';
const regex = /(<img[^>]*?\s+style=")([^"]*)("[^>]*?>)/g; const regex = /(<img[^>]*?\s+style=")([^"]*)("[^>]*?>)/g;
const newStr = str.replace(regex, `$1${newStyle}$3`); const newStr = str.replace(regex, `$1${newStyle}$3`);
// const brStr = str.replace(/\r\n/g,"<br />") const videoStr = this.replaceAllVideoTagStyles(str, "width: 95%; height: 450rpx;display: block;margin:0 auto")
const videoStr = this.replaceAllVideoTagStyles(newStr, "width: 95%; height: 450rpx;display: block;margin:0 auto") // const imgStr = videoStr.replace(regex, `$1${newStyle}$3`);
const imgStr = videoStr.replace(regex, `$1${newStyle}$3`); const imgStr = this.addImgStyle(videoStr)
message.mainBody = imgStr message.mainBody = imgStr
this.form = message this.form = message
uni.hideLoading() uni.hideLoading()
@ -103,6 +103,17 @@
} }
return newStr; return newStr;
}, },
addImgStyle(str) {
      return str.replace(/<(img).*?(\/>|<\/img>)/g, function (a) {
        if (a.indexOf('style') < 0) {
          // style
          return a.replace(/<\s*img/, '< img style="width:100%"');
        } else {
          // style
          return a.replace(/style=("|')/, 'style=$1width: 85% !important; height: auto;')
        }
      });
    },
// //
download(item) { download(item) {
this.$util.to(`../send/send?url=${item.filePath}&copyWriting=${item.fileName}`) this.$util.to(`../send/send?url=${item.filePath}&copyWriting=${item.fileName}`)
@ -188,6 +199,9 @@
img,image{ img,image{
width: 100% !important; width: 100% !important;
} }
/deep/ image,img {
margin: 0 auto;
}
} }
.files { .files {
margin-top: 20rpx; margin-top: 20rpx;

Loading…
Cancel
Save