Commit 3d6f41ba authored by fwz's avatar fwz

bug修改

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