Compare commits

...

2 Commits

Author SHA1 Message Date
唐明明
907a127a7d 删除冗余代码 2022-08-29 11:08:37 +08:00
唐明明
608fb452b3 优化店铺开通会员 2022-08-29 11:02:26 +08:00
10 changed files with 7983 additions and 7078 deletions

View File

@@ -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)
}

View File

@@ -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"
}

View File

@@ -388,10 +388,10 @@
}
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() {

View File

@@ -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>
@@ -46,11 +46,15 @@
export default {
data() {
return {
vip: [],
id : '',
identityId : '',
vip : [],
swiperCurrent : 0
};
},
onLoad(e) {
this.id = e.id;
this.identityId = e.identityId
this.getInfo()
},
methods: {
@@ -59,7 +63,8 @@
uni.setNavigationBarTitle({
title: res[0].shop.name + '会员'
});
this.vip = res;
this.vip = res;
this.swiperCurrent = res.findIndex(val => val.identity_id == this.identityId)
}).catch(err => {
uni.showToast({
title: err.message,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long