作者 3318410485

Merge branch 'master' of http://114.215.101.231:8099/jiashaokang/xidejiuApp into xide_duxiaotian

@@ -94,5 +94,5 @@ @@ -94,5 +94,5 @@
94 "https" : true 94 "https" : true
95 } 95 }
96 }, 96 },
97 - "appid" : "__UNI__E30DA7B" 97 + "appid" : "__UNI__B8180DC"
98 } 98 }
@@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
5 <u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" inactive-color="#969799" active-color="#3E554E" 5 <u-tabs-swiper ref="tabs" :list="list" :is-scroll="false" inactive-color="#969799" active-color="#3E554E"
6 bar-width="90" bar-height="3" gutter="163" :current="Tabcurrent" @change="change"></u-tabs-swiper> 6 bar-width="90" bar-height="3" gutter="163" :current="Tabcurrent" @change="change"></u-tabs-swiper>
7 </view> 7 </view>
  8 +
8 <swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish"> 9 <swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
9 <swiper-item class="swiper-item"> 10 <swiper-item class="swiper-item">
10 <!-- 第一部分 --> 11 <!-- 第一部分 -->
@@ -183,7 +184,6 @@ @@ -183,7 +184,6 @@
183 184
184 <script> 185 <script>
185 export default { 186 export default {
186 -  
187 data() { 187 data() {
188 return { 188 return {
189 isMyYouHui:false, 189 isMyYouHui:false,
@@ -232,36 +232,6 @@ @@ -232,36 +232,6 @@
232 url: "../../home/home" 232 url: "../../home/home"
233 }) 233 })
234 }, 234 },
235 - //请求我的优惠卷接口  
236 - // First_rqs_MyYouhuiData() {  
237 - // let data = {  
238 - // status: this.status,  
239 - // page: this.page,  
240 - // }  
241 - // this.$rqs("/api/coupon/getUserCoupon2", data).then(res => {  
242 - // console.log(res, "+++++++");  
243 - // //整理后台返回数据  
244 - // this.houtaiYouhuiArry = res.data.data; //houtaiYouhuiArry是后台数据  
245 - // let current_page = res.data.data.current_page //当前页 page1 可以  
246 - // let last_page = res.data.data.last_page //最后页 值是2  
247 - // let houtaiYouhuiData = res.data.data.data //渲染的数据  
248 - // houtaiYouhuiData.forEach(item => {  
249 - // item.price = parseInt(item.price);  
250 - // item.bottom_price = parseInt(item.bottom_price)  
251 - // let d = new Date(item.end_time * 1000);  
252 - // item.end_time = (d.getFullYear()) + "." + (d.getMonth() + 1) + "." + (d  
253 - // .getDate()) + '到期'  
254 - // })  
255 - // // price = parseInt(price)  
256 - // console.log(houtaiYouhuiData);  
257 - // console.log(houtaiYouhuiData);  
258 - // console.log(houtaiYouhuiData);  
259 - // this.houtaiYouhuiData = houtaiYouhuiData; //赋值操作  
260 - // })  
261 - // },  
262 - shouQuan() {  
263 -  
264 - },  
265 //后台接口调用 235 //后台接口调用
266 youHujuanDataOne(s, p) { 236 youHujuanDataOne(s, p) {
267 console.log(p); 237 console.log(p);
@@ -144,7 +144,7 @@ @@ -144,7 +144,7 @@
144 let that = this; 144 let that = this;
145 console.log("点击了入会"); 145 console.log("点击了入会");
146 that.show = !that.show; 146 that.show = !that.show;
147 - }else{ 147 + }else if(name == 2 && e == 1){
148 uni.showToast({ 148 uni.showToast({
149 title: "已经入会,请在我的优惠卷中查看", 149 title: "已经入会,请在我的优惠卷中查看",
150 icon: 'none' 150 icon: 'none'
@@ -178,7 +178,12 @@ @@ -178,7 +178,12 @@
178 icon: "none" 178 icon: "none"
179 }) 179 })
180 }else{ 180 }else{
181 - 181 + if(res.data.code == 0){
  182 + uni.showToast({
  183 + title:res.data.msg,
  184 + icon:"error"
  185 + })
  186 + }
182 } 187 }
183 }) 188 })
184 }else if(name == 1 && e == 1){ 189 }else if(name == 1 && e == 1){
@@ -26,7 +26,7 @@ import Login from '../login.js' @@ -26,7 +26,7 @@ import Login from '../login.js'
26 // onShow中调用 this.$loginCustom(0) (0 可省略) 26 // onShow中调用 this.$loginCustom(0) (0 可省略)
27 // 点击事件 this.$loginCustom(1).then(res ={登录成功后所需执行操作}) 27 // 点击事件 this.$loginCustom(1).then(res ={登录成功后所需执行操作})
28 export const loginCustom = (e) => { 28 export const loginCustom = (e) => {
29 - let point = e || 0; 29 + let point = e || 0;//声明变量获取是否点击 e=1=>点击
30 let code = Login.getUrlCode('code'); // 截取code 30 let code = Login.getUrlCode('code'); // 截取code
31 if (code && !uni.getStorageSync('token')) { 31 if (code && !uni.getStorageSync('token')) {
32 let data = { 32 let data = {