search-order.vue 27 KB

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