wipe.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <template>
  2. <view class="wipe-wrapper">
  3. <view class="wipe-top flex">
  4. <view class="top-left">
  5. <image src="../../static/icon/sm.png" mode=""></image>
  6. 扫码核销
  7. </view>
  8. <view class="top-right" @click="srhx">
  9. <image src="../../static/icon/sr.png" mode=""></image>
  10. 输入核销
  11. </view>
  12. <view class="top-jg"></view>
  13. </view>
  14. <scroll-view scroll-y="true" @scrolltolower="loadData" class="good-content">
  15. <view>
  16. <!-- <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty> -->
  17. <empty v-if="goodList.length === 0"></empty>
  18. <view class="good" v-for="item in goodList">
  19. <view class="good-top">
  20. <view class="top-num">订单编号:{{ item.id }}</view>
  21. <view class="top-status">待核销</view>
  22. </view>
  23. <view class="goods-buttom">
  24. <view class="good-img"><image src="../../static/img/good1.jpg" mode=""></image></view>
  25. <view class="good-infos">
  26. <view class="good-title clamp">{{ item.title }}</view>
  27. <view class="shop-info">
  28. <image src="../../static/img/shop.png" mode=""></image>
  29. {{ item.shop || '子臣台州旗舰店' }}
  30. <image src="../../static/img/point.png" mode=""></image>
  31. {{ item.juli + 'm' || '200m' }}
  32. </view>
  33. <view class="good-tag">佣金¥{{ item.tag || 10 }}</view>
  34. </view>
  35. </view>
  36. <view class="good-hj">一共{{ item.num }}件商品 合计:¥{{ item.paypri }}</view>
  37. <view class="good-price">¥{{ item.price }}</view>
  38. <view class="good-num">X{{ item.num }}</view>
  39. </view>
  40. <uni-load-more :status="goodList.loadingType"></uni-load-more>
  41. </view>
  42. </scroll-view>
  43. <uni-popup ref="popuphx" class="agree-wrapper">
  44. <view class="hx-wrapper">
  45. <view class="hx-img">
  46. <image src="../../static/img/hxbg.png" mode=""></image>
  47. </view>
  48. <view class="hx-body">
  49. <view class="hx-title">
  50. 输入核销码核销
  51. </view>
  52. <input type="text" value="" placeholder="请输入核销码" placeholder-class="hx-placeholder"/>
  53. <view class="hx-btn">
  54. 立即核销
  55. </view>
  56. </view>
  57. <view class="hx-close" @click="close">
  58. <image src="../../static/icon/close.png" mode=""></image>
  59. </view>
  60. </view>
  61. </uni-popup>
  62. </view>
  63. </template>
  64. <script>
  65. import empty from '@/components/empty';
  66. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  67. import uniPopup from '@/components/uni-popup/uni-popup.vue'
  68. export default {
  69. components: {
  70. empty,
  71. uniPopup
  72. },
  73. data() {
  74. return {
  75. goodList: [
  76. {
  77. id: '5577889955',
  78. title: '湿热肝上火气肺痰煲汤材料',
  79. shop: '子臣台州旗舰店',
  80. juli: 300,
  81. tag: 10,
  82. num: 1,
  83. price: 250,
  84. paypri: 250
  85. }
  86. ] //待核销商品,
  87. };
  88. },
  89. methods: {
  90. loadData() {
  91. console.log('daodil ');
  92. },
  93. srhx() {
  94. this.$refs.popuphx.open()
  95. },
  96. close() {
  97. this.$refs.popuphx.close()
  98. }
  99. }
  100. };
  101. </script>
  102. <style lang="scss" scoped>
  103. page {
  104. height: 100%;
  105. background-color: #f8f6f6;
  106. }
  107. .wipe-wrapper {
  108. .wipe-top {
  109. justify-content: space-around;
  110. width: 750rpx;
  111. height: 80rpx;
  112. background: #ffffff;
  113. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
  114. font-size: 28rpx;
  115. font-weight: 500;
  116. color: #ef041f;
  117. line-height: 80rpx;
  118. text-align: center;
  119. position: relative;
  120. z-index: 10;
  121. .top-left {
  122. vertical-align: middle;
  123. width: 50%;
  124. image {
  125. width: 27rpx;
  126. height: 25rpx;
  127. margin-right: 10rpx;
  128. }
  129. }
  130. .top-right {
  131. vertical-align: middle;
  132. width: 50%;
  133. image {
  134. width: 27rpx;
  135. height: 25rpx;
  136. margin-right: 10rpx;
  137. }
  138. }
  139. .top-jg {
  140. width: 2rpx;
  141. height: 80rpx;
  142. background: #f0f0f0;
  143. position: absolute;
  144. // background: red;
  145. }
  146. }
  147. }
  148. .good-content {
  149. height: 100%;
  150. }
  151. .good {
  152. width: 702rpx;
  153. height: 304rpx;
  154. background: #ffffff;
  155. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
  156. border-radius: 10rpx;
  157. padding: 0 30rpx;
  158. margin: 20rpx auto;
  159. position: relative;
  160. .good-top {
  161. height: 85rpx;
  162. font-size: 24rpx;
  163. font-weight: 400;
  164. color: #666666;
  165. line-height: 85rpx;
  166. display: flex;
  167. justify-content: space-between;
  168. .top-status {
  169. font-size: 28rpx;
  170. font-weight: 500;
  171. color: #EF041F;
  172. }
  173. }
  174. .goods-buttom {
  175. height: 160rpx;
  176. display: flex;
  177. .good-img {
  178. width: 160rpx;
  179. height: 160rpx;
  180. // overflow: hidden;
  181. image {
  182. width: 160rpx;
  183. height: 160rpx;
  184. }
  185. }
  186. .good-title {
  187. width: 350rpx;
  188. padding-top: 6rpx;
  189. font-size: 26rpx;
  190. font-weight: 500;
  191. color: #3F454B;
  192. line-height: 1;
  193. padding-left: 10rpx;
  194. }
  195. .shop-info {
  196. padding-top: 11rpx;
  197. font-size: 24rpx;
  198. font-weight: 500;
  199. color: #DCB876;
  200. line-height: 1;
  201. // padding-left: 10rpx;
  202. image {
  203. width: 24rpx;
  204. height: 24rpx;
  205. margin-left: 14rpx;
  206. margin-right: 4rpx;
  207. }
  208. }
  209. .good-tag {
  210. display: inline-block;
  211. height: 36rpx;
  212. background: #ffeee9;
  213. // opacity: 0.2;
  214. border-radius: 5rpx;
  215. font-size: 20rpx;
  216. font-weight: 500;
  217. color: #F23030;
  218. padding: 0 9rpx;
  219. line-height: 36rpx;
  220. margin-top: 15rpx;
  221. margin-left: 10rpx;
  222. }
  223. }
  224. .good-hj {
  225. line-height: 1;
  226. height: 26rpx;
  227. font-size: 26rpx;
  228. font-weight: 500;
  229. color: #333333;
  230. text-align: right;
  231. }
  232. .good-price {
  233. text-align: left;
  234. font-size: 26rpx;
  235. font-weight: 500;
  236. line-height: 1;
  237. color: #333333;
  238. position: absolute;
  239. right: 31rpx;
  240. top:98rpx;
  241. }
  242. .good-num {
  243. text-align: left;
  244. font-size: 26rpx;
  245. font-weight: 500;
  246. line-height: 1;
  247. color: #333333;
  248. position: absolute;
  249. right: 31rpx;
  250. top:136rpx;
  251. }
  252. }
  253. .hx-wrapper {
  254. width: 536rpx;
  255. height: 630rpx;
  256. position: relative;
  257. // background-color: #fff;
  258. .hx-img {
  259. width: 536rpx;
  260. height: 281rpx;
  261. image {
  262. width: 536rpx;
  263. height: 281rpx;
  264. }
  265. }
  266. .hx-close {
  267. position: absolute;
  268. left: 243rpx;
  269. bottom: -80rpx;
  270. width: 52rpx;
  271. height: 52rpx;
  272. image {
  273. width: 52rpx;
  274. height: 52rpx;
  275. }
  276. }
  277. .hx-body {
  278. width: 536rpx;
  279. height: 349rpx;
  280. background-color: #fff;
  281. border-radius: 0 0 10rpx 10rpx;
  282. .hx-title {
  283. width: 536rpx;
  284. font-size: 36rpx;
  285. font-weight: 500;
  286. color: #333333;
  287. line-height: 1;
  288. padding-top: 42rpx;
  289. text-align: center;
  290. }
  291. input {
  292. width: 439rpx;
  293. height: 68rpx;
  294. background: #eeddde;
  295. border-radius: 10rpx;
  296. margin: 39rpx auto 0;
  297. padding-left: 26rpx;
  298. .hx-placeholder {
  299. font-size: 26rpx;
  300. font-weight: 500;
  301. color: #901b21;
  302. }
  303. }
  304. .hx-btn {
  305. margin: 44rpx auto 0;
  306. width: 353rpx;
  307. height: 71rpx;
  308. background: #901b21;
  309. border-radius: 34rpx;
  310. font-size: 36rpx;
  311. font-weight: 500;
  312. color: #F8F9F9;
  313. line-height: 71rpx;
  314. text-align: center;
  315. }
  316. }
  317. }
  318. </style>