Browse Source

朗读赛作品分享

bayi 2 years ago
parent
commit
964404fe59
3 changed files with 11 additions and 8 deletions
  1. 3 1
      pages/match/index.js
  2. 1 0
      pages/match/index.wxml
  3. 7 7
      utils/request.js

+ 3 - 1
pages/match/index.js

@@ -12,7 +12,9 @@ import {
 import {
   createStoreBindings
 } from 'mobx-miniprogram-bindings'
+import share from '~/mixins/share'
 Page({
+  behaviors: [share],
   /**
    * 页面的初始数据
    */
@@ -63,7 +65,7 @@ Page({
     this.setData({
       activityUserList,
       myActivityUser,
-      explain:activity.explain
+      explain: activity.explain
     })
   },
   async getSelfReadRanking() {

+ 1 - 0
pages/match/index.wxml

@@ -99,4 +99,5 @@
       <image src="/static/rankNull.png" class="rankNull" wx:else />
     </block>
   </view>
+  <canvas id='share' type="2d"> </canvas>
 </view>

+ 7 - 7
utils/request.js

@@ -6,13 +6,13 @@ const {
     envVersion
   }
 } = wx.getAccountInfoSync();
-if (envVersion == 'develop') {
-  baseUrl = 'https://reader-api.efunbox.cn/wx'
-  oldUrl = 'https://reader-api.efunbox.cn'
-} else {
-  baseUrl = 'https://reader-api.ai160.com/wx'
-  oldUrl = 'https://reader-api.ai160.com'
-}
+/* if (envVersion == 'develop') {
+baseUrl = 'https://reader-api.efunbox.cn/wx'
+oldUrl = 'https://reader-api.efunbox.cn'
+} else { */
+baseUrl = 'https://reader-api.ai160.com/wx'
+oldUrl = 'https://reader-api.ai160.com'
+// }
 
 function request(url, method, data, oldBaseUrl = false) {
   let header = {