demo2.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <template>
  2. <view class="">
  3. <view class="bg-white " >
  4. <view style="margin: 0 0rpx 40rpx;">
  5. <image style="width: 100%;" mode="widthFix" src="http://139.9.103.171:8888/group1/M00/00/01/iwlnq1-_4mqAf_t4AAKPnq9axkQ981.png" ></image>
  6. </view>
  7. <view class="bg-white" style="padding-top: 20rpx;position: relative;top:-20rpx;">
  8. <view class="common-service" >
  9. <text>通用服务</text>
  10. </view>
  11. <view class="cu-list grid col-4 no-border " style="border-radius: 50rpx;">
  12. <view class="cu-item" @click="goDetail(item)" v-for="(item,index) in commonList" :key="index">
  13. <view class="grid-icon ">
  14. <image :src="item.icon" mode="widthFix"/>
  15. </view>
  16. <text class="text-sm ">{{item.title}}</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="common-service">
  21. <text>手机服务</text>
  22. </view>
  23. <view class="cu-list grid col-4 no-border " style="border-radius: 50rpx;">
  24. <view class="cu-item" @click="goDetail(item)" v-for="(item,index) in mobileList" :key="index">
  25. <view class="grid-icon ">
  26. <image :src="item.icon" mode="widthFix"/>
  27. </view>
  28. <text class="text-sm ">{{item.title}}</text>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="bg-white" style="padding-top: 20rpx;position: relative;top:-10rpx;">
  33. <view class="common-service">
  34. <text>宽带服务</text>
  35. </view>
  36. <view class="cu-list grid col-4 no-border " style="border-radius: 50rpx;">
  37. <view class="cu-item" @click="goDetail(item)" v-for="(item,index) in broadbandList" :key="index">
  38. <view class="grid-icon ">
  39. <image :src="item.icon" mode="widthFix"/>
  40. </view>
  41. <text class="text-sm ">{{item.title}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view style="height: 80rpx;">
  46. <u-divider bgColor="#f1f1f1;" height="80">到底了</u-divider>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. name: '',
  53. data() {
  54. return {
  55. // 卡片列表
  56. cardList:[
  57. {
  58. title:'热门活动',
  59. subTiltle:'优惠多多',
  60. type:'url',
  61. target:'https://yx.nx.189.cn/u/public/index.php/index/index/rmhd.html'
  62. },
  63. {
  64. title:'充值交费',
  65. subTiltle:'用于充值交费',
  66. type:'url',
  67. target:'https://mp.weixin.qq.com/s/oGB5l9lZCQHHJJuXT0umRw'
  68. },
  69. {
  70. title:'宽带预约',
  71. subTiltle:'用于宽带预约',
  72. type:'url',
  73. target:'https://wap.nx.189.cn/pages/market/html/market.html'
  74. },
  75. {
  76. title:'充30减2',
  77. subTiltle:'手机充值满减活动',
  78. type:'url',
  79. target:'https://yx.nx.189.cn/t/public/index.php/dyq/index'
  80. },
  81. {
  82. title:'抽话费',
  83. subTiltle:'用于抽话费',
  84. type:'url',
  85. target:'https://pms.189.cn/cljy-web/static/chfchf/chfchf_zc_index.html?shopid=2000118600000002&cmpid=dp-002&number=undefined'
  86. },
  87. {
  88. title:'流量超市',
  89. subTiltle:'用于充值流量',
  90. type:'url',
  91. target:'https://yx.nx.189.cn/t/public/index.php/flowcs/index'
  92. },
  93. ],
  94. commonList:[
  95. {
  96. icon:'../../static/telecom/paihao.png',
  97. title:"营业厅排号",
  98. badge:0,
  99. type:'url',
  100. target:'https://pdweb.360sides.com/?qudao=ningxia'
  101. },
  102. {
  103. icon:'../../static/telecom/xiaohu.png',
  104. title:"销户服务",
  105. badge:0,
  106. type:'url',
  107. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/kuandai'
  108. },
  109. {
  110. icon:'../../static/telecom/tuiding-zengzhi.png',
  111. title:"增值服务退订",
  112. badge:0,
  113. type:'url',
  114. target:'http://im.189.cn/cw/index.html?cf=1&cid=6400'
  115. },
  116. {
  117. icon:'../../static/telecom/tuiding1.png',
  118. title:"应用功能退订",
  119. badge:0,
  120. type:'url',
  121. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/yy'
  122. }
  123. ],
  124. mobileList:[
  125. {
  126. icon:'../../static/telecom/chongzhi.png',
  127. title:"话费充值",
  128. badge:0,
  129. type:'applet',
  130. target:'wxd4daf5a66b681275'
  131. },
  132. {
  133. icon:'../../static/telecom/liuliang.png',
  134. title:"流量充值",
  135. badge:0,
  136. type:'url',
  137. target:'https://yx.nx.189.cn/t/public/index.php/flowcs/index'
  138. },
  139. {
  140. icon:'../../static/telecom/icon21.png',
  141. title:"号卡精选",
  142. badge:0,
  143. type:'url',
  144. target:'https://yx.nx.189.cn/t/public/index.php/hkcs/index'
  145. },
  146. {
  147. icon:'../../static/telecom/xiehao.png',
  148. title:"携号转网",
  149. badge:0,
  150. type:'url',
  151. target:'https://yx.nx.189.cn/m_lx2020xhzw/login_xhzw.do'
  152. },
  153. {
  154. icon:'../../static/telecom/icon25.png',
  155. title:"手机挂失",
  156. badge:0,
  157. type:'url',
  158. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/guashi.html'
  159. },
  160. {
  161. icon:'../../static/telecom/icon26.png',
  162. title:"手机补换卡",
  163. badge:0,
  164. type:'url',
  165. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/buhuanka'
  166. },
  167. {
  168. icon:'../../static/telecom/icon24.png',
  169. title:"彩铃功能",
  170. badge:0,
  171. type:'url',
  172. target:'https://yx.nx.189.cn/t/public/index.php/hd2020zzyw/cailing'
  173. },
  174. ],
  175. broadbandList:[
  176. {
  177. icon:'../../static/telecom/icon31.png',
  178. title:"宽带订单查询",
  179. badge:0,
  180. type:'url',
  181. target:'https://yx.nx.189.cn/x/kd_yj/order.php'
  182. },
  183. {
  184. icon:'../../static/telecom/icon32.png',
  185. title:"宽带自助排障",
  186. badge:0,
  187. type:'url',
  188. target:'https://x.189.cn/tykf-services/sso?channel=NX_WEIXIN_Soo&reqMode=5&reqParam=hK8dQ%2F1J63ieVlPpE55UzGkn6hYdnMN25CW93bWD%2FTnwiQ2lOVtZ3E3higHv+%2BXd4tUIpuOnSY%2BVYTLziitWtYd2sArB68J422bltp46KFKLbr%2Fpx6l2JOKRI+a6OaIxCk'
  189. },
  190. {
  191. icon:'../../static/telecom/icon33.png',
  192. title:"宽带升级",
  193. badge:0,
  194. type:'url',
  195. target:'http://hd.nxeb.cc/pages/market/html/modify.html?client=0'
  196. },
  197. {
  198. icon:'../../static/telecom/icon34.png',
  199. title:"宽带移机",
  200. badge:0,
  201. type:'url',
  202. target:'https://yx.nx.189.cn/x/kd_yj/'
  203. },
  204. {
  205. icon:'../../static/telecom/icon35.png',
  206. title:"宽带超市",
  207. badge:0,
  208. type:'url',
  209. target:'http://hd.nxeb.cc/pages/market/html/market.html?rand=1535419737668&client=0'
  210. }
  211. ]
  212. };
  213. },
  214. onLoad() {
  215. },
  216. methods:{
  217. goDetail(item){
  218. if (this.$isEmpty(item.type)) {
  219. uni.showToast({
  220. title:"即将推出",
  221. icon:"none"
  222. })
  223. return
  224. }
  225. if (item.type=='applet') {
  226. //小程序跳转
  227. uni.navigateToMiniProgram({
  228. appId: item.target,
  229. path: 'pages/index/index'
  230. })
  231. }else{
  232. //h5跳转
  233. uni.navigateTo({
  234. url:"../webview/webview?url="+item.target
  235. })
  236. }
  237. },
  238. }
  239. };
  240. </script>
  241. <style lang="scss" scoped>
  242. .bg-white {
  243. background-color: #FFFFFF;
  244. }
  245. .grid-icon image {
  246. width: 56rpx;
  247. height: 56rpx;
  248. }
  249. .text-sm {
  250. font-size: 24rpx;
  251. }
  252. .common-service {
  253. font-weight: 800;
  254. font-size: 32rpx;
  255. margin-left: 40rpx;
  256. margin-bottom: 10rpx;
  257. }
  258. .cu-list.grid.no-border {
  259. padding: 10px 5px;
  260. }
  261. .cu-list.grid {
  262. background-color: #ffffff;
  263. text-align: center;
  264. }
  265. .cu-list.grid.no-border {
  266. padding: 10px 5px;
  267. }
  268. .grid {
  269. /* display: -webkit-box; */
  270. /* display: -webkit-flex; */
  271. display: -webkit-box;
  272. display: -webkit-flex;
  273. display: flex;
  274. /* -webkit-flex-wrap: wrap; */
  275. -webkit-flex-wrap: wrap;
  276. flex-wrap: wrap;
  277. }
  278. </style>