Commit 3d6f41ba authored by fwz's avatar fwz

bug修改

parent 99025b29
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
if (index != 2) { if (index != 2) {
uni.navigateTo({ uni.navigateTo({
url: this.tabBar.list[index].pagePath, url: this.tabBar.list[index].pagePath,
}); })
} else { } else {
//扫码 //扫码
// 允许从相机和相册扫码 // 允许从相机和相册扫码
...@@ -95,13 +95,14 @@ export default { ...@@ -95,13 +95,14 @@ export default {
let path = res.path let path = res.path
if(path) { if(path) {
let xcxIndexPath = uni.getStorageSync('xcxIndexPath') let xcxIndexPath = uni.getStorageSync('xcxIndexPath')
console.info(xcxIndexPath);
if(xcxIndexPath) { if(xcxIndexPath) {
xcxIndexPath = path.replace(xcxIndexPath, '').replace("?", '') xcxIndexPath = path.replace(xcxIndexPath, '').replace("?", '')
if(xcxIndexPath.indexOf('scene') >= 0 ) { if(xcxIndexPath.indexOf('scene') >= 0 ) {
let scene = xcxIndexPath.replace('scene=', '') let scene = xcxIndexPath.replace('scene=', '')
let param = {code : scene} let param = {code : scene}
let opts = { url: '/app/index/check/move/code', method: 'post' } let opts = { url: '/app/index/check/move/code', method: 'post' }
console.log(param);
that.http.httpTokenRequest(opts, param).then(res => { that.http.httpTokenRequest(opts, param).then(res => {
console.info(res) console.info(res)
if (res.data.code == 200) { if (res.data.code == 200) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="appCotent"> <view class="appCotent">
<view class="index-content"> <view class="index-content">
<custom-tarbar :selected="0"></custom-tarbar> <custom-tarbar :selected="0"></custom-tarbar>
<u-swiper :radius="0" :height="210" :list="list5" @change="(e) => (current = e.current)" :autoplay="false"> <u-swiper :radius="0" :height="210" :list="list5" circular :autoplay="false">
<view slot="indicator" class="indicator"> <view slot="indicator" class="indicator">
<view class="indicator__dot" v-for="(item, index) in list5" :key="index" :class="[index === current && 'indicator__dot--active']"> <view class="indicator__dot" v-for="(item, index) in list5" :key="index" :class="[index === current && 'indicator__dot--active']">
</view> </view>
...@@ -65,11 +65,7 @@ export default { ...@@ -65,11 +65,7 @@ export default {
return { return {
current: 0, current: 0,
balance: "0.00", balance: "0.00",
list5: [ list5: [],
"https://cdn.uviewui.com/uview/swiper/swiper3.png",
"https://cdn.uviewui.com/uview/swiper/swiper2.png",
"https://cdn.uviewui.com/uview/swiper/swiper1.png",
],
//免费挪车码 //免费挪车码
freeCode: {}, freeCode: {},
}; };
...@@ -94,9 +90,25 @@ export default { ...@@ -94,9 +90,25 @@ export default {
} }
}) })
}, },
getRotationList(){
let opts = { url: '/app/index/carouse/1', method: 'get' };
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
let data = []
data = res.data.data
let imgList = []
data.forEach(e=>{
imgList.push(e.imageUrl)
})
this.list5 = imgList
}
})
},
}, },
created() { created() {
this.getMoveCode() this.getMoveCode()
this.getRotationList()
}, },
}; };
</script> </script>
......
...@@ -2,10 +2,13 @@ ...@@ -2,10 +2,13 @@
<view class="appCotent"> <view class="appCotent">
<div class="shop__detail"> <div class="shop__detail">
<div class="top__swiper"> <div class="top__swiper">
<u-swiper radius='0' :list="list6" @change="e => currentNum = e.current" :autoplay="false" height='358' indicatorStyle="right: 20px"> <u-swiper :list="list6"
<view slot="indicator" class="indicator-num"> previousMargin="30"
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list6.length }}</text> nextMargin="30"
</view> circular
:autoplay="false"
radius="5"
bgColor="#ffffff">
</u-swiper> </u-swiper>
<div class="shop__title"> <div class="shop__title">
<div>{{mallInfo.title}} {{mallInfo.description}}</div> <div>{{mallInfo.title}} {{mallInfo.description}}</div>
...@@ -33,10 +36,7 @@ export default { ...@@ -33,10 +36,7 @@ export default {
data() { data() {
return { return {
currentNum: 0, currentNum: 0,
list6: [require('@/static/shop/item.jpg'), list6: [],
require('@/static/shop/item.jpg'),
require('@/static/shop/item.jpg'),
],
//商品id //商品id
id: '', id: '',
//商品详情 //商品详情
...@@ -54,6 +54,8 @@ export default { ...@@ -54,6 +54,8 @@ export default {
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.mallInfo = res.data.data this.mallInfo = res.data.data
let imgUrlList = this.mallInfo.otherImgUrl.split(',')
this.list6 = imgUrlList
} }
}) })
}, },
......
...@@ -123,10 +123,26 @@ export default { ...@@ -123,10 +123,26 @@ export default {
getImage(imageUrl){ getImage(imageUrl){
return imageUrl; return imageUrl;
}, },
getRotationList(){
let opts = { url: '/app/index/carouse/2', method: 'get' };
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
let data = []
data = res.data.data
let imgList = []
data.forEach(e=>{
imgList.push(e.imageUrl)
})
this.list3 = imgList
}
})
},
}, },
onShow() { onShow() {
this.getMallList() this.getMallList()
this.getBoutiqueMallList() this.getRotationList()
//this.getBoutiqueMallList()
} }
}; };
</script> </script>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div class="item"> <div class="item">
<div class="item__top"> <div class="item__top">
<div class="top__img"> <div class="top__img">
<img src="" alt="" srcset=""> <img :src="mallInfo.mainImgUrl" class="top__img" alt="" srcset="">
</div> </div>
<div class="top__right"> <div class="top__right">
<div class="right__one one__text"> <div class="right__one one__text">
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
span:nth-of-type(1) { span:nth-of-type(3) {
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
...@@ -349,7 +349,7 @@ export default { ...@@ -349,7 +349,7 @@ export default {
padding: 0 14rpx; padding: 0 14rpx;
} }
span:nth-of-type(3) { span:nth-of-type(1) {
font-size: 28rpx; font-size: 28rpx;
font-family: DIN; font-family: DIN;
font-weight: 500; font-weight: 500;
......
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
element.rules.value = this.userInfo.mobile element.rules.value = this.userInfo.mobile
} }
if (element.label === '昵称') { if (element.label === '昵称') {
//element.rules.value = this.userInfo.nickName element.rules.value = this.userInfo.nickName
} }
if (element.label === '性别') { if (element.label === '性别') {
element.rules.label = this.userInfo.sex=="0"?"男":"女" element.rules.label = this.userInfo.sex=="0"?"男":"女"
......
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