铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

387 lines
7.0 KiB

6 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
5 months ago
6 months ago
5 months ago
6 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
5 months ago
6 months ago
5 months ago
5 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
5 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
  1. <template>
  2. <view class="page">
  3. <!--顶部栏-->
  4. <topbar showRight="1"></topbar>
  5. <!-- 供应商 -->
  6. <view class="supplier">
  7. <view style="padding: 40rpx 0;"
  8. v-for="(item, index) in bannerList">
  9. <uv-swiper
  10. :list="item"
  11. :height="bannerSize[index]"
  12. keyName="image">
  13. </uv-swiper>
  14. <!-- imgMode="widthFix" -->
  15. </view>
  16. <!--报价和挂单-->
  17. <view class="btns" v-if="userShop">
  18. <span @click="goToPage(0)" class="oneBtn">
  19. {{ $t('other.supplierQuotation') }}
  20. </span>
  21. <!-- 这个提单不需要了 -->
  22. <!-- <span @click="goToPage(1)" class="twoBtn">
  23. {{ $t('other.supplierBilLading') }}
  24. </span> -->
  25. </view>
  26. </view>
  27. <tabber select="0" />
  28. </view>
  29. </template>
  30. <script>
  31. import topbar from '@/components/base/topbar.vue'
  32. import tabber from '@/components/base/tabbar.vue'
  33. import productList from '@/components/user/productList.vue'
  34. import {
  35. mapGetters
  36. } from 'vuex'
  37. import changeLanguage from '@/components/base/changeLanguage.vue'
  38. export default {
  39. components: {
  40. tabber,
  41. topbar,
  42. productList,
  43. changeLanguage
  44. },
  45. data() {
  46. return {
  47. queryParams: {
  48. pageNo: 1,
  49. pageSize: 10,
  50. title: ''
  51. },
  52. bannerList: [],
  53. bannerSize : ['420rpx', '220rpx', '220rpx'],
  54. }
  55. },
  56. onShow() {
  57. this.getImagePhoneOther()
  58. if (!this.$store.state.shop && !this.$store.state.buy) {
  59. uni.reLaunch({
  60. url: '/pages_order/auth/selectionIdentity?back=no&'
  61. })
  62. }
  63. this.$store.commit('getUserInfo')
  64. this.getBannerList()
  65. },
  66. computed: {
  67. ...mapGetters(['userShop']),
  68. },
  69. methods: {
  70. getBannerList() {
  71. this.$api('bannerList', res => {
  72. this.bannerList = res.result
  73. })
  74. },
  75. goToPage(titleIndex) {
  76. uni.navigateTo({
  77. url: '/pages_order/order/offerOrBillLading?titleIndex=' + titleIndex
  78. })
  79. },
  80. getImagePhoneOther() {
  81. this.$api('getImagePhoneOther', res => {
  82. })
  83. },
  84. }
  85. }
  86. </script>
  87. <style scoped lang="scss">
  88. * {
  89. box-sizing: border-box;
  90. }
  91. .page {
  92. background-color: #2e394d;
  93. min-height: 100vh;
  94. background-image: url('../../static/image/index/1.png');
  95. // 供应商
  96. .supplier {
  97. display: flex;
  98. flex-direction: column;
  99. height: calc(100vh - 120rpx - 120rpx);
  100. background-color: #2e394d;
  101. .topItem {
  102. display: flex;
  103. justify-content: center;
  104. align-items: center;
  105. height: 30%;
  106. background-size: cover;
  107. .imageFrame {
  108. width: 90%;
  109. height: 90%;
  110. //padding:80rpx;
  111. }
  112. }
  113. .threeHeOne {
  114. display: flex;
  115. padding: 20rpx 40rpx 10rpx;
  116. flex-direction: column;
  117. height: 60%;
  118. .oneItem {
  119. display: flex;
  120. height: 33%;
  121. .left {
  122. display: flex;
  123. flex-direction: column;
  124. justify-content: center;
  125. align-items: center;
  126. gap: 10rpx;
  127. width: 33%;
  128. background-color: #1e293d;
  129. color: white;
  130. font-size: 26rpx;
  131. .subText {
  132. text-align: center;
  133. width: 80%;
  134. background-color: #2e394d;
  135. padding: 0 20rpx;
  136. }
  137. }
  138. .right {
  139. //height: 30%;
  140. width: 66%;
  141. padding: 20rpx;
  142. background-image: url('../../static/image/index/1.png');
  143. background-size: cover;
  144. font-size: 20rpx;
  145. color: white;
  146. }
  147. }
  148. .twoItem {
  149. display: flex;
  150. justify-content: space-between;
  151. gap: 20rpx;
  152. height: 33%;
  153. margin-top: 20rpx;
  154. padding: 10rpx;
  155. .left {
  156. width: 60%;
  157. padding: 20rpx;
  158. background-color: #1e293d;
  159. }
  160. .right {
  161. width: 40%;
  162. padding: 20rpx;
  163. background-color: #1e293d;
  164. }
  165. }
  166. .threeItem {
  167. display: flex;
  168. //width: 100vw;
  169. height: 33%;
  170. .left {
  171. display: flex;
  172. flex-direction: column;
  173. justify-content: center;
  174. align-items: center;
  175. gap: 20rpx;
  176. width: 33%;
  177. background-color: #1e293d;
  178. color: white;
  179. font-size: 26rpx;
  180. .subText {
  181. text-align: center;
  182. background-color: #2e394d;
  183. width: 80%;
  184. padding: 0 20rpx;
  185. }
  186. }
  187. .right {
  188. //height: 200rpx;
  189. width: 66%;
  190. padding: 20rpx;
  191. background-image: url('../../static/image/index/1.png');
  192. background-size: cover;
  193. font-size: 20rpx;
  194. color: white;
  195. }
  196. }
  197. }
  198. .btns {
  199. display: flex;
  200. justify-content: center;
  201. align-items: center;
  202. gap: 40rpx;
  203. .oneBtn {
  204. display: flex;
  205. align-items: center;
  206. justify-content: center;
  207. width: 40%;
  208. height: 70rpx;
  209. border-radius: 40rpx;
  210. color: #1F1C39;
  211. font-size: 28rpx;
  212. margin: 20rpx 10rpx 0 0;
  213. background: #f2f2f2;
  214. //margin-top: 20rpx;
  215. border-radius: 40rpx;
  216. }
  217. .twoBtn {
  218. display: flex;
  219. align-items: center;
  220. justify-content: center;
  221. width: 40%;
  222. height: 70rpx;
  223. border-radius: 40rpx;
  224. color: #1F1C39;
  225. font-size: 28rpx;
  226. margin: 20rpx 10rpx 0 0;
  227. background: #f2f2f2;
  228. //margin-top: 20rpx;
  229. border-radius: 40rpx;
  230. }
  231. }
  232. }
  233. // 采购商
  234. .purchaser {
  235. display: flex;
  236. flex-direction: column;
  237. //gap: 40rpx;
  238. background-color: #2e394d;
  239. .topItem {
  240. display: flex;
  241. justify-content: center;
  242. align-items: center;
  243. height: 280rpx;
  244. background-image: url('../../static/image/index/1.png');
  245. background-size: cover;
  246. .imageFrame {
  247. width: 90%;
  248. height: 90%;
  249. //padding:80rpx;
  250. }
  251. }
  252. .threeHeOne {
  253. display: flex;
  254. padding: 20rpx 40rpx 10rpx;
  255. flex-direction: column;
  256. .oneItem {
  257. display: flex;
  258. .left {
  259. display: flex;
  260. flex-direction: column;
  261. justify-content: center;
  262. align-items: center;
  263. gap: 10rpx;
  264. width: 33%;
  265. background-color: #1e293d;
  266. color: white;
  267. font-size: 26rpx;
  268. .subText {
  269. background-color: #2e394d;
  270. padding: 0 20rpx;
  271. }
  272. }
  273. .right {
  274. height: 180rpx;
  275. width: 66%;
  276. padding: 20rpx;
  277. background-image: url('../../static/image/index/1.png');
  278. background-size: cover;
  279. font-size: 20rpx;
  280. color: white;
  281. }
  282. }
  283. .twoItem {
  284. display: flex;
  285. justify-content: space-between;
  286. gap: 20rpx;
  287. height: 280rpx;
  288. margin-top: 20rpx;
  289. padding: 10rpx;
  290. .left {
  291. width: 60%;
  292. padding: 20rpx;
  293. background-color: #1e293d;
  294. }
  295. .right {
  296. width: 40%;
  297. padding: 20rpx;
  298. background-color: #1e293d;
  299. }
  300. }
  301. .threeItem {
  302. display: flex;
  303. //width: 100vw;
  304. .left {
  305. display: flex;
  306. flex-direction: column;
  307. justify-content: center;
  308. align-items: center;
  309. gap: 20rpx;
  310. width: 33%;
  311. background-color: #1e293d;
  312. color: white;
  313. font-size: 26rpx;
  314. .subText {
  315. background-color: #2e394d;
  316. padding: 0 20rpx;
  317. }
  318. }
  319. .right {
  320. height: 200rpx;
  321. width: 66%;
  322. padding: 20rpx;
  323. background-image: url('../../static/image/index/1.png');
  324. background-size: cover;
  325. font-size: 20rpx;
  326. color: white;
  327. }
  328. }
  329. }
  330. }
  331. }
  332. </style>