t-m-icon.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view class="content">
  3. <view class="list">
  4. <view class="item" @click="tell()">
  5. <view class="icon">
  6. <image src="./icon/fuwudianhua.png" mode=""></image>
  7. </view>
  8. <view class="name">服务电话</view>
  9. </view>
  10. <view class="item" @click="go_m_message_reminder()">
  11. <view class="icon">
  12. <image src="./icon/xiaoxi.png" mode=""></image>
  13. </view>
  14. <view class="name">消息提醒</view>
  15. </view>
  16. <view class="item" @click="go_business_audit()">
  17. <view class="icon">
  18. <image src="./icon/gongdanshenhe.png" mode=""></image>
  19. </view>
  20. <view class="name">工单审核</view>
  21. </view>
  22. <view class="item" @click="go_business_my()">
  23. <view class="icon">
  24. <image src="./icon/wodegongdan.png" mode=""></image>
  25. </view>
  26. <view class="name">我的工单</view>
  27. </view>
  28. <view class="item" @click="go_user_manual()">
  29. <view class="icon">
  30. <image src="./icon/shiyongshouce.png" mode=""></image>
  31. </view>
  32. <view class="name">使用手册</view>
  33. </view>
  34. <view class="item" @click="go_signature()">
  35. <view class="icon">
  36. <image src="./icon/shouxieqianming.png" mode=""></image>
  37. </view>
  38. <view class="name">手写签名</view>
  39. </view>
  40. <view class="item" @click="go_feedback()">
  41. <view class="icon">
  42. <image src="./icon/jianyifankui.png" mode=""></image>
  43. </view>
  44. <view class="name">建议反馈</view>
  45. </view>
  46. <view class="item" @click="go_m_repassword()">
  47. <view class="icon">
  48. <image src="./icon/xiugaimima.png" mode=""></image>
  49. </view>
  50. <view class="name">修改密码</view>
  51. </view>
  52. <view class="item" @click="go_update_log()">
  53. <view class="icon">
  54. <image src="./icon/gengxin.png" mode=""></image>
  55. </view>
  56. <view class="name">更新日志</view>
  57. </view>
  58. <view class="item" @click="clear_cache()">
  59. <view class="icon">
  60. <image src="./icon/qingchu.png" mode=""></image>
  61. </view>
  62. <view class="name">清除缓存</view>
  63. </view>
  64. <!-- <view class="item" @click="go_cloud_disk()">
  65. <view class="icon">
  66. <image src="./icon/qingchu.png" mode=""></image>
  67. </view>
  68. <view class="name">我的云盘</view>
  69. </view> -->
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. export default {
  75. name:"t-m-icon",
  76. props: [
  77. "mine_code"
  78. ],
  79. data() {
  80. return {
  81. };
  82. },
  83. created() {
  84. console.log(this.mine_code)
  85. },
  86. methods:{
  87. // 拨打服务电话
  88. tell(){
  89. uni.makePhoneCall({
  90. phoneNumber: '18152480670'
  91. });
  92. },
  93. // 修改密码
  94. go_m_repassword(){
  95. uni.navigateTo({
  96. url:"../../my/repassword/repassword"
  97. })
  98. },
  99. // 消息提醒
  100. go_m_message_reminder(){
  101. uni.navigateTo({
  102. url:"../../my/message-reminder/message-reminder"
  103. })
  104. },
  105. // 清除缓存
  106. clear_cache(){
  107. uni.showLoading()
  108. setTimeout(()=>{
  109. uni.hideLoading()
  110. uni.showToast({
  111. icon:"none",
  112. title:"清除完成"
  113. })
  114. },1500)
  115. },
  116. // 使用手册
  117. go_user_manual(){
  118. if(this.mine_code == 'zaoquan'){
  119. uni.navigateTo({
  120. url:"../../index/record/record?pageId=f73209f7e0a4425a94a32210cdfc311d&mine_code=" + this.mine_code,
  121. })
  122. }else if(this.mine_code == 'ningdongyunying'){
  123. uni.navigateTo({
  124. url:"../../index/record/record?pageId=156c601a10be43bc8f32e83f0664821b&mine_code=" + this.mine_code,
  125. })
  126. }
  127. },
  128. // 建议反馈
  129. go_feedback(){
  130. if(this.mine_code == 'zaoquan'){
  131. uni.navigateTo({
  132. url:"../../index/record/record?pageId=45c1a10e9da04670962ff67da80be5b1&mine_code=" + this.mine_code,
  133. })
  134. }else{
  135. }
  136. },
  137. // 更新日志
  138. go_update_log(){
  139. if(this.mine_code == 'zaoquan'){
  140. uni.navigateTo({
  141. url:"../../index/record/record?pageId=982d321d1fd64894a4a22c8f940ed7cc&mine_code=" + this.mine_code,
  142. })
  143. }else{
  144. }
  145. },
  146. // 工单审核
  147. go_business_audit(){
  148. uni.navigateTo({
  149. url:"../../my/business-audit/business-audit"
  150. })
  151. },
  152. // 我的工单
  153. go_business_my(){
  154. uni.navigateTo({
  155. url:"../../my/business-my/business-my"
  156. })
  157. },
  158. // 手写签名
  159. go_signature(){
  160. uni.navigateTo({
  161. url:"../../my/signature/signature"
  162. })
  163. },
  164. go_cloud_disk(){
  165. uni.navigateTo({
  166. url:"../../my/cloud_disk/cloud_disk"
  167. })
  168. }
  169. }
  170. }
  171. </script>
  172. <style lang="scss">
  173. .content{
  174. box-sizing: border-box;
  175. padding: 0 24rpx;
  176. margin-bottom: 30rpx;
  177. }
  178. .list{
  179. width: 700rpx;
  180. overflow: hidden;
  181. .item{
  182. float: left;
  183. width: 200rpx;
  184. text-align: center;
  185. margin-right: 50rpx;
  186. margin-top: 22px;
  187. .icon{
  188. position: relative;
  189. text-align: center;
  190. image{
  191. width: 45px;
  192. height: 45px;
  193. }
  194. .num{
  195. position: absolute;
  196. right: 14px;
  197. top: -4px;
  198. display: inline-block;
  199. width: 20px;
  200. line-height: 20px;
  201. font-size: 12px;
  202. color: #FFFFFF;
  203. background-color: red;
  204. border-radius: 50%;
  205. }
  206. }
  207. .name{
  208. font-size: 15px;
  209. font-weight: 500;
  210. color: #232627;
  211. line-height: 21px;
  212. }
  213. }
  214. .item:nth-child(3n){
  215. margin-right: 0;
  216. }
  217. }
  218. </style>