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 | 678 | if (th.data.is_generate) return; |
679 | 679 | th.data.is_generate = 1; |
680 | 680 | |
681 | - var scene = 1; | |
681 | + var scene = this.data.is_user_task.id; | |
682 | 682 | ///二微码 |
683 | 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 | 685 | //读取文件成功则OK-- |
686 | 686 | wx.getImageInfo({ |
687 | 687 | src: path3, |
... | ... | @@ -943,9 +943,12 @@ Page({ |
943 | 943 | th.setData({ |
944 | 944 | is_share: 1 |
945 | 945 | }) |
946 | + wx.showLoading({ | |
947 | + title: "加载中", | |
948 | + }) | |
946 | 949 | var url = "/api/weshop/marketing/help/help/task/involve/page"; |
947 | 950 | getApp().request.promiseGet(url, { |
948 | - isShowLoading: true, | |
951 | + isShowLoading: false, | |
949 | 952 | data: { |
950 | 953 | storeId: os.stoid, |
951 | 954 | taskId: taskid, |
... | ... | @@ -981,6 +984,7 @@ Page({ |
981 | 984 | th.data.head_pic_arr.length = 0; |
982 | 985 | for (var i in images) { |
983 | 986 | var img_path = images[i].headPic; |
987 | + img_path=img_path.replace("http://thirdwx.qlogo.cn", "https://wx.qlogo.cn"); | |
984 | 988 | await getApp().request.promise_downimg(img_path).then(res => { |
985 | 989 | th.data.head_pic_arr.push(res); |
986 | 990 | }) | ... | ... |