Commit 1e8ba92e authored by zhoucong's avatar zhoucong

相册图片优化

parent 34e173bf
......@@ -25,7 +25,7 @@
</view>
<u-cell-group>
<u-cell-item title="商品金额" :value="'¥'+ price" :arrow="false"></u-cell-item>
<u-cell-item title="运费" :value="'¥'+Freight.defaultCost" :arrow="false"></u-cell-item>
<u-cell-item title="运费" :value="Freight.defaultCost==0?'包邮':'¥'+Freight.defaultCost" :arrow="false"></u-cell-item>
</u-cell-group>
<view class="bottom">
<view class="price">
......@@ -53,12 +53,12 @@
Freight: {}, //手续费信息
}
},
onLoad() { //代替 vue 里面的 created
onLoad() { //created
this.productVo = uni.getStorageSync('productVo')
this.price = (this.productVo.priceStockList[0].sellingPrice * 1).toFixed(2)
this.getAddress()
},
onReady() { //代替 vue 里面的 mounted
onReady() { //mounted
},
methods: {
confirm() { //确认订单
......@@ -77,9 +77,6 @@
title: '联系方式不能为空!'
});
}
uni.showLoading({
title: '订单创建中'
});
let imgList = []
imgList = uni.getStorageSync('sortImglist')
let coverInside = uni.getStorageSync('coverInside')
......@@ -94,7 +91,7 @@
userId: uni.getStorageSync('openid'), //openid
orderSource: 1, //订单来源 1公众号平台、2公众号组合页面1、3公众号组合页面2、4胖丁伙伴app、5第三方自助机、6第三方票房窗口
orderType: 4, //订单类型(0其他,1景区,2酒店,3餐饮,4特产,5运营车,10组合订单)
ticketPhone: this.address.phone,
ticketPhone: this.address.phone, //联系电话
orderProductVo: {
buyNum: 1, //购买数量
couponList: [],
......@@ -120,13 +117,16 @@
}
}
uni.showLoading({
title: '订单创建中'
});
this.$request('orderc/order/createOrder', data).then(res => {
if (res.code == "00") {
this.$u.route("pages/orderPayment/orderPayment", {
orderId: res.data.id
})
uni.hideLoading();
}else{
} else {
uni.showModal({
showCancel: false,
title: '提示',
......@@ -146,7 +146,7 @@
this.address = res.data[0]
this.addressShow = false
this.getFreight()
}else{
} else {
uni.showModal({
showCancel: false,
title: '提示',
......@@ -165,7 +165,7 @@
this.allprice = ((this.productVo.priceStockList[0].sellingPrice * 1) + (this.Freight
.defaultCost * 1))
this.showBody = true
}else{
} else {
uni.showModal({
showCancel: false,
title: '提示',
......
......@@ -28,7 +28,6 @@
<view class="coverItem1" v-for="(item,index) in imgList2" :key="index">
<image class="img" :src="item.url" @click="changeCover(item.url)"></image>
<image v-if="cover===item.url" src="../../../static/img/vlog/icon/check.png" class="icon"></image>
<!-- <u-icon v-if="cover===item.url" class="icon" name="checkmark-circle-fill" color="#2979FF" size="50"></u-icon> -->
</view>
</view>
</view>
......@@ -37,7 +36,6 @@
<view class="coverItem" v-for="(item,index) in imgList3" :key="index">
<image class="img" :src="item.url" @click="changeinsidePages(item.url)"></image>
<image v-if="insidePages===item.url" src="../../../static/img/vlog/icon/check.png" class="icon"></image>
<!-- <u-icon v-if="insidePages===item.url" class="icon" name="checkmark-circle-fill" color="#2979FF" size="50"></u-icon> -->
</view>
</view>
</view>
......@@ -134,7 +132,7 @@
imgUrl: this.cover
},
inside: {
imgName: '封面',
imgName: '内页',
imgUrl: this.insidePages
}
}
......
......@@ -14,7 +14,6 @@
<view class="imgItem" @click="changeImg(item,index)">
<image :src="imgUrl+item.url"></image>
<image v-if="item.check===1" src="../../../static/img/vlog/icon/check.png" class="icon"></image>
<!-- <u-icon v-if="item.check===1" class="icon" name="checkmark-circle-fill" color="#2979FF" size="50"></u-icon> -->
</view>
</block>
</view>
......
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