Commit f0efc191 authored by chenfenglei's avatar chenfenglei

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

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