You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

97 lines
2.4 KiB

  1. <template>
  2. <view class="main">
  3. <view class="text1">第一步:关注数智工牌公众号</view>
  4. <view style="width: 96%;margin: 0 auto;">
  5. <view class="text2" style="margin-top: 30rpx;">1.长按识别二维码或保存至相册进行关注</view>
  6. <view style="text-align: center;">
  7. <image @click="baocun()" style="width: 300rpx;height: 300rpx;" src="../../static/images/supimg.png"
  8. mode=""></image>
  9. </view>
  10. <view style="margin-top: 30rpx;" class="text2">2.微信搜索公众号【数智工牌】进行关注</view>
  11. </view>
  12. <view style="margin-top: 30rpx;" class="text1">第二步:点击【用户绑定】,完成绑定即可</view>
  13. <view style="width: 100%;margin-top: 30rpx;">
  14. <image style="width: 100%;height: 362rpx;" src="../../static/images/supsrc.png" mode=""></image>
  15. </view>
  16. <view style="font-size: 30rpx;color: red;margin-top: 30rpx;">
  17. 注意:微信绑定手机号与智控管家登录的手机号不一致时无法接受消息。
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. var app = getApp();
  23. var util = require("../../utils/util.js");
  24. var config = require("../../config");
  25. export default {
  26. data() {
  27. return {
  28. };
  29. },
  30. onShow: function() {
  31. var userInfos = uni.getStorageSync('weapp_session_userInfo_data');
  32. },
  33. methods: {
  34. baocun() {
  35. const _this = this;
  36. wx.getImageInfo({
  37. src: '/static/images/supimg.png',
  38. success: function(res) {
  39. wx.saveImageToPhotosAlbum({
  40. filePath: res.path,
  41. success(result) {
  42. wx.showToast({
  43. title: '保存成功',
  44. icon: 'success',
  45. duration: 2000
  46. })
  47. },
  48. fail(err) {
  49. if (err.errMsg === "saveImageToPhotosAlbum:fail auth deny") {
  50. wx.openSetting({
  51. success(settingdata) {
  52. if (settingdata.authSetting[
  53. 'scope.writePhotosAlbum']) {
  54. _this.savePhoto()
  55. } else {
  56. wx.showToast({
  57. title: '获取权限失败,无法保存图片',
  58. icon: 'success',
  59. duration: 2000
  60. })
  61. }
  62. }
  63. })
  64. }
  65. }
  66. })
  67. }
  68. })
  69. }
  70. }
  71. };
  72. </script>
  73. <style lang="scss" scoped>
  74. .main {
  75. padding: 30rpx;
  76. background: #F8F8F8;
  77. display: flex;
  78. flex-direction: column;
  79. min-height: 100vh;
  80. padding-bottom: 40rpx;
  81. background: #FFFFFF;
  82. .text1 {
  83. color: #303030;
  84. font-size: 30rpx;
  85. }
  86. .text2 {
  87. font-size: 30rpx;
  88. color: #666666;
  89. }
  90. }
  91. </style>