1
This commit is contained in:
parent
2f03910ae4
commit
ba1a6c8cd8
@ -193,3 +193,11 @@ export function saveBlack(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//查询通告券
|
||||||
|
export function getMemberCoupon() {
|
||||||
|
return request({
|
||||||
|
url: '/member/coupon/getMemberCoupon',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
module.exports = {
|
module.exports = {
|
||||||
//baseUrl: 'https://notice.lighting-it.cn',
|
//baseUrl: 'https://notice.lighting-it.cn',
|
||||||
baseUrl: 'https://www.ddtg.site/noticeApi',
|
// baseUrl: 'https://www.ddtg.site/noticeApi',
|
||||||
//baseUrl: 'http://192.168.1.31:8099',
|
baseUrl: 'http://192.168.1.4:8099',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
|
|||||||
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||||
|
import {getMemberCoupon} from '@/api/business/member.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
navigationBarVue
|
navigationBarVue
|
||||||
@ -49,9 +50,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options){
|
onLoad(options){
|
||||||
this.coupon = options.coupon
|
},
|
||||||
|
onShow(){
|
||||||
|
this.initMyCoupon()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
initMyCoupon(){
|
||||||
|
getMemberCoupon().then(res=>{
|
||||||
|
this.coupon = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
viewRichText() {
|
viewRichText() {
|
||||||
this.$tab.navigateTo(
|
this.$tab.navigateTo(
|
||||||
`/pages/common/richview/index?title=${this.globalConfig.appInfo.agreements[5].title}&code=${this.globalConfig.appInfo.agreements[5].code}`
|
`/pages/common/richview/index?title=${this.globalConfig.appInfo.agreements[5].title}&code=${this.globalConfig.appInfo.agreements[5].code}`
|
||||||
|
|||||||
@ -67,7 +67,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||||
import {initCouponList} from '@/api/business/base.js'
|
import {initCouponList} from '@/api/business/base.js'
|
||||||
import {saveOrder,getOrderList} from '@/api/business/member.js'
|
import {saveOrder,getOrderList,getMemberCoupon} from '@/api/business/member.js'
|
||||||
import {toast} from '@/utils/common.js'
|
import {toast} from '@/utils/common.js'
|
||||||
import constant from '@/utils/constant';
|
import constant from '@/utils/constant';
|
||||||
import {getJSONData} from '@/utils/auth.js'
|
import {getJSONData} from '@/utils/auth.js'
|
||||||
@ -99,11 +99,20 @@
|
|||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.menuIndex = option.index
|
this.menuIndex = option.index
|
||||||
this.coupon = option.coupon
|
|
||||||
this.initCoupon();
|
this.initCoupon();
|
||||||
this.initOrder()
|
this.initOrder()
|
||||||
},
|
},
|
||||||
|
onShow(){
|
||||||
|
this.initMyCoupon()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
initMyCoupon(){
|
||||||
|
getMemberCoupon().then(res=>{
|
||||||
|
this.coupon = res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 菜单点击
|
* 菜单点击
|
||||||
* @param {Object} index
|
* @param {Object} index
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
<image v-if="!userInfo.avatar" class="touxiang" src="@/static/images/profile.jpg" mode="aspectFit">
|
<image v-if="!userInfo.avatar" class="touxiang" src="@/static/images/profile.jpg" mode="aspectFit">
|
||||||
</image>
|
</image>
|
||||||
<image v-else class="touxiang" :src="userInfo.avatar" mode="aspectFit"></image>
|
<image v-else class="touxiang" :src="userInfo.avatar" mode="aspectFit"></image>
|
||||||
<image class="sex" src="@/static/mine/sex_girl.png" mode="aspectFit"></image>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="name-box">
|
<view class="name-box">
|
||||||
<view class="title-box">
|
<view class="title-box">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user