Commit 5db55f21 by 李伟康

修改朋友圈样式

1 parent 5e21b1f3
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
module.exports = { module.exports = {
envVersion: 'trial', envVersion: 'trial',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -217,8 +217,10 @@ export default { ...@@ -217,8 +217,10 @@ export default {
}) })
}, },
send () { send () {
this.showLoading()
let { taskId } = this.getQuery() let { taskId } = this.getQuery()
sopApi.getMedia(taskId).then(params => { sopApi.getMedia(taskId).then(params => {
this.hideLoading()
console.log(params) console.log(params)
let obj = { let obj = {
attachments: [] attachments: []
...@@ -241,6 +243,7 @@ export default { ...@@ -241,6 +243,7 @@ export default {
url: e[key].url url: e[key].url
} }
else par = { else par = {
// mediaid: '3zP79XZIMyCtlbTEDG9zPnheeOQsBS4Iz_SkGIcH05bLhHUGLPQsYQLPWy_7BmzlZ'
mediaid: e[key].mediaId mediaid: e[key].mediaId
} }
obj.attachments.push({ obj.attachments.push({
...@@ -251,7 +254,7 @@ export default { ...@@ -251,7 +254,7 @@ export default {
} }
}) })
}) })
// this.showLoading() this.showLoading()
wxConfig.shareToExternalMoments(obj) wxConfig.shareToExternalMoments(obj)
.then(res => { .then(res => {
this.hideLoading() this.hideLoading()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!