修复
This commit is contained in:
@@ -14,20 +14,7 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function(options) {
|
||||
request({
|
||||
url: "Goods/goodsCategoryList",
|
||||
data: {
|
||||
parent_id: 2
|
||||
}
|
||||
|
||||
}).then((res) => {
|
||||
// console.log(res)
|
||||
this.setData({
|
||||
type: res.data.result
|
||||
})
|
||||
this.select({detail:{id:res.data.result[0].id}})
|
||||
console.log(this.data.type, 150)
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
select(a){
|
||||
@@ -59,7 +46,20 @@ Page({
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function() {
|
||||
|
||||
request({
|
||||
url: "Goods/goodsCategoryList",
|
||||
data: {
|
||||
parent_id: 2
|
||||
}
|
||||
|
||||
}).then((res) => {
|
||||
// console.log(res)
|
||||
this.setData({
|
||||
type: res.data.result
|
||||
})
|
||||
this.select({detail:{id:res.data.result[0].id}})
|
||||
console.log(this.data.type, 150)
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,6 +7,12 @@ Page({
|
||||
adlist:[]
|
||||
},
|
||||
onLoad(){
|
||||
|
||||
},
|
||||
searchs(){
|
||||
console.log(10)
|
||||
},
|
||||
onShow(){
|
||||
request({
|
||||
url:"Goods/hotGoodsList",
|
||||
data:{
|
||||
@@ -34,8 +40,5 @@ Page({
|
||||
adlist:res.data.data
|
||||
})
|
||||
})
|
||||
},
|
||||
searchs(){
|
||||
console.log(10)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -105,7 +105,7 @@ Page({
|
||||
this.setData({
|
||||
username:res.data.data.nick_name,
|
||||
img:res.data.data.head_pic,
|
||||
frozen_money:res.data.data.frozen_money,
|
||||
frozen_money:res.data.data.user_money,
|
||||
level:res.data.data.level,
|
||||
yj:res.data.data.is_distribut
|
||||
})
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
.box{
|
||||
@import "../../utils/wxParse/wxParse.wxss";
|
||||
border-top: 1rpx solid #eaeaea;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -1 +1 @@
|
||||
.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx;width:540rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .menery>text:last-child{font-size:20rpx;margin-left:20rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center;position:fixed;bottom:50rpx;left:221rpx}
|
||||
@import "../../utils/wxParse/wxParse.wxss";.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx;width:540rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .menery>text:last-child{font-size:20rpx;margin-left:20rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center;position:fixed;bottom:50rpx;left:221rpx}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<van-popup show="{{ show}}" bind:close="onClose" custom-style="border-radius:15rpx;">
|
||||
<view class="recharge">
|
||||
<text>¥</text>
|
||||
<input type="number" bindinput="number" />
|
||||
<input type="digit" bindinput="number" />
|
||||
<view bind:tap="recharge">确定</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
Reference in New Issue
Block a user