Commit ec1c638d authored by zhoucong's avatar zhoucong

123

parent 857a80e0
......@@ -12,7 +12,7 @@
if(!token&&path.indexOf("pages/ourPayment/ourPayment")==-1){//扫码支付页面不需要在此登录
setTimeout(()=>{//解决关联普通二维码扫码首次进入时一直显示登录中
uni.navigateTo({
url: "/pages/login/login"
// url: "/pages/login/login"
})
},300)
}
......
......@@ -20,9 +20,18 @@ export default {
},
methods: {
getPhotoData(){//获取用户vlog图片
this.$request("distribution/vlog/getBeautyPhotos",{jobId: uni.getStorageSync("openid"),userId:uni.getStorageSync("openid")}).then(res=>{
console.log("123",res);
this.$request("wechatUser/myPage/getVlogRecord", {
openid: uni.getStorageSync("openid"),
productType:1
}).then(res => {
console.log(res.data);
if (res.code === "00") {
}
})
// this.$request("distribution/vlog/getBeautyPhotos",{jobId: uni.getStorageSync("openid"),userId:uni.getStorageSync("openid")}).then(res=>{
// console.log("123",res);
// })
}
}
}
......
......@@ -9,38 +9,21 @@
</navigator>
</view>
</view>
<block>
<block v-for="(item,index) in list" :key="index">
<view class="item">
<image src="https://cdn.uviewui.com/uview/swiper/1.jpg"></image>
<image :src="item.imgUrl"></image>
<view class="title">
<text>欢乐集</text>
<text>{{item.name}}</text>
<view style="margin: 15rpx 0;">
<text class="noprice">¥88</text>
<text class="price">¥88</text>
<text class="noprice">¥{{item.originalPrice}}</text>
<text class="price">¥{{item.sellingPrice}}</text>
</view>
<navigator url="../productDetails/productDetails" class="btnn">
<view>开始制作</view>
</navigator>
</view>
<view class="guige">
规格:24张
</view>
</view>
<view class="item">
<image src="https://cdn.uviewui.com/uview/swiper/1.jpg"></image>
<view class="title">
<text>心语摆台</text>
<view style="margin: 15rpx 0;">
<text class="noprice">¥88</text>
<text class="price">¥88</text>
</view>
<navigator url="../productDetails/productDetails" class="btnn">
<view>开始制作</view>
</navigator>
</view>
<view class="guige">
规格:24张
规格:{{item.priceStockList[0].standardName}}
</view>
</view>
</block>
......@@ -50,13 +33,32 @@
export default {
data() {
return {
list:[],//商品列表
}
},
onLoad(){//代替 vue 里面的 created
this.getList()
},
onReady() {//代替 vue 里面的 mounted
},
methods: {
getList(){//获取商品列表
this.$request("scenic/user/product/findProductList", {
openid: uni.getStorageSync("openid"),
type:4
}).then(res => {
if (res.code === "00") {
this.list=res.data.list
console.log(this.list);
}else{
uni.showModal({
title: '提示',
content: res.message,
showCancel: false,
})
}
})
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment