search-order.vue 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. <template>
  2. <view class="search-container">
  3. <!-- <or-search :theme="themeClass" @getSearchText="getSearchText"></or-search> -->
  4. <view class="search-main">
  5. <view class="search">
  6. <view class="search-input">
  7. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  8. <input maxlength="20" focus type="text" value="" confirm-type="search" @focus="onFocus" @input="onShowClose" @confirm="subMitSearch()" placeholder="请输入商品关键词" v-model.trim="listQuery.searchWord"/>
  9. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  10. </view>
  11. <view class="search-btn" @click="subMitSearch()">搜索</view>
  12. </view>
  13. </view>
  14. <view class="search-container-history" v-if="!isShowWrapper">
  15. <view :class="'s-' + themeClass" v-if="serachRecordList.length>0">
  16. <view class="header">
  17. 搜索历史<text class="iconfont icon-shanchu" @click="confirmDetele"></text>
  18. </view>
  19. <view class="list">
  20. <view v-for="(item,index) in serachRecordList" :key="index" @click="keywordsClick(item.searchWord)">{{item.searchWord}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class=" order-container" v-if="isShowWrapper" :style="{'overflow' : 'auto','height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  25. <scroll-view class="tui-skeleton" :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower" scroll-y >
  26. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  27. <!-- 空白页 -->
  28. <empty v-if="isShowEmpty" :navbarHeight="navbarHeight"></empty>
  29. <!-- 列表 -->
  30. <view v-else class="tui-order-content">
  31. <view class="tui-order-item" v-for="(order,orderIndex) in orderList" :key="orderIndex" @click.stop="detail(order)">
  32. <view class="order-title">
  33. <view class="order-title-name">{{order.clubName ? order.clubName : ''}}</view>
  34. <view class="order-title-t">
  35. <text class="bage-buss tui-skeleton-fillet" v-if="order.orderSubmitType == 3 || order.orderSubmitType == 4">协销</text>
  36. <text class="bage-auto tui-skeleton-fillet"
  37. v-if="order.orderSubmitType == 0 || order.orderSubmitType == 1 || order.orderSubmitType == 2">
  38. 自主
  39. </text>
  40. <text class="bage-text tui-skeleton-fillet">
  41. 订单号:{{order.orderNo}}({{order.orderId}})
  42. </text>
  43. <image class="bage-icon"
  44. src="https://static.caimei365.com/app/img/icon/icon-type@3x.png"
  45. mode="widthFix"
  46. v-if="order.secondHandOrderFlag == 1">
  47. </image>
  48. </view>
  49. <view class="order-title-b">
  50. <view class="order-title-btxt tui-skeleton-fillet">下单时间:{{order.orderTime}}</view>
  51. <view class="order-title-tip tui-skeleton-fillet">{{StateExpFormat(order.status)}}</view>
  52. </view>
  53. </view>
  54. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  55. <view class="goods-title">
  56. <view v-if="shop.shopPromotion" class="floor-item-act">
  57. <view class="floor-tags">{{shop.shopPromotion.name}}</view>
  58. </view>
  59. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  60. </view>
  61. <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex">
  62. <view class="goods-pros-t">
  63. <view class="pros-img tui-skeleton-fillet">
  64. <image :src="pros.image" alt="" />
  65. <text class="tips" v-if="pros.productType ==2 || pros.productType ==1">赠品</text>
  66. </view>
  67. <view class="pros-product clearfix">
  68. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  69. <view class="productspec tui-skeleton-fillet" v-if="pros.productCategory != 2">规格:{{pros.productUnit}}</view>
  70. <view class="productprice">
  71. <view class="price tui-skeleton-fillet">
  72. <text>¥{{ pros.price | NumFormat }}</text>
  73. </view>
  74. <view class="count tui-skeleton-fillet">
  75. <text class="small">x</text>{{pros.num}}
  76. </view>
  77. </view>
  78. <view class="floor-item-act" v-if="pros.productPromotion!=null">
  79. <view v-if="PromotionsFormat(pros.productPromotion)" class="floor-tags">
  80. {{pros.productPromotion.name}}
  81. <text v-if ="pros.productPromotion!=null && pros.productPromotion.type !=3 ">
  82. :¥{{ pros.productPromotion == null ? '0.00' : pros.productPromotion.touchPrice | NumFormat }}
  83. </text>
  84. </view>
  85. <view v-else-if="pros.productPromotion.type !=3" class="floor-tags">{{pros.productPromotion.name}}</view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. </block>
  91. <view class="order-footer">
  92. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{ order.discountFee | NumFormat }}</view>
  93. <view class="order-footer-bot">
  94. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  95. <view class="money tui-skeleton-fillet" v-if="order.status==31||order.status==32||order.status==33">
  96. 已支付:<label style="color:#f94b4b ;">¥{{ order.receiptAmount | NumFormat }}</label>
  97. </view>
  98. <view class="money tui-skeleton-fillet" v-else>
  99. 待付总额:<label style="color:#f94b4b ;">¥{{ order.pendingPayments | NumFormat }}</label>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 底部button -->
  104. <order-button ref="orderButton"
  105. :status="order.status"
  106. :rechargeGoods = "order.rechargeGoods"
  107. :orderId="order.orderId"
  108. :userId="order.userId"
  109. :secondHandOrderFlag = "order.secondHandOrderFlag"
  110. @buttonConfirm="handButtonConfirm">
  111. </order-button>
  112. </view>
  113. <!--加载loadding-->
  114. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  115. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#ffffff'" :text='nomoreText'></tui-nomore>
  116. <!--加载loadding-->
  117. </view>
  118. </view>
  119. </scroll-view>
  120. </view>
  121. <!-- 分享弹窗 -->
  122. <share-alert v-if="isShareModal"
  123. :orderId="btnoRderID"
  124. @shareConfirm ='onShareAppMessage'>
  125. </share-alert>
  126. <!-- 透明模态层 -->
  127. <modal-layer v-if='isModalLayer'></modal-layer>
  128. <!-- 再来一单弹窗 -->
  129. <view class="aganBj" v-show="showAgan">
  130. <view class="alertAgan">
  131. <text class="title">{{ promptitle }}</text>
  132. <view class="goods">
  133. <view class="list" v-for="(item,index) in failList" :key="index">
  134. <image class="image-left" :src="item.image"></image>
  135. <view class="name-right">{{item.name}}</view>
  136. </view>
  137. </view>
  138. <view class="BtnAll">
  139. <view class="closebtn btn" @click="closeBtn">取消</view>
  140. <view class="cancel btn" @click="cancelBtn">确定</view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. </template>
  146. <script>
  147. import orSearch from '@/components/uni-search/or-search.vue'
  148. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  149. import tuiNomore from "@/components/tui-components/nomore/nomore"
  150. import orderButton from '@/components/cm-module/orderDetails/sellerOrderButton' //按钮
  151. import modalLayer from "@/components/modal-layer"
  152. import empty from "@/components/empty";
  153. import shareAlert from '@/components/cm-module/modelAlert/sellerShareAlert' //分享弹窗
  154. import authorize from '@/common/config/authorize.js'
  155. const defaultListQuery = {
  156. pageNum:1, // 页码
  157. pageSize:10, // 每页条数
  158. serviceProviderId:0,// 用户Id
  159. searchWord:'' // 搜索关键词
  160. };
  161. export default {
  162. components: {
  163. orSearch,
  164. tuiLoadmore,
  165. tuiNomore,
  166. orderButton,
  167. empty,
  168. shareAlert,
  169. },
  170. data() {
  171. return {
  172. listQuery:Object.assign({}, defaultListQuery),
  173. themeClass: 'block',
  174. isShowClose:false, //是否显示清空输入框图标
  175. isSearchHistory:false, //是都显示搜索历史
  176. serachRecordList:[],
  177. isShowWrapper:false,
  178. isModallayer:false,
  179. isShowEmpty:false,
  180. windowHeight: '',
  181. showSkeleton: true,
  182. userId:0,
  183. orderList: [],
  184. btnClubUserID:0,
  185. btnoRderID: 0, //点击按钮传入的的订单ID
  186. scrollTop: 0,
  187. deteleType:'',
  188. skeletonShow: true,
  189. isShareModal: false,//控制分享弹窗
  190. isCenceModal: false,//控制取消订单弹窗
  191. isShowDelModal: false,//控制删除订单弹窗
  192. isModalLayer: false,
  193. loadding: false,
  194. pullUpOn: true,
  195. hasNextPage: false,
  196. pullFlag: true,
  197. navbarHeight:'',
  198. nomoreText: '上拉显示更多',
  199. scrollHeight:'',
  200. showAgan:false,
  201. failList:[], // 再来一单可购买商品
  202. promptitle:'',
  203. aganOrderId:0
  204. }
  205. },
  206. onLoad() {
  207. this.initGetSerachRecord()
  208. },
  209. filters:{
  210. NumFormat(value) {//处理金额
  211. return Number(value).toFixed(2);
  212. },
  213. },
  214. methods:{
  215. subMitSearch() {
  216. if (this.listQuery.searchWord == '') {
  217. this.$util.msg('请输入订单编号',2000);
  218. }else{
  219. this.commodityList =[]
  220. this.getOrderDatainit()
  221. }
  222. },
  223. async initGetSerachRecord(){
  224. const userInfo = await this.$api.getStorage()
  225. this.listQuery.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  226. this.userId = userInfo.userId ? userInfo.userId : 0
  227. this.OrderService.SearchOrderHistory({userId:this.userId}).then(response =>{
  228. this.serachRecordList = response.data
  229. if(this.serachRecordList.length>0){
  230. this.isSearchHistory = true
  231. }else{
  232. this.isSearchHistory = false
  233. }
  234. }).catch(error =>{
  235. this.$util.msg(error.msg,2000)
  236. })
  237. },
  238. onShowClose () { //输入框失去焦点时触发
  239. this.inputEmpty(this.listQuery.searchWord)
  240. },
  241. onFocus () { //输入框获取焦点时触发
  242. this.inputEmpty(this.listQuery.searchWord)
  243. this.initGetSerachRecord()
  244. },
  245. delInputText () { //清除输入框内容
  246. this.listQuery.searchWord = ''
  247. this.isShowClose = false
  248. this.isShowWrapper = false
  249. this.inputEmpty(this.listQuery.searchWord)
  250. this.initGetSerachRecord()
  251. },
  252. keywordsClick (item) { //关键词搜索与历史搜索
  253. this.listQuery.searchWord = item;
  254. this.isShowClose = true;
  255. this.subMitSearch();
  256. },
  257. confirmDetele () {//清空历史记录
  258. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  259. this.OrderService.ClearOrderHistory({userId:this.userId}).then(response =>{
  260. this.$util.msg('删除记录成功',2000,true,'success')
  261. this.serachRecordList=[]
  262. }).catch(error =>{
  263. this.$util.msg(error.msg,2000)
  264. })
  265. })
  266. },
  267. inputEmpty(val){
  268. this.isShowWrapper = false
  269. if(val != ''){
  270. this.isShowClose = true
  271. }else{
  272. this.isShowClose = false
  273. }
  274. },
  275. getOrderDatainit(index,source){
  276. /**
  277. * @订单初始化加载 仅加载第一页码
  278. * @param:searchWord(关键词)
  279. * @param:serviceProviderId(用户ID)
  280. * @param:pageNum(页码数)
  281. * @param:listQuery.pageSize(每页条数)
  282. * @param:organizeID(全局变量组织ID)
  283. */
  284. this.SellerService.getSellerOrderList(this.listQuery).then(response =>{
  285. this.isShowWrapper = true
  286. this.showSkeleton = true
  287. let data = response.data;
  288. if(data.list && data.list.length > 0){
  289. let filrerData = data.list.filter(item=>{
  290. //添加不同状态下订单的表现形式
  291. item = Object.assign(item, this.StateExpFormat(item.state));
  292. return item;
  293. });
  294. this.orderList =[];
  295. filrerData.forEach(item=>{
  296. this.orderList.push(item);
  297. })
  298. this.hasNextPage = data.hasNextPage;
  299. if(this.hasNextPage){
  300. this.pullUpOn = false
  301. this.nomoreText = '上拉显示更多'
  302. }else{
  303. if(this.orderList.length < 2){
  304. this.pullUpOn = true
  305. }else{
  306. this.pullUpOn = false
  307. this.nomoreText = '已至底部'
  308. }
  309. }
  310. this.isShowEmpty = false
  311. }else{
  312. this.isShowEmpty = true
  313. }
  314. }).catch(error =>{
  315. this.$util.msg(error.msg,2000)
  316. })
  317. },
  318. getOnReachBottomData(index){//上拉加载
  319. this.listQuery.pageNum+=1
  320. this.SellerService.getSellerOrderList(this.listQuery).then(response =>{
  321. let data = response.data
  322. this.hasNextPage = data.hasNextPage;
  323. this.orderList = this.orderList.concat(data.list)
  324. this.pullFlag = false;// 防上拉暴滑
  325. setTimeout(()=>{this.pullFlag = true;},500)
  326. if(this.hasNextPage){
  327. this.pullUpOn = false
  328. this.nomoreText = '上拉显示更多'
  329. }else{
  330. this.loadding = false
  331. this.pullUpOn = false
  332. this.nomoreText = '已至底部'
  333. }
  334. }).catch(error =>{
  335. this.$util.msg(error.msg,2000)
  336. })
  337. },
  338. scrolltolower() {
  339. if(this.hasNextPage){
  340. this.loadding = true
  341. this.pullUpOn = true
  342. this.showSkeleton = false
  343. this.getOnReachBottomData();
  344. }
  345. },
  346. detail(order) {//订单详情跳转
  347. this.isModalLayer = true;
  348. this.$api.navigateTo(`/pages/seller/order/order-details?type=seacrch&orderId=${order.orderId}&userId=${order.userId}`)
  349. },
  350. handButtonConfirm(data) {//获取点击
  351. this.handShowAlert(data)
  352. this.btnoRderID = data.orderId
  353. },
  354. handShowAlert(data) {//执行
  355. switch(data.type){
  356. case 'query':
  357. this.isModalLayer = true;
  358. this.$api.navigateTo('/pages/user/order/order-logistics?orderID='+data.orderId)
  359. break
  360. case 'delete':
  361. this.handOrderDetele(data.orderId);
  362. break
  363. case 'cancel':
  364. this.handCenceConfirm(data.orderId)
  365. break
  366. case 'confirm':
  367. this.handOrderConfirm(data.orderId);
  368. break
  369. case 'again':
  370. this.handOrderAgain(data.orderId);
  371. }
  372. },
  373. handOrderAgain(orderId){// 再来一单
  374. this.aganOrderId = orderId;
  375. this.SellerService.SellerCreateOrderAgain(
  376. {
  377. confirmFlag:0,
  378. orderId:this.aganOrderId,
  379. serviceProviderId:this.listQuery.serviceProviderId
  380. }
  381. ).then(res =>{
  382. if(res.code==0){
  383. this.$api.setStorage('orderUserInfo',{clubID:res.data.clubId,againBuyProductIds:res.data.againBuyProductIds})
  384. this.$api.navigateTo('/pages/seller/cart/cart');
  385. }
  386. }).catch(error =>{
  387. if(error.code== -3){
  388. this.showAgan = true
  389. this.promptitle = error.msg
  390. this.failList = error.data
  391. }else if(error.code== -2){
  392. this.$util.modal('',error.msg,'确定','',false,() =>{})
  393. }else{
  394. this.$util.msg(error.msg,2000)
  395. }
  396. })
  397. },
  398. closeBtn(){//
  399. this.showAgan = false;
  400. },
  401. cancelBtn(){// 再来一单弹窗
  402. this.SellerService.SellerCreateOrderAgain(
  403. {
  404. serviceProviderId:this.listQuery.serviceProviderId,
  405. orderId:this.aganOrderId,
  406. confirmFlag:1,
  407. }
  408. ).then(res =>{
  409. if(res.code==0){
  410. this.$api.navigateTo('/pages/seller/cart/cart');
  411. this.showAgan = false;
  412. }
  413. })
  414. },
  415. handOrderConfirm (orderId){//确认订单
  416. this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
  417. this.OrderService.AffirmOrder({orderId:orderId}).then(response =>{
  418. this.$util.msg(response.msg,2000,true,'success');
  419. setTimeout(() => {
  420. this.getOrderDatainit()
  421. },2000)
  422. }).catch(error =>{
  423. this.$util.msg(error.msg,2000)
  424. })
  425. })
  426. },
  427. handOrderDetele(orderId){//删除订单
  428. this.$util.modal('提示','确认删除该订单吗?','确定','取消',true,() =>{
  429. this.OrderService.DeleteOrder({orderId:orderId}).then(response =>{
  430. this.$util.msg(response.msg,2000,true,'success');
  431. setTimeout(() => {
  432. this.getOrderDatainit()
  433. },2000)
  434. }).catch(error =>{
  435. this.$util.msg(error.msg,2000)
  436. })
  437. })
  438. },
  439. handCenceConfirm(orderId){//取消订单
  440. this.$util.modal('提示','确认取消该订单吗?','确定','取消',true,() =>{
  441. this.OrderService.CancelOrder({orderId:orderId}).then(response =>{
  442. this.$util.msg(response.msg,2000,true,'success');
  443. setTimeout(() => {
  444. this.getOrderDatainit()
  445. },2000)
  446. }).catch(error =>{
  447. this.$util.msg(error.msg,2000)
  448. })
  449. })
  450. },
  451. onShareAppMessage (res){//分享转发
  452. this.isShareModal = false
  453. if (res.from === 'button') {// 来自页面内转发按钮
  454. }
  455. return {
  456. title: '您有新的分享订单,快来查看吧~',
  457. path: `/pages/user/order/order-sharelogin?orderId=${this.btnoRderID}&userId=${this.btnClubUserID}&serviceProviderId=${this.serviceProviderId}`,
  458. imageUrl:'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  459. }
  460. },
  461. PromotionsFormat(promo){//促销活动类型数据处理
  462. if(promo!=null){
  463. if(promo.type == 1 && promo.mode == 1){
  464. return true
  465. }else{
  466. return false
  467. }
  468. }
  469. return false
  470. },
  471. //订单状态文字和颜色
  472. StateExpFormat (state){
  473. let stateText = '',
  474. stateTextObject={
  475. 4:'交易完成',
  476. 5:'订单完成',
  477. 6:'已关闭',
  478. 7:'交易全退',
  479. 77:'交易全退',
  480. 11:'待付款待发货',
  481. 12:'待付款部分发货',
  482. 13:'待付款已发货',
  483. 21:'部分付款待发货',
  484. 22:'部分付款部分发货',
  485. 23:'部分付款已发货',
  486. 31:'已付款待发货',
  487. 32:'已付款部分发货',
  488. 33:'已付款已发货',
  489. 111:'待付款待发货',
  490. }
  491. Object.keys(stateTextObject).forEach(key => {
  492. if(key == state){
  493. stateText = stateTextObject[key]
  494. }
  495. })
  496. return stateText;
  497. },
  498. orderPriceToFixed (n){
  499. let price ='';
  500. price = n.toFixed(2);
  501. return price
  502. },
  503. setScrollHeight() {
  504. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  505. this.windowHeight = windowHeight - 1;
  506. this.scrollHeight = windowHeight - 1;
  507. }
  508. },
  509. onPageScroll(e) {
  510. this.scrollTop = e.scrollTop;
  511. },
  512. onShow() {
  513. this.setScrollHeight();
  514. this.$api.getStorage().then((resolve) =>{
  515. this.serviceProviderId = resolve.serviceProviderId
  516. })
  517. }
  518. }
  519. </script>
  520. <style lang="scss">
  521. @import "@/uni.scss";
  522. page{
  523. background-color: #F7F7F7 !important;
  524. }
  525. .search{
  526. width: 702rpx;
  527. height: 70rpx;
  528. padding: 12rpx 24rpx;
  529. border-bottom: 1px solid #F0F0F0;
  530. position: fixed;
  531. top: 0;
  532. left: 0;
  533. background: #FFFFFF;
  534. z-index: 1001;
  535. .search-input{
  536. width: 448rpx;
  537. height: 70rpx;
  538. padding: 0 68rpx;
  539. line-height: 70rpx;
  540. border-radius: 40rpx;
  541. position: relative;
  542. background: #F0F0F0;
  543. float: left;
  544. .icon-iconfonticonfontsousuo1{
  545. font-size: 36rpx;
  546. color: #8A8A8A;
  547. position: absolute;
  548. left: 24rpx;
  549. z-index: 10;
  550. }
  551. .icon-shanchu1{
  552. font-size: 36rpx;
  553. color: #8A8A8A;
  554. position: absolute;
  555. right: 24rpx;
  556. top: 0;
  557. padding: 0 10rpx;
  558. z-index: 10;
  559. }
  560. input{
  561. width: 448rpx;
  562. height: 70rpx;
  563. background-color: #F0F0F0;
  564. font-size: 26rpx;
  565. }
  566. }
  567. .search-btn{
  568. width: 118rpx;
  569. height: 70rpx;
  570. line-height: 70rpx;
  571. color: $color-system;
  572. font-size: 30rpx;
  573. text-align: center;
  574. float: left;
  575. }
  576. .voice-icon{
  577. width: 36rpx;
  578. height: 36rpx;
  579. padding: 16rpx 20rpx 16rpx 0;
  580. position: absolute;
  581. left: 16rpx;
  582. top: 4rpx;
  583. z-index: 10;
  584. }
  585. }
  586. .search-container{
  587. padding-top: 106rpx;
  588. }
  589. .s-block{
  590. background: #FFFFFF;
  591. .header{
  592. font-size: 32rpx;
  593. padding:40rpx 24rpx 22rpx 24rpx;
  594. line-height: 42rpx;
  595. font-size: 30rpx;
  596. font-weight: bold;
  597. position: relative;
  598. .icon-shanchu{
  599. font-size: 36rpx;
  600. color: #333333;
  601. float: right;
  602. padding: 0 10rpx;
  603. z-index: 10;
  604. font-weight: normal;
  605. }
  606. }
  607. .list{
  608. display: flex;
  609. flex-wrap: wrap;
  610. padding-bottom: 40rpx;
  611. view{
  612. color: #8A8A8A;
  613. font-size: 24rpx;
  614. box-sizing: border-box;
  615. text-align: center;
  616. height: 48rpx;
  617. line-height: 48rpx;
  618. border-radius: 24rpx;
  619. margin:12rpx;
  620. padding:.0 30rpx;
  621. overflow: hidden;
  622. white-space: nowrap;
  623. text-overflow: ellipsis;
  624. background-color: #F3F3F3;
  625. }
  626. }
  627. }
  628. .s-circle{
  629. margin-top: 30rpx;
  630. .header{
  631. font-size: 32rpx;
  632. padding: 30rpx;
  633. border-bottom: 2rpx solid #F9F9F9;
  634. position: relative;
  635. image{
  636. width: 36rpx;
  637. height: 36rpx;
  638. padding: 10rpx;
  639. position: absolute;
  640. right: 40rpx;
  641. top: 24rpx;
  642. }
  643. }
  644. .list{
  645. display: flex;
  646. flex-wrap: wrap;
  647. padding: 0 30rpx 20rpx;
  648. view{
  649. padding: 8rpx 30rpx;
  650. margin: 20rpx 30rpx 0 0;
  651. font-size: 28rpx;
  652. color: #8A8A8A;
  653. background-color: #F7F7F7;
  654. box-sizing: border-box;
  655. text-align: center;
  656. border-radius: 20rpx;
  657. }
  658. }
  659. }
  660. .wanted-block{
  661. margin-top: 30rpx;
  662. .header{
  663. font-size: 32rpx;
  664. padding: 30rpx;
  665. }
  666. .list{
  667. display: flex;
  668. flex-wrap: wrap;
  669. view{
  670. width: 50%;
  671. color: #8A8A8A;
  672. font-size: 28rpx;
  673. box-sizing: border-box;
  674. text-align: center;
  675. padding: 20rpx 0;
  676. border-top: 2rpx solid #FFF;
  677. border-left: 2rpx solid #FFF;
  678. background-color: #F7F7F7;
  679. overflow: hidden;
  680. white-space: nowrap;
  681. text-overflow: ellipsis;
  682. }
  683. }
  684. }
  685. .wanted-circle{
  686. margin-top: 30rpx;
  687. .header{
  688. font-size: 32rpx;
  689. padding: 30rpx;
  690. }
  691. .list{
  692. display: flex;
  693. flex-wrap: wrap;
  694. padding: 0 30rpx 20rpx;
  695. view{
  696. padding: 8rpx 30rpx;
  697. margin: 20rpx 30rpx 0 0;
  698. font-size: 28rpx;
  699. color: #8A8A8A;
  700. background-color: #F7F7F7;
  701. box-sizing: border-box;
  702. text-align: center;
  703. border-radius: 20rpx;
  704. }
  705. }
  706. }
  707. .order-container {
  708. scroll-view {
  709. height: 100%;
  710. overflow: scroll;
  711. }
  712. }
  713. .container {
  714. padding-bottom: env(safe-area-inset-bottom);
  715. height: auto;
  716. position: relative;
  717. }
  718. .tui-order-content{
  719. width: 100%;
  720. height: auto;
  721. }
  722. .tui-order-list {
  723. width: 100%;
  724. position: relative;
  725. }
  726. .tui-order-item {
  727. display: flex;
  728. flex-direction: column;
  729. width: 702rpx;
  730. padding:20rpx 24rpx 0 24rpx;
  731. background: #fff;
  732. border-bottom: 20rpx solid #F7F7F7;
  733. }
  734. .order-title{
  735. width: 100%;
  736. height: auto;
  737. .order-title-name{
  738. width: 100%;
  739. height: 72rpx;
  740. border-bottom: 1px solid #F7F7F7;
  741. line-height: 72rpx;
  742. text-align: left;
  743. font-size: $font-size-28;
  744. color: #333333;
  745. }
  746. .order-title-t{
  747. width: 100%;
  748. height: 68rpx;
  749. float: left;
  750. line-height: 68rpx;
  751. position: relative;
  752. .bage-icon{
  753. width: 50rpx;
  754. height: 50rpx;
  755. display: block;
  756. position: absolute;
  757. right: 0;
  758. top: 9rpx;
  759. }
  760. .bage-buss{
  761. display: inline-block;
  762. width: 72rpx;
  763. height: 30rpx;
  764. background:radial-gradient(circle,rgba(255,39,180,1) 0%,rgba(193,77,245,1) 100%);
  765. border-radius: 4rpx;
  766. line-height: 30rpx;
  767. font-size: $font-size-22;
  768. text-align: center;
  769. color: #FFFFFF;
  770. }
  771. .bage-auto{
  772. display: inline-block;
  773. width: 72rpx;
  774. height: 30rpx;
  775. background:radial-gradient(circle,rgba(255,180,39,1) 0%,rgba(245,142,77,1) 100%);
  776. border-radius: 4rpx;
  777. line-height: 30rpx;
  778. font-size: $font-size-22;
  779. text-align: center;
  780. color: #FFFFFF;
  781. }
  782. .bage-text{
  783. display: inline-block;
  784. font-size: $font-size-28;
  785. line-height: 68rpx;
  786. text-align: left;
  787. color: $color-system;
  788. margin-left: 10rpx;
  789. }
  790. }
  791. .order-title-b{
  792. width: 100%;
  793. height: 40rpx;
  794. float: left;
  795. margin-top: 8rpx;
  796. .order-title-btxt{
  797. float: left;
  798. font-size: $font-size-28;
  799. line-height: 40rpx;
  800. color: #999999;
  801. text-align: lef
  802. }
  803. .order-title-tip{
  804. float: right;
  805. font-size: $font-size-28;
  806. line-height: 40rpx;
  807. text-align: right;
  808. color: #FF2A2A;
  809. }
  810. }
  811. }
  812. .goods-title{
  813. width: 100%;
  814. height: 56rpx;
  815. float: left;
  816. margin-top:10rpx;
  817. .floor-item-act{
  818. height: 56rpx;
  819. text-align: center;
  820. box-sizing: border-box;
  821. float: left;
  822. padding: 10rpx 0;
  823. margin-right: 12rpx;
  824. .floor-tags{
  825. height: 28rpx;
  826. border-radius: 6rpx;
  827. background-color: #FFFFFF;
  828. line-height: 28rpx;
  829. color: $color-system;
  830. text-align: center;
  831. display: inline-block;
  832. padding:0 16rpx;
  833. font-size: $font-size-20;
  834. border: 1px solid #E15616;
  835. float: left;
  836. }
  837. }
  838. .title-text{
  839. width: 400rpx;
  840. overflow: hidden;
  841. text-overflow:ellipsis;
  842. white-space: nowrap;
  843. float: left;
  844. font-size: $font-size-28;
  845. color: $text-color;
  846. text-align: left;
  847. line-height: 56rpx;
  848. font-weight: bold;
  849. }
  850. }
  851. .goods-item{
  852. width: 100%;
  853. height: auto;
  854. }
  855. .goods-pros-t{
  856. display: flex;
  857. align-items: center;
  858. width: 100%;
  859. height: 217rpx;
  860. padding:24rpx 0;
  861. .pros-img{
  862. width: 210rpx;
  863. height: 100%;
  864. border-radius: 10rpx;
  865. margin:0 26rpx 0 0;
  866. border:1px solid #f3f3f3;
  867. image{
  868. width: 100%;
  869. height: 100%;
  870. border-radius: 10rpx;
  871. }
  872. }
  873. }
  874. .pros-product{
  875. width: 460rpx;
  876. height: 100%;
  877. line-height: 36rpx;
  878. font-size: $font-size-26;
  879. position: relative;
  880. float: left;
  881. .producttitle{
  882. width: 100%;
  883. display: inline-block;
  884. height: auto;
  885. text-overflow:ellipsis;
  886. display: -webkit-box;
  887. word-break: break-all;
  888. -webkit-box-orient: vertical;
  889. -webkit-line-clamp: 2;
  890. overflow: hidden;
  891. margin-bottom: 8rpx;
  892. }
  893. .productspec{
  894. height: 36rpx;
  895. color: #999999;
  896. }
  897. .productprice{
  898. height: 48rpx;
  899. width: 100%;
  900. float: left;
  901. .price{
  902. line-height: 48rpx;
  903. font-size: $font-size-28;
  904. width: 48%;
  905. color: #FF2A2A;
  906. float: left;
  907. font-weight: bold;
  908. }
  909. .count{
  910. height: 100%;
  911. float: right;
  912. position: relative;
  913. .small{
  914. color: #666666;
  915. }
  916. }
  917. }
  918. .floor-item-act{
  919. width: 100%;
  920. height: 56rpx;
  921. text-align: center;
  922. box-sizing: border-box;
  923. float: left;
  924. padding:0 0 10rpx 0;
  925. .floor-tags{
  926. height: 28rpx;
  927. border-radius: 6rpx;
  928. background-color: #FFFFFF;
  929. line-height: 28rpx;
  930. color: $color-system;
  931. text-align: center;
  932. display: inline-block;
  933. padding:0 16rpx;
  934. font-size: $font-size-20;
  935. border: 1px solid #E15616;
  936. float: left;
  937. }
  938. }
  939. }
  940. .order-footer{
  941. width: 100%;
  942. height: 78rpx;
  943. float: left;
  944. .order-footer-top{
  945. width: 100%;
  946. height: 34rpx;
  947. line-height: 34rpx;
  948. font-size: $font-size-24;
  949. color: #999999;
  950. text-align: right;
  951. }
  952. .order-footer-bot{
  953. width: 100%;
  954. float: left;
  955. height: 48rpx;
  956. line-height: 48rpx;
  957. font-size: $font-size-28;
  958. font-weight: bold;
  959. color: $text-color;
  960. .count{
  961. width: 50%;
  962. float: left;
  963. text-align: left;
  964. }
  965. .money{
  966. width: 50%;
  967. float: right;
  968. text-align: right;
  969. }
  970. }
  971. }
  972. .aganBj {
  973. position: fixed;
  974. left: 0;
  975. top: 0;
  976. bottom: 0;
  977. width: 100%;
  978. height: 100%;
  979. background-color: rgba(0, 0, 0, .5);
  980. z-index: 999999;
  981. .alertAgan {
  982. position: absolute;
  983. top: 50%;
  984. left: 50%;
  985. transform: translate(-50%, -50%);
  986. width:580rpx;
  987. background-color: #fff;
  988. border-radius: 16rpx;
  989. .title{
  990. font-size: 30rpx;
  991. color: #333333;
  992. line-height: 42rpx;
  993. padding: 30rpx;
  994. display: block;
  995. }
  996. .goods{
  997. padding: 0 30rpx;
  998. .list{
  999. padding: 10px 0;
  1000. border-bottom: 1rpx solid #e1e1e1;
  1001. margin: 10rpx 0;
  1002. .image-left{
  1003. width: 86rpx;
  1004. height: 86rpx;
  1005. border: 2rpx solid #e1e1e1;
  1006. border-radius: 6rpx;
  1007. display: inline-block;
  1008. vertical-align: middle;
  1009. }
  1010. .name-right{
  1011. display: inline-block;
  1012. width: 416rpx;
  1013. margin-left: 15rpx;
  1014. font-size: 26rpx;
  1015. color: #666666;
  1016. vertical-align: middle;
  1017. word-break: break-all;
  1018. overflow: hidden;
  1019. text-overflow: ellipsis;
  1020. display: -webkit-inline-box;
  1021. -webkit-line-clamp: 2;
  1022. -webkit-box-orient: vertical;
  1023. }
  1024. }
  1025. }
  1026. .BtnAll{
  1027. margin-top: 30rpx;
  1028. .btn{
  1029. display: inline-block;
  1030. width: 290rpx;
  1031. height: 90rpx;
  1032. line-height: 90rpx;
  1033. text-align: center;
  1034. &.closebtn{
  1035. border-radius: 0px 0px 0px 10px;
  1036. color:#999999 ;
  1037. background: #efefef;
  1038. }
  1039. &.cancel{
  1040. border-radius: 0px 0px 8px 0px;
  1041. background: $btn-confirm;
  1042. color: #fff;
  1043. }
  1044. }
  1045. }
  1046. }
  1047. }
  1048. </style>