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