Browse Source

上传修改

master
前端-胡立永 4 months ago
parent
commit
a79db0a30b
2 changed files with 61 additions and 55 deletions
  1. +48
    -44
      pages/index/consult.vue
  2. +13
    -11
      pages_order/mine/redeemCode.vue

+ 48
- 44
pages/index/consult.vue View File

@ -1,65 +1,51 @@
<template>
<view class="page">
<navbar
title="考证咨询"
/>
<navbar title="考证咨询" />
<view class="list">
<view class="item"
v-for="(item, index) in list"
:key="index">
<!-- <view class="title">
{{item.name}}
</view> -->
<view class="uni-color-btn"
@click="$utils.navigateTo('/pages_order/work/postConsult')">
{{item.name}}
</view>
<view class="item"
v-for="(item, index) in list" :key="index"
@click="$utils.navigateTo('/pages_order/work/postConsult')">
<image :src="item.headImage"
mode="aspectFill"></image>
<view class="info">
<view class="title">
{{item.name}}
</view>
<view class="text">
<uv-parse :content="item.summary"></uv-parse>
</view>
</view>
</view>
</view>
<tabber select="2"/>
<tabber select="2" />
</view>
</template>
<script>
import tabber from '@/components/base/tabbar.vue'
import { mapGetters } from 'vuex'
import mixinList from '@/mixins/list.js'
export default {
components : {
mixins : [mixinList],
components: {
tabber,
},
computed : {
...mapGetters(['userShop']),
computed: {
},
data() {
return {
list:[]
mixinsListApi : 'queryCert',
}
},
onShow() {
this.queryCert();
},
//
onReachBottom() {
},
onReachBottom() {},
methods: {
queryCert(){
this.$api('queryCert',{}, res =>{
if(res.code == 200){
this.list = res.result.records;
}
})
},
// addMaterial(){
// if(this.$utils.verificationAll(this.form,{
// code:''
@ -75,13 +61,31 @@
// }
// })
// },
}
}
</script>
<style scoped lang="scss">
.page{
.page {
.list{
.item{
display: flex;
.image{
width: 200rpx;
height: 100%;
min-height: 300rpx;
border-radius: 20rpx;
}
.info{
.title{
}
.text{
}
}
}
}
}
</style>
</style>

+ 13
- 11
pages_order/mine/redeemCode.vue View File

@ -16,7 +16,7 @@
<view class="list">
<view class="item"
v-for="(item, index) in listInfo"
v-for="(item, index) in list"
:key="index">
<view class="title">
{{item.question}}
@ -31,27 +31,29 @@
</template>
<script>
import mixinList from '@/mixins/list.js'
export default {
mixins : [mixinList],
data() {
return {
mixinsListApi : 'queryExchangeList',
form : {
code:'',
},
listInfo:[]
// listInfo:[]
}
},
onShow() {
this.queryExchangeList();
// this.queryExchangeList();
},
methods: {
queryExchangeList(){
this.$api('queryExchangeList',{}, res =>{
if(res.code == 200){
this.listInfo = res.result.records;
}
})
},
// queryExchangeList(){
// this.$api('queryExchangeList',{}, res =>{
// if(res.code == 200){
// this.listInfo = res.result.records;
// }
// })
// },
useExchange(){
if(this.$utils.verificationAll(this.form,{
code:'请输入兑换码'


Loading…
Cancel
Save