2024/09/26多门店版本提交

main
LGX 2 months ago
parent 929729816b
commit 99518a47e3
  1. 19
      pages/annex/vip_paid/index.vue
  2. 8
      pages/index/index.vue
  3. 3
      utils/request.js

@ -171,9 +171,9 @@
<view class="popupboxtitle"> <view class="popupboxtitle">
{{guzkneirong.title}} {{guzkneirong.title}}
</view> </view>
<view class="neir" v-html="guzkneirong.content"> <scroll-view class="neir" scroll-y="true" style="" v-html="guzkneirong.content">
<!-- {{guzkneirong.content}} --> <!-- {{guzkneirong.content}} -->
</view> </scroll-view>
</view> </view>
</uni-popup> </uni-popup>
</view> </view>
@ -317,7 +317,8 @@
discountId:this.newcomer_products[this.libaoindex].id, discountId:this.newcomer_products[this.libaoindex].id,
member_type: this.memberType[this.tykindex].id member_type: this.memberType[this.tykindex].id
}; };
postCartAdd(data).then(res => { postCartAdd(data)
.then(res => {
console.log(987, res); console.log(987, res);
uni.navigateTo({ uni.navigateTo({
url: '/pages/goods/order_confirm/index?huiyuanka=1&product_id=""&discountInfos' + url: '/pages/goods/order_confirm/index?huiyuanka=1&product_id=""&discountInfos' +
@ -328,7 +329,11 @@
.tykindex].price + .tykindex].price +
'&vipprice=' + this.memberType[this.tykindex].pre_price+'&member_type=' + this.memberType[this.tykindex].id '&vipprice=' + this.memberType[this.tykindex].pre_price+'&member_type=' + this.memberType[this.tykindex].id
}) })
}) }).catch(res => {
this.$util.Tips({
title: res
});
});
} else { } else {
this.$util.Tips({ this.$util.Tips({
@ -618,6 +623,12 @@
height: 400px; height: 400px;
overflow-y: auto; overflow-y: auto;
} }
.neir ::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
} }
.fotbut { .fotbut {

@ -448,10 +448,10 @@
onShow() { onShow() {
this.getLocation() this.getLocation()
if (this.cartNum > 0) { if (this.cartNum > 0) {
// uni.setTabBarBadge({ uni.setTabBarBadge({
// index: 3, index: 2,
// text: this.cartNum > 99 ? '99+' : this.cartNum + '' text: this.cartNum > 99 ? '99+' : this.cartNum + ''
// }) })
uni.hideTabBarRedDot({ uni.hideTabBarRedDot({
index: 3 index: 3
}) })

@ -67,7 +67,7 @@ function baseRequest(url, method, data, {
header: header, header: header,
data: data || {}, data: data || {},
success: (res) => { success: (res) => {
console.log(res);
if (res.data.data && res.data.gzde === 1) { if (res.data.data && res.data.gzde === 1) {
try{ try{
res.data.data = JSON.parse(decompress(res.data.data)); res.data.data = JSON.parse(decompress(res.data.data));
@ -107,6 +107,7 @@ function baseRequest(url, method, data, {
} else if(res.data.status == 403){ } else if(res.data.status == 403){
reject(res.data); reject(res.data);
} else } else
console.log(res.data.msg)
reject(res.data.msg || '系统错误'); reject(res.data.msg || '系统错误');
}, },
fail: (msg) => { fail: (msg) => {

Loading…
Cancel
Save