铝交易,微信公众号
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.1 KiB

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