details.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <view>
  3. <view class='swiper'>
  4. <swiper class="screen-swiper header-swiper" ::class="dotStyle?'square-dot':'round-dot'"
  5. :indicator-dots="false" :circular="true" interval="5000"
  6. :current="status" @change="topSwiperTab">
  7. <swiper-item class="swiper-item" v-for="(item,index) in imagelist" :key="index"
  8. :class="status==index?'text-white':''" @click="naviageToPage(item.url)">
  9. <image :src="item.url"></image>
  10. <!-- <view style='position:absolute;top:50%;left:50%;transform: translate(-50%,-50%);'>11111</view> -->
  11. </swiper-item>
  12. </swiper>
  13. <view class="dots">
  14. <text class='Regular'>{{status+1}} / {{imagelist.length}}</text>
  15. </view>
  16. <view class='functionality'>
  17. <image @click='show=true' class='jubao' src="../../static/img/liangmai/jubao.png" mode=""></image>
  18. <image class='collect' :src="iscollect?'../../static/img/liangmai/shoucang1.png':'../../static/img/liangmai/shoucang-2.png'" mode=""></image>
  19. </view>
  20. </view>
  21. <view class='company'>
  22. <view style='padding:21px;'>
  23. <view style='font-size:24px;' class='Medium'>{{companylist.compName}}</view>
  24. <view style='margin-top:3px;' class='flex'>
  25. <view class='aptitude'>
  26. <image class='aptitudeImage' :src="aptiutudeStatus?'../../static/img/liangmai/bg_no_check.png':'../../static/img/liangmai/bg_check.png'" mode=""></image>
  27. <text class='aptitudeText Medium'>资质</text>
  28. </view>
  29. <view class='Regular' style='font-size:13px;'>主营:<text v-for='item in mainBusiness'> {{item}} </text></view>
  30. </view>
  31. <view style='margin:12.5px 0;' class='flex'>
  32. <view class="tag Regular">
  33. 超大规模
  34. </view>
  35. <view class="tag Regular">
  36. 超大规模
  37. </view>
  38. <view class="tag Regular">
  39. 超大规模
  40. </view>
  41. </view>
  42. </view>
  43. <view class="generalSituation">
  44. <view class="title Medium">企业概况</view>
  45. <view class="content Regular">
  46. {{companylist.companyContant}}
  47. </view>
  48. </view>
  49. <view class='contactWay'>
  50. <view class="title Medium">联系方式</view>
  51. <view class='contactWayContent'>
  52. <view class='flex linkman'>
  53. <view style='flex:1;' class='title Regular'>联系人</view>
  54. <view style='flex:3;'>
  55. <view class='Regular linkmanItem' v-for='item in companylist.settledCompanyContacts'>
  56. {{item.contacts}} <a :href="item.contactsPhone"><image class="phone" src="../../static/img/liangmai/dianhau.png" mode=""></image></a>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="flex mailbox">
  61. <view style='flex:1;' class='title Regular'>邮箱</view>
  62. <view class='Regular' style='font-size:14px;flex:3;'>
  63. {{companylist.email}}
  64. </view>
  65. </view>
  66. <view class="flex fax">
  67. <view style='flex:1;' class='title Regular'>传真</view>
  68. <view class='Regular' style='font-size:14px;flex:3;'>
  69. {{companylist.fax}}
  70. </view>
  71. </view>
  72. <view class="flex fax">
  73. <view style='flex:1;' class='title Regular'>地址</view>
  74. <view style='font-size:14px;flex:3;' class='Regular'>
  75. {{companylist.province}}{{companylist.city}}{{companylist.area}}{{companylist.detailedAddress}}
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <u-picker mode="selector" v-model="show" @confirm='selecttype' :range="selector"></u-picker>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. components: {
  87. },
  88. data() {
  89. return {
  90. imagelist:[
  91. {url:'../../static/img/authentication/banklow(2).png'},
  92. {url:'../../static/img/authentication/banklow(2).png'},
  93. {url:'../../static/img/authentication/banklow(2).png'}
  94. ],
  95. linkmanList:[
  96. {name:'廖经理',phone:'18513069273'},
  97. {name:'廖经理',phone:'18513069273'},
  98. {name:'廖经理',phone:'18513069273'},
  99. {name:'廖经理',phone:'18513069273'},
  100. ],
  101. id:0,
  102. dotStyle: false,
  103. status: 0,
  104. companylist:{
  105. settledCompanyContacts:[]
  106. },
  107. show:false,
  108. mainBusiness:[],
  109. label:[],
  110. selector:['纠错','举报'],
  111. aptiutudeStatus:false,
  112. iscollect:false
  113. }
  114. },
  115. onLoad(options){
  116. this.id=options.id
  117. },
  118. onShow(){
  119. var that=this
  120. this.$nextTick(function(){
  121. that.$api.doRequest('get','/settledCompanyInfo/getSettledCompanyInfo',{id:that.id,pcFlag:2}).then(res => {
  122. if(res.data.code==200){
  123. that.companylist=res.data.data
  124. that.mainBusiness=res.data.data.mainBusinessType.split(',')
  125. if(res.data.data.label){
  126. that.label=res.data.data.label.split(',')
  127. }
  128. }
  129. })
  130. })
  131. },
  132. methods: {
  133. topSwiperTab(e) {
  134. var that = this;
  135. this.status = Number(e.target.current);
  136. },
  137. selecttype(e){
  138. console.log(e)
  139. if(e[0]==1){
  140. uni.navigateTo({
  141. url:'/pages/grain_pulse/jubao?id='+this.companylist.id+'&compName='+this.companylist.compName
  142. })
  143. }else{
  144. uni.navigateTo({
  145. url:'/pages/grain_pulse/errorcorrection?id='+this.companylist.id+'&compName='+this.companylist.compName
  146. })
  147. }
  148. },
  149. jubao(){
  150. },
  151. }
  152. }
  153. </script>
  154. <style lang='scss' scoped>
  155. /* 《--轮播 */
  156. .swiper{
  157. position:relative;
  158. height:281.5px;
  159. }
  160. .screen-swiper{
  161. height:281.5px;
  162. }
  163. .swiper .dots{
  164. position:absolute;
  165. bottom:53px;
  166. background: rgba(255, 255, 255, 0.4);
  167. border-radius: 0px 11px 11px 0px;
  168. width: 58.5px;
  169. height: 23px;
  170. line-height:23px;
  171. text-align:center;
  172. padding:3px;
  173. color:#FFFFFF;
  174. }
  175. .functionality{
  176. position: absolute;
  177. right:0;
  178. bottom:53px;
  179. }
  180. .jubao{
  181. width:22px;height:19px;
  182. margin-right:25px;
  183. }
  184. .collect{
  185. width:22px;height:22px;
  186. margin-right:19.5px;
  187. }
  188. /* 轮播--》 */
  189. /*《--公司 */
  190. .company{
  191. background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
  192. height:550px;
  193. border-radius:20px;
  194. margin-top:-38px;
  195. position: relative;
  196. z-index: 3;
  197. }
  198. .aptitude,.aptitudeImage{
  199. width: 38px;
  200. height:20px;
  201. }
  202. .aptitude{
  203. position:relative;
  204. margin-right:5px;
  205. }
  206. .aptitudeText{
  207. color:#8B511E;
  208. position:absolute;
  209. left:0;
  210. width:40px;
  211. top:0;
  212. text-align:center;
  213. width:100%;
  214. line-height: 20px;
  215. font-size:11px;
  216. height:100%;
  217. }
  218. .tag{
  219. background:#F5F6F9;
  220. padding:2.5px 6.5px;
  221. border-radius:3px;
  222. font-size:11px;
  223. margin-right:11.5px;
  224. }
  225. .generalSituation{
  226. background:#fff;
  227. margin:9px;
  228. padding:12px;
  229. border-radius:10px;
  230. .title{
  231. font-size:16px;
  232. margin:0 0 9.5px;
  233. }
  234. .content{
  235. font-size:12px;
  236. color:#676E80;
  237. }
  238. }
  239. .contactWay{
  240. margin:9px;
  241. padding:11.5px 13px;
  242. background:#fff;
  243. border-radius:10px;
  244. >.title{
  245. font-size:16px;
  246. color:#333;
  247. margin-bottom:12px;
  248. }
  249. .contactWayContent{
  250. .linkman>.title,.mailbox>.title,.fax>.title,.address>.title{
  251. color:#676E80;
  252. font-size:14px;
  253. }
  254. .mailbox,.fax,.address{
  255. margin-bottom:10px;
  256. }
  257. .linkmanItem{
  258. margin-bottom:10px;
  259. }
  260. .phone{
  261. width:14px;height:14px;margin-left:6px;
  262. }
  263. }
  264. }
  265. /* 公司--》 */
  266. </style>