OrderList.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. <template>
  2. <!--
  3. 本页面模板教程:https://ext.dcloud.net.cn/plugin?id=2672
  4. uni-list 文档:https://ext.dcloud.net.cn/plugin?id=24
  5. uniCloud 文档:https://uniapp.dcloud.io/uniCloud/README
  6. unicloud-db 组件文档:https://uniapp.dcloud.io/uniCloud/unicloud-db
  7. DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema
  8. -->
  9. <view class="">
  10. <customNav :shownav="false"></customNav>
  11. <view class="toptalbarCtv" :style="{top: statusBarHeight+'rpx'}">
  12. <view v-if="!iszhongwen" class="toptalbar">
  13. <view v-for="(item,index) in tableList">
  14. <view :class="index==toptableindex?'tableLab textfontB4 tableselect':'tableLab textfontS1'">
  15. <text @click="tableselct(item.value,index)">{{item.text}}</text>
  16. </view>
  17. </view>
  18. </view>
  19. <view v-if="iszhongwen" class="toptalbar">
  20. <view v-for="(item,index) in tableList">
  21. <view :class="index==toptableindex?'tableLabzh textfontB4 tableselect':'tableLabzh textfontS1'">
  22. <text @click="tableselct(item.value,index)">{{item.text}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="list">
  28. <!-- 刷新页面后的顶部提示框 -->
  29. <!-- 当前弹出内容没有实际逻辑 ,可根据当前业务修改弹出提示 -->
  30. <view class="tips" :class="{ 'tips-ani': tipShow }">{{$t('index.liebiaogengxin')}}</view>
  31. <!--
  32. <unicloud-db ref="udb" v-slot:default="{data, loading, error, options}" :options="formData" :collection="collection"
  33. :field="field" @load="load">
  34. -->
  35. <!-- 基于 uni-list 的页面布局 -->
  36. <uni-list>
  37. <!-- to 属性携带参数跳转详情页面,当前只为参考 -->
  38. <uni-list-item :border="true" class="uni-list-item--waterfall" v-for="(item,index) in orderlist"
  39. :key="index">
  40. <view slot="body" class="shop">
  41. <view v-if="item.state!=0&&item.store" class="item_content2">
  42. <view class="buyBT" style="margin-bottom: 10rpx;">
  43. <view class="buyBTL" @click="gotoDetail(item.ddId)">
  44. <image style="width: 36rpx;margin-right: 6rpx;" src="/static/images/spgl@3x.png"
  45. mode="widthFix"></image>
  46. <text class="dianpuming">{{item.store.posName}}</text>
  47. </view>
  48. <text class="stateText">{{getstate(item.state,item.type)}}</text>
  49. </view>
  50. <view class="buyct">
  51. <myImage class="buyimage" :mysrc="item.store.image" mymode="scaleToFill"
  52. v-on:Emyimageclick="gotoDetail(item.ddId)"></myImage>
  53. <view class="msText">
  54. <view class="item_content2" @click="gotoDetail(item.ddId)">
  55. <view class="buyBTL">
  56. <image class="xingxing" src="/static/images/time@3x.png" mode="widthFix">
  57. </image>
  58. <text class="pingfentext">{{item.cretim}}</text>
  59. </view>
  60. <view class="buyBTL">
  61. <text class="pingfentext">{{$t('order.danhao')}}: {{item.ddId}}</text>
  62. </view>
  63. </view>
  64. <view class="buyBTL" @click="gotoDetail(item.ddId)">
  65. <view v-for="itemT in item.food">
  66. <text class="spnametext">{{itemT.name}}</text>
  67. </view>
  68. </view>
  69. <view class="buyBT" @click="gotoDetail(item.ddId)">
  70. <text class="pingfentext">{{$t('order.gong')}} {{item.food.length}}
  71. {{$t('order.jian')}}</text>
  72. <text class="pingfentext" style="margin-left: 20rpx;">{{$t('order.jiner')}}:
  73. {{$formPr(item.amount)}}{{$t('locale.huobidw')}}</text>
  74. </view>
  75. <view v-if="item.collectPayment==0" class="buyBTR">
  76. <!-- <text v-if="item.state==1" class="youhuixinxi">{{$t('order.tuikuan')}}</text> -->
  77. <!-- <text v-if="item.collectPayment==1" class="youhuixinxi">{{$t('index.huodaofukan')}}</text> -->
  78. <!-- <text v-if="item.state>=1&&item.state<5" class="youhuixinxi" @click="dowithdingdan(6,item.id,item.ddId)">{{$t('order.shenqingtuikuan')}}</text> -->
  79. </view>
  80. <view v-if="item.collectPayment==1" class="buyBTR">
  81. <!-- <text v-if="item.state==1" class="youhuixinxi">{{$t('order.tuikuan')}}</text> -->
  82. <text class="youhuixinxi">{{$t('index.huodaofukan')}}</text>
  83. <!-- <text v-if="item.state>=1&&item.state<5" class="youhuixinxi" @click="dowithdingdan(6,item.id,item.ddId)">{{$t('order.shenqingtuikuan')}}</text> -->
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view v-if="item.state==0&&item.store" class="item_content2">
  89. <myImage class="storeimage" :mysrc="item.store.image" mymode="scaleToFill"
  90. v-on:Emyimageclick="gotoDetail(item.ddId)"></myImage>
  91. <view class="buyct" style="margin-top: 10rpx;">
  92. <view class="msText">
  93. <view class="buyBTL" @click="gotoDetail(item.ddId)">
  94. <image style="width: 36rpx;margin-right: 6rpx;" src="/static/images/spgl@3x.png"
  95. mode="widthFix"></image>
  96. <text class="dianpuming">{{item.store.posName}}</text>
  97. </view>
  98. <view class="buyBTL" @click="gotoDetail(item.ddId)">
  99. <view v-for="itemT in item.food">
  100. <text class="spnametext">{{itemT.name}}</text>
  101. </view>
  102. </view>
  103. <view class="buyBT" @click="gotoDetail(item.ddId)">
  104. <text
  105. class="pingfentext">{{$t('order.gong')}}{{item.food.length}}{{$t('order.jian')}}</text>
  106. <text class="pingfentext" style="margin-left: 20rpx;">{{$t('order.jiner')}}:
  107. {{$formPr(item.amount)}}{{$t('locale.huobidw')}}</text>
  108. </view>
  109. <view class="buyBT" @click="gotoDetail(item.ddId)">
  110. <text class="pingfentext">{{$t('order.zhifutishi')}}</text>
  111. </view>
  112. <view class="buyBTR">
  113. <text v-if="item.state==0" class="youhuixinxi"
  114. @click="dowithdingdan(10,item.id,item.ddId)">{{$t('order.quxiaodingdan')}}</text>
  115. <text v-if="item.state==0&&item.collectPayment==0" class="quzhifuText"
  116. @click="dowithdingdan(1,item.id,item.ddId)">{{$t('order.quzhifu')}}</text>
  117. <text v-if="item.collectPayment==1"
  118. class="youhuixinxi">{{$t('index.huodaofukan')}}</text>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </uni-list-item>
  125. </uni-list>
  126. <!-- 通过 loadMore 组件实现上拉加载效果,如需自定义显示内容,可参考:https://ext.dcloud.net.cn/plugin?id=29 -->
  127. <uni-load-more v-if="loading || status === 'noMore' " :status="status" />
  128. <!--</unicloud-db>-->
  129. </view>
  130. <uni-popup style="z-index: 999;" ref="popzhif" type="center" :isMaskClick="true" :safeArea="true">
  131. <view class="contentColumnC" style="width: 100%;background-color: whitesmoke;">
  132. <view style="height: 40rpx;"></view>
  133. <text>{{$t('order.zhifufangshi')}}</text>
  134. <text class="zhifbut" style="background-color: deeppink;"
  135. @click="huodaofukuan">{{$t('index.huodaofukan')}}</text>
  136. <text class="zhifbut" style="background-color:#00A6FF;" @click="getVNPay">VNPAY</text>
  137. <view style="height: 40rpx;"></view>
  138. </view>
  139. </uni-popup>
  140. </view>
  141. </template>
  142. <script>
  143. import api from "@/pages/api/api.js"
  144. export default {
  145. data() {
  146. return {
  147. // 数据表名
  148. //collection: 'opendb-mall-goods',
  149. // 查询字段,多个字段用 , 分割
  150. //field: 'goods_thumb,name,goods_tip,tag,goods_price,comment_count,month_sell_count,shop_name',
  151. formData: {
  152. status: 'loading', // 加载状态
  153. },
  154. tipShow: false, // 是否显示顶部提示框
  155. tableList: [],
  156. orderlist: [],
  157. status: 'more',
  158. loading: true,
  159. typeID: '',
  160. clickable: true,
  161. toptableindex: 0,
  162. state: -1,
  163. ddid: '',
  164. orderxq: '',
  165. rid: '',
  166. page: 1,
  167. iszhongwen: true,
  168. statusBarHeight: 0,
  169. };
  170. },
  171. onLoad() {
  172. this.tableList = [{
  173. value: -1,
  174. text: this.$t('order.quanbudd')
  175. },
  176. {
  177. value: 0,
  178. text: this.$t('order.daifukuan')
  179. },
  180. {
  181. value: 1,
  182. text: this.$t('order.yizhifu')
  183. },
  184. {
  185. value: 3,
  186. text: this.$t('order.daishouhuo')
  187. },
  188. {
  189. value: 5,
  190. text: this.$t('order.yiwancheng')
  191. },
  192. {
  193. value: 6,
  194. text: this.$t('order.shouhou')
  195. },
  196. ];
  197. //this.getorderList(1,-1);
  198. this.formData.status = 'loading'
  199. var systemInfo = uni.getSystemInfoSync();
  200. this.statusBarHeight = systemInfo.statusBarHeight * 2 + 30;
  201. var tmpstate = uni.getStorageSync("OrderList");
  202. if ('' == tmpstate || undefined == tmpstate || null == tmpstate) {
  203. uni.setStorageSync("OrderList", '');
  204. } else {
  205. if (tmpstate == 1) {
  206. this.state = 1;
  207. this.toptableindex = 2;
  208. }
  209. uni.setStorageSync("OrderList", '');
  210. }
  211. },
  212. onShow() {
  213. this.tableList = [{
  214. value: -1,
  215. text: this.$t('order.quanbudd')
  216. },
  217. {
  218. value: 0,
  219. text: this.$t('order.daifukuan')
  220. },
  221. {
  222. value: 1,
  223. text: this.$t('order.yizhifu')
  224. },
  225. {
  226. value: 3,
  227. text: this.$t('order.daishouhuo')
  228. },
  229. {
  230. value: 5,
  231. text: this.$t('order.yiwancheng')
  232. },
  233. {
  234. value: 6,
  235. text: this.$t('order.shouhou')
  236. },
  237. ];
  238. this.getorderList(1, this.state);
  239. var language = uni.getStorageSync('language');
  240. if ('zh-Hans' == language) {
  241. this.iszhongwen = true;
  242. } else {
  243. this.iszhongwen = false;
  244. }
  245. },
  246. methods: {
  247. tableselct(id, index) {
  248. this.toptableindex = index;
  249. this.state = id;
  250. if (id == 3) {
  251. this.state = 'z23412';
  252. }
  253. if (id == 6) {
  254. this.state = 'z678911';
  255. }
  256. this.getorderList(1, this.state);
  257. },
  258. gotoDetail(e) {
  259. console.log(e);
  260. uni.navigateTo({
  261. url: '/pages/OrderList/OrderDetail?ddid=' + e + '&isShangjia=0'
  262. })
  263. },
  264. getorderList(page, state) {
  265. if (state < 0) {
  266. state = '';
  267. }
  268. console.log(state);
  269. var that = this;
  270. this.formData.status = 'more'
  271. this.tipShow = true;
  272. uni.showLoading({
  273. mask: true
  274. });
  275. if (page == 1) {
  276. this.orderlist = [];
  277. }
  278. api('getorderList', {
  279. page: page,
  280. size: 10,
  281. state: state
  282. }, res => {
  283. uni.hideLoading();
  284. //console.log(res);
  285. if (page > 1) {
  286. if (res.data.data && res.data.data.length > 0) {
  287. var temp = this.orderlist;
  288. for (var i = 0; i < res.data.data.length; i++) {
  289. temp.push(res.data.data[i]);
  290. }
  291. this.orderlist = temp;
  292. } else {
  293. this.status = 'noMore';
  294. }
  295. } else {
  296. this.orderlist = res.data.data;
  297. this.status = 'more';
  298. }
  299. uni.stopPullDownRefresh()
  300. this.tipShow = false
  301. }, failc => {
  302. uni.hideLoading();
  303. uni.stopPullDownRefresh();
  304. this.tipShow = false;
  305. uni.showToast({
  306. title: that.$t('api.wangluoshibai'),
  307. icon: 'none',
  308. duration: 2500
  309. })
  310. })
  311. },
  312. getstate(state, type) {
  313. //未支付 0 已支付 1 已接单 2 骑手接单3 骑手取餐4 已完成5 申请退款6 同意退款7 拒绝退款8 客服介入9 作废10
  314. switch (state) {
  315. case 0:
  316. return this.$t('order.weizhifu');
  317. case 1:
  318. return this.$t('order.daishouli');
  319. case 2:
  320. return this.$t('order.daichuchan');
  321. case 3: {
  322. if (type == 0) {
  323. return this.$t('order.daishouhuo');
  324. }
  325. return this.$t('order.daishiyong');
  326. }
  327. case 4: {
  328. if (type == 0) {
  329. return this.$t('order.daishouhuo');
  330. }
  331. return this.$t('order.daishiyong');
  332. }
  333. case 5:
  334. return this.$t('order.yiwancheng');
  335. case 6:
  336. return this.$t('order.shenqingtuikuan');
  337. case 7:
  338. return this.$t('order.tongyituik');
  339. case 8:
  340. return this.$t('order.jujuetuiK');
  341. case 9:
  342. return this.$t('order.kefujs');
  343. case 10:
  344. return this.$t('order.zuofei');
  345. case 11:
  346. return this.$t('order.shouhwc');
  347. case 12:
  348. return this.$t('order.songda');
  349. }
  350. },
  351. dowithdingdan(state, id, ddid) {
  352. // this.setorderuzt(1,id);
  353. // return;
  354. for (var i = 0; i < this.orderlist.length; i++) {
  355. this.orderxq = this.orderlist[i];
  356. if (this.orderxq.id == id) {
  357. break;
  358. }
  359. }
  360. var that = this
  361. if (state == 1) {
  362. console.log('调用支付完成支付');
  363. // this.ddid = ddid;
  364. // this.getVNPay();//支付链接不能重复利用
  365. this.rid = id;
  366. this.ddid = ddid;
  367. this.panduanbingzhifu(state, id, ddid);
  368. }
  369. if (state == 6) { //申请退款
  370. if (this.orderxq.state == 1) {
  371. console.log('quanertuikuan');
  372. that.quanertuikuan(this.orderxq);
  373. return;
  374. }
  375. uni.showModal({
  376. cancelText: that.$t('order.quxiao'),
  377. confirmText: that.$t('comp.queren'),
  378. title: that.$t('api.message'),
  379. content: that.$t('order.shifoushenq') + that.orderxq.ddId + that.$t('order.dingdantk') +
  380. '?',
  381. success: function(res) {
  382. if (res.confirm) { //这里是点击了确定以后
  383. that.setorderuzt(6, that.orderxq.id);
  384. } else { //这里是点击了取消以后
  385. console.log('用户点击取消')
  386. }
  387. }
  388. })
  389. return;
  390. }
  391. if (state == 10) {
  392. uni.showModal({
  393. cancelText: that.$t('order.quxiao'),
  394. confirmText: that.$t('comp.queren'),
  395. title: that.$t('api.message'),
  396. content: that.$t('order.shifouqx') + ddid + '?',
  397. success: function(res) {
  398. if (res.confirm) { //这里是点击了确定以后
  399. that.setorderuzt(state, id);
  400. } else { //这里是点击了取消以后
  401. console.log('用户点击取消')
  402. }
  403. }
  404. })
  405. }
  406. },
  407. panduanbingzhifu(state, id, ddid) {
  408. console.log('panduanbingzhifu11111')
  409. this.$refs.popzhif.open('bottom');
  410. },
  411. setorderuzt(state, ddid) {
  412. api('setorderuzt', {
  413. id: ddid,
  414. state: state
  415. }, res => {
  416. this.getorderList(1, this.state);
  417. }, failc => {
  418. //console.log('getadvertis----',failc)
  419. })
  420. },
  421. huodaofukuan() {
  422. this.$refs.popzhif.close();
  423. uni.showLoading({
  424. title: 'Loading...',
  425. mask: true
  426. })
  427. api('setorderuzt', {
  428. id: this.rid,
  429. "collectPayment": 1
  430. }, res => {
  431. console.log('setorderuzt:', res)
  432. uni.hideLoading();
  433. if (res.data.code == 200) {
  434. this.getorderList(1, this.state);
  435. } else {
  436. uni.showToast({
  437. title: res.data.msg,
  438. icon: 'none',
  439. duration: 2000
  440. })
  441. }
  442. }, failc => {
  443. uni.hideLoading();
  444. //console.log('getadvertis----',failc)
  445. })
  446. },
  447. getVNPay() {
  448. this.$refs.popzhif.close();
  449. var language = uni.getStorageSync('language');
  450. var lg;
  451. if (language == 'yuenan') {
  452. lg = 'vi';
  453. } else {
  454. lg = 'en';
  455. }
  456. api('VNPay', {
  457. orderid: this.ddid,
  458. amount: this.orderxq.amount,
  459. language: lg
  460. }, res => {
  461. if (res.data.code != 200) {
  462. uni.showToast({
  463. title: res.data.msg,
  464. icon: 'none',
  465. duration: 3500
  466. })
  467. return;
  468. }
  469. uni.navigateTo({
  470. url: '/pages/OrderList/buy/Zhifuyemian?url=' + encodeURIComponent(JSON.stringify(
  471. res.data.data)) + '&ddid=' + this.ddid
  472. })
  473. }, failc => {
  474. //console.log('getadvertis----',failc)
  475. })
  476. },
  477. quanertuikuan(obj) {
  478. console.log('quanertuikuan');
  479. api('VNtuikuan', {
  480. "order_id": obj.ddId, //需要退款的订单号
  481. "amount": parseInt(obj.amount), //退款金额
  482. "trantype": '02', //退款类型:02全额退款,03部份退款
  483. 'illustrate': '全额退款',
  484. "transaction": '' //交易号,不存在可为空
  485. }, res => {
  486. console.log('VNtuikuan', res);
  487. if (res.data.code == 200) {
  488. if (res.data.data.vnp_ResponseCode == '00') {
  489. uni.showToast({
  490. title: this.$t('order.tuikuanchg'),
  491. icon: 'none',
  492. duration: 2500
  493. })
  494. this.setorderuzt(7, obj.id);
  495. } else if (res.data.data.vnp_ResponseCode == '94') {
  496. uni.showToast({
  497. title: this.$t('order.tuikuanchg'),
  498. icon: 'none',
  499. duration: 2500
  500. })
  501. this.setorderuzt(7, obj.id);
  502. } else {
  503. uni.showToast({
  504. title: res.data.data.vnp_Message,
  505. icon: 'none',
  506. duration: 2500
  507. })
  508. }
  509. } else {
  510. uni.showToast({
  511. title: res.data.msg,
  512. icon: 'none',
  513. duration: 2500
  514. })
  515. }
  516. }, failc => {
  517. console.log('VNtuikuan', failc)
  518. })
  519. },
  520. },
  521. /**
  522. * 下拉刷新回调函数
  523. */
  524. onPullDownRefresh() {
  525. this.getorderList(1, this.state);
  526. this.page = 1;
  527. },
  528. /**
  529. * 上拉加载回调函数
  530. */
  531. onReachBottom() {
  532. console.log('onReachBottom')
  533. this.page = this.page + 1;
  534. this.getorderList(this.page, this.state);
  535. },
  536. };
  537. </script>
  538. <style lang="scss">
  539. @import '@/common/uni-ui.scss';
  540. page {
  541. display: flex;
  542. flex-direction: column;
  543. box-sizing: border-box;
  544. background-color: #efeff4;
  545. min-height: 100%;
  546. height: auto;
  547. }
  548. .toptalbarCtv {
  549. position: fixed;
  550. background-color: white;
  551. left: 0;
  552. right: 0;
  553. top: 0;
  554. z-index: 999;
  555. }
  556. .toptalbar {
  557. display: flex;
  558. flex-direction: row;
  559. justify-content: space-between;
  560. align-items: center;
  561. background-color: whitesmoke;
  562. padding-top: 20rpx;
  563. height: 124rpx;
  564. }
  565. .tableLab {
  566. text-align: center;
  567. margin-left: 14rpx;
  568. margin-right: 14rpx;
  569. height: 124rpx;
  570. color: darkgray;
  571. }
  572. .tableLabzh {
  573. text-align: center;
  574. margin-left: 14rpx;
  575. margin-right: 14rpx;
  576. height: 60rpx;
  577. color: darkgray;
  578. }
  579. .tableselect {
  580. border-bottom-width: 6rpx;
  581. border-bottom-style: solid;
  582. border-bottom-color: #00A6FF;
  583. color: #00A6FF;
  584. }
  585. .tips {
  586. margin-top: 140rpx;
  587. color: #67c23a;
  588. font-size: 14px;
  589. line-height: 40px;
  590. text-align: center;
  591. background-color: #f0f9eb;
  592. height: 0;
  593. opacity: 0;
  594. transform: translateY(-100%);
  595. transition: all 0.3s;
  596. }
  597. .tips-ani {
  598. transform: translateY(0);
  599. height: 40px;
  600. opacity: 1;
  601. }
  602. .shop {
  603. flex: 1;
  604. display: flex;
  605. flex-direction: column;
  606. justify-content: space-between;
  607. }
  608. // 默认加入 scoped ,所以外面加一层提升权重
  609. .list {
  610. .uni-list--waterfall {
  611. /* #ifndef H5 || APP-VUE */
  612. // 小程序 编译后会多一层标签,而其他平台没有,所以需要特殊处理一下
  613. ::v-deep .uni-list {
  614. /* #endif */
  615. display: flex;
  616. flex-direction: row;
  617. flex-wrap: wrap;
  618. padding: 5rpx;
  619. box-sizing: border-box;
  620. /* #ifdef H5 || APP-VUE */
  621. // h5 和 app-vue 使用深度选择器,因为默认使用了 scoped ,所以样式会无法穿透
  622. ::v-deep
  623. /* #endif */
  624. .uni-list-item--waterfall {
  625. width: 50%;
  626. box-sizing: border-box;
  627. .uni-list-item__container {
  628. padding: 0rpx;
  629. flex-direction: column;
  630. }
  631. }
  632. /* #ifndef H5 || APP-VUE */
  633. }
  634. /* #endif */
  635. }
  636. }
  637. .item_content2 {
  638. background: white;
  639. display: flex;
  640. flex-direction: column;
  641. width: 100%;
  642. }
  643. .buyct {
  644. display: flex;
  645. flex-direction: row;
  646. justify-content: flex-start;
  647. align-items: center;
  648. }
  649. .storeimage {
  650. width: 100%;
  651. height: 240rpx;
  652. }
  653. .buyimage {
  654. width: 200rpx;
  655. height: 160rpx;
  656. }
  657. .buyBT {
  658. display: flex;
  659. flex-direction: row;
  660. justify-content: space-between;
  661. align-items: center;
  662. }
  663. .buyBTR {
  664. display: flex;
  665. flex-direction: row;
  666. justify-content: flex-end;
  667. align-items: center;
  668. }
  669. .buyBTL {
  670. display: flex;
  671. flex-direction: row;
  672. justify-content: flex-start;
  673. align-items: center;
  674. }
  675. .msText {
  676. padding-left: 10rpx;
  677. text-align: left;
  678. font-size: 22rpx;
  679. line-height: 32rpx;
  680. width: 100%;
  681. }
  682. .dianpuming {
  683. font-size: 30rpx;
  684. line-height: 32rpx;
  685. height: 32rpx;
  686. font-weight: bold;
  687. }
  688. .xingxing {
  689. width: 30rpx;
  690. height: 30rpx;
  691. }
  692. .pingfentext {
  693. font-size: 26rpx;
  694. line-height: 40rpx;
  695. height: 40rpx;
  696. color: black;
  697. }
  698. .spnametext {
  699. font-size: 26rpx;
  700. line-height: 40rpx;
  701. height: 40rpx;
  702. padding-right: 20rpx;
  703. color: darkgray;
  704. }
  705. .youhuixinxi {
  706. font-size: 30rpx;
  707. padding: 6rpx;
  708. padding-left: 12rpx;
  709. padding-right: 12rpx;
  710. background-color: #F1F1F1;
  711. color: black;
  712. border-radius: 16rpx;
  713. margin-left: 20rpx;
  714. }
  715. .quzhifuText {
  716. font-size: 30rpx;
  717. padding: 6rpx;
  718. padding-left: 12rpx;
  719. padding-right: 12rpx;
  720. background-color: black;
  721. color: white;
  722. border-radius: 16rpx;
  723. margin-left: 20rpx;
  724. }
  725. .stateText {
  726. font-size: 26rpx;
  727. color: darkgray;
  728. }
  729. .zhifbut {
  730. text-align: center;
  731. margin-top: 12rpx;
  732. margin-bottom: 12rpx;
  733. width: 660upx;
  734. border-radius: 10rpx;
  735. color: white;
  736. line-height: 70rpx;
  737. }
  738. </style>