细节修改

version/0412
fanfan 1 year ago
parent 5af8f91886
commit 70b448c6c1
  1. 19
      pages/goods/detail.vue
  2. 4
      pages/news/recycling/confirm1.vue
  3. 8
      pages/news/recycling/order.vue
  4. 47
      pages/order/detail.vue
  5. 3
      pages/user/index.vue

@ -553,12 +553,12 @@
methods: { methods: {
getprice(e) { getprice(e) {
console.log(e) console.log(e)
let params={ let params = {
secondPrice:e.secondPrice, secondPrice: e.secondPrice,
startTime:e.startTime, startTime: e.startTime,
endTime:e.endTime, endTime: e.endTime,
secondQuota:e.secondQuota, secondQuota: e.secondQuota,
quotaNum:e.quotaNum quotaNum: e.quotaNum
} }
GoodsApi.editGoodsPrice(params).then(res => { GoodsApi.editGoodsPrice(params).then(res => {
if (res.status == 200) { if (res.status == 200) {
@ -587,11 +587,6 @@
.catch(reject) .catch(reject)
}) })
}, },
//
onAddCart(total) {
this.getCartTotal()
},
// //
async toUnpdatePrice() { async toUnpdatePrice() {
const that = this; const that = this;
@ -780,7 +775,7 @@
}, },
// //
onAddCart(total) { onAddCart(total) {
console.log(total) this.getCartTotal()
}, },
choseSku(skuMode) { choseSku(skuMode) {
console.log(this.goods) console.log(this.goods)

@ -336,8 +336,8 @@
} }
if (i == 2) { // if (i == 2) { //
uni.openLocation({ uni.openLocation({
latitude: this.storeInfo.latitude, latitude: Number(this.storeInfo.latitude),
longitude: this.storeInfo.longitude, longitude: Number(this.storeInfo.longitude),
complete: function(res) { complete: function(res) {
console.log(res); console.log(res);
} }

@ -118,7 +118,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="order-bd"> <view class="order-bd" v-if="infor.remake">
<view class="b" style="margin-top: 0;"> <view class="b" style="margin-top: 0;">
<view class="item"> <view class="item">
<view class="l">留言</view> <view class="l">留言</view>
@ -127,7 +127,7 @@
</view> </view>
</view> </view>
<view class="order-fd" v-if="infor.order_status==10"> <view class="order-fd" v-if="infor.order_status==10">
<view class="a"> <view class="a" @click="openPage(1)">
联系商家 联系商家
</view> </view>
<view class="b" @click="reservation"> <view class="b" @click="reservation">
@ -220,8 +220,8 @@
} }
if (i == 2) { // if (i == 2) { //
uni.openLocation({ uni.openLocation({
latitude: this.infor.shop_info.latitude, latitude: Number(this.infor.shop_info.latitude),
longitude: this.infor.shop_info.longitude, longitude: Number(this.infor.shop_info.longitude),
complete: function(res) {} complete: function(res) {}
}); });
} }

@ -222,8 +222,10 @@
</view> </view>
<view class="amount"> <view class="amount">
<view class="share"> <view class="share">
<image src="/static/order/share.png" mode=""></image> <button open-type="share">
分享 <image src="/static/order/share.png" mode=""></image>
分享
</button>
</view> </view>
<view class="sp"> <view class="sp">
@ -401,6 +403,7 @@
canReset: false, canReset: false,
cdDia: false, cdDia: false,
menushow: false, menushow: false,
Store:''
} }
}, },
/** /**
@ -413,6 +416,7 @@
this.orderId = orderId this.orderId = orderId
// //
this.getOrderDetail() this.getOrderDetail()
this.Store=uni.getStorageSync('Store')
// : // :
uni.$on('syncRefresh', (val, isCur) => { uni.$on('syncRefresh', (val, isCur) => {
if (!isCur) { if (!isCur) {
@ -428,7 +432,27 @@
this.canReset && this.getOrderDetail() this.canReset && this.getOrderDetail()
this.canReset = false this.canReset = false
}, },
onShareAppMessage(res) {
return {
title: this.Store.storeInfo.store_name,
path: "pages/order/detail?orderId="+this.orderId, //
imageUrl:this.Store.storeInfo.image_url,
success: function(res){
//
if(res.errMsg == 'shareAppMessage:ok'){
this.$toast('分享成功')
}
},
fail: function(){
//
if(res.errMsg == 'shareAppMessage:fail cancel'){
this.$toast('取消分享')
}else if(res.errMsg == 'shareAppMessage:fail'){
this.$toast('分享失败')
}
}
}
},
methods: { methods: {
// //
callStore(phone) { callStore(phone) {
@ -1125,6 +1149,23 @@
margin-right: 14rpx; margin-right: 14rpx;
} }
button {
background: none !important;
border: none !important;
padding: 0;
line-height: 34rpx;
height: 34rpx;
font-size: 24rpx;
font-family: PingFang SC,
PingFang SC;
font-weight: 400;
}
button:after {
border: none !important;
}
height: 34rpx; height: 34rpx;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC, font-family: PingFang SC,

@ -14,8 +14,7 @@
</view> </view>
<button class="avatar-wrapper" v-else type="primary" open-type="chooseAvatar" <button class="avatar-wrapper" v-else type="primary" open-type="chooseAvatar"
@chooseavatar="onChooseAvatar"> @chooseavatar="onChooseAvatar">
<!-- <button class="avatar-wrapper" v-else @click="onChooseAvatar"> --> <text lines="1" class="text-group_1">{{userInfo.nick_name}}</text>
<text lines="1" class="text-group_1">{{userInfo.nick_name}}3</text>
<image :src="$picUrl+'/static/user/weChat.png'" class="thumbnail_1"></image> <image :src="$picUrl+'/static/user/weChat.png'" class="thumbnail_1"></image>
</button> </button>
<view class="text-wrapper_1" v-if="isLogin" @click="wechatLogin"> <view class="text-wrapper_1" v-if="isLogin" @click="wechatLogin">

Loading…
Cancel
Save