Commit 1e8ba92e authored by zhoucong's avatar zhoucong

相册图片优化

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