community.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. <template>
  2. <view class="container">
  3. <view class="tabs">
  4. <u-subsection height="90" active-color="#2f7ff5" :list="subsectionList" :animation="false" :current="subsectionCurrent" @change="subsectionChange"></u-subsection>
  5. <view class="" style="height: 20rpx;"></view>
  6. </view>
  7. <view style="height: 100%;">
  8. <swiper style="height: 100%;" :current="subsectionCurrent" @change="swiperChange"
  9. @animationfinish="animationfinish">
  10. <swiper-item >
  11. <scroll-view scroll-y style="height: 100%;">
  12. <view class="bg-white " >
  13. <view style="margin: 0 0rpx 40rpx;">
  14. <image style="width: 100%;" mode="widthFix" src="http://139.9.103.171:8888/group1/M00/00/01/iwlnq1-_4mqAf_t4AAKPnq9axkQ981.png" ></image>
  15. </view>
  16. <view class="bg-white padding-top-20" style="position: relative;top:-20rpx;">
  17. <view class="text-bold text-lg margin-left-30 margin-bottom-sm">
  18. <text class="cuIcon-titles text-blue margin-right-10 "></text>
  19. <text>通用服务</text>
  20. </view>
  21. <view class="cu-list grid col-4 no-border " style="border-radius: 50rpx;">
  22. <view class="cu-item" @click="goDetail(item)" v-for="(item,index) in commonList" :key="index">
  23. <view class="grid-icon ">
  24. <image :src="item.icon" mode="widthFix"/>
  25. </view>
  26. <view class="cu-tag bg-orange badge" v-if="item.badge>0">{{item.badge}}</view>
  27. <text class="text-sm ">{{item.title}}</text>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="text-bold text-lg margin-left-30 margin-bottom-sm ">
  32. <text class="cuIcon-titles text-blue margin-right-10 "></text>
  33. <text>手机服务</text>
  34. </view>
  35. <view class="cu-list grid col-4 no-border " style="border-radius: 50rpx;">
  36. <view class="cu-item" @click="goDetail(item)" v-for="(item,index) in mobileList" :key="index">
  37. <view class="grid-icon ">
  38. <image :src="item.icon" mode="widthFix"/>
  39. </view>
  40. <view class="cu-tag bg-orange badge" v-if="item.badge>0">{{item.badge}}</view>
  41. <text class="text-sm ">{{item.title}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="bg-white padding-top-20" style="position: relative;top:-10rpx;">
  46. <view class="text-bold text-lg margin-left-30 margin-bottom-sm">
  47. <text class="cuIcon-titles text-blue margin-right-10 "></text>
  48. <text>宽带服务</text>
  49. </view>
  50. <view class="cu-list grid col-4 no-border " style="border-radius: 50rpx;">
  51. <view class="cu-item" @click="goDetail(item)" v-for="(item,index) in broadbandList" :key="index">
  52. <view class="grid-icon ">
  53. <image :src="item.icon" mode="widthFix"/>
  54. </view>
  55. <view class="cu-tag bg-orange badge" v-if="item.badge>0">{{item.badge}}</view>
  56. <text class="text-sm ">{{item.title}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. <view style="height: 80rpx;">
  61. <u-divider bgColor="#f1f1f1;" height="80">到底了</u-divider>
  62. </view>
  63. </scroll-view>
  64. </swiper-item>
  65. <swiper-item >
  66. <scroll-view scroll-y style="height: 100%;background-color: #F1F1F1;">
  67. <view style="height: 20rpx;"></view>
  68. <view style="margin: 0 20rpx;">
  69. <u-waterfall v-model="oldManList" ref="uWaterfall">
  70. <template v-slot:left="{leftList}">
  71. <view class="demo-warter" v-for="(item, index) in leftList" :key="index">
  72. <image :src="item.image" class="demo-image" ></image>
  73. <view class="time">
  74. <text class="padding-bottom-10">抓拍时间:</text>
  75. <text>{{item.time}}</text>
  76. </view>
  77. <view class="flex justify-center margin-bottom-50">
  78. <view class="cu-btn line-blue round df" style="width: 70%;">
  79. 查看详情
  80. </view>
  81. </view>
  82. </view>
  83. </template>
  84. <template v-slot:right="{rightList}">
  85. <view class="demo-warter" v-for="(item, index) in rightList" :key="index">
  86. <image :src="item.image" class="demo-image" ></image>
  87. <view class="time">
  88. <text class="padding-bottom-10">抓拍时间:</text>
  89. <text>{{item.time}}</text>
  90. </view>
  91. <view class="flex justify-center margin-bottom-50">
  92. <view class="cu-btn line-blue round df" style="width: 70%;">
  93. 查看详情
  94. </view>
  95. </view>
  96. </view>
  97. </template>
  98. </u-waterfall>
  99. </view>
  100. <!-- <oldMan></oldMan> -->
  101. </scroll-view>
  102. </swiper-item>
  103. <swiper-item >
  104. <scroll-view scroll-y style="height: 100%;background-color: #F1F1F1;">
  105. <view style="height: 20rpx;"></view>
  106. <view style="margin: 0 20rpx;">
  107. <u-waterfall v-model="carList" ref="uWaterfall">
  108. <template v-slot:left="{leftList}">
  109. <view class="demo-warter" v-for="(item, index) in leftList" :key="index">
  110. <image :src="item.image" class="demo-image" ></image>
  111. <view class="time">
  112. <text class="padding-bottom-10">抓拍时间:</text>
  113. <text>{{item.time}}</text>
  114. </view>
  115. <view class="flex justify-center margin-bottom-50">
  116. <view class="cu-btn line-blue round df" style="width: 70%;">
  117. 查看详情
  118. </view>
  119. </view>
  120. </view>
  121. </template>
  122. <template v-slot:right="{rightList}">
  123. <view class="demo-warter" v-for="(item, index) in rightList" :key="index">
  124. <image :src="item.image" class="demo-image" ></image>
  125. <view class="time">
  126. <text class="padding-bottom-10">抓拍时间:</text>
  127. <text>{{item.time}}</text>
  128. </view>
  129. <view class="flex justify-center margin-bottom-50">
  130. <view class="cu-btn line-blue round df" style="width: 70%;">
  131. 查看详情
  132. </view>
  133. </view>
  134. </view>
  135. </template>
  136. </u-waterfall>
  137. </view>
  138. </scroll-view>
  139. </swiper-item>
  140. </swiper>
  141. </view>
  142. </view>
  143. </template>
  144. <script>
  145. export default {
  146. components:{
  147. },
  148. data() {
  149. return {
  150. oldManList:[
  151. {
  152. image:'http://139.9.103.171:1888/miniofile/app/old1.jpg',
  153. time:'2020-11-02 15:31:22'
  154. },
  155. {
  156. image:'http://139.9.103.171:1888/miniofile/app/c3a3a7d714e74b749a88ecefabfd86d.jpg',
  157. time:'2020-11-22 09:51:56'
  158. }
  159. ],
  160. carList:[
  161. {
  162. image:'http://139.9.103.171:1888/miniofile/app/1606682778(1).jpg',
  163. time:'2020-11-04 12:38:26'
  164. },
  165. {
  166. image:'http://139.9.103.171:1888/miniofile/app/1606682866(1).jpg',
  167. time:'2020-11-13 19:42:52'
  168. }
  169. ],
  170. tanList: [ {
  171. name: '老人关爱'
  172. }, {
  173. name: '车辆关爱'
  174. }],
  175. tabCurrent:0,
  176. subsectionCurrent: 0,
  177. subsectionList: [
  178. {
  179. name: '通讯服务'
  180. },
  181. {
  182. name: '老人关爱'
  183. },
  184. {
  185. name: '车辆关爱'
  186. },
  187. ],
  188. // 卡片列表
  189. cardList:[
  190. {
  191. title:'热门活动',
  192. subTiltle:'优惠多多',
  193. type:'url',
  194. target:'https://yx.nx.189.cn/u/public/index.php/index/index/rmhd.html'
  195. },
  196. {
  197. title:'充值交费',
  198. subTiltle:'用于充值交费',
  199. type:'url',
  200. target:'https://mp.weixin.qq.com/s/oGB5l9lZCQHHJJuXT0umRw'
  201. },
  202. {
  203. title:'宽带预约',
  204. subTiltle:'用于宽带预约',
  205. type:'url',
  206. target:'https://wap.nx.189.cn/pages/market/html/market.html'
  207. },
  208. {
  209. title:'充30减2',
  210. subTiltle:'手机充值满减活动',
  211. type:'url',
  212. target:'https://yx.nx.189.cn/t/public/index.php/dyq/index'
  213. },
  214. {
  215. title:'抽话费',
  216. subTiltle:'用于抽话费',
  217. type:'url',
  218. target:'https://pms.189.cn/cljy-web/static/chfchf/chfchf_zc_index.html?shopid=2000118600000002&cmpid=dp-002&number=undefined'
  219. },
  220. {
  221. title:'流量超市',
  222. subTiltle:'用于充值流量',
  223. type:'url',
  224. target:'https://yx.nx.189.cn/t/public/index.php/flowcs/index'
  225. },
  226. ],
  227. commonList:[
  228. // {
  229. // icon:'../../static/test/icon3.png',
  230. // title:"话费账单",
  231. // badge:0,
  232. // type:'url',
  233. // target:'https://yx.nx.189.cn/u/public/index.php/index/index/historyold'
  234. // },
  235. {
  236. icon:'../../static/test/paihao.png',
  237. title:"营业厅排号",
  238. badge:0,
  239. type:'url',
  240. target:'https://pdweb.360sides.com/?qudao=ningxia'
  241. },
  242. {
  243. icon:'../../static/test/xiaohu.png',
  244. title:"销户服务",
  245. badge:0,
  246. type:'url',
  247. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/kuandai'
  248. },
  249. {
  250. icon:'../../static/test/tuiding-zengzhi.png',
  251. title:"增值服务退订",
  252. badge:0,
  253. type:'url',
  254. target:'http://im.189.cn/cw/index.html?cf=1&cid=6400'
  255. },
  256. {
  257. icon:'../../static/test/tuiding1.png',
  258. title:"应用功能退订",
  259. badge:0,
  260. type:'url',
  261. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/yy'
  262. }
  263. ],
  264. mobileList:[
  265. {
  266. icon:'../../static/test/chongzhi.png',
  267. title:"话费充值",
  268. badge:0,
  269. type:'applet',
  270. target:'wxd4daf5a66b681275'
  271. },
  272. {
  273. icon:'../../static/test/liuliang.png',
  274. title:"流量充值",
  275. badge:0,
  276. type:'url',
  277. target:'https://yx.nx.189.cn/t/public/index.php/flowcs/index'
  278. },
  279. {
  280. icon:'../../static/test/icon21.png',
  281. title:"号卡精选",
  282. badge:0,
  283. type:'url',
  284. target:'https://yx.nx.189.cn/t/public/index.php/hkcs/index'
  285. },
  286. {
  287. icon:'../../static/test/xiehao.png',
  288. title:"携号转网",
  289. badge:0,
  290. type:'url',
  291. target:'https://yx.nx.189.cn/m_lx2020xhzw/login_xhzw.do'
  292. },
  293. {
  294. icon:'../../static/test/icon25.png',
  295. title:"手机挂失",
  296. badge:0,
  297. type:'url',
  298. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/guashi.html'
  299. },
  300. {
  301. icon:'../../static/test/icon26.png',
  302. title:"手机补换卡",
  303. badge:0,
  304. type:'url',
  305. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/buhuanka'
  306. },
  307. {
  308. icon:'../../static/test/icon24.png',
  309. title:"彩铃功能",
  310. badge:0,
  311. type:'url',
  312. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/cailing'
  313. },
  314. ],
  315. broadbandList:[
  316. {
  317. icon:'../../static/test/icon31.png',
  318. title:"宽带订单查询",
  319. badge:0,
  320. type:'url',
  321. target:'https://yx.nx.189.cn/x/kd_yj/order.php'
  322. },
  323. {
  324. icon:'../../static/test/icon32.png',
  325. title:"宽带自助排障",
  326. badge:0,
  327. type:'url',
  328. target:'https://x.189.cn/tykf-services/sso?channel=NX_WEIXIN_Soo&reqMode=5&reqParam=hK8dQ%2F1J63ieVlPpE55UzGkn6hYdnMN25CW93bWD%2FTnwiQ2lOVtZ3E3higHv+%2BXd4tUIpuOnSY%2BVYTLziitWtYd2sArB68J422bltp46KFKLbr%2Fpx6l2JOKRI+a6OaIxCk'
  329. },
  330. {
  331. icon:'../../static/test/icon33.png',
  332. title:"宽带升级",
  333. badge:0,
  334. type:'url',
  335. target:'http://hd.nxeb.cc/pages/market/html/modify.html?client=0'
  336. },
  337. {
  338. icon:'../../static/test/icon34.png',
  339. title:"宽带移机",
  340. badge:0,
  341. type:'url',
  342. target:'https://yx.nx.189.cn/x/kd_yj/'
  343. },
  344. {
  345. icon:'../../static/test/icon35.png',
  346. title:"宽带超市",
  347. badge:0,
  348. type:'url',
  349. target:'http://hd.nxeb.cc/pages/market/html/market.html?rand=1535419737668&client=0'
  350. }
  351. ]
  352. }
  353. },
  354. methods: {
  355. subsectionChange(index) {
  356. this.subsectionCurrent = index
  357. },
  358. tabChange(index){
  359. this.tabCurrent=index
  360. },
  361. swiperChange(e) {
  362. this.subsectionCurrent = e.detail.current
  363. },
  364. animationfinish({detail: { current }}) {
  365. this.swiperCurrent = current;
  366. this.subsectionCurrent = current;
  367. },
  368. goDetail(item){
  369. if (this.$isEmpty(item.type)) {
  370. uni.showToast({
  371. title:"即将推出",
  372. icon:"none"
  373. })
  374. return
  375. }
  376. if (item.type=='applet') {
  377. //小程序跳转
  378. uni.navigateToMiniProgram({
  379. appId: item.target,
  380. path: 'pages/index/index'
  381. })
  382. }else{
  383. //h5跳转
  384. uni.navigateTo({
  385. url:"../webview/webview?url="+item.target
  386. })
  387. }
  388. }
  389. }
  390. }
  391. </script>
  392. <style lang="scss">
  393. page{
  394. height: 100%;
  395. width: 100%;
  396. }
  397. .container {
  398. height: calc(100vh);
  399. background-color: #F6F6F6;
  400. padding: 90rpx 0rpx 0rpx;
  401. .tabs {
  402. height: 90rpx;
  403. position: fixed;
  404. top: 0rpx;
  405. left: 0;
  406. right: 0;
  407. width: 100%;
  408. z-index: 3;
  409. }
  410. }
  411. view{
  412. box-sizing: border-box;
  413. }
  414. .top1{
  415. border-radius: 40rpx 40rpx 0 0;
  416. position: relative;
  417. top: -30rpx;
  418. .card{
  419. border-radius: 20rpx;
  420. }
  421. }
  422. .grid-icon{
  423. image{
  424. width: 56rpx;height: 56rpx;
  425. }
  426. }
  427. .scroll-view {
  428. height: 150rpx;
  429. white-space: nowrap;
  430. width: 100%;
  431. position: relative;
  432. top: -30rpx;
  433. }
  434. .scroll-view-item {
  435. color: #FFFFFF;
  436. background-image: linear-gradient(to right, #2f7ff5, #2f7ff5);
  437. display: inline-block;
  438. text-align: left;
  439. padding: 20rpx 40rpx;
  440. margin:0 8rpx;
  441. width:24%;
  442. border-radius: 12rpx;
  443. }
  444. .scroll-view-item:first-child{
  445. margin-left: 30rpx;
  446. }
  447. .scroll-view-item:last-child{
  448. margin-right: 30rpx;
  449. }
  450. .demo-warter {
  451. height: 580rpx;
  452. margin: 20rpx 8rpx;
  453. background-color: #ffffff;
  454. position: relative;
  455. border-top-right-radius: 12rpx;
  456. border-top-left-radius: 12rpx;
  457. .time{
  458. display: flex;flex-direction: column;
  459. padding-left: 20rpx;
  460. padding-bottom: 40rpx;
  461. }
  462. }
  463. .demo-image {
  464. border-top-right-radius: 12rpx;
  465. border-top-left-radius: 12rpx;
  466. height: 360rpx;
  467. padding-bottom: 10rpx;
  468. width: 100%;
  469. }
  470. </style>