You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
5.9 KiB

  1. <view class="box">
  2. <input class="searchs" value="{{title}}" placeholder="新建优惠券请输入优惠券名称" bindinput="getTitle" disabled="{{!noUpdata}}"></input>
  3. <view class="couponImgBox">
  4. <view>主图:</view>
  5. <view class="imgBox" wx:if="{{tempFilePaths.length >= 1}}" wx:for="{{ tempFilePaths }}" wx:key="index">
  6. <image class="couponImg" src="{{item}}" mode="widthFix"></image>
  7. <view class="delBox" bindtap="pictureDel" data-index="{{index}}" wx:if="{{tempFilePaths.length >= 1 && noUpdata}}">
  8. <image class="del" src="https://formall.oss-accelerate.aliyuncs.com/bimg/pictureDel.png" mode="widthFix"></image>
  9. </view>
  10. </view>
  11. <block wx:if="{{noUpdata}}">
  12. <!-- <view class="uploadTitle">上传主图</view> -->
  13. <view class="nullImg" bindtap="addPicture">
  14. +
  15. </view>
  16. </block>
  17. </view>
  18. <view class="couponImgBox">
  19. <view>附图:</view>
  20. <view class="imgBox" wx:if="{{BtempFilePaths.length >= 1}}" wx:for="{{ BtempFilePaths }}" wx:key="index">
  21. <image class="couponImg" src="{{item}}" mode="widthFix"></image>
  22. <view class="delBox" bindtap="BpictureDel" data-index="{{index}}" wx:if="{{BtempFilePaths.length >= 1 && noUpdata}}">
  23. <image class="del" src="https://formall.oss-accelerate.aliyuncs.com/bimg/pictureDel.png" mode="widthFix"></image>
  24. </view>
  25. </view>
  26. <block wx:if="{{noUpdata}}">
  27. <!-- <view class="uploadTitle">上传附图</view> -->
  28. <view class="nullImg" bindtap="BaddPicture">
  29. +
  30. </view>
  31. </block>
  32. </view>
  33. <view class="couponType">
  34. <view class="type">券类型</view>
  35. <!-- <picker class="typeName" bindchange="bindPickerChange" value="{{typeIndex}}" range="{{typeArray}}">
  36. <view class="picker">
  37. {{typeArray[typeIndex]}}
  38. </view>
  39. </picker> -->
  40. <view class="typeName">通用券</view>
  41. </view>
  42. <view class="couponType">
  43. <view class="faceValue">面值</view>
  44. <input class="faceIpt" placeholder="50.00 >" type="digit" bindinput="getfaceValue" value="{{faceValue}}" disabled="{{!noUpdata}}"></input>
  45. <view class="bef">¥</view>
  46. </view>
  47. <view class="couponType ">
  48. <view class="faceValue">售价</view>
  49. <input class="selling" placeholder="50.00 >" type="digit" bindinput="getselling" value="{{selling}}" disabled="{{!noUpdata}}"></input>
  50. <view class="sellingbef">¥</view>
  51. </view>
  52. <view class="couponType ">
  53. <view class="faceValue ">库存数量</view>
  54. <input class="bank" placeholder="50 >" type="number" bindinput="getbank" value="{{bank}}" disabled="{{!noUpdata}}"></input>
  55. </view>
  56. <view class="couponType ">
  57. <view class="faceValue ">每人限领 </view>
  58. <input class="bank" placeholder="50 >" type="number" bindinput="geteveryday" value="{{everyday}}" disabled="{{!noUpdata}}"></input>
  59. </view>
  60. <view style="overflow: hidden;">
  61. <view class="faceValue">限领规则</view>
  62. <picker class="typeName" bindchange="setUseLimitRule" value="{{useLimitRule}}" range="{{useLimitRuleLsit}}" disabled="{{!noUpdata}}">
  63. <view class="picker" disabled="{{!noUpdata}}">
  64. {{useLimitRuleLsit[useLimitRule]}}
  65. </view>
  66. </picker>
  67. </view>
  68. <view class="couponType">
  69. <view style="overflow: hidden;">
  70. <view class="faceValue">有效期</view>
  71. <picker class="typeName" bindchange="timeChange" value="{{timeIndex}}" range="{{timeArray}}" disabled="{{!noUpdata}}">
  72. <view class="picker" disabled="{{!noUpdata}}">
  73. {{timeArray[timeIndex]}}
  74. </view>
  75. </picker>
  76. </view>
  77. <view class="daysBox" wx:if="{{timeIndex!=0}}">
  78. <view class="daysText">日内有效</view>
  79. <input class="daysName" placeholder="xx" value="{{numDays}}" bindinput="getNumDays" disabled="{{!noUpdata}}"></input>
  80. </view>
  81. <view class="beginTime" wx:if="{{timeIndex==0}}">
  82. <view class="section__title">起始日期</view>
  83. <picker mode="date" value="{{beginTime}}" bindchange="setDeginTime" disabled="{{!noUpdata}}">
  84. <view class="pickerotiem">
  85. {{beginTime+'>'}}
  86. </view>
  87. </picker>
  88. </view>
  89. <view class="endTime" wx:if="{{timeIndex==0}}">
  90. <view class="section__title">结束日期</view>
  91. <picker mode="date" value="{{endTime}}" bindchange="setEndTime" disabled="{{!noUpdata}}">
  92. <view class="pickerotiem">
  93. {{endTime+'>'}}
  94. </view>
  95. </picker>
  96. </view>
  97. </view>
  98. <view class="couponType">
  99. <view class="refundText">到期是否退款</view>
  100. <picker class="typeName" bindchange="refundChange" value="{{refundIndex}}" range="{{refundText}}" disabled="{{!noUpdata}}">
  101. <view class="picker">
  102. {{refundText[refundIndex]}}
  103. </view>
  104. </picker>
  105. </view>
  106. <view class="Purchase">
  107. <textarea class="PurchaseText" type="text" placeholder="请输购买须知" maxlength="-1" bindinput="getexplain" value="{{explain}}" disabled="{{!noUpdata}}"></textarea>
  108. </view>
  109. <view class="examineState" style="{{examineColor_back}}" wx:if="{{putApplyStatus!=0&&status!=1}}">{{putApplyText}}</view>
  110. <view class="butBox">
  111. <button class="save" bindtap="putaway" wx:if="{{putApplyStatus==2&&status!=1&&channel!=1}}">上架</button>
  112. <button class="save" bindtap="soldOut" wx:if="{{channel==1}}">下架</button>
  113. <button class="save" bindtap="save" wx:if="{{(putApplyStatus==0||putApplyStatus==3)&&channel!=1&&status!=1}}">保存</button>
  114. <button class="save" bindtap="examine" wx:if="{{(putApplyStatus==0||putApplyStatus==3)&&channel!=1&&status!=1}}">提交审核</button>
  115. <button class="save" bindtap="cancellation" wx:if="{{(putApplyStatus==0||putApplyStatus==2||putApplyStatus==3)&&status!=1}}">作废</button>
  116. <button class="save" bindtap="goBack" wx:if="{{putApplyStatus==2||putApplyStatus==1||channel==1||status==1}}">取消</button>
  117. <button class="save" bindtap="lookExamine" wx:if="{{putApplyStatus!=0&&status!=1}}">审批历史</button>
  118. </view>
  119. </view>