<view class="box"> <input class="searchs" value="{{title}}" placeholder="新建优惠券请输入优惠券名称" bindinput="getTitle" disabled="{{!noUpdata}}"></input> <view class="couponImgBox"> <view>主图:</view> <view class="imgBox" wx:if="{{tempFilePaths.length >= 1}}" wx:for="{{ tempFilePaths }}" wx:key="index"> <image class="couponImg" src="{{item}}" mode="widthFix"></image> <view class="delBox" bindtap="pictureDel" data-index="{{index}}" wx:if="{{tempFilePaths.length >= 1 && noUpdata}}"> <image class="del" src="https://formall.oss-accelerate.aliyuncs.com/bimg/pictureDel.png" mode="widthFix"></image> </view> </view> <block wx:if="{{noUpdata}}"> <!-- <view class="uploadTitle">上传主图</view> --> <view class="nullImg" bindtap="addPicture"> + </view> </block> </view> <view class="couponImgBox"> <view>附图:</view> <view class="imgBox" wx:if="{{BtempFilePaths.length >= 1}}" wx:for="{{ BtempFilePaths }}" wx:key="index"> <image class="couponImg" src="{{item}}" mode="widthFix"></image> <view class="delBox" bindtap="BpictureDel" data-index="{{index}}" wx:if="{{BtempFilePaths.length >= 1 && noUpdata}}"> <image class="del" src="https://formall.oss-accelerate.aliyuncs.com/bimg/pictureDel.png" mode="widthFix"></image> </view> </view> <block wx:if="{{noUpdata}}"> <!-- <view class="uploadTitle">上传附图</view> --> <view class="nullImg" bindtap="BaddPicture"> + </view> </block> </view> <view class="couponType"> <view class="type">券类型</view> <!-- <picker class="typeName" bindchange="bindPickerChange" value="{{typeIndex}}" range="{{typeArray}}"> <view class="picker"> {{typeArray[typeIndex]}} </view> </picker> --> <view class="typeName">通用券</view> </view> <view class="couponType"> <view class="faceValue">面值</view> <input class="faceIpt" placeholder="50.00 >" type="digit" bindinput="getfaceValue" value="{{faceValue}}" disabled="{{!noUpdata}}"></input> <view class="bef">¥</view> </view> <view class="couponType "> <view class="faceValue">售价</view> <input class="selling" placeholder="50.00 >" type="digit" bindinput="getselling" value="{{selling}}" disabled="{{!noUpdata}}"></input> <view class="sellingbef">¥</view> </view> <view class="couponType "> <view class="faceValue ">库存数量</view> <input class="bank" placeholder="50 >" type="number" bindinput="getbank" value="{{bank}}" disabled="{{!noUpdata}}"></input> </view> <view class="couponType "> <view class="faceValue ">每人限领 </view> <input class="bank" placeholder="50 >" type="number" bindinput="geteveryday" value="{{everyday}}" disabled="{{!noUpdata}}"></input> </view> <view style="overflow: hidden;"> <view class="faceValue">限领规则</view> <picker class="typeName" bindchange="setUseLimitRule" value="{{useLimitRule}}" range="{{useLimitRuleLsit}}" disabled="{{!noUpdata}}"> <view class="picker" disabled="{{!noUpdata}}"> {{useLimitRuleLsit[useLimitRule]}} </view> </picker> </view> <view class="couponType"> <view style="overflow: hidden;"> <view class="faceValue">有效期</view> <picker class="typeName" bindchange="timeChange" value="{{timeIndex}}" range="{{timeArray}}" disabled="{{!noUpdata}}"> <view class="picker" disabled="{{!noUpdata}}"> {{timeArray[timeIndex]}} </view> </picker> </view> <view class="daysBox" wx:if="{{timeIndex!=0}}"> <view class="daysText">日内有效</view> <input class="daysName" placeholder="xx" value="{{numDays}}" bindinput="getNumDays" disabled="{{!noUpdata}}"></input> </view> <view class="beginTime" wx:if="{{timeIndex==0}}"> <view class="section__title">起始日期</view> <picker mode="date" value="{{beginTime}}" bindchange="setDeginTime" disabled="{{!noUpdata}}"> <view class="pickerotiem"> {{beginTime+'>'}} </view> </picker> </view> <view class="endTime" wx:if="{{timeIndex==0}}"> <view class="section__title">结束日期</view> <picker mode="date" value="{{endTime}}" bindchange="setEndTime" disabled="{{!noUpdata}}"> <view class="pickerotiem"> {{endTime+'>'}} </view> </picker> </view> </view> <view class="couponType"> <view class="refundText">到期是否退款</view> <picker class="typeName" bindchange="refundChange" value="{{refundIndex}}" range="{{refundText}}" disabled="{{!noUpdata}}"> <view class="picker"> {{refundText[refundIndex]}} </view> </picker> </view> <view class="Purchase"> <textarea class="PurchaseText" type="text" placeholder="请输购买须知" maxlength="-1" bindinput="getexplain" value="{{explain}}" disabled="{{!noUpdata}}"></textarea> </view> <view class="examineState" style="{{examineColor_back}}" wx:if="{{putApplyStatus!=0&&status!=1}}">{{putApplyText}}</view> <view class="butBox"> <button class="save" bindtap="putaway" wx:if="{{putApplyStatus==2&&status!=1&&channel!=1}}">上架</button> <button class="save" bindtap="soldOut" wx:if="{{channel==1}}">下架</button> <button class="save" bindtap="save" wx:if="{{(putApplyStatus==0||putApplyStatus==3)&&channel!=1&&status!=1}}">保存</button> <button class="save" bindtap="examine" wx:if="{{(putApplyStatus==0||putApplyStatus==3)&&channel!=1&&status!=1}}">提交审核</button> <button class="save" bindtap="cancellation" wx:if="{{(putApplyStatus==0||putApplyStatus==2||putApplyStatus==3)&&status!=1}}">作废</button> <button class="save" bindtap="goBack" wx:if="{{putApplyStatus==2||putApplyStatus==1||channel==1||status==1}}">取消</button> <button class="save" bindtap="lookExamine" wx:if="{{putApplyStatus!=0&&status!=1}}">审批历史</button> </view> </view>