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> <template>
<view class="page"> <view class="page">
<navbar
title="考证咨询"
/>
<navbar title="考证咨询" />
<view class="list"> <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>
</view> </view>
<tabber select="2"/>
<tabber select="2" />
</view> </view>
</template> </template>
<script> <script>
import tabber from '@/components/base/tabbar.vue' import tabber from '@/components/base/tabbar.vue'
import { mapGetters } from 'vuex'
import mixinList from '@/mixins/list.js'
export default { export default {
components : {
mixins : [mixinList],
components: {
tabber, tabber,
}, },
computed : {
...mapGetters(['userShop']),
computed: {
}, },
data() { data() {
return { return {
list:[]
mixinsListApi : 'queryCert',
} }
}, },
onShow() { onShow() {
this.queryCert();
}, },
// //
onReachBottom() {
},
onReachBottom() {},
methods: { methods: {
queryCert(){
this.$api('queryCert',{}, res =>{
if(res.code == 200){
this.list = res.result.records;
}
})
},
// addMaterial(){ // addMaterial(){
// if(this.$utils.verificationAll(this.form,{ // if(this.$utils.verificationAll(this.form,{
// code:'' // code:''
@ -75,13 +61,31 @@
// } // }
// }) // })
// }, // },
} }
} }
</script> </script>
<style scoped lang="scss"> <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="list">
<view class="item" <view class="item"
v-for="(item, index) in listInfo"
v-for="(item, index) in list"
:key="index"> :key="index">
<view class="title"> <view class="title">
{{item.question}} {{item.question}}
@ -31,27 +31,29 @@
</template> </template>
<script> <script>
import mixinList from '@/mixins/list.js'
export default { export default {
mixins : [mixinList],
data() { data() {
return { return {
mixinsListApi : 'queryExchangeList',
form : { form : {
code:'', code:'',
}, },
listInfo:[]
// listInfo:[]
} }
}, },
onShow() { onShow() {
this.queryExchangeList();
// this.queryExchangeList();
}, },
methods: { 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(){ useExchange(){
if(this.$utils.verificationAll(this.form,{ if(this.$utils.verificationAll(this.form,{
code:'请输入兑换码' code:'请输入兑换码'


Loading…
Cancel
Save