反馈修改-0715

static-project
chen 2022-07-15 11:10:06 +08:00
parent b798f65596
commit a3c5e79aa7
11 changed files with 28 additions and 16 deletions

View File

@ -5,7 +5,8 @@
projectname:'', //
lat:'', //
lng:'' ,//
hostapi:'https://caimall.scdxtc.cn' //
hostapi:'https://www.cdxidoudou.cn' ,//
// hostapi:'https:caimall.scdxtc.cn',//
},
// show
onLaunch: function() {

View File

@ -95,7 +95,7 @@
skuId:item.skuId,
imgsrc:item.cover,
title:item.name,
price:this.$toolAll.tools.changeNum(parseInt(item.original_price)+'')
price:item.original_price
}
this.dataList.push(obj);
})

View File

@ -20,7 +20,7 @@
</view>
<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">
<!-- 减数量 -->
@ -45,7 +45,7 @@
<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>
<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>
</view>
@ -107,7 +107,7 @@
let allPrice = 0;
this.listData.forEach(item=>{
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);
@ -185,7 +185,7 @@
title: item.spu.spu_name,
content: item.spu.unit,
slide_x: 0,
price:this.$toolAll.tools.changeNum(parseInt(item.spu.original_price)+''),
price:item.spu.original_price,
num:item.num,
ifcheck:this.skuId==item.sku_id ? true : false,
ifExit:true,

View File

@ -2,7 +2,7 @@
const goLogin = () => {
uni.clearStorageSync();
uni.navigateTo({
url: '/pages/login/login'
url: '/pagesB/login/login'
})
}
let flag = true;

View File

@ -270,7 +270,7 @@ const tools = {
})
.replace('<section', '<div')
.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}' />`
})
},
/**

View File

@ -77,7 +77,8 @@
pid:'',//id
doms:'',
topList:[],
heightData: 0
heightData: 0,
scroll:true,
}
},
computed:{
@ -111,7 +112,7 @@
skuId:item.skuId,
imgsrc:item.cover,
title:item.name,
price:this.$toolAll.tools.changeNum(parseInt(item.price)+'')
price:item.price
}
newArr.push(obj);
})
@ -157,21 +158,30 @@
//
chooseCate(index,id) {
this.current =index
this.doms = 'product'+index
console.log(index,222)
if(this.scroll){
if(this.current !== index){
this.scroll =false;
this.current =index
this.doms = 'product'+index
console.log(index,11111)
}
this.scroll = true;
}
},
//
scrolls(e){
this.scroll =false;
let scrollTop = e.target.scrollTop
for(let i =0;i<this.topList.length;i++){
let h1 = this.topList[i]
let h2 = this.topList[i+1]
if(scrollTop>=h1&&scrollTop<h2){
this.current = i
console.log(i,22222)
}
}
this.scroll =true;
},
// topList

View File

@ -77,6 +77,7 @@
},
onHide() {
clearTimeout(this.playTimer);
this.isplay = false;
},
onShow() {
slidePosition().then(res=>{

View File

@ -51,7 +51,7 @@
return {
userInfo: {},//
canIGetUserProfile: false,
imgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',//logo
imgSrc: '/static/public/login-cover.png',//logo
appletName:'商城小程序',//
isShowP:false,
};

View File

@ -87,7 +87,7 @@
skuId:item.skuId,
imgsrc:item.cover,
title:item.name,
price:this.$toolAll.tools.changeNum(parseInt(item.original_price)+'')
price:item.original_price
}
this.dataList.push(obj);
})

View File

@ -6,7 +6,7 @@
<view class="pad-zy20 bacf pad-sx20">
<view class="fon42 colb mar-x10">{{shopObj.name}}</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 class="fon36 colb tcenter pad-sx30 bold">商品介绍</view>
<view class="pad-zy20">

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB