浏览代码

提交代码w

xgwangman 4 年之前
父节点
当前提交
e46e2aad1a

+ 5 - 0
jydocs-mobile/src/style/pic-icon.scss

@@ -62,3 +62,8 @@
     background-color: $color_main;
   }
 }
+
+.icon-iconJianYu {
+  background: url("~@/assets/icon/iconJianYu.png") no-repeat;
+  background-size: cover;
+}

+ 1 - 1
jydocs-mobile/src/utils/index.ts

@@ -24,7 +24,7 @@ Vue.prototype.$env = {
 }
 
 // 如果是微信浏览器, 注册一个微信SDK初始化函数
-if (inWeiXinBrowser) {
+if (!inWeiXinBrowser) {
   Vue.prototype.$registerWxSdk = async () => {
     const sdkInfo = await getWxSdkSign({ url: location.href.split('#')[0] })
     if (!sdkInfo) return

+ 1 - 2
jydocs-mobile/src/views/details/details.vue

@@ -95,7 +95,7 @@ export default class extends Vue {
   }
 
   TopConfig: any = {
-    actionRightText: '<div style="display:flex;flex-direction: column;align-items: center;"><img src="https://app3-jytest.jydev.jianyu360.com/jyapp/images/hongbao.png?v=9629" width="24" height="24"><p style="color: #171826;font-size: 10px;line-height: 12px;margin-top:3px;">分享赚积分</p></div>',
+    actionRightText: '<div style="display:flex;flex-direction: column;align-items: center;"><i class="j-icon icon-iconJianYu"></i><p style="color: #171826;font-size: 10px;line-height: 12px;margin-top:3px;">分享赚积分</p></div>',
     actionRightCallback: this.shared,
     actionRightStyle: {
       color: '#5F5E64',
@@ -106,7 +106,6 @@ export default class extends Vue {
 
   created () {
     this.docIds = this.$route.params.id
-    // this.docIds = '19d53d64-8890-11eb-8699-0050568f51e7'
     this.onList()
   }