Commit f0efc191 authored by chenfenglei's avatar chenfenglei

用户列表查看详情新增编辑备注看课情况

parent 78661c04
<template> <template>
<el-dialog :title="entranceObj.title" <el-dialog :title="entranceObj.title"
:visible.sync="entranceObj.show" center :visible.sync="entranceObj.show" center
width="80%"> width="800px">
<el-tabs v-model="activeName" type="card" style="line-height:1"> <el-tabs v-model="activeName" type="card" style="line-height:1">
<el-tab-pane label="商品名称" name="first"> <el-tab-pane label="商品名称" name="first">
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import {getConfigListApi,getGoodsListApi,getPeriodsApi,putConfigApi,getDefaultPeriodsApi,getLinkApi} from "../../service/api"; import {getConfigListApi,getGoodsListApi,getPeriodsApi,putConfigApi,getDefaultPeriodsApi} from "../../service/api";
import {GOODSTYPE} from '../../util/wordbook'; import {GOODSTYPE} from '../../util/wordbook';
export default { export default {
name:"entrance", name:"entrance",
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
value: '', value: '',
}, },
selectedGoods:[], selectedGoods:[],
link1:"", link1:"https://w.url.cn/s/A45jJYk", //商品链接
link2:"", link2:"https://w.url.cn/s/AJi1QsS", //期数链接
} }
}, },
mounted(){ mounted(){
...@@ -102,9 +102,7 @@ ...@@ -102,9 +102,7 @@
this.searchFrom2.value = ''; this.searchFrom2.value = '';
} }
this.searchFrom2.value = ''; this.searchFrom2.value = '';
}); })
this.linkContent1();
this.linkContent2();
}, },
getGoodsList(){ getGoodsList(){
let json = { let json = {
...@@ -173,6 +171,7 @@ ...@@ -173,6 +171,7 @@
oInput.value = url; oInput.value = url;
document.body.appendChild(oInput); document.body.appendChild(oInput);
oInput.select(); // 选择对象; oInput.select(); // 选择对象;
console.log(oInput.value)
document.execCommand("Copy"); // 执行浏览器复制命令 document.execCommand("Copy"); // 执行浏览器复制命令
this.$message({ this.$message({
message: '已成功复制到剪切板', message: '已成功复制到剪切板',
...@@ -180,30 +179,13 @@ ...@@ -180,30 +179,13 @@
}); });
oInput.remove() oInput.remove()
}, },
linkContent1(){
let json={
}
json.url="https://wechat.changchangenglish.com/api/client/login?goods_id=1%26redirect_url=https://wechat.changchangenglish.com"
getLinkApi(json).then(res => {
this.link1=res.url;
});
},
linkContent2(){
let json={
}
json.url="https://wechat.changchangenglish.com/api/client/login?goods_id=1%26redirect_url=https://wechat.changchangenglish.com"
getLinkApi(json).then(res => {
this.link2=res.url;
});
}
}, },
watch:{ watch:{
'entranceObj.show':function(a){ 'entranceObj.show':function(a){
if(a){ if(a){
this.getPeriodsList();
this.initPage() this.initPage()
this.getGoodsList(); this.getGoodsList();
this.getPeriodsList();
} }
} }
} }
......
...@@ -11,12 +11,11 @@ ...@@ -11,12 +11,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="class_id" label="班级ID"> <el-table-column prop="class_name" label="班级名称">
</el-table-column> </el-table-column>
<el-table-column label="商品ID/期数ID"> <el-table-column label="期数标题" prop="periods_name">
<template slot-scope="scope"> </el-table-column>
{{scope.row.goods_id}}/{{scope.row.periods_id}} <el-table-column label="商品名称" prop="goods_name">
</template>
</el-table-column> </el-table-column>
<el-table-column prop="created_at" label="创建时间" sortable> <el-table-column prop="created_at" label="创建时间" sortable>
</el-table-column> </el-table-column>
......
This diff is collapsed.
...@@ -74,13 +74,17 @@ ...@@ -74,13 +74,17 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="mobile" prop="receiver_name"
label="姓名" >
</el-table-column>
<el-table-column
prop="receiver_phone"
label="手机号" > label="手机号" >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="收货地址" > label="收货地址" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.receiver_name}} {{scope.row.receiver_phone}} {{scope.row.receiver_province}} {{scope.row.receiver_city}} {{scope.row.receiver_area}} {{scope.row.receiver_address}} {{scope.row.receiver_province}} {{scope.row.receiver_city}} {{scope.row.receiver_area}} {{scope.row.receiver_address}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
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