search-order.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026
  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. }
  825. .title-text{
  826. width: 400rpx;
  827. overflow: hidden;
  828. text-overflow:ellipsis;
  829. white-space: nowrap;
  830. float: left;
  831. font-size: $font-size-28;
  832. color: $text-color;
  833. text-align: left;
  834. line-height: 56rpx;
  835. font-weight: bold;
  836. }
  837. }
  838. .goods-item{
  839. width: 100%;
  840. height: auto;
  841. }
  842. .goods-pros-t{
  843. display: flex;
  844. align-items: center;
  845. width: 100%;
  846. height: 217rpx;
  847. padding:24rpx 0;
  848. .pros-img{
  849. width: 210rpx;
  850. height: 100%;
  851. border-radius: 10rpx;
  852. margin:0 26rpx 0 0;
  853. border:1px solid #f3f3f3;
  854. image{
  855. width: 100%;
  856. height: 100%;
  857. border-radius: 10rpx;
  858. }
  859. }
  860. }
  861. .pros-product{
  862. width: 460rpx;
  863. height: 100%;
  864. line-height: 36rpx;
  865. font-size: $font-size-26;
  866. position: relative;
  867. float: left;
  868. .producttitle{
  869. width: 100%;
  870. display: inline-block;
  871. height: auto;
  872. text-overflow:ellipsis;
  873. display: -webkit-box;
  874. word-break: break-all;
  875. -webkit-box-orient: vertical;
  876. -webkit-line-clamp: 2;
  877. overflow: hidden;
  878. margin-bottom: 8rpx;
  879. }
  880. .productspec{
  881. height: 36rpx;
  882. color: #999999;
  883. }
  884. .productprice{
  885. height: 48rpx;
  886. width: 100%;
  887. float: left;
  888. .price{
  889. line-height: 48rpx;
  890. font-size: $font-size-28;
  891. width: 48%;
  892. color: #FF2A2A;
  893. float: left;
  894. font-weight: bold;
  895. }
  896. .count{
  897. height: 100%;
  898. float: right;
  899. position: relative;
  900. .small{
  901. color: #666666;
  902. }
  903. }
  904. }
  905. .floor-item-act{
  906. width: 100%;
  907. height: 56rpx;
  908. text-align: center;
  909. box-sizing: border-box;
  910. float: left;
  911. padding:0 0 10rpx 0;
  912. }
  913. }
  914. .order-footer{
  915. width: 100%;
  916. height: 78rpx;
  917. float: left;
  918. .order-footer-top{
  919. width: 100%;
  920. height: 34rpx;
  921. line-height: 34rpx;
  922. font-size: $font-size-24;
  923. color: #999999;
  924. text-align: right;
  925. }
  926. .order-footer-bot{
  927. width: 100%;
  928. float: left;
  929. height: 48rpx;
  930. line-height: 48rpx;
  931. font-size: $font-size-28;
  932. font-weight: bold;
  933. color: $text-color;
  934. .count{
  935. width: 50%;
  936. float: left;
  937. text-align: left;
  938. }
  939. .money{
  940. width: 50%;
  941. float: right;
  942. text-align: right;
  943. }
  944. }
  945. }
  946. .aganBj {
  947. position: fixed;
  948. left: 0;
  949. top: 0;
  950. bottom: 0;
  951. width: 100%;
  952. height: 100%;
  953. background-color: rgba(0, 0, 0, .5);
  954. z-index: 999999;
  955. .alertAgan {
  956. position: absolute;
  957. top: 50%;
  958. left: 50%;
  959. transform: translate(-50%, -50%);
  960. width:580rpx;
  961. background-color: #fff;
  962. border-radius: 16rpx;
  963. .title{
  964. font-size: 30rpx;
  965. color: #333333;
  966. line-height: 42rpx;
  967. padding: 30rpx;
  968. display: block;
  969. }
  970. .goods{
  971. padding: 0 30rpx;
  972. .list{
  973. padding: 10px 0;
  974. border-bottom: 1rpx solid #e1e1e1;
  975. margin: 10rpx 0;
  976. .image-left{
  977. width: 86rpx;
  978. height: 86rpx;
  979. border: 2rpx solid #e1e1e1;
  980. border-radius: 6rpx;
  981. display: inline-block;
  982. vertical-align: middle;
  983. }
  984. .name-right{
  985. display: inline-block;
  986. width: 416rpx;
  987. margin-left: 15rpx;
  988. font-size: 26rpx;
  989. color: #666666;
  990. vertical-align: middle;
  991. word-break: break-all;
  992. overflow: hidden;
  993. text-overflow: ellipsis;
  994. display: -webkit-inline-box;
  995. -webkit-line-clamp: 2;
  996. -webkit-box-orient: vertical;
  997. }
  998. }
  999. }
  1000. .BtnAll{
  1001. margin-top: 30rpx;
  1002. .btn{
  1003. display: inline-block;
  1004. width: 290rpx;
  1005. height: 90rpx;
  1006. line-height: 90rpx;
  1007. text-align: center;
  1008. &.closebtn{
  1009. border-radius: 0px 0px 0px 10px;
  1010. color:#999999 ;
  1011. background: #efefef;
  1012. }
  1013. &.cancel{
  1014. border-radius: 0px 0px 8px 0px;
  1015. background: $btn-confirm;
  1016. color: #fff;
  1017. }
  1018. }
  1019. }
  1020. }
  1021. }
  1022. </style>