反馈修改-0715
parent
b798f65596
commit
a3c5e79aa7
3
App.vue
3
App.vue
|
@ -5,7 +5,8 @@
|
||||||
projectname:'', // 项目名称
|
projectname:'', // 项目名称
|
||||||
lat:'', // 公司地址维度
|
lat:'', // 公司地址维度
|
||||||
lng:'' ,// 公司地址经度
|
lng:'' ,// 公司地址经度
|
||||||
hostapi:'https://caimall.scdxtc.cn' // 域名配置
|
hostapi:'https://www.cdxidoudou.cn' ,// 域名配置
|
||||||
|
// hostapi:'https:caimall.scdxtc.cn',// 测试域名
|
||||||
},
|
},
|
||||||
// 优先于show方法
|
// 优先于show方法
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
skuId:item.skuId,
|
skuId:item.skuId,
|
||||||
imgsrc:item.cover,
|
imgsrc:item.cover,
|
||||||
title:item.name,
|
title:item.name,
|
||||||
price:this.$toolAll.tools.changeNum(parseInt(item.original_price)+'')
|
price:item.original_price
|
||||||
}
|
}
|
||||||
this.dataList.push(obj);
|
this.dataList.push(obj);
|
||||||
})
|
})
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="disjbac">
|
<view class="disjbac">
|
||||||
<!-- 商品价格 -->
|
<!-- 商品价格 -->
|
||||||
<view class="fon24 textc bold">¥<span class="fon28 ">{{$toolAll.tools.changeNum(item.price)}}</span></view>
|
<view class="fon24 textc bold">¥<span class="fon28 ">{{item.price}}</span></view>
|
||||||
<!-- 商品数量 -->
|
<!-- 商品数量 -->
|
||||||
<view class="disac">
|
<view class="disac">
|
||||||
<!-- 减数量 -->
|
<!-- 减数量 -->
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
<view class="disjbac cart-foot-box fon24" :style="{bottom: footHeight+'px'}">
|
<view class="disjbac cart-foot-box fon24" :style="{bottom: footHeight+'px'}">
|
||||||
<label class="disac" @tap="chooseAll"><radio :checked="allChoose" color="#ff3673" style="transform: scale(.8);"/><text>全选</text></label>
|
<label class="disac" @tap="chooseAll"><radio :checked="allChoose" color="#ff3673" style="transform: scale(.8);"/><text>全选</text></label>
|
||||||
<view class="disac">
|
<view class="disac">
|
||||||
<view class="fon24 mar-y30">合计:<span>¥{{$toolAll.tools.changeNum(allPrice)}}</span></view>
|
<view class="fon24 mar-y30">合计:<span>¥{{allPrice}}</span></view>
|
||||||
<view class="fon32 cart-submit-btn" :style="{background: !buyNum ? '#cccccc' : 'linear-gradient(to right,#ff3771 0%,#fd5549 100%)'}" @tap="submitEv">{{allPrice==0 ? '去购物' : `提交订单 (${buyNum})`}}</view>
|
<view class="fon32 cart-submit-btn" :style="{background: !buyNum ? '#cccccc' : 'linear-gradient(to right,#ff3771 0%,#fd5549 100%)'}" @tap="submitEv">{{allPrice==0 ? '去购物' : `提交订单 (${buyNum})`}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
let allPrice = 0;
|
let allPrice = 0;
|
||||||
this.listData.forEach(item=>{
|
this.listData.forEach(item=>{
|
||||||
if(item.ifcheck) {
|
if(item.ifcheck) {
|
||||||
allPrice += this.$toolAll.tools.operationEv(item.price,item.num,'*',2)*1;
|
allPrice += item.price*item.num;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// return this.$toolAll.tools.addXiaoShu(allPrice);
|
// return this.$toolAll.tools.addXiaoShu(allPrice);
|
||||||
|
@ -185,7 +185,7 @@
|
||||||
title: item.spu.spu_name,
|
title: item.spu.spu_name,
|
||||||
content: item.spu.unit,
|
content: item.spu.unit,
|
||||||
slide_x: 0,
|
slide_x: 0,
|
||||||
price:this.$toolAll.tools.changeNum(parseInt(item.spu.original_price)+''),
|
price:item.spu.original_price,
|
||||||
num:item.num,
|
num:item.num,
|
||||||
ifcheck:this.skuId==item.sku_id ? true : false,
|
ifcheck:this.skuId==item.sku_id ? true : false,
|
||||||
ifExit:true,
|
ifExit:true,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const goLogin = () => {
|
const goLogin = () => {
|
||||||
uni.clearStorageSync();
|
uni.clearStorageSync();
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/login/login'
|
url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let flag = true;
|
let flag = true;
|
||||||
|
|
|
@ -270,7 +270,7 @@ const tools = {
|
||||||
})
|
})
|
||||||
.replace('<section', '<div')
|
.replace('<section', '<div')
|
||||||
.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, (match, p1) => {
|
.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, (match, p1) => {
|
||||||
return `<img mode="widthFix" style="max-width:100%!important;height:auto" src='${p1.indexOf('http') > -1 ? p1 : 'https://oss.hmzfyy.cn' + p1}' />`
|
return `<img mode="widthFix" style="max-width:100%!important;height:auto" src='${p1.indexOf('http') > -1 ? p1 : 'https://www.cdxidoudou.cn' + p1}' />`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -77,7 +77,8 @@
|
||||||
pid:'',//分类id
|
pid:'',//分类id
|
||||||
doms:'',
|
doms:'',
|
||||||
topList:[],
|
topList:[],
|
||||||
heightData: 0
|
heightData: 0,
|
||||||
|
scroll:true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
|
@ -111,7 +112,7 @@
|
||||||
skuId:item.skuId,
|
skuId:item.skuId,
|
||||||
imgsrc:item.cover,
|
imgsrc:item.cover,
|
||||||
title:item.name,
|
title:item.name,
|
||||||
price:this.$toolAll.tools.changeNum(parseInt(item.price)+'')
|
price:item.price
|
||||||
}
|
}
|
||||||
newArr.push(obj);
|
newArr.push(obj);
|
||||||
})
|
})
|
||||||
|
@ -157,21 +158,30 @@
|
||||||
|
|
||||||
// 一级分类选择
|
// 一级分类选择
|
||||||
chooseCate(index,id) {
|
chooseCate(index,id) {
|
||||||
this.current =index
|
if(this.scroll){
|
||||||
this.doms = 'product'+index
|
if(this.current !== index){
|
||||||
console.log(index,222)
|
this.scroll =false;
|
||||||
|
this.current =index
|
||||||
|
this.doms = 'product'+index
|
||||||
|
console.log(index,11111)
|
||||||
|
}
|
||||||
|
this.scroll = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 滚动
|
// 滚动
|
||||||
scrolls(e){
|
scrolls(e){
|
||||||
|
this.scroll =false;
|
||||||
let scrollTop = e.target.scrollTop
|
let scrollTop = e.target.scrollTop
|
||||||
for(let i =0;i<this.topList.length;i++){
|
for(let i =0;i<this.topList.length;i++){
|
||||||
let h1 = this.topList[i]
|
let h1 = this.topList[i]
|
||||||
let h2 = this.topList[i+1]
|
let h2 = this.topList[i+1]
|
||||||
if(scrollTop>=h1&&scrollTop<h2){
|
if(scrollTop>=h1&&scrollTop<h2){
|
||||||
this.current = i
|
this.current = i
|
||||||
|
console.log(i,22222)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.scroll =true;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 改变topList
|
// 改变topList
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
clearTimeout(this.playTimer);
|
clearTimeout(this.playTimer);
|
||||||
|
this.isplay = false;
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
slidePosition().then(res=>{
|
slidePosition().then(res=>{
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
return {
|
return {
|
||||||
userInfo: {},//用户信息
|
userInfo: {},//用户信息
|
||||||
canIGetUserProfile: false,
|
canIGetUserProfile: false,
|
||||||
imgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',//默认logo头像
|
imgSrc: '/static/public/login-cover.png',//默认logo头像
|
||||||
appletName:'商城小程序',//小程序名称
|
appletName:'商城小程序',//小程序名称
|
||||||
isShowP:false,
|
isShowP:false,
|
||||||
};
|
};
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
skuId:item.skuId,
|
skuId:item.skuId,
|
||||||
imgsrc:item.cover,
|
imgsrc:item.cover,
|
||||||
title:item.name,
|
title:item.name,
|
||||||
price:this.$toolAll.tools.changeNum(parseInt(item.original_price)+'')
|
price:item.original_price
|
||||||
}
|
}
|
||||||
this.dataList.push(obj);
|
this.dataList.push(obj);
|
||||||
})
|
})
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<view class="pad-zy20 bacf pad-sx20">
|
<view class="pad-zy20 bacf pad-sx20">
|
||||||
<view class="fon42 colb mar-x10">{{shopObj.name}}</view>
|
<view class="fon42 colb mar-x10">{{shopObj.name}}</view>
|
||||||
<view class="fon24 col6 mar-x20">{{shopObj.subtitle}}</view>
|
<view class="fon24 col6 mar-x20">{{shopObj.subtitle}}</view>
|
||||||
<view class="textc bold fon30 ">¥{{$toolAll.tools.changeNum(parseInt(shopObj.original_price)+'')}}/<text class="fon24">{{shopObj.unit}}</text></view>
|
<view class="textc bold fon30 ">¥{{shopObj.original_price}}/<text class="fon24">{{shopObj.unit}}</text></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="fon36 colb tcenter pad-sx30 bold">商品介绍</view>
|
<view class="fon36 colb tcenter pad-sx30 bold">商品介绍</view>
|
||||||
<view class="pad-zy20">
|
<view class="pad-zy20">
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
Loading…
Reference in New Issue