Commit b2e72554a7387515f65503aaab2852f1f3793650
1 parent
1d0fc391
分享的路径,分享图片的域名问题
Showing
2 changed files
with
7 additions
and
4 deletions
pages/user/assistance/task_assistance.js
| @@ -678,10 +678,10 @@ Page({ | @@ -678,10 +678,10 @@ Page({ | ||
| 678 | if (th.data.is_generate) return; | 678 | if (th.data.is_generate) return; |
| 679 | th.data.is_generate = 1; | 679 | th.data.is_generate = 1; |
| 680 | 680 | ||
| 681 | - var scene = 1; | 681 | + var scene = this.data.is_user_task.id; |
| 682 | ///二微码 | 682 | ///二微码 |
| 683 | var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" + | 683 | var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" + |
| 684 | - os.stoid + "?sceneValue=" + scene + "&pageValue=pages/index/index/index"; | 684 | + os.stoid + "?sceneValue=" + scene + "&pageValue=pages/user/assistance/friend_assistance"; |
| 685 | //读取文件成功则OK-- | 685 | //读取文件成功则OK-- |
| 686 | wx.getImageInfo({ | 686 | wx.getImageInfo({ |
| 687 | src: path3, | 687 | src: path3, |
| @@ -943,9 +943,12 @@ Page({ | @@ -943,9 +943,12 @@ Page({ | ||
| 943 | th.setData({ | 943 | th.setData({ |
| 944 | is_share: 1 | 944 | is_share: 1 |
| 945 | }) | 945 | }) |
| 946 | + wx.showLoading({ | ||
| 947 | + title: "加载中", | ||
| 948 | + }) | ||
| 946 | var url = "/api/weshop/marketing/help/help/task/involve/page"; | 949 | var url = "/api/weshop/marketing/help/help/task/involve/page"; |
| 947 | getApp().request.promiseGet(url, { | 950 | getApp().request.promiseGet(url, { |
| 948 | - isShowLoading: true, | 951 | + isShowLoading: false, |
| 949 | data: { | 952 | data: { |
| 950 | storeId: os.stoid, | 953 | storeId: os.stoid, |
| 951 | taskId: taskid, | 954 | taskId: taskid, |
| @@ -981,6 +984,7 @@ Page({ | @@ -981,6 +984,7 @@ Page({ | ||
| 981 | th.data.head_pic_arr.length = 0; | 984 | th.data.head_pic_arr.length = 0; |
| 982 | for (var i in images) { | 985 | for (var i in images) { |
| 983 | var img_path = images[i].headPic; | 986 | var img_path = images[i].headPic; |
| 987 | + img_path=img_path.replace("http://thirdwx.qlogo.cn", "https://wx.qlogo.cn"); | ||
| 984 | await getApp().request.promise_downimg(img_path).then(res => { | 988 | await getApp().request.promise_downimg(img_path).then(res => { |
| 985 | th.data.head_pic_arr.push(res); | 989 | th.data.head_pic_arr.push(res); |
| 986 | }) | 990 | }) |
pages/user/assistance/task_assistance.wxml
| @@ -152,7 +152,6 @@ | @@ -152,7 +152,6 @@ | ||
| 152 | 152 | ||
| 153 | <!--********** 钱巧玲 --> | 153 | <!--********** 钱巧玲 --> |
| 154 | <view wx:if="{{is_share}}"> | 154 | <view wx:if="{{is_share}}"> |
| 155 | - | ||
| 156 | <view class="dust"></view> | 155 | <view class="dust"></view> |
| 157 | <view class="canvas" style="width:100%;"> | 156 | <view class="canvas" style="width:100%;"> |
| 158 | <view class="flex-center"> | 157 | <view class="flex-center"> |