Commit 46fa90e5 authored by wangxuelai's avatar wangxuelai

Merge remote-tracking branch 'origin/sj-dev-optimize' into wxl-youhua

parents fa578013 5f1dba70
...@@ -124,7 +124,6 @@ Component({ ...@@ -124,7 +124,6 @@ Component({
textBoxLength: this.countCaculate('text', this.data.content) textBoxLength: this.countCaculate('text', this.data.content)
}) })
}) })
console.log(this.data.content, 'this.data.content')
}, },
addImg () { // 添加图片的操作 addImg () { // 添加图片的操作
if (this.data.maxImgBoxLength == this.data.imgBoxLength) { // 当等于10条了不能继续添加 if (this.data.maxImgBoxLength == this.data.imgBoxLength) { // 当等于10条了不能继续添加
...@@ -172,7 +171,7 @@ Component({ ...@@ -172,7 +171,7 @@ Component({
title: `图片上传中`, title: `图片上传中`,
mask: true mask: true
}) })
const imageArrBox = this.data.imageArrBox; let imageArrBox = JSON.parse(JSON.stringify(this.data.imageArrBox));
let filename = `${access.dir}${getRandomFilename(imageArrBox[uploadingIndex])}`; let filename = `${access.dir}${getRandomFilename(imageArrBox[uploadingIndex])}`;
wxUploadFile({ wxUploadFile({
url: access.host, url: access.host,
...@@ -193,7 +192,7 @@ Component({ ...@@ -193,7 +192,7 @@ Component({
title: `上传成功` title: `上传成功`
}) })
let uploadingIndex = this.data.uploadingIndex + 1; let uploadingIndex = this.data.uploadingIndex + 1;
let content = this.data.content; let content = JSON.parse(JSON.stringify(this.data.content));
content.push({ content.push({
type: 'img', type: 'img',
value: filename value: filename
...@@ -312,7 +311,7 @@ Component({ ...@@ -312,7 +311,7 @@ Component({
wx.showToast({ wx.showToast({
title: '上传成功' title: '上传成功'
}) })
let content = this.data.content; let content = JSON.parse(JSON.stringify(this.data.content));
content.push({ content.push({
type: 'video', type: 'video',
value: filename value: filename
...@@ -349,7 +348,7 @@ Component({ ...@@ -349,7 +348,7 @@ Component({
const {currentTarget} = e; const {currentTarget} = e;
const index = currentTarget.dataset.index; const index = currentTarget.dataset.index;
const type = currentTarget.dataset.type; const type = currentTarget.dataset.type;
let content = this.data.content; let content = JSON.parse(JSON.stringify(this.data.content));
content.splice(index, 1); content.splice(index, 1);
// 删除录音的操作 // 删除录音的操作
if (type == 'voice') { if (type == 'voice') {
...@@ -387,7 +386,7 @@ Component({ ...@@ -387,7 +386,7 @@ Component({
}) })
}, },
pushVoice ({src, duration}) { pushVoice ({src, duration}) {
let content = this.data.content; let content = JSON.parse(JSON.stringify(this.data.content));
content.push({ content.push({
type: 'voice', type: 'voice',
value: src, value: src,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</view> </view>
<view class="down" > <view class="down" >
<image class="" src="{{localImageRoot}}common/cutdown/readCutd.gif" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view> </view>
</view> </view>
<view class="clock-cut" wx:if="{{isRead==2}}"> <view class="clock-cut" wx:if="{{isRead==2}}">
......
...@@ -1329,8 +1329,8 @@ Page({ ...@@ -1329,8 +1329,8 @@ Page({
showCancel: false showCancel: false
}) })
}, },
generateNewPoster(init) { // 生成日签 generateNewPoster(flag) { // 生成日签
if (this.data.themeSelect.my_clock_count<=0) { // 未打卡状态不让生成日签 if (flag !=1 && this.data.themeSelect.my_clock_count<=0) { // 未打卡状态不让生成日签
wx.showToast({ wx.showToast({
title: '请先打卡', title: '请先打卡',
icon: 'none' icon: 'none'
...@@ -2334,7 +2334,7 @@ Page({ ...@@ -2334,7 +2334,7 @@ Page({
}) })
if (this.data.pagefrom == 'clockeditor' && choose.my_clock_count>0) { if (this.data.pagefrom == 'clockeditor' && choose.my_clock_count>0) {
setTimeout(()=>{ setTimeout(()=>{
this.generateNewPoster(); this.generateNewPoster(1);
},1500) },1500)
} }
this.chooseSub(choose); this.chooseSub(choose);
......
<wxs src="./../../../filter/index.wxs" module="filter" /> <wxs src="./../../../filter/index.wxs" module="filter" />
<view class="container"> <view class="container">
<view class="theme-index-container clearfix"> <view class="theme-index-container clearfix">
<!-- <view class="ad-box" wx:if="{{adInfo.status == 1 && adShow}}"> <view class="theme-detail-box">
<image class="adimg" animation="{{attentionAnim}}" bindtap="toGetAd" <view class="theme-index-title">
src="{{imageRoot}}2c/circleindex/adimg.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix"
lazy-load="false" binderror="" bindload=""></image>
<image class="closeicon" bindtap="closeAd" src="{{imageRoot}}2c/common/closeicon.png?{{imageVersion}}"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
</view> -->
<view class="theme-detail-box" >
<view class="theme-index-title" >
<form report-submit="true" bindsubmit="formIdCreate" class="createidform"> <form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton"> <button form-type="submit" class="createidbutton">
</button> </button>
</form> </form>
<view class="big-title" > <view class="big-title">
{{themeSelect.title}} {{themeSelect.title}}
</view> </view>
<view class="big-time" >{{themeSelect.created_at}} <view class="big-time">{{themeSelect.created_at}}
</view> </view>
</view> </view>
<view class="" <view class=""
wx:if="{{(!noUser && auditStatus == 3) || themeSelect.is_encrypt == 0}}"> wx:if="{{(!noUser && auditStatus == 3) || themeSelect.is_encrypt == 0}}">
<view class="{{detailExpand ? 'sjd-media-show-box noheight' : 'sjd-media-show-box'}}" <view class="{{detailExpand ? 'sjd-media-show-box noheight' : 'sjd-media-show-box'}}"
wx:if="{{themeSelect.content.length > 0}}"> wx:if="{{themeSelect.content.length > 0}}">
...@@ -32,19 +25,19 @@ ...@@ -32,19 +25,19 @@
</sjd-media-show> </sjd-media-show>
</view> </view>
</view> </view>
<view class="small-gray-box" ></view> <view class="small-gray-box"></view>
</view> </view>
<view class="footer-box" > <view class="footer-box">
<view class="cutdown-box" > <view class="cutdown-box">
<view class="text" > <view class="text">
阅读倒计时 阅读倒计时
</view> </view>
<view class="" wx:if="{{!isExpire}}"> <view class="" wx:if="{{!isExpire}}">
<w-countdown time="{{ cutDownDate }}" bindcallback="countdownComplate" themeId="{{themeSelect.id}}" format="MM" isRead="{{1}}"/> <w-countdown time="{{ cutDownDate }}" bindcallback="countdownComplate" themeId="{{themeSelect.id}}" format="MM" isRead="{{1}}"/>
</view> </view>
<view class="" wx:if="{{isExpire}}">00:00</view> <view class="" wx:if="{{isExpire}}">00:00</view>
</view> </view>
<view class="btn-box" style="{{isExpire?'':'opacity:0.4'}}" bindtap="goClock"> <view class="btn-box" style="{{isExpire?'':'opacity:0.4'}}" bindtap="goClock">
去打卡 去打卡
<form report-submit="true" bindsubmit="formIdCreate" class="createidform"> <form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton"> <button form-type="submit" class="createidbutton">
...@@ -62,31 +55,24 @@ ...@@ -62,31 +55,24 @@
<view class='poste_box' id='canvas-container' wx:if="{{canvasShow}}"> <view class='poste_box' id='canvas-container' wx:if="{{canvasShow}}">
<canvas canvas-id="myCanvas" style="width:100%;height:1334rpx;" /> <canvas canvas-id="myCanvas" style="width:100%;height:1334rpx;" />
</view> </view>
<!-- <sjd-bullet
cid="{{id}}"
tid="{{tid}}"
>
</sjd-bullet> -->
<sjd-contact wx:if="{{concatDiaShow}}" address="{{circleInfo.clock_address}}" bind:closecontact="closecontact"> <sjd-contact wx:if="{{concatDiaShow}}" address="{{circleInfo.clock_address}}" bind:closecontact="closecontact">
</sjd-contact> </sjd-contact>
<!-- <prize-get wx-if="{{adGetShow}}" bind:closeAdModal="closeAdModal" adInfo="{{adInfo}}" circleid="{{id}}">
</prize-get> -->
<btn-drag bind:btnDragEvent='goindex' tobottomDis='88' width='60' height="60" catchtouchmove="ture"> <btn-drag bind:btnDragEvent='goindex' tobottomDis='88' width='60' height="60" catchtouchmove="ture">
<view class="gohome gohome-c" bindtap="goindex" slot="dragcontent"> <view class="gohome gohome-c" bindtap="goindex" slot="dragcontent">
<form report-submit="true" bindsubmit="formIdCreate" class="createidform"> <form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button> <button form-type="submit" class="createidbutton">生成form</button>
</form> </form>
<view class="home-text" >首页</view> <view class="home-text">首页</view>
</view> </view>
</btn-drag> </btn-drag>
</view> </view>
<go-top wx:if="{{backTopValue}}"></go-top> <go-top wx:if="{{backTopValue}}"></go-top>
<view class="" data-editor="commenteditor"> <view class="" data-editor="commenteditor">
<comment-editor wx:if="{{commenteditor}}" prams="{{commentclock}}" bind:hidecommenteditor="hidecommenteditor" <comment-editor wx:if="{{commenteditor}}" prams="{{commentclock}}" bind:hidecommenteditor="hidecommenteditor"
type="2c"></comment-editor> type="2c"></comment-editor>
</view> </view>
<view class="videodialog" wx:if="{{videostatus.videoShow}}"> <view class="videodialog" wx:if="{{videostatus.videoShow}}">
<view class="videodialogmask" bindtap="closeVideo"></view> <view class="videodialogmask" bindtap="closeVideo"></view>
<video class="" src="{{filter.transformOssVideofy(videostatus.src)}}" id="{{videostatus.videoId}}" <video class="" src="{{filter.transformOssVideofy(videostatus.src)}}" id="{{videostatus.videoId}}"
initial-time="0" autoplay="false" loop="false" direction="0" bindplay="" bindpause="" bindended="" initial-time="0" autoplay="false" loop="false" direction="0" bindplay="" bindpause="" bindended=""
bindtimeupdate="" bindwaiting="" binderror="" bindfullscreenchange="screenchange"> bindtimeupdate="" bindwaiting="" binderror="" bindfullscreenchange="screenchange">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment