list.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. <template>
  2. <view>
  3. <view v-if="datalist.length>0">
  4. <!-- 预约 -->
  5. <block v-if="type=='order'">
  6. <view class="ylist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.reservatId)">
  7. <image :src="ysta" class="ystaimg" v-if="ite.visitType==3"></image>
  8. <image :src="ystb" class="ystaimg" v-if="ite.visitType==2"></image>
  9. <view class="ytop flexc">
  10. <view class="tit">{{ite.visitName.charAt(0)}}</view>
  11. <view class="cent">
  12. <view class="ctit">{{ite.visitName}}提交的预约来访申请</view>
  13. <view class="ctime">提交时间:{{ite.createTime}}</view>
  14. </view>
  15. <view class="right" v-if="ite.visitType==1">
  16. <image :src="ybga"></image>
  17. <view>待审核</view>
  18. </view>
  19. </view>
  20. <view class="ybox">
  21. <view class="yblist mw50"><text>预约日期</text>{{ite.visitDate}}</view>
  22. <view class="yblist mw50"><text>预约时间</text>{{ite.visitTime}}</view>
  23. <view class="yblist mw50"><text>手机号码</text>{{ite.visitPhone}}</view>
  24. <view class="yblist mw50"><text>人 数</text>{{ite.visitNum}}</view>
  25. <view class="yblist mw50"><text>来访地点</text>{{kaType(ite.appointmentSite,adrlist)}}</view>
  26. <view class="yblist mw50"><text>来访事由</text>{{ite.visitReason}}</view>
  27. </view>
  28. <view class="ybtn">
  29. <view class="ybtns btn1" v-if="checkPermi(['system:reservat:remove'])" @click.stop="getDelFn(ite.reservatId)">删除</view>
  30. <view class="flex1"></view>
  31. <block v-if="ite.visitType==1&&checkPermi(['system:reservat:sh'])">
  32. <view class="ybtns btn2" @click.stop="gettypeFn(2,ite.reservatId)">拒绝</view>
  33. <view class="ybtns btn3" @click.stop="gettypeFn(3,ite.reservatId)">同意</view>
  34. </block>
  35. </view>
  36. </view>
  37. </block>
  38. <!-- 访客记录 -->
  39. <block v-if="type=='visitor'">
  40. <view class="ylist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.recordId)">
  41. <view class="ytop flexc">
  42. <view class="tit" v-if="ite.recordName">{{ite.recordName.charAt(0)}}</view>
  43. <view class="cent">
  44. <view class="ctit">{{ite.recordName}}</view>
  45. </view>
  46. </view>
  47. <view class="ybox">
  48. <view class="yblist mw50"><text>出入时间</text>{{ite.recordDateTime}}</view>
  49. <view class="yblist mw50"><text>人员类型</text>{{kaType(ite.recordType,fklist)}}</view>
  50. <view class="yblist mw50"><text>手机号码</text>{{ite.recordPhone}}</view>
  51. <view class="yblist mw50"><text>记录来源</text>{{kaType(ite.recordSource,adrlist)}}</view>
  52. </view>
  53. <view class="ybtn">
  54. <view class="ybtns btn1" v-if="checkPermi(['system:record:remove'])" @click.stop="getDelFn(ite.recordId)">删除</view>
  55. </view>
  56. </view>
  57. </block>
  58. <!-- 人员信息权限 -->
  59. <block v-if="type=='limit'">
  60. <view class="ylist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.personneId)">
  61. <view class="ytop flexc">
  62. <view class="tit" v-if="ite.personneName">{{ite.personneName.charAt(0)}}</view>
  63. <view class="cent">
  64. <view class="ctit">{{ite.personneName}}</view>
  65. </view>
  66. </view>
  67. <view class="ybox">
  68. <view class="yblist mw50"><text>手机号码</text>{{ite.personnePhone}}</view>
  69. <view class="yblist mw50"><text>部门名称</text>{{ite.deptName}}</view>
  70. <view class="yblist mw50"><text>门禁</text>{{statusFormats(ite.guard,mjlist)}}</view>
  71. <view class="yblist mw50"><text>状态</text>{{ite.isEnable=='0'?'启用':'禁用'}}</view>
  72. </view>
  73. <view class="ybtn">
  74. <view class="ybtns btn1" v-if="checkPermi(['system:management:remove'])" @click.stop="getDelFn(ite.personneId)">删除</view>
  75. </view>
  76. </view>
  77. </block>
  78. <!-- 打卡列表 -->
  79. <block v-if="type=='clock'">
  80. <view class="ylist rlist" style="padding-top: 12rpx;" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite)">
  81. <view class="ytop flexc">
  82. <view class="tit" v-if="ite.userName">{{ite.userName.charAt(0)}}</view>
  83. <view class="cent">
  84. <view class="ctit">{{ite.userName}}的打卡记录</view>
  85. <view class="ctime">最新打卡:{{ite.clockMap.date}}</view>
  86. </view>
  87. <view class="rights" v-if="ite.type=='N'">
  88. <image :src="ybga"></image>
  89. <view>缺卡</view>
  90. <!-- <view>迟到</view> -->
  91. </view>
  92. <view class="rights" v-if="ite.clockMap.amex>1&&ite.clockMap.amex<5||ite.clockMap.pmex>1&&ite.clockMap.pmex<5">
  93. <image :src="ybga"></image>
  94. <view v-if="ite.clockMap.amex==2 ||ite.clockMap.pmex==2">外勤</view>
  95. <view v-else-if="ite.clockMap.amex==3 ||ite.clockMap.pmex==3">迟到</view>
  96. <view v-else-if="ite.clockMap.amex==4||ite.clockMap.pmex==4">早退</view>
  97. </view>
  98. </view>
  99. <view class="ybox">
  100. <view class="yblist mw50 line"><text>上班打卡</text>{{ite.clockMap.am}}
  101. <view class="tip" v-if="ite.clockMap.amex>1&&ite.clockMap.amex<5">
  102. <block v-if="ite.clockMap.amex==2">外勤</block>
  103. <block v-if="ite.clockMap.amex==3">迟到</block>
  104. <block v-if="ite.clockMap.amex==4">早退</block>
  105. </view>
  106. </view>
  107. <view class="yblist mw50"><text>下班打卡</text>{{ite.clockMap.pm}}
  108. <view class="tip" v-if="ite.clockMap.pmex>1&&ite.clockMap.pmex<5">
  109. <block v-if="ite.clockMap.pmex==2">外勤</block>
  110. <block v-if="ite.clockMap.pmex==3">迟到</block>
  111. <block v-if="ite.clockMap.pmex==4">早退</block>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </block>
  117. <!-- 会议记录 -->
  118. <block v-if="type=='meetlist'">
  119. <view class="ylist rlist" style="padding-top: 12rpx;" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.conferenceRoomOrderId)">
  120. <view class="ytop flexc">
  121. <view class="ytit">{{ite.conferenceName}}</view>
  122. <view class="delbtn mr20" v-if="checkPermi(['system:order:remove'])" @click.stop="getDelFn(ite.conferenceRoomOrderId)">
  123. <image :src="delimg"></image>取消预约
  124. </view>
  125. <!-- <view class="rights" v-if="ite.visitType==1">
  126. <image :src="ybga"></image>
  127. <view>已结束</view>
  128. <view>迟到</view>
  129. </view> -->
  130. </view>
  131. <view class="ybox">
  132. <view class="listsm">
  133. <view class="txt"><text class="tit">会议时间</text><text class="lh17">{{ite.startTime}} 至 {{ite.endTime}}</text></view>
  134. <view class="txt"><text class="tit">会议室</text><text>{{ite.conferenceRoomName}}</text></view>
  135. <view class="txt"><text class="tit">参会人数</text><text>{{ite.conferenceNumber}}人</text></view>
  136. <view class="txt"><text class="tit">会议要求</text><text>{{ite.remark}}</text></view>
  137. <view class="flexcj mb8">
  138. <view class="txt" style="margin-bottom: 0;"><text class="tit">席卡需求</text><text>{{ite.useXk=='Y'?'需要':'暂不'}}</text></view>
  139. </view>
  140. <view class="txt" v-if="ite.xkDetail"><text class="tit">席卡人员</text><text>{{ite.xkDetail}}</text></view>
  141. </view>
  142. </view>
  143. </view>
  144. </block>
  145. <!-- 就餐记录 -->
  146. <block v-if="type=='eatlist'">
  147. <view class="ylist rlist" style="padding-top: 12rpx;" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.orderFoodId)">
  148. <view class="ytop flexc">
  149. <view class="ytit">{{ite.orderFoodUser}}</view>
  150. </view>
  151. <view class="ybox">
  152. <view class="listsm">
  153. <view class="txt"><text class="tit">就餐时间</text><text class="lh17">{{ite.orderFoodTime}}</text></view>
  154. <view class="flexcj mb8">
  155. <view class="txt" style="margin-bottom: 0;"><text class="tit">就餐类型</text><text>{{kaType(ite.orderFoodType,jclxlist)}}</text></view>
  156. <view class="delbtn" v-if="checkPermi(['system:food:remove'])" @click.stop="getDelFn(ite.orderFoodId)">
  157. <image :src="delimg"></image>取消预约
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </block>
  164. <!-- 园区食谱 -->
  165. <block v-if="type=='menulist'">
  166. <view class="menulist" v-for="(ite,idx) in datalist" :key='idx'
  167. :data-idx="idx"
  168. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+ite.right+'px'">
  169. <view class="mentop" >
  170. <!-- <view class="mentopa" v-if="ite.menuFoodDetailBk">
  171. <image :src="dayc" class="dayimg"></image>
  172. <view class="mentit">{{ite.menuFoodDetailBk}}</view>
  173. </view> -->
  174. <view class="mentopa">
  175. <image :src="daya" class="dayimg"></image>
  176. <view class="mentit">{{ite.menuFoodDetailLu||'无'}}</view>
  177. </view>
  178. <view class="mentopa">
  179. <image :src="dayb" class="dayimg"></image>
  180. <view class="mentit">{{ite.menuFoodDetailDi||'无'}}</view>
  181. </view>
  182. </view>
  183. <view class="menbtn flexc">
  184. <view class="usetit flexc flex1 act" v-if="ite.isUse=='Y'"><image :src="useimg"></image>当前已启用</view>
  185. <view class="usetit flexc flex1" v-else><image :src="nuseimg"></image>当前未启用</view>
  186. <block v-if="checkPermi(['system:menuFood:edit'])">
  187. <view class="usebtn btna" @click.stop="getPut(ite,'put')"><image :src="putimg"></image>修改</view>
  188. <view class="usebtn btnb" v-if="ite.isUse=='Y'" @click.stop="getPut(ite,'use')"><image :src="nusebtn"></image>禁用</view>
  189. <view class="usebtn btnc" v-else @click.stop="getPut(ite,'use')"><image :src="usebtn"></image>启用</view>
  190. </block>
  191. </view>
  192. <view class="spdel" v-if="checkPermi(['system:menuFood:remove'])&&ite.right>0" @click.stop="getDelFn(ite.menuFoodId)">删除</view>
  193. </view>
  194. </block>
  195. <block v-if="type=='menulists'">
  196. <view class="splist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.orderFoodId)" >
  197. <!-- @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" -->
  198. <view>
  199. <view class="sptop flexc">
  200. <view class="tit flex1">11/04 周一 ~ 11/09 周六</view>
  201. <view class="spr" @click.stop="getCookFn(2)">每日食谱</view>
  202. </view>
  203. <view class="sptxt">本周是2024年11月第一周</view>
  204. <view class="spbox flexc " :class="ite.day?'act':''">
  205. <view class="ltit">
  206. <view>今日</view>
  207. <view>食谱</view>
  208. </view>
  209. <view class="flex1">
  210. <view class="rtit"><text>午餐:</text>米饭,酱汁里脊肉,蒜泥生菜,平菇蛋花 汤,土豆焖鸭,胡萝卜肉丝</view>
  211. <view class="rtit"><text>晚餐:</text>米饭,酱汁里脊肉,蒜泥生菜,平菇蛋花 汤,土豆焖鸭,胡萝卜肉丝</view>
  212. </view>
  213. <image :src="fineshimg" class="fineshimg" v-if="!ite.day"></image>
  214. </view>
  215. </view>
  216. </view>
  217. </block>
  218. <block v-if="type=='recordlist'">
  219. <view class="splist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.menuFoodId)"><view>
  220. <view class="sptop">
  221. <view class="tit">{{ite.menuFoodTime}}</view>
  222. </view>
  223. <view class="spbox flexc act">
  224. <view class="ltit">
  225. <view>当日</view>
  226. <view>食谱</view>
  227. </view>
  228. <view class="flex1">
  229. <view>
  230. <!-- <view class="rtit"><text>早餐:</text>{{ite.menuFoodDetailBk}}</view> -->
  231. <view class="rtit"><text>午餐:</text>{{ite.menuFoodDetailLu}}</view>
  232. <view class="rtit"><text>晚餐:</text>{{ite.menuFoodDetailDi}}</view>
  233. </view>
  234. <!-- 图片 -->
  235. <view v-if="ite.imgs&&ite.imgs.length" class="ckimgs">
  236. <block v-for="(pite,pidx) in ite.imgs" :key="pidx">
  237. <image class="cimg" v-if="pidx<3" :src="baseUrl+pite" @click="getPreview(pidx,ite.imgs)"></image>
  238. </block>
  239. <image class="cright" :src="mright" @click="getPreview(3,ite.imgs)" v-if="ite.imgs.length>3"></image>
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. </block>
  246. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  247. </view>
  248. <block v-else>
  249. <no-data></no-data>
  250. </block>
  251. </view>
  252. </template>
  253. <script>
  254. import { selectDictValue } from '@/utils/common.js';
  255. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  256. import noData from "@/components/nodata/nodata.vue"
  257. import config from '@/config.js';
  258. const baseUrl = config.baseUrl;
  259. export default {
  260. props:{
  261. datalist: {
  262. type: Array,
  263. default () {
  264. return []
  265. }
  266. },
  267. adrlist:{
  268. type: Array,
  269. default () {
  270. return []
  271. }
  272. },
  273. fklist:{
  274. type:Array,
  275. default () {
  276. return []
  277. }
  278. },
  279. jclxlist:{
  280. type: Array,
  281. default () {
  282. return []
  283. }
  284. },
  285. mjlist:{
  286. type:Array,
  287. default () {
  288. return []
  289. }
  290. },
  291. wtdt:{
  292. type: String,
  293. default () {
  294. return ''
  295. }
  296. },
  297. type:{
  298. type: [String,Number],
  299. default () {
  300. return ''
  301. }
  302. },
  303. },
  304. components:{
  305. noData
  306. },
  307. data(){
  308. return{
  309. time:require("@/static/images/home/time.png"),
  310. chose:require("@/static/images/home/chose.png"),
  311. close:require("@/static/images/home/close.png"),
  312. bgaimg:require("@/static/images/home/hbgg.png"),
  313. bgbimg:require("@/static/images/home/hbgh.png"),
  314. ybg:require("@/static/images/order/staff/ybg.png"),
  315. ybga:require("@/static/images/order/staff/ybga.png"),
  316. ysta:require("@/static/images/order/staff/ysta.png"),
  317. ystb:require("@/static/images/order/staff/ystb.png"),
  318. delimg:require("@/work/static/yuy/del.png"),
  319. fineshimg:require("@/work/static/yuy/finesh.png"),
  320. daya:require("@/work/static/yuy/daya.png"),
  321. dayb:require("@/work/static/yuy/dayb.png"),
  322. dayc:require("@/work/static/yuy/dayb.png"),
  323. prea:require("@/work/static/yuy/prea.png"),
  324. preb:require("@/work/static/yuy/preb.png"),
  325. useimg:require("@/work/static/yuy/use.png"),
  326. nuseimg:require("@/work/static/yuy/nuse.png"),
  327. usebtn:require("@/work/static/yuy/usebtn.png"),
  328. nusebtn:require("@/work/static/yuy/nusebtn.png"),
  329. putimg:require("@/work/static/yuy/put.png"),
  330. mright:require("@/work/static/yuy/mright.png"),
  331. //左滑默认宽度
  332. delBtnWidth:66,
  333. csListArrl:[],
  334. startX:'',
  335. baseUrl:config.baseUrl,
  336. }
  337. },
  338. watch:{
  339. datalist:{
  340. handler(newVal) {
  341. var data=newVal;
  342. this.csListArrl=JSON.parse(JSON.stringify(data))
  343. },
  344. deep: true
  345. },
  346. },
  347. onLoad: function() {
  348. },
  349. methods:{
  350. checkPermi, checkRole,
  351. kaType(data, list) {
  352. return selectDictValue(list, data);
  353. },
  354. statusFormats(ite,list,type){//多选匹配
  355. if(ite){
  356. var actions = [];
  357. list.forEach(s => {
  358. if(ite.indexOf(s.dictValue)>-1){
  359. actions.push(s.dictLabel);
  360. }
  361. })
  362. return actions.join(',')
  363. }else{
  364. return ''
  365. }
  366. },
  367. getPreview(idx,arr) {
  368. var newArr=[];
  369. arr.forEach(ite=>{
  370. var ds=this.baseUrl+ite
  371. newArr.push(ds)
  372. })
  373. uni.previewImage({
  374. urls: newArr,
  375. current:idx,
  376. success: function(data) {},
  377. fail: function(err) {}
  378. });
  379. },
  380. getDelFn(id){
  381. var that=this;
  382. uni.showModal({
  383. title: '确认删除',
  384. content: "是否确认删除该记录",
  385. cancelText: '取消',
  386. confirmText: '确认',
  387. success: function(res) {
  388. if (res.confirm) {
  389. that.$emit("getDelFn",id)
  390. } else if (res.cancel) {
  391. // console.log('用户点击取消');
  392. }
  393. }
  394. });
  395. },
  396. gettypeFn(type,id){
  397. var that=this;
  398. var str="拒绝"
  399. if(type==3){
  400. str='同意'
  401. }
  402. uni.showModal({
  403. title: '确认'+str,
  404. content: "是否确认"+str+"该预约",
  405. cancelText: '取消',
  406. confirmText: '确认',
  407. success: function(res) {
  408. if (res.confirm) {
  409. var newobj={
  410. type:type,
  411. id:id
  412. }
  413. that.$emit("gettypeFn",newobj)
  414. } else if (res.cancel) {
  415. // console.log('用户点击取消');
  416. }
  417. }
  418. });
  419. },
  420. getDetail(e){
  421. this.$emit('getDetail',e)
  422. },
  423. getPut(ite,type){
  424. var data={
  425. ite:ite,
  426. type:type
  427. }
  428. this.$emit('getPut',data)
  429. },
  430. getCookFn(e){
  431. this.$emit('getCookFn',e)
  432. },
  433. typeFn(data){
  434. if(data){
  435. var newArr=[]
  436. var astr=data.split('-')
  437. astr.forEach(ite=>{
  438. var a=ite.substring(0,5);
  439. newArr.push(a)
  440. })
  441. return newArr.join('-')
  442. }else{
  443. return ''
  444. }
  445. },
  446. //开始触摸滑动
  447. drawStart(e) {
  448. // console.log("开始触发");
  449. var touch = e.touches[0];
  450. this.startX = touch.clientX;
  451. },
  452. //触摸滑动
  453. drawMove(e) {
  454. // console.log("滑动");
  455. for (var index in this.datalist) {
  456. // this.csListArrl[index].right=0
  457. this.$set(this.datalist[index],'right',0);
  458. }
  459. var idx=e.currentTarget.dataset.idx
  460. var touch = e.touches[0];
  461. var item = this.datalist[idx];
  462. var disX = this.startX - touch.clientX;
  463. if (disX >= 20) {
  464. if (disX > this.delBtnWidth) {
  465. disX = this.delBtnWidth;
  466. }
  467. // this.csListArrl[idx].right=disX
  468. this.$set(this.datalist[idx],'right',disX);
  469. } else {
  470. // this.csListArrl[idx].right=0
  471. this.$set(this.datalist[idx],'right',0);
  472. }
  473. },
  474. //触摸滑动结束
  475. drawEnd(e) {
  476. // console.log("滑动结束");
  477. var idx=e.currentTarget.dataset.idx
  478. var item = this.datalist[idx];
  479. if (item.right >= this.delBtnWidth / 2) {
  480. // this.datalist[idx].right=this.delBtnWidth
  481. this.$set(this.datalist[idx],'right',this.delBtnWidth);
  482. } else {
  483. this.datalist[idx].right=0
  484. }
  485. },
  486. },
  487. }
  488. </script>
  489. <style lang="scss" scoped>
  490. // 预约
  491. .ylist{background: #FFFFFF;border-radius: 14rpx;margin-bottom: 30rpx;position: relative;
  492. .ystaimg{width: 140rpx;height: 140rpx;top: 22rpx;right: 22rpx;position: absolute;}
  493. .ytop{padding: 16rpx 0 24rpx 16rpx;
  494. .tit{width: 62rpx;height: 62rpx;background: #0391FD;border-radius: 6rpx;font-weight: 500;
  495. font-size: 34rpx;color: #FFFFFF;margin-right: 18rpx;text-align: center;line-height: 62rpx;flex: 0 0 auto;}
  496. .cent{
  497. flex: 1;
  498. .ctit{font-weight: bold;font-size: 28rpx;color: #161616;margin-bottom: 6rpx;}
  499. .ctime{font-weight: 500;font-size: 18rpx;color: #666666;}
  500. }
  501. .right{position: relative;flex: 0 0 auto;margin-left: 10rpx;
  502. image{width: 144rpx;height: 56rpx;}
  503. view{font-weight: 800;font-size: 22rpx;color: #FFFFFF;position: absolute;left: 0;top: 0;right: 0;bottom: 0;text-align: center;padding-left: 20rpx;box-sizing: border-box;line-height: 56rpx;}
  504. }
  505. .rights{position: relative;width: 96rpx;height: 38rpx;right: 0;top: 0;
  506. image{width: 100%;height: 100%;}
  507. view{font-weight: 500;font-size: 20rpx;
  508. color: #FFFFFF;position: absolute;left: 0;top: 0;right: 0;bottom: 0;text-align: center;padding-left: 20rpx;box-sizing: border-box;line-height: 38rpx;}
  509. }
  510. }
  511. .ytit{font-weight: bold;font-size: 28rpx;color: #161616;flex: 1;}
  512. .ybox{padding: 0rpx 24rpx 24rpx 16rpx;display: flex;flex-wrap: wrap;
  513. .yblist{display: flex;font-size: 24rpx;font-weight: 500;color: #161616;padding: 6rpx 0 6rpx 8rpx;line-height: 40rpx;position: relative;
  514. text{font-weight: normal;color: #aaa;flex: 0 0 auto;width: 100rpx;text-align-last: justify;margin-right: 12rpx;}
  515. .tip{border-radius: 12rpx;font-weight: 500;font-size: 16rpx;color: #F87C29;border: 2rpx solid #F87C29;height: 28rpx;box-sizing: border-box;
  516. display: flex;align-items: center;padding: 0 8rpx;margin-left: 12rpx;flex: 0 0 auto;margin-top: 6rpx;
  517. }
  518. &.line{
  519. &::after{
  520. position: absolute;content: '';width: 2rpx;height: 30rpx;background: #CDCDCD;right: 0;top: 9rpx;
  521. }
  522. }
  523. }
  524. .listsm{padding: 28rpx 10rpx 2rpx 0;width: 100%;border-top: 2rpx solid #DADADA;
  525. .tit{margin-right: 8rpx;flex: 0 0 auto;min-width:110rpx;text-align-last: justify;margin-right: 20rpx;color: #aaa;}
  526. .line{margin-right: 8rpx;color: #aaaaaa;flex: 0 0 auto;}
  527. .txt{font-size: 26rpx;color: #161616;margin-bottom: 16rpx;display: flex;padding-left: 10rpx;}
  528. .flexcw{
  529. display: flex;align-items: center;flex-wrap: wrap;
  530. .txt{min-width: 50%;}
  531. }
  532. }
  533. }
  534. .ybtn{border-top: 2rpx solid #DADADA;padding: 20rpx 18rpx;display: flex;align-items: center;
  535. .ybtns{width: 130rpx;border-radius: 6rpx;height: 52rpx;font-weight: 500;font-size: 26rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;flex: 0 0 auto;
  536. &.btn1{border: 2rpx solid #FC3838;color: #FC3838;}
  537. &.btn2{border: 2rpx solid #666666;color: #666666;}
  538. &.btn3{background-color: #0391FD;color: #ffffff;margin-left: 22rpx;}
  539. }
  540. }
  541. // 记录
  542. &.rlist{padding-top:28rpx;
  543. .rtop{position: relative;padding-left: 22rpx;
  544. .rlistl{flex: 1;
  545. image{width: 30rpx;height: 30rpx;margin-right: 18rpx;}
  546. view{font-weight: bold;font-size: 28rpx;color: #161616;}
  547. }
  548. .right{position: relative;width: 96rpx;height: 38rpx;right: 0;top: 0;
  549. image{width: 100%;height: 100%;}
  550. view{font-weight: 500;font-size: 20rpx;
  551. color: #FFFFFF;position: absolute;left: 0;top: 0;right: 0;bottom: 0;text-align: center;padding-left: 20rpx;box-sizing: border-box;line-height: 38rpx;}
  552. }
  553. }
  554. .ytop{padding-bottom: 18rpx;}
  555. .ybox{padding-bottom: 14rpx;}
  556. .rbox{padding: 0 22rpx 8rpx 22rpx;
  557. .rboxa{width: 306rpx;height: 104rpx;position: relative;margin-bottom: 20rpx;
  558. .rbg{width: 100%;height: 100%;}
  559. .rboxb{box-sizing: border-box;padding:14rpx 0 16rpx 28rpx;
  560. position: absolute;left: 0;top: 0;right: 0;bottom: 0;
  561. .tit{font-weight: 500;font-size: 26rpx;color: #161616;margin-bottom: 10rpx;}
  562. .time{font-weight: 500;font-size: 22rpx;color: #666666;
  563. image{width: 18rpx;height: 18rpx;margin-right: 14rpx;flex: 0 0 auto;}
  564. }
  565. }
  566. }
  567. }
  568. }
  569. .delbtn{font-weight: 500;font-size: 22rpx;color: #FF6969;display: flex;align-items: center;flex: 0 0 auto;
  570. image{width: 28rpx;height: 26rpx;margin-right: 8rpx;}
  571. }
  572. }
  573. // 食谱
  574. .splist{background: #FFFFFF;padding: 24rpx 28rpx 24rpx;box-sizing: border-box;box-shadow: 0px 0px 6rpx 0px #D3D3D3;border-radius: 14rpx;margin:0 32rpx 18rpx;position: relative;
  575. .sptop{margin-bottom: 12rpx;
  576. .tit{font-weight: bold;font-size: 28rpx;color: #161616;}
  577. .spr{min-width: 120rpx;height: 40rpx;background: #FFEFE8;border-radius: 20rpx;padding: 0 6rpx;flex: 0 0 auto;margin-left: 12rpx;
  578. border: 2rpx solid #FE5A0E;font-weight: 500;font-size: 22rpx;color: #FE5A0E;text-align: center;line-height: 40rpx;box-sizing: border-box;
  579. }
  580. }
  581. .sptxt{font-weight: 500;font-size: 18rpx;color: #666666;margin-bottom: 20rpx;}
  582. .spbox{position: relative;
  583. .ltit{font-weight: bold;font-size: 28rpx;color: #AAAAAA;position: relative;width: 68rpx;margin-right: 40rpx;padding-left: 4rpx;box-sizing: border-box;flex:0 0 auto;
  584. &::after{content: '';position: absolute;right: -20rpx;top: 0;bottom: 0;background: #DADADA;width: 2rpx;}
  585. }
  586. .rtit{font-size: 26rpx;color: #AAAAAA;padding: 9rpx 0;
  587. text{font-weight: bold;}
  588. }
  589. &.act{
  590. .ltit{color: #0491FD;}
  591. .rtit{color: #666666;
  592. text{color: #161616;}
  593. }
  594. }
  595. .fineshimg{width: 138rpx;height: 92rpx;position: absolute;left: 50%;top: 50%;margin-left: -69rpx;margin-top: -46rpx;}
  596. }
  597. }
  598. .menulist{margin:0 32rpx 18rpx;position: relative;background: #FFFFFF;box-sizing: border-box;box-shadow: 0px 0px 6rpx 0px #D3D3D3;border-radius: 14rpx;
  599. .mentop{padding:22rpx 20rpx 6rpx 18rpx;
  600. .mentopa{margin-bottom: 18rpx;display: flex;align-items: flex-start;}
  601. .dayimg{width: 76rpx;height: 34rpx;margin-right: 20rpx;flex: 0 0 auto;margin-top: 4rpx;}
  602. .mentit{font-weight: 500;font-size: 26rpx;color: #666666;}
  603. }
  604. .menbtn{padding: 18rpx 18rpx 14rpx;border-top: 2rpx solid #DADADA;
  605. .usetit{font-weight: bold;font-size: 22rpx;color: #AAAAAA;
  606. image{width: 26rpx;height: 26rpx;margin-right: 12rpx;flex: 0 0 auto;}
  607. &.act{color: #0391FD;}
  608. }
  609. .usebtn{font-weight: 500;font-size: 22rpx;min-width: 120rpx;height: 40rpx;border-radius: 20px;display: flex;align-items: center;justify-content: center;padding:0 6rpx;box-sizing: border-box;margin-left: 28rpx;flex: 0 0 auto;
  610. image{width: 20rpx;height: 20rpx;margin-right: 6rpx;}
  611. &.btna{border: 2rpx solid #FE5A0E;background: #FFEFE8;color: #FE5A0E;}
  612. &.btnb{border: 2rpx solid #45CB99;background: #D7F5EA;color: #45CB99;}
  613. &.btnc{border: 2rpx solid #0391FD;background: #DFF1FF;color: #0391FD;}
  614. }
  615. }
  616. .spdel{width: 132rpx;background: #EA2D2D;font-weight: bold;font-size: 26rpx;color: #FFFFFF;display: flex;align-items: center;justify-content: center;
  617. border-radius: 14rpx;position: absolute;right: -118rpx;top: 0;bottom: 0;}
  618. }
  619. .ckimgs{padding:8rpx 0 16rpx 0rpx;display: flex;align-items: center;}
  620. .cimg{
  621. width: 136rpx;height: 88rpx;margin-right: 32rpx;
  622. }
  623. .cright{width: 16rpx;height: 16rpx;flex: 0 0 auto;}
  624. </style>