Commit 2ce75210 authored by 王's avatar

公众号菜单添加发送消息

parent a5defc82
...@@ -254,6 +254,8 @@ ...@@ -254,6 +254,8 @@
} }
}, },
onOptionChange(id){ onOptionChange(id){
console.log('onOptionChange', id)
this.form.goods_id = id;
let index = this.goodList.findIndex((val)=>{ return val.id = id}); let index = this.goodList.findIndex((val)=>{ return val.id = id});
if(index >-1){ if(index >-1){
this.getLessonDetail(this.goodList[index].course_id); this.getLessonDetail(this.goodList[index].course_id);
......
...@@ -546,7 +546,7 @@ ...@@ -546,7 +546,7 @@
let json = { let json = {
type: type, type: type,
page: this.nowPage, page: this.nowPage,
limit: type === 'news' ? 2 : this.limit limit: this.limit
}; };
this.loading = true; this.loading = true;
this.showMedia = true; this.showMedia = true;
......
...@@ -230,9 +230,6 @@ ...@@ -230,9 +230,6 @@
<div class="tool_bar"> <div class="tool_bar">
<el-button @click="close">取 消</el-button> <el-button @click="close">取 消</el-button>
<el-button class="weui-desktop-btn weui-desktop-btn_primary" @click="save">保存</el-button> <el-button class="weui-desktop-btn weui-desktop-btn_primary" @click="save">保存</el-button>
<!--<div class="weui-desktop-popover__wrp">-->
<!--<span class="weui-desktop-popover__target"><button class="weui-desktop-btn weui-desktop-btn_default">删除回复</button></span>-->
<!--</div>-->
</div> </div>
</div> </div>
</div> </div>
......
This diff is collapsed.
...@@ -509,3 +509,8 @@ const copyShopUrl = `/api/admin/goods/copy/`; ...@@ -509,3 +509,8 @@ const copyShopUrl = `/api/admin/goods/copy/`;
export const copyShopApi = function (id) { export const copyShopApi = function (id) {
return Vue.prototype.$post(`${copyShopUrl}${id}`) return Vue.prototype.$post(`${copyShopUrl}${id}`)
} }
// 获取media详情
const getMediaUrl = `/api/admin/open/media/info`
export const getMediaApi = function (id) {
return Vue.prototype.$fetch(`${getMediaUrl}?media_id=${id}`)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment