selecteBindCardMode.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <template>
  2. <!--pages2/st1/merge/business/patientManagement/selecteBindCardMode/selecteBindCardMode.wxml-->
  3. <view class="container">
  4. <view class="content">
  5. <view class="content_inner" v-if="menuList[0] && menuList[0].IsShow == 1">
  6. <text class="menu_tips">微信本人推荐方式</text>
  7. <template v-for="(item, index) in menuList[0].Children" :key="index">
  8. <view class="inner_menulist displayFlexRow" v-if="item.IsShow==1" @click="goto(item)">
  9. <image class="img" :src="item.Icon"></image>
  10. <view class="menulis_box">
  11. <view class="menulis_box_title">{{item.MenuName}}</view>
  12. <view class="menulis_box_tip">{{item.MenuSubName}}</view>
  13. </view>
  14. <image class="public_right_img" :src="iconUrl.icon_right"></image>
  15. <view class="recommend_img" v-if="index == 0">
  16. <text>推荐</text>
  17. <image :src="iconUrl.icon_add_tj"></image>
  18. </view>
  19. </view>
  20. </template>
  21. </view>
  22. <view class="menu_listBox" v-if="type != 'addMy' && menuList[1]">
  23. <template v-for="(item, index) in menuList[1].Children" :key="index">
  24. <view class="inner_menulist displayFlexLeft" v-if="item.IsShow==1" @click="goto(item)">
  25. <image class="img" :src="item.Icon"></image>
  26. <view class="menulis_box">
  27. <view class="menulis_box_title">{{item.MenuName}}</view>
  28. <view class="menulis_box_tip">{{item.MenuSubName}}</view>
  29. </view>
  30. <image class="public_right_img" :src="iconUrl.icon_right"></image>
  31. </view>
  32. </template>
  33. </view>
  34. <view class="public_tip">
  35. <view class="public_tip_box displayFlexRow">
  36. <image class="tips_icon" :src="iconUrl.spot_left" />
  37. <text class="colorCustom">温馨提示</text>
  38. <image class="tips_icon" :src="iconUrl.spot_right" />
  39. </view>
  40. <view class="public_tip_text">1、微信账号本人:请选择“医保屏”,绑定医保电子凭证;</view>
  41. <view class="public_tip_text">2、手动录入:适用于婴幼儿、港澳台同胞、外籍人士,或帮亲友代办的情况。</view>
  42. <view class="public_tip_text">3、“卡号添加”,适用于已有就诊卡、住院号的用户;</view>
  43. <view class="public_tip_text">4、“电子健康卡”,适用于已授权电子健康卡用户;</view>
  44. <!-- <view class="public_tip_text">2、“卡号添加”,适用于已有就诊卡、住院号的用户;</view>
  45. <view class="public_tip_text">2、“卡号添加”,适用于已有就诊卡、住院号的用户;</view> -->
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script lang="ts" setup>
  51. import { getYlzMemberOuthUrl } from '@/pagesPersonal/service/patientManagement';
  52. import { common } from '@/utils';
  53. import icon from '@/utils/icon';
  54. import { onLoad, onShow } from '@dcloudio/uni-app';
  55. import { ref } from 'vue';
  56. const app = getApp();
  57. const iconUrl = ref(icon);
  58. const menuList = ref<any[]>([]);
  59. const type = ref("");
  60. onShow(() => {
  61. let list = uni.getStorageSync('menuList').filter((item: any) => item.MenuName == 'AddMember');
  62. menuList.value = list[0] ? list[0].Children : [];
  63. });
  64. onLoad((options: any) => {
  65. type.value = options.type || '';
  66. });
  67. const goto = async (item: any) => {
  68. if(item.AppId) {
  69. // #ifdef MP-WEIXIN
  70. uni.navigateToMiniProgram({
  71. appId: item.AppId,
  72. path: item.Url
  73. });
  74. // #endif
  75. // #ifndef MP-WEIXIN
  76. common.showToast('请在微信小程序中使用');
  77. // #endif
  78. } else if(item.MenuName.indexOf("医保") != -1){
  79. let { resData } = await getYlzMemberOuthUrl({
  80. hosId: app.globalData.districtId || app.globalData.hosId
  81. });
  82. if(resData.RespCode == 10000 && common.isNotEmpty(resData.Data)){
  83. let data = resData.Data;
  84. // @ts-ignore
  85. // #ifdef MP-WEIXIN
  86. uni.navigateToMiniProgram({
  87. appId: data[0].AppId,
  88. path: data[0].Path,
  89. envVersion: data[0].EnvVersion && 'trial',
  90. });
  91. // #endif
  92. // #ifndef MP-WEIXIN
  93. common.showToast('请在微信小程序中使用');
  94. // #endif
  95. }
  96. } else {
  97. common.goToUrl(item.Url, { skipWay: "redirectTo" });
  98. }
  99. };
  100. </script>
  101. <style lang="scss" scoped>
  102. /* pages2/st1/merge/business/patientManagement/selecteBindCardMode/selecteBindCardMode.wxss */
  103. .container {
  104. padding: 30upx;
  105. }
  106. .content_inner {
  107. padding: 30upx;
  108. box-sizing: border-box;
  109. background: white;
  110. border-radius: 20upx;
  111. margin-bottom: 30upx;
  112. }
  113. .content_inner .menu_tips {
  114. font-size: 32upx;
  115. font-weight: 550;
  116. color: #62626D;
  117. }
  118. .content_inner .inner_menulist {
  119. margin: 30upx 0 0;
  120. background: #FFFFFF;
  121. border-radius: 10upx;
  122. padding: 44upx 30upx;
  123. box-shadow: 0px 0px 58px 0px rgba(0,0,0,0.05);
  124. justify-content: flex-start;
  125. align-items: flex-start;
  126. position: relative;
  127. }
  128. .content_inner .inner_menulist .img {
  129. width: 86upx;
  130. height: 86upx;
  131. margin-top: 8upx;
  132. margin-right: 30upx;
  133. box-shadow: 1upx 1upx 10upx -1upx black;
  134. border-radius: 50%;
  135. }
  136. .content_inner .menulis_box {
  137. width: 70%;
  138. }
  139. .content_inner .menulis_box_title {
  140. font-size: 34upx;
  141. font-weight: bold;
  142. color: #222326;
  143. margin-bottom: 20upx;
  144. }
  145. .content_inner .menulis_box_tip {
  146. font-size: 28upx;
  147. color: #62626D;
  148. }
  149. .content_inner .public_right_img {
  150. width: 14upx;
  151. height: 24upx;
  152. right: 30upx;
  153. position: absolute; /* Added position absolute to align right like original css implying 'right: 30upx' works with relative parent */
  154. top: 50%;
  155. transform: translateY(-50%);
  156. }
  157. .content_inner .recommend_img {
  158. width: 70upx;
  159. height: 34upx;
  160. position: absolute;
  161. top: 0;
  162. right: 0;
  163. }
  164. .content_inner .recommend_img image {
  165. width: 100%;
  166. height: 100%;
  167. position: absolute;
  168. top: 0;
  169. right: 0;
  170. }
  171. .content_inner .recommend_img text {
  172. display: inline-block;
  173. width: 70upx;
  174. line-height: 34upx;
  175. text-align: center;
  176. font-size: 22upx;
  177. color: white;
  178. position: absolute;
  179. top: 0;
  180. right: 0;
  181. z-index: 3;
  182. }
  183. .inner_menulist {
  184. margin-bottom: 30upx;
  185. padding: 40upx 30upx;
  186. background: #FFFFFF;
  187. border-radius: 24upx;
  188. position: relative;
  189. }
  190. .inner_menulist .img {
  191. width: 98upx;
  192. height: 98upx;
  193. margin-right: 22upx;
  194. }
  195. .menulis_box{
  196. width: 70%;
  197. }
  198. .menulis_box_title {
  199. font-size: 32upx;
  200. font-weight: bold;
  201. color: #222326;
  202. margin-bottom: 18upx;
  203. }
  204. .menulis_box_tip {
  205. font-size: 26upx;
  206. color: #8A8A99;
  207. line-height: 40upx;
  208. }
  209. .public_right_img {
  210. width: 14upx;
  211. height: 24upx;
  212. right: 30upx;
  213. position: absolute;
  214. top: 50%;
  215. transform: translateY(-50%);
  216. }
  217. .public_tip {
  218. border-radius: 24upx;
  219. background: white;
  220. padding: 30upx; /* Added padding to match original appearance possibly */
  221. }
  222. .public_tip .tips_icon {
  223. width: 75upx;
  224. height: 23upx;
  225. }
  226. .public_tip_box {
  227. margin-bottom: 48upx;
  228. justify-content: center;
  229. align-items: center;
  230. }
  231. .public_tip_box text {
  232. font-size: 32upx;
  233. font-weight: bold;
  234. padding: 0 24upx;
  235. box-sizing: border-box;
  236. color: #222326;
  237. }
  238. .public_tip_text {
  239. font-size: 28upx;
  240. color: #62626D;
  241. padding-bottom: 28upx;
  242. line-height: 44upx;
  243. }
  244. .public_tip_text:last-child {
  245. padding-bottom: 0;
  246. }
  247. </style>