eadit.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350
  1. <template>
  2. <view class="content">
  3. <view class="kk"></view>
  4. <view class="box" style="padding-bottom: 0;">
  5. <view class="title">基础信息</view>
  6. <view class="line">
  7. <view class="lineLeft">
  8. <span class="linexx">*</span> <span>活动名称</span>
  9. </view>
  10. <view class="lineRight">
  11. <input type="text" v-model="activityName" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
  12. </view>
  13. </view>
  14. <view class="line">
  15. <view class="lineLeft">
  16. <span class="linexx">*</span> <span>报名时间</span>
  17. </view>
  18. <view class="lineRight timelineRight">
  19. <picker mode="date" :value="startTime" @change="bindTimeChangeStart">
  20. <view class="dateViewno" v-if="!startTime">开始时间</view>
  21. <view class="dateView" v-else>{{startTime}}</view>
  22. </picker>
  23. <view class="timeHx">-</view>
  24. <picker mode="date" :value="endTime" @change="bindTimeChangeendTime" :start='startTime'>
  25. <view class="dateViewno" v-if="!endTime">结束时间</view>
  26. <view class="dateView" v-else>{{endTime}}</view>
  27. </picker>
  28. </view>
  29. </view>
  30. <view class="line" style="border: none;">
  31. <view class="lineLeft">
  32. <span class="linexx">*</span> <span>活动门店</span>
  33. </view>
  34. <view class="lineRight shopckBox">
  35. <view class="shopListNo" v-if="!shopNames">请选择活动门店,可多选</view>
  36. <view class="shopListY" v-if="shopNames">{{shopNames}}</view>
  37. <view class="addshop" @click="addShop">添加</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="kk"></view>
  42. <view class="box" style="padding-bottom: 5rpx;">
  43. <view class="title">活动发放券包</view>
  44. <view class="line linecoupon" @click="gocouponShow">
  45. <view class="lineLeft">
  46. <span>选择券包</span>
  47. </view>
  48. <view class="lineRight" style="display: flex;">
  49. {{couponPackageData?couponPackageData.name:'请选择'}}
  50. <image src="../../static/img/chahao.png" mode="" v-if="couponPackageData" class="delcoupon" @click.stop="delcoupon"></image>
  51. <image src="../../static/img/jt2.png" mode="widthFix" style="width: 16rpx;margin-top: 4rpx;margin-left: 10rpx;"></image>
  52. </view>
  53. </view>
  54. <view class="linecouponCont" v-for="item in packageDetailList">
  55. <view class="linecouponContLeft">
  56. <view class="couponType" v-if="item.discountType==1">满减券</view>
  57. <view class="couponType" v-if="item.discountType==2">商品券</view>
  58. <view class="couponType" v-if="item.discountType==3">服务券</view>
  59. <view class="couponName">{{item.actName}}</view>
  60. </view>
  61. <view class="couponNum">x{{item.actQty}}</view>
  62. </view>
  63. </view>
  64. <view class="kk"></view>
  65. <view class="box" style="padding-bottom: 0;">
  66. <view class="title">报名信息</view>
  67. <view class="line">
  68. <view class="lineLeft">
  69. <span class="linexx">*</span> <span>报名凭证</span>
  70. </view>
  71. <view class="lineRight clWhereBox">
  72. <view class="clWhereLine" :class="{clWhereActive:clWhereString.indexOf(1)!=-1}">手机号</view>
  73. <view class="clWhereLine" :class="{clWhereActive:clWhereString.indexOf(2)!=-1}" @click="clWhere(2)">车牌号</view>
  74. <view class="clWhereLine" :class="{clWhereActive:clWhereString.indexOf(3)!=-1}" @click="clWhere(3)">姓名</view>
  75. <view class="clWhereLine" :class="{clWhereActive:clWhereString.indexOf(4)!=-1}" @click="clWhere(4)">单位</view>
  76. </view>
  77. </view>
  78. <view class="line">
  79. <view class="lineLeft">
  80. <span class="linexx">*</span> <span>最多报名人数</span>
  81. </view>
  82. <view class="lineRight">
  83. <input :disabled="isExistGroup" type="number" v-model="number" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
  84. </view>
  85. </view>
  86. <view class="line" ><!-- style="border: none;" -->
  87. <view class="lineLeft">
  88. <span class="linexx">*</span> <span>支付方式</span>
  89. </view>
  90. <view class="lineRight payBox">
  91. <view class="payType" @click="payTypeCL(1)" >
  92. <img src="../../static/img/ckn.png" alt="" class="payTypeImg" v-if="payType!=1">
  93. <img src="../../static/img/cky.png" alt="" class="payTypeImg" v-if="payType==1">
  94. <view class="payTypeTxt">在线支付</view>
  95. </view>
  96. <view class="payType" @click="nopayCl" style="padding-left: 30rpx;">
  97. <img src="../../static/img/cky.png" alt="" class="payTypeImg" v-if="payType==2">
  98. <img src="../../static/img/ckn.png" alt="" class="payTypeImg" v-if="payType!=2">
  99. <view class="payTypeTxt">无需支付</view>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="line" v-if="payType==1">
  104. <view class="lineLeft">
  105. <span class="linexx">*</span> <span>支付金额</span>
  106. </view>
  107. <view class="lineRight">
  108. <input :disabled="isExistGroup" type="text" v-model="money" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
  109. </view>
  110. </view>
  111. <view v-if="payType==1">
  112. <view class="line line3">
  113. <view class="lineLeft">
  114. <span>拼团设置</span>
  115. </view>
  116. <view class="lineRight"><switch :disabled="isExistGroup" :checked='groupType' @change="switchgroupType" style="transform:scale(0.8)"/></view>
  117. </view>
  118. <view v-if="groupType">
  119. <view class="line" >
  120. <view class="lineLeft">
  121. <span class="linexx">*</span> <span>拼团人数</span>
  122. </view>
  123. <view class="lineRight">
  124. <input type="number" :disabled="isExistGroup" @blur="blurgroupNumber" v-model="groupNumber" placeholder="可输入大于1的整数" class="lineRightInput" placeholder-class="inputPlace">
  125. </view>
  126. </view>
  127. <view class="line" >
  128. <view class="lineLeft">
  129. <span class="linexx">*</span> <span>拼团有效期</span>
  130. </view>
  131. <view class="lineRight">
  132. <input type="digit" :disabled="isExistGroup" @blur="blurgroupTime" v-model="groupTime" placeholder="可输入0.5至72小时" class="linecInput" placeholder-class="inputPlace">
  133. </view>
  134. <view class="lineRight">小时</view>
  135. </view>
  136. <view class="line" >
  137. <view class="lineLeft">
  138. <span class="linexx">*</span> <span>拼团价</span>
  139. </view>
  140. <view class="lineRight">
  141. <input type="digit" :disabled="isExistGroup" @blur="blurgroupMoney" v-model="groupMoney" placeholder="需小于支付金额" class="linecInput" placeholder-class="inputPlace">
  142. </view>
  143. <view class="lineRight">元</view>
  144. </view>
  145. <view class="line line3">
  146. <view class="lineLeft2">
  147. <span class="linexx">*</span><span>拼团超时自动成团</span>
  148. <image @click="zyct" src="../../static/img/icon_help.png" mode="" class="helpIcon"></image>
  149. </view>
  150. <view class="lineRight"><switch :disabled="isExistGroup" :checked='groupOutState' @change="switchgroupOutState" style="transform:scale(0.8)"/></view>
  151. </view>
  152. <view class="line line3">
  153. <view class="lineLeft2">
  154. <span class="linexx">*</span><span>自由参团</span>
  155. <image @click="zdct" src="../../static/img/icon_help.png" mode="" class="helpIcon"></image>
  156. </view>
  157. <view class="lineRight"><switch :disabled="isExistGroup" :checked='groupRestrictions' @change="switchgroupRestrictions" style="transform:scale(0.8)"/></view>
  158. </view>
  159. </view>
  160. </view>
  161. <view class="line line3" v-if="payType==1">
  162. <view class="lineLeft">
  163. <span>支持退款</span>
  164. </view>
  165. <view class="lineRight"><switch :checked='supportRefunds' @change="switchsupportRefunds" style="transform:scale(0.8)"/></view>
  166. </view>
  167. </view>
  168. <view class="kk"></view>
  169. <view class="box">
  170. <view class="title fxTitle"> <span>分享有礼</span>
  171. <span class="fxTs">请务必保证微支付商户开通商家转账功能。</span>
  172. </view>
  173. <view class="line" ><!-- style="border: none;" -->
  174. <view class="lineLeft">
  175. <span>赠送节点</span>
  176. </view>
  177. <view class="lineRight " style="width: 520rpx;">
  178. <view class="payType" @click="giftTypeCL(0)" style="padding-bottom: 20rpx;">
  179. <img src="../../static/img/ckn.png" alt="" class="payTypeImg" v-if="giftType!=0">
  180. <img src="../../static/img/cky.png" alt="" class="payTypeImg" v-if="giftType==0">
  181. <view class="payTypeTxt">订单变为待服务状态(无需支付的,取报名完成;需要支付的取支付完成;拼团的取成团时间)</view>
  182. </view>
  183. <view class="payType" @click="giftTypeCL(1)" style="padding-top: 10rpx;">
  184. <img src="../../static/img/cky.png" alt="" class="payTypeImg" v-if="giftType==1">
  185. <img src="../../static/img/ckn.png" alt="" class="payTypeImg" v-if="giftType!=1">
  186. <view class="payTypeTxt">订单变为已完成状态(车主到店核销成功)</view>
  187. </view>
  188. </view>
  189. </view>
  190. <view class="line">
  191. <view class="lineLeft">
  192. <span class="linexx">*</span> <span>分享佣金</span>
  193. </view>
  194. <view class="lineRight">
  195. <view class="lineRightView">
  196. <view class="fxlineMs">分享者获得佣金金额</view>
  197. <input :disabled="isExistGroup" type="number" v-model="sharerMoney" placeholder="" class="lineRightInput" placeholder-class="inputPlace">
  198. </view>
  199. <view class="lineRightView">
  200. <view class="fxlineMs">购买者获得佣金金额</view>
  201. <input :disabled="isExistGroup" type="number" v-model="buyerMoney" placeholder="" class="lineRightInput" placeholder-class="inputPlace" >
  202. </view>
  203. </view>
  204. </view>
  205. <view class="line2">
  206. <view class="lineTitle">分享封面</view>
  207. <view class="lineMS">分享到好友、朋友圈时显示,建议尺寸300*300px。如不设置,则取活动图片。最多上传1张</view>
  208. <view class="lineImgBOx">
  209. <view class="lineimghz" v-if="coverimg">
  210. <img src="../../static/img/del.png" alt="" class="lineimgdel" @click="delimgfx(1)" >
  211. <img :src="coverimg" alt="" class="lineimg" @click="previewImage(coverimg)">
  212. </view>
  213. <view class="lineimghz" @click="upimgfx(1)">
  214. <img src="../../static/img/scimg.png" alt="" class="lineimg">
  215. </view>
  216. </view>
  217. </view>
  218. <view class="line">
  219. <view class="lineLeft">
  220. <span>分享文案</span>
  221. </view>
  222. <view class="lineRight">
  223. <input :disabled="isExistGroup" type="text" v-model="shareWords" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
  224. </view>
  225. </view>
  226. <view class="line2">
  227. <view class="lineTitle">分享海报</view>
  228. <view class="lineMS">车主端生成推广海报时显示。如不设置,则取活动图片。最多上传1张</view>
  229. <view class="lineImgBOx">
  230. <view class="lineimghz" v-if="photoimg">
  231. <img src="../../static/img/del.png" alt="" class="lineimgdel" @click="delimgfx(2)" >
  232. <img :src="photoimg" alt="" class="lineimg" @click="previewImage(photoimg)">
  233. </view>
  234. <view class="lineimghz" @click="upimgfx(2)">
  235. <img src="../../static/img/scimg.png" alt="" class="lineimg">
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <view class="kk"></view>
  241. <view class="box">
  242. <view class="title">活动详情</view>
  243. <view class="line">
  244. <view class="lineLeft">
  245. <span>活动说明</span>
  246. </view>
  247. <view class="lineRight">
  248. <textarea maxlength="-1" placeholder-class="inputPlace" v-model="activityContent" placeholder="请输入" class="textsr"/>
  249. </view>
  250. </view>
  251. <view class="line2">
  252. <view class="lineTitle">主图</view>
  253. <view class="lineMS">此图在活动顶部显示,建议宽度750px</view>
  254. <view class="lineImgBOx">
  255. <view class="lineimghz" v-if="img" >
  256. <img src="../../static/img/del.png" alt="" class="lineimgdel" @click="delimgzt" >
  257. <img :src="img" alt="" class="lineimg" @click="previewImage(img)">
  258. </view>
  259. <view class="lineimghz" @click="upimgzt" v-if="!img">
  260. <img src="../../static/img/scimg.png" alt="" class="lineimg">
  261. </view>
  262. </view>
  263. </view>
  264. <view class="line2">
  265. <view class="lineTitle">详情图片</view>
  266. <view class="lineMS">此图在活动底部显示,可用于显示门店照片等,建议宽度750px</view>
  267. <view class="lineImgBOx">
  268. <view class="lineimghz" v-for="(item,index) in imgListArr">
  269. <img src="../../static/img/del.png" alt="" class="lineimgdel" @click="delimg(index)" >
  270. <img :src="item" alt="" class="lineimg" @click="previewImage(item)">
  271. </view>
  272. <view class="lineimghz" @click="upimg">
  273. <img src="../../static/img/scimg.png" alt="" class="lineimg">
  274. </view>
  275. </view>
  276. </view>
  277. <view class="line lineBorderNo">
  278. <view class="lineLeft">
  279. <span>音乐</span>
  280. </view>
  281. <view class="lineRight musicRight" @click="goMusic">
  282. <view class="musicMS">选择/更换音乐</view>
  283. <img src="../../static/img/jt.png" alt="" class="musicJt">
  284. </view>
  285. </view>
  286. <view class="musicBox" v-if="ckMusic">
  287. <view class="musicLine">
  288. <view class="musicLineLeft">
  289. <img src="../../static/img/music.png" alt="" class="musicImg">
  290. <view class="musicName">{{ckMusic.name}}</view>
  291. </view>
  292. <view>
  293. <img src="../../static/img/sanchu.png" alt="" class="musicDel" @click="musicDel">
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. <view style="height: 120rpx;"></view>
  299. <view class="preview" @click="preview">预览</view>
  300. <w-compress ref='wCompress' />
  301. <view class="couponBox" v-if="couponShow">
  302. <view class="couponCont">
  303. <view class="couponTopBox">
  304. <view class="couponTop">
  305. <view class="couponTopTxrt">选择券包</view>
  306. <image src="../../static/img/chahao.png" mode="" class="couponClose" @click="couponClose"></image>
  307. </view>
  308. <view class="couponSearchBox">
  309. <image src="../../static/img/icon_search.png" mode="" class="searchImg"></image>
  310. <input v-model="couponname" type="text" placeholder="券包名称" class="topInput" @confirm="inputconfirm">
  311. </view>
  312. </view>
  313. <view class="couponLineBOx">
  314. <view class="couponLine" @click="ckcoupon(item)" v-for="(item,index) in couponPackageList">{{item.name}}</view>
  315. </view>
  316. </view>
  317. </view>
  318. </view>
  319. </template>
  320. <script>
  321. import WCompress from '@/components/w-compress/w-compress.vue'
  322. export default {
  323. components: {
  324. WCompress
  325. },
  326. data() {
  327. return {
  328. id:'', //类型:String 可有字段 备注:新增无编辑有
  329. activityName:'', //类型:String 必有字段 备注:活动名称
  330. startTime:"", //类型:String 必有字段 备注:营业开始时间
  331. endTime:"", //类型:String 必有字段 备注:营业结束时间
  332. number:"", //类型:String 必有字段 备注:报名人数
  333. activityContent:"", //类型:String 必有字段 备注:活动说明
  334. //clWhere:'', //类型:String 必有字段 备注:报名凭证1,2,3,4 1手机号2车牌号3姓名4单位
  335. payType:1, //类型:String 必有字段 备注:1在线支付2无需支付
  336. music:"", //类型:String 必有字段 备注:背景音乐
  337. clState:'', //类型:String 必有字段 备注:1未启用2启用
  338. img:'', //类型:String 必有字段 备注:从首页带进来的图片
  339. imgList:'',//类型:String 必有字段 备注:详情图片多个以逗号分割
  340. datetimerange: '',
  341. shopNames:'',
  342. shopList:'',
  343. clWhereList:[1,],
  344. clWhereString:'1',
  345. imgListArr:[],
  346. money:'',
  347. ckMusic:'',
  348. id:'',
  349. groupNumber:'',
  350. groupType:false,
  351. groupTime:'',
  352. groupMoney:'',
  353. groupOutState:false,
  354. groupRestrictions:false,
  355. isExistGroup:false,
  356. couponname:'',
  357. couponShow:false,
  358. couponPackageList:'',
  359. packageDetailList:'',
  360. couponPackageData:'',
  361. supportRefunds:true,
  362. giftType:0,
  363. sharerMoney:0,
  364. buyerMoney:0,
  365. shareWords:'',
  366. coverimg:'',
  367. photoimg:'',
  368. }
  369. },
  370. onLoad(opt) {
  371. this.img=opt.img;
  372. if(opt.id){
  373. this.id=opt.id;
  374. this.getDetails()
  375. }
  376. this.getcouponPackageList()
  377. },
  378. onShow() {
  379. const shopckList = uni.getStorageSync("shopckList");
  380. this.ckMusic=uni.getStorageSync("ckmusic")
  381. if(this.ckMusic){
  382. this.music=this.ckMusic.id
  383. }
  384. var shopNames=[];
  385. var shopList=[];
  386. if(shopckList){
  387. shopckList.forEach(item=>{
  388. shopNames.push(item.shopName)
  389. shopList.push(item.id)
  390. })
  391. this.shopNames=shopNames.join(',')
  392. this.shopList=shopList.join(',')
  393. }
  394. },
  395. methods: {
  396. delcoupon(){
  397. this.couponPackageData=''
  398. this.packageDetailList=[]
  399. },
  400. ckcoupon(item){
  401. this.couponPackageData=item
  402. this.couponShow=false
  403. this.$http('openH5SetTheGuest/couponPackageDetailList', {
  404. couponPackageId:item.id
  405. },'GET').then(res => {
  406. this.packageDetailList=res.data
  407. })
  408. },
  409. inputconfirm(){
  410. this.$http('openH5SetTheGuest/couponPackageList', {
  411. name:this.couponname
  412. },'GET').then(res => {
  413. this.couponPackageList=res.data
  414. })
  415. },
  416. getcouponPackageList(){
  417. this.$http('openH5SetTheGuest/couponPackageList', {
  418. },'GET').then(res => {
  419. this.couponPackageList=res.data
  420. })
  421. },
  422. couponClose(){
  423. this.couponShow=false
  424. },
  425. gocouponShow(){
  426. this.couponShow=true
  427. },
  428. nopayCl(){
  429. if(this.isExistGroup){
  430. return false
  431. }
  432. this.payType=2;
  433. this.groupType=false
  434. },
  435. payTypeCL(){
  436. if(this.isExistGroup){
  437. return false
  438. }
  439. this.payType=1;
  440. },
  441. giftTypeCL(num){
  442. if(this.isExistGroup){
  443. return false
  444. }
  445. this.giftType=num;
  446. },
  447. zdct(){
  448. uni.showModal({
  449. title: '自由参团',
  450. content: '如果开启自由参团,则用户可以在详情页直接参团;如果关闭,则用户只能通过好友分享的链接参与拼团',
  451. showCancel:false,
  452. confirmText:'我知道了',
  453. success: function (res) {
  454. }
  455. });
  456. },
  457. zyct(){
  458. uni.showModal({
  459. title: '拼团超时自动成团',
  460. content: '如果开启:过了拼团有效期或拼团活动结束后未能成团,则自动成团;如果关闭:过了拼团有效期或拼团活动结束后未能成团,则拼团失败,团内用户的支付金额将原路退回。',
  461. showCancel:false,
  462. confirmText:'我知道了',
  463. success: function (res) {
  464. }
  465. });
  466. },
  467. switchgroupType(e){
  468. console.log(e)
  469. this.groupType=e.detail.value
  470. },
  471. switchsupportRefunds(e){
  472. console.log(e)
  473. this.supportRefunds=e.detail.value
  474. },
  475. switchgroupOutState(e){
  476. this.groupOutState=e.detail.value
  477. },
  478. switchgroupRestrictions(e){
  479. this.groupRestrictions=e.detail.value
  480. },
  481. previewImage(img){
  482. var arr=[]
  483. arr.push(img)
  484. uni.previewImage({
  485. urls: arr,
  486. longPressActions: {
  487. itemList: ['发送给朋友', '保存图片',],
  488. success: function(data) {},
  489. fail: function(err) {}
  490. }
  491. });
  492. },
  493. getDetails(){
  494. uni.showLoading({
  495. title: '加载中'
  496. })
  497. this.$http('openH5SetTheGuest/getActivityDetails', {
  498. id:this.id
  499. },'GET').then(res => {
  500. uni.hideLoading();
  501. var jkdata=res.data.data
  502. this.activityName=jkdata.activityName;
  503. this.activityContent=jkdata.activityContent;
  504. this.money=jkdata.money;
  505. this.number=jkdata.number;
  506. this.clWhereString=jkdata.clWhere;
  507. this.clWhereList=this.clWhereString.split(',');
  508. this.startTime=jkdata.startTime.slice(0,10);
  509. this.endTime=jkdata.endTime.slice(0,10);
  510. this.payType=jkdata.payType;
  511. this.img=res.data.img.img;
  512. this.isExistGroup=res.data.isExistGroup
  513. if(res.data.imgList){
  514. res.data.imgList.forEach(item=>{
  515. this.imgListArr.push(item.img)
  516. })
  517. }
  518. var shopNames=[];
  519. var shopList=[];
  520. if(res.data.shopList){
  521. res.data.shopList.forEach(item=>{
  522. item.id=item.shopId
  523. shopNames.push(item.shopName)
  524. shopList.push(item.shopId)
  525. })
  526. this.shopNames=shopNames.join(',')
  527. this.shopList=shopList.join(',')
  528. }
  529. var useshoplist=res.data.shopList
  530. this.ckMusic=res.data.selectedMusic;
  531. if(this.ckMusic){
  532. this.music=this.ckMusic.id;
  533. uni.setStorage({
  534. key: 'ckmusic',
  535. data: this.ckMusic,
  536. success: function () {
  537. }
  538. });
  539. }else{
  540. uni.removeStorageSync('ckmusic');
  541. }
  542. this.groupType=jkdata.groupType==1?true:false;
  543. this.groupNumber=jkdata.groupNumber;
  544. this.groupTime=jkdata.groupTime;
  545. this.groupMoney=jkdata.groupMoney;
  546. this.groupOutState=jkdata.groupOutState;
  547. this.groupRestrictions=jkdata.groupRestrictions;
  548. this.packageDetailList=res.data.couponList
  549. if(jkdata.couponPackageId){
  550. this.couponPackageData={
  551. name:jkdata.couponPackageName,
  552. id:jkdata.couponPackageId||''
  553. }
  554. }else{
  555. this.couponPackageData=''
  556. }
  557. this.sharerMoney=jkdata.sharerMoney
  558. this.buyerMoney = jkdata.buyerMoney
  559. this.shareWords=jkdata.shareWords
  560. if(jkdata.supportRefunds==1){
  561. this.supportRefunds=true
  562. }else{
  563. this.supportRefunds=false
  564. }
  565. if(jkdata.giftType==1){
  566. this.giftType=1
  567. }else{
  568. this.giftType=0
  569. }
  570. this.coverimg=res.data.coverimg.img
  571. this.photoimg=res.data.photoimg.img
  572. //console.log(this.imgListArr)
  573. uni.setStorage({
  574. key: 'shopckList',
  575. data: useshoplist,
  576. success: function () {
  577. }
  578. });
  579. //this.list=res.data
  580. })
  581. },
  582. delimgzt(){
  583. this.img=''
  584. },
  585. upimgzt(){
  586. var that = this;
  587. uni.chooseImage({
  588. sourceType: ['album','camera'],
  589. count:1,
  590. sizeType:['compressed'],
  591. success: (chooseImageRes) => {
  592. const tempFilePaths = chooseImageRes.tempFilePaths;
  593. that.file=tempFilePaths[0];
  594. that.$refs.wCompress.start(that.file, {
  595. pixels: 600000, // 最大分辨率,默认二百万
  596. quality: 0.9, // 压缩质量,默认0.8
  597. type: 'png', // 图片类型,默认jpg
  598. base64: true, // 是否返回base64,默认false,非H5有效
  599. }).then(resxx => {
  600. uni.uploadFile({
  601. url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
  602. filePath: resxx,
  603. name: 'file',
  604. formData: {
  605. 'user': 'test'
  606. },
  607. success: (uploadFileRes) => {
  608. that.img=JSON.parse(uploadFileRes.data).data[0]
  609. }
  610. });
  611. }).catch(e => {
  612. })
  613. // uni.uploadFile({
  614. // url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
  615. // filePath: tempFilePaths[0],
  616. // name: 'file',
  617. // formData: {
  618. // 'user': 'test'
  619. // },
  620. // success: (uploadFileRes) => {
  621. // console.log(JSON.parse(uploadFileRes.data).data );
  622. // that.img=JSON.parse(uploadFileRes.data).data[0]
  623. // }
  624. // });
  625. }
  626. });
  627. },
  628. blurgroupNumber(){
  629. if(this.groupNumber%1 != 0||this.groupNumber<2){
  630. uni.showToast({
  631. title: '请输入大于1整数',
  632. icon:'none',
  633. duration: 2000
  634. });
  635. }
  636. },
  637. blurgroupTime(){
  638. if(!this.groupTime){
  639. uni.showToast({
  640. title: '请输入拼团有效期',
  641. icon:'none',
  642. duration: 2000
  643. });
  644. }else if(this.groupTime<0.5||this.groupTime>72){
  645. uni.showToast({
  646. title: '有效期为0.5小时至72小时',
  647. icon:'none',
  648. duration: 2000
  649. });
  650. }
  651. },
  652. blurgroupMoney(){
  653. if(Number(this.groupMoney)>Number(this.money)||this.groupMoney==this.money){
  654. uni.showToast({
  655. title: '拼团价格需小于支付金额',
  656. icon:'none',
  657. duration: 2000
  658. });
  659. }
  660. },
  661. preview(){
  662. //console.log(this.giftType)
  663. // return false
  664. /* if(this.isExistGroup){
  665. uni.showToast({
  666. title: '已有用户参与该拼团活动,无法修改报名信息',
  667. icon:'none',
  668. duration: 3000
  669. });
  670. return false
  671. } */
  672. //console.log(this.clWhere)
  673. // if(this.money==0){
  674. // this.money=0
  675. // }
  676. if(this.money==null){
  677. this.money=''
  678. }
  679. if(this.payType==2){
  680. this.money=0;
  681. }
  682. console.log(this.money)
  683. if(this.activityName==''){
  684. uni.showToast({
  685. title: '请输入活动名称',
  686. icon:'none',
  687. duration: 2000
  688. });
  689. return false;
  690. }else if(!this.startTime||!this.endTime){
  691. uni.showToast({
  692. title: '请选择报名时间',
  693. icon:'none',
  694. duration: 2000
  695. });
  696. return false;
  697. }else if(this.shopList==''){
  698. uni.showToast({
  699. title: '请选择活动门店',
  700. icon:'none',
  701. duration: 2000
  702. });
  703. return false;
  704. }else if(this.clWhereString==''){
  705. uni.showToast({
  706. title: '请选择报名凭证',
  707. icon:'none',
  708. duration: 2000
  709. });
  710. return false;
  711. }else if(this.number==''){
  712. uni.showToast({
  713. title: '请输入最多报名人数',
  714. icon:'none',
  715. duration: 2000
  716. });
  717. return false;
  718. }else if(this.money!==0&&this.money==''&&this.payType==1){
  719. uni.showToast({
  720. title: '请输入支付金额',
  721. icon:'none',
  722. duration: 2000
  723. });
  724. return false;
  725. }else if(this.groupType){
  726. if(!this.groupNumber){
  727. uni.showToast({
  728. title: '请输入拼团人数',
  729. icon:'none',
  730. duration: 2000
  731. });
  732. return false;
  733. }else if(this.groupNumber%1 != 0||this.groupNumber<2){
  734. uni.showToast({
  735. title: '请输入大于1整数',
  736. icon:'none',
  737. duration: 2000
  738. });
  739. return false;
  740. }
  741. if(!this.groupTime){
  742. uni.showToast({
  743. title: '请输入拼团有效期',
  744. icon:'none',
  745. duration: 2000
  746. });
  747. return false;
  748. }else if(this.groupTime<0.5||this.groupTime>72){
  749. uni.showToast({
  750. title: '有效期为0.5小时至72小时',
  751. icon:'none',
  752. duration: 2000
  753. });
  754. return false;
  755. }
  756. if(!this.groupMoney){
  757. uni.showToast({
  758. title: '请输入价格',
  759. icon:'none',
  760. duration: 2000
  761. });
  762. return false;
  763. }else if(Number(this.groupMoney)>Number(this.money)||this.groupMoney==this.money){
  764. uni.showToast({
  765. title: '拼团价格需小于支付金额',
  766. icon:'none',
  767. duration: 2000
  768. });
  769. return false;
  770. }
  771. }
  772. //return false;
  773. var supportRefunds=''
  774. if(this.supportRefunds){
  775. supportRefunds=1
  776. }else{
  777. supportRefunds=0
  778. }
  779. var editdata={
  780. id:this.id,
  781. activityName:this.activityName,
  782. startTime:this.startTime+ ' 00:00:00',
  783. endTime:this.endTime+ ' 23:59:59',
  784. number:this.number,
  785. activityContent:this.activityContent,
  786. clWhere:this.clWhereString,
  787. payType:this.payType,
  788. music:this.music,
  789. money:this.money,
  790. shopList:this.shopList,
  791. img:this.img,
  792. imgList:this.imgListArr.join(','),
  793. clState:'',
  794. groupType:this.groupType?1:0,
  795. groupNumber:this.groupNumber,
  796. groupTime:this.groupTime,
  797. groupMoney:this.groupMoney,
  798. groupOutState:this.groupOutState?1:0,
  799. groupRestrictions:this.groupRestrictions?1:0,
  800. couponPackageId:this.couponPackageData.id,
  801. couponPackageName:this.couponPackageData.name,
  802. supportRefunds:supportRefunds,
  803. giftType:this.giftType,
  804. sharerMoney:this.sharerMoney,
  805. buyerMoney:this.buyerMoney,
  806. shareWords:this.shareWords,
  807. coverimg:this.coverimg,
  808. photoimg:this.photoimg
  809. }
  810. console.log(editdata)
  811. //return false;
  812. uni.setStorage({
  813. key: 'editdata',
  814. data: editdata,
  815. success: function () {
  816. uni.navigateTo({
  817. url:'jkDetail?type=1'
  818. })
  819. }
  820. });
  821. },
  822. addShop(){
  823. uni.navigateTo({
  824. url:'ckshop'
  825. })
  826. },
  827. goMusic(){
  828. uni.navigateTo({
  829. url:'ckmusic'
  830. })
  831. },
  832. musicDel(){
  833. this.music='';
  834. this.ckMusic=''
  835. uni.removeStorageSync('ckmusic');
  836. },
  837. bindTimeChangeStart(e){
  838. console.log(e)
  839. this.startTime=e.detail.value;
  840. },
  841. bindTimeChangeendTime(e){
  842. this.endTime=e.detail.value;
  843. },
  844. clWhere(num){
  845. if(this.isExistGroup){
  846. return false
  847. }
  848. console.log(this.clWhereList)
  849. this.clWhereString=this.clWhereList.join(',');
  850. if(this.clWhereString.indexOf(num)!=-1){
  851. // this.clWhereList.remove(num)
  852. let index = this.clWhereList.indexOf(num);
  853. this.clWhereList.splice(index, 1)
  854. //this.remove(num)
  855. }else{
  856. this.clWhereList.push(num)
  857. }
  858. this.clWhereString=this.clWhereList.join(',');
  859. console.log(this.clWhereString)
  860. },
  861. delimg(index){
  862. this.imgListArr.splice(index, 1)
  863. },
  864. upimg(){
  865. var that = this;
  866. uni.chooseImage({
  867. sourceType: ['album','camera'],
  868. count:9,
  869. sizeType:['compressed'],
  870. success: (chooseImageRes) => {
  871. const tempFilePaths = chooseImageRes.tempFilePaths;
  872. that.file=tempFilePaths[0]
  873. that.$refs.wCompress.start(that.file, {
  874. pixels: 600000, // 最大分辨率,默认二百万
  875. quality: 0.9, // 压缩质量,默认0.8
  876. type: 'png', // 图片类型,默认jpg
  877. base64: true, // 是否返回base64,默认false,非H5有效
  878. }).then(resxx => {
  879. uni.uploadFile({
  880. url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
  881. filePath: resxx,
  882. name: 'file',
  883. formData: {
  884. 'user': 'test'
  885. },
  886. success: (uploadFileRes) => {
  887. that.imgListArr=that.imgListArr.concat(JSON.parse(uploadFileRes.data).data)
  888. }
  889. });
  890. }).catch(e => {
  891. })
  892. // uni.uploadFile({
  893. // url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
  894. // filePath: tempFilePaths[0],
  895. // name: 'file',
  896. // formData: {
  897. // 'user': 'test'
  898. // },
  899. // success: (uploadFileRes) => {
  900. // console.log(JSON.parse(uploadFileRes.data).data );
  901. // that.imgListArr=that.imgListArr.concat(JSON.parse(uploadFileRes.data).data)
  902. // //that.imgArr=that.imgArr.concat(JSON.parse(uploadFileRes.data).data) ;
  903. // //that.imgurl=JSON.parse(uploadFileRes.data).data[0];
  904. // //that.goAddzdy(that.imgurl)
  905. // }
  906. // });
  907. }
  908. });
  909. },
  910. delimgfx(num){
  911. if(num==1){
  912. this.coverimg = ''
  913. }else{
  914. this.photoimg = ''
  915. }
  916. },
  917. upimgfx(num){
  918. var that = this;
  919. uni.chooseImage({
  920. sourceType: ['album','camera'],
  921. count:1,
  922. sizeType:['compressed'],
  923. success: (chooseImageRes) => {
  924. const tempFilePaths = chooseImageRes.tempFilePaths;
  925. that.file=tempFilePaths[0]
  926. that.$refs.wCompress.start(that.file, {
  927. pixels: 600000, // 最大分辨率,默认二百万
  928. quality: 0.9, // 压缩质量,默认0.8
  929. type: 'png', // 图片类型,默认jpg
  930. base64: true, // 是否返回base64,默认false,非H5有效
  931. }).then(resxx => {
  932. uni.uploadFile({
  933. url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
  934. filePath: resxx,
  935. name: 'file',
  936. formData: {
  937. 'user': 'test'
  938. },
  939. success: (uploadFileRes) => {
  940. if(num==1){
  941. that.coverimg = JSON.parse(uploadFileRes.data).data[0]
  942. }else{
  943. that.photoimg = JSON.parse(uploadFileRes.data).data[0]
  944. }
  945. ///that.imgListArr=that.imgListArr.concat(JSON.parse(uploadFileRes.data).data)
  946. }
  947. });
  948. }).catch(e => {
  949. })
  950. }
  951. });
  952. }
  953. }
  954. }
  955. </script>
  956. <style scoped>
  957. .couponLine{
  958. font-size: 26rpx;color: #333333;
  959. border-bottom: 1px solid #EEEEEE;
  960. line-height: 80rpx;
  961. padding-left: 30rpx;
  962. }
  963. .delcoupon{
  964. width: 40rpx;height: 40rpx;
  965. padding-left: 10rpx;padding-right: 10rpx;
  966. }
  967. .couponLineBOx{
  968. height: calc(70vh - 200rpx);
  969. overflow-y: auto;
  970. padding-top: 10px;
  971. }
  972. .searchImg{
  973. width: 40rpx;
  974. height: 40rpx;
  975. margin-top: 16rpx;
  976. margin-left: 20rpx;
  977. }
  978. .couponSearchBox{
  979. width: 702rpx;
  980. height: 72rpx;
  981. background: #F4F5F7;
  982. border-radius: 36rpx;
  983. margin-left: 24rpx;
  984. display:flex;
  985. position: relative;
  986. margin-top: 10px;
  987. }
  988. .topInput{
  989. font-size: 28rpx;
  990. height: 72rpx;
  991. line-height: 72rpx;
  992. padding-left: 16rpx;
  993. width: 500rpx;
  994. }
  995. .couponCont{
  996. width: 100vw;
  997. height: 70vh;
  998. background: #ffffff;
  999. margin-top: 30vh;
  1000. border-radius: 32rpx 32rpx 0rpx 0rpx;
  1001. }
  1002. .couponTop{
  1003. display: flex;
  1004. justify-content: space-between;
  1005. padding: 40rpx 24rpx 10rpx 24rpx;
  1006. }
  1007. .couponTopTxrt{
  1008. font-weight: 500;
  1009. color: #3C3C3C;
  1010. font-size: 30rpx;
  1011. line-height: 36rpx;
  1012. }
  1013. .couponClose{
  1014. width: 36rpx;
  1015. height: 36rpx;
  1016. }
  1017. .content{
  1018. min-height: 100vh;
  1019. background:#F4F5F7;
  1020. }
  1021. .lineLeft2{
  1022. width: 300rpx;color: #666666;display: flex;align-items: center;
  1023. }
  1024. .helpIcon{
  1025. width: 26rpx;height: 26rpx;padding-left: 10rpx;padding-top: 4rpx;
  1026. }
  1027. .preview{
  1028. width: 750rpx;
  1029. height: 98rpx;
  1030. background: #3F90F7;
  1031. line-height: 98rpx;
  1032. text-align: center;
  1033. color: #ffffff;
  1034. font-size: 30rpx;
  1035. position: fixed;
  1036. left: 0;
  1037. bottom: 0;
  1038. }
  1039. .musicBox{
  1040. padding: 0 24rpx;
  1041. }
  1042. .musicLine{
  1043. display: flex;
  1044. justify-content: space-between;
  1045. margin-bottom:30rpx;
  1046. padding:26rpx 24rpx;
  1047. background: #F4F5F7;
  1048. border-radius: 10rpx;
  1049. }
  1050. .musicName{
  1051. color: #3C3C3C;font-size: 24rpx;
  1052. padding-left: 10rpx;
  1053. }
  1054. .musicLineLeft{
  1055. display: flex;
  1056. }
  1057. .musicDel{
  1058. width: 30rpx;
  1059. height: 30rpx;
  1060. }
  1061. .musicImg{
  1062. width: 36rpx;
  1063. height: 36rpx;
  1064. }
  1065. .line2{
  1066. padding: 30rpx 24rpx;
  1067. border-bottom: 1px solid #EEEEEE;
  1068. }
  1069. .musicJt{
  1070. width: 28rpx;
  1071. height: 28rpx;
  1072. margin-top: 8rpx;
  1073. }
  1074. .musicRight{
  1075. display: flex;
  1076. justify-content: space-between;
  1077. width: 500rpx;
  1078. }
  1079. .musicMS{
  1080. color: #CCCCCC;
  1081. }
  1082. .lineimgdel{
  1083. width: 37rpx;
  1084. height: 37rpx;
  1085. position: absolute;
  1086. top: -18rpx;
  1087. right: -18rpx;
  1088. }
  1089. .lineimghz{
  1090. margin-right: 24rpx;
  1091. position: relative;
  1092. margin-top: 24rpx;
  1093. }
  1094. .lineimg{
  1095. width: 150rpx;
  1096. height: 150rpx;
  1097. }
  1098. .lineTitle{
  1099. color: #666666;font-size: 28rpx;
  1100. }
  1101. .lineMS{
  1102. color: #999999;font-size: 24rpx;padding-top: 10rpx;
  1103. }
  1104. .lineImgBOx{
  1105. display: flex;
  1106. flex-wrap: wrap;
  1107. }
  1108. .payBox{
  1109. display: flex;
  1110. }
  1111. .payTypeImg{
  1112. width: 36rpx;
  1113. height: 36rpx;
  1114. }
  1115. .payType{
  1116. display: flex;
  1117. line-height: 36rpx;
  1118. }
  1119. .payTypeTxt{
  1120. padding-left: 10rpx;
  1121. color: #3C3C3C;
  1122. }
  1123. .line{
  1124. display: flex;
  1125. font-size: 28rpx;
  1126. padding: 30rpx 24rpx;
  1127. border-bottom: 1px solid #EEEEEE;
  1128. }
  1129. .linecoupon{
  1130. justify-content: space-between;
  1131. }
  1132. .linexx{
  1133. color: #FF3B30;
  1134. }
  1135. .dateView{
  1136. color:#3C3C3C ;
  1137. }
  1138. .lineLeft{
  1139. width: 200rpx;
  1140. color: #666666;
  1141. }
  1142. .clWhereBox{
  1143. display: flex;
  1144. }
  1145. .clWhereLine{
  1146. width: 100rpx;
  1147. height: 52rpx;
  1148. background: #F4F5F7;
  1149. border-radius: 10rpx;
  1150. text-align: center;
  1151. color: #3C3C3C;
  1152. line-height: 52rpx;
  1153. font-size: 24rpx;
  1154. margin-right: 24rpx;
  1155. }
  1156. .clWhereBox .clWhereActive{
  1157. background: #EAF3FF;
  1158. border: 2rpx solid #3F90F7;
  1159. height: 48rpx;
  1160. color: #3F90F7;
  1161. height: 48rpx;
  1162. line-height: 48rpx;
  1163. width: 96rpx;
  1164. }
  1165. .timelineRight{
  1166. display: flex;
  1167. }
  1168. .textsr{
  1169. width: 500rpx;
  1170. height: 180rpx;
  1171. }
  1172. .shopListNo{
  1173. width: 400rpx;
  1174. white-space:nowrap;
  1175. overflow:hidden;
  1176. text-overflow:ellipsis;
  1177. color: #CCCCCC;
  1178. }
  1179. .shopListY{
  1180. width: 400rpx;
  1181. white-space:nowrap;
  1182. overflow:hidden;
  1183. text-overflow:ellipsis;
  1184. color: #3C3C3C;
  1185. }
  1186. .addshop{
  1187. color: #3F90F7;
  1188. padding-left: 10rpx;
  1189. }
  1190. .shopckBox{
  1191. display: flex;
  1192. }
  1193. .timeHx{
  1194. color: #CCCCCC;
  1195. padding: 0 30rpx;
  1196. }
  1197. .lineRightInput{
  1198. font-size: 28rpx;
  1199. color:#3C3C3C ;
  1200. width: 500rpx;
  1201. }
  1202. .linecInput{
  1203. font-size: 28rpx;
  1204. color:#3C3C3C ;
  1205. width: 400rpx;
  1206. }
  1207. .lineRight{
  1208. color:#3C3C3C ;
  1209. }
  1210. .inputPlace{
  1211. color: #CCCCCC;
  1212. }
  1213. .dateViewno{
  1214. color: #CCCCCC;
  1215. }
  1216. .box{
  1217. background: #ffffff;
  1218. padding-bottom: 30rpx;
  1219. }
  1220. .kk{
  1221. background:#F4F5F7;
  1222. height: 20rpx;
  1223. }
  1224. .title{
  1225. padding-left: 24rpx;
  1226. padding-top: 30rpx;
  1227. color: #333333;
  1228. font-size: 32rpx;
  1229. line-height: 45rpx;
  1230. font-weight: 500;
  1231. }
  1232. .lineBorderNo{
  1233. border-bottom: none !important;
  1234. }
  1235. .line3{
  1236. display: flex;justify-content: space-between;
  1237. padding: 16rpx 24rpx;
  1238. }
  1239. .line3 .lineLeft{
  1240. display: flex;align-items: center;
  1241. }
  1242. .linecouponCont{
  1243. display: flex;
  1244. justify-content: space-between;
  1245. padding: 15rpx 24rpx;
  1246. }
  1247. .linecouponContLeft{
  1248. display: flex;
  1249. }
  1250. .couponType{
  1251. color: #FFA511;
  1252. border: 1px solid #FFA511;
  1253. border-radius: 4rpx;
  1254. font-size: 18rpx;
  1255. line-height: 26rpx;
  1256. padding: 0 8rpx;
  1257. height: 26rpx;
  1258. margin-top: 5rpx;
  1259. }
  1260. .couponName{
  1261. font-size: 26rpx;line-height: 38rpx;color: #3C3C3C;
  1262. padding-left: 20rpx;
  1263. }
  1264. .couponNum{
  1265. font-size: 26rpx;line-height: 38rpx;color: #999999;
  1266. }
  1267. .couponBox{
  1268. width: 100vw;
  1269. height: 100vh;
  1270. background: rgba(0, 0, 0, 0.5);
  1271. position: fixed;
  1272. top: 0;
  1273. left: 0;
  1274. }
  1275. .fxTs{
  1276. font-size: 24rpx;
  1277. color: red;
  1278. }
  1279. .fxTitle{
  1280. display: flex;
  1281. justify-content: space-between;
  1282. }
  1283. .lineRightView{
  1284. display: flex;
  1285. padding-bottom: 10rpx;
  1286. }
  1287. .lineRightView .fxlineMs{
  1288. line-height: 50rpx;
  1289. padding-right: 20rpx;
  1290. }
  1291. .lineRightView input{
  1292. width: 200rpx;
  1293. height: 50rpx;
  1294. line-height: 50rpx;
  1295. text-align: right;
  1296. }
  1297. </style>