Compare commits
2 Commits
8c72ce32fd
...
907a127a7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
907a127a7d | ||
|
|
608fb452b3 |
@@ -9,8 +9,8 @@ import router from '../router'
|
||||
|
||||
// 基础配置
|
||||
const config = {
|
||||
// apiUrl : 'https://api.gongli.vip/api/', // 正式环境
|
||||
apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
|
||||
apiUrl : 'https://api.gongli.vip/api/', // 正式环境
|
||||
// apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
|
||||
timeout: 60000
|
||||
}
|
||||
|
||||
@@ -46,7 +46,6 @@ const request = (parameter, hideLoding = true) => {
|
||||
data: parameter.data || {},
|
||||
method: parameter.method || 'GET',
|
||||
success: res => {
|
||||
console.log(res);
|
||||
if (res.header.Authorization) {
|
||||
updateToken('token', res.header.Authorization)
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name" : "共力生态",
|
||||
"appid" : "__UNI__DE7B0E6",
|
||||
"description" : "共力生态",
|
||||
"versionName" : "1.0.42",
|
||||
"versionName" : "1.0.44",
|
||||
"versionCode" : 100,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
@@ -211,5 +211,7 @@
|
||||
"uniStatistics" : {
|
||||
"enable" : true
|
||||
}
|
||||
}
|
||||
},
|
||||
"fallbackLocale" : "zh-Hans",
|
||||
"locale" : "auto"
|
||||
}
|
||||
|
||||
@@ -387,11 +387,11 @@
|
||||
}
|
||||
}
|
||||
this.specselect = newlist
|
||||
},
|
||||
toVip() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/store/vip/index/index?id=' + this.goods.shop.shop_id,
|
||||
})
|
||||
},
|
||||
toVip(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/store/vip/index/index?id=' + this.goods.shop.shop_id + '&identityId=' + this.goods.shop_vip.card.identity_id,
|
||||
})
|
||||
},
|
||||
// 会员商品领取
|
||||
vipBuy() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<view class="store-vip">
|
||||
<image class="vip-bg" src="/static/store/store-vip-bg.png" mode="widthFix"/>
|
||||
<swiper class="swiper" circular>
|
||||
<swiper-item class="swiper-item" v-for="item in vip" :key="item.identity_id">
|
||||
<swiper class="swiper" circular :current="swiperCurrent">
|
||||
<swiper-item class="swiper-item" v-for="(item, index) in vip" :key="index">
|
||||
<view class="top">
|
||||
<view class="left" v-if="vip.length > 1">
|
||||
<image class="left-img" src="/static/store/get-more.gif" mode="widthFix" /> 滑动获取更多
|
||||
@@ -14,7 +14,7 @@
|
||||
<image class="title2" :src="item.title_cover" mode="widthFix" />
|
||||
<view class="title3"> {{item.description}} </view> <!-- 分类 -->
|
||||
<view class="type">
|
||||
<view class="type-item" v-for="it in item.rules" :key="it.order">
|
||||
<view class="type-item" v-for="(it, itIndex) in item.rules" :key="itIndex">
|
||||
<image :src="it.cover" mode="aspectFill" />
|
||||
<view class="title">{{it.name}}</view>
|
||||
</view>
|
||||
@@ -45,22 +45,27 @@
|
||||
} from '@/apis/interfaces/vip.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
vip: [],
|
||||
return {
|
||||
id : '',
|
||||
identityId : '',
|
||||
vip : [],
|
||||
swiperCurrent : 0
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.id = e.id;
|
||||
onLoad(e) {
|
||||
this.id = e.id;
|
||||
this.identityId = e.identityId
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
getInfo() {
|
||||
getInfo() {
|
||||
shopVipInfo(this.id).then(res => {
|
||||
uni.setNavigationBarTitle({
|
||||
title: res[0].shop.name + '会员'
|
||||
});
|
||||
this.vip = res;
|
||||
}).catch(err => {
|
||||
this.vip = res;
|
||||
this.swiperCurrent = res.findIndex(val => val.identity_id == this.identityId)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none',
|
||||
|
||||
14
unpackage/dist/build/app-plus/app-service.js
vendored
14
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
6
unpackage/dist/build/app-plus/app-view.js
vendored
6
unpackage/dist/build/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
6
unpackage/dist/build/app-plus/manifest.json
vendored
6
unpackage/dist/build/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
8158
unpackage/dist/dev/app-plus/app-service.js
vendored
8158
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
6829
unpackage/dist/dev/app-plus/app-view.js
vendored
6829
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/manifest.json
vendored
2
unpackage/dist/dev/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user