修改
This commit is contained in:
parent
a5ef4e8e7f
commit
91e186940f
@ -409,7 +409,6 @@ export default{
|
|||||||
canvasId: this.canvas_id,
|
canvasId: this.canvas_id,
|
||||||
quality: 1,
|
quality: 1,
|
||||||
success: (res)=>{
|
success: (res)=>{
|
||||||
console.log('res',res)
|
|
||||||
resolve(res)
|
resolve(res)
|
||||||
callback && callback(res)
|
callback && callback(res)
|
||||||
},
|
},
|
||||||
@ -462,7 +461,6 @@ export default{
|
|||||||
this.setNativeBorderRadius(config)
|
this.setNativeBorderRadius(config)
|
||||||
this.ctx.fill()
|
this.ctx.fill()
|
||||||
}else{
|
}else{
|
||||||
console.log('config.border_width',config.border_width)
|
|
||||||
this.ctx.fillRect(this.compatibilitySize(config.x*this.scale),this.compatibilitySize(config.y*this.scale),this.compatibilitySize(parseFloat(config.w)*this.scale),this.compatibilitySize(parseFloat(config.h)*this.scale))
|
this.ctx.fillRect(this.compatibilitySize(config.x*this.scale),this.compatibilitySize(config.y*this.scale),this.compatibilitySize(parseFloat(config.w)*this.scale),this.compatibilitySize(parseFloat(config.h)*this.scale))
|
||||||
}
|
}
|
||||||
resolve()
|
resolve()
|
||||||
|
|||||||
@ -23,7 +23,6 @@
|
|||||||
// this.item.informationContent = this.item.informationContent.replace(/\<span/,
|
// this.item.informationContent = this.item.informationContent.replace(/\<span/,
|
||||||
// "<span class='ql-size-small'")
|
// "<span class='ql-size-small'")
|
||||||
// atch = match.replace(/class="ql-size-large"/gi, 'max-width:100%;')
|
// atch = match.replace(/class="ql-size-large"/gi, 'max-width:100%;')
|
||||||
// console.log(this.item.informationContent)
|
|
||||||
},
|
},
|
||||||
onReady() {}, //更改导航栏文字
|
onReady() {}, //更改导航栏文字
|
||||||
//1.分享给朋友
|
//1.分享给朋友
|
||||||
|
|||||||
@ -53,9 +53,13 @@
|
|||||||
informationConfirmation,
|
informationConfirmation,
|
||||||
addHealthConsultationOrder
|
addHealthConsultationOrder
|
||||||
} from '@/api/Informationconfirmation/index.js'
|
} from '@/api/Informationconfirmation/index.js'
|
||||||
|
import {
|
||||||
|
appletGoodsOrderPay
|
||||||
|
} from '@/api/confirmOrder/index.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
openid: null,
|
||||||
buyshow: false,
|
buyshow: false,
|
||||||
price: 0,
|
price: 0,
|
||||||
userlist: {},
|
userlist: {},
|
||||||
@ -75,7 +79,41 @@
|
|||||||
methods: {
|
methods: {
|
||||||
buy() {
|
buy() {
|
||||||
addHealthConsultationOrder(this.updata).then(res => {
|
addHealthConsultationOrder(this.updata).then(res => {
|
||||||
console.log(res)
|
res.data.payType = "WECHAT_PAY"
|
||||||
|
res.data.paymentPrice = res.data.totalPrice
|
||||||
|
res.data.openid = this.openid
|
||||||
|
appletGoodsOrderPay(res.data).then(Response => {
|
||||||
|
// if (response.code == 200) {
|
||||||
|
// uni.requestPayment({
|
||||||
|
// timeStamp: response.data.timeStamp,
|
||||||
|
// nonceStr: response.data.nonceStr,
|
||||||
|
// package: response.data.prepayId,
|
||||||
|
// signType: response.data.signType,
|
||||||
|
// paySign: response.data.paySign,
|
||||||
|
// success: function(res) {
|
||||||
|
// that.$refs.uToast.show({
|
||||||
|
// title: '支付成功',
|
||||||
|
// type: 'success',
|
||||||
|
// duration: 1500,
|
||||||
|
// url: `/pages/paysuccess/paysuccess`
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
// fail: function(err) {
|
||||||
|
// that.$refs.uToast.show({
|
||||||
|
// title: '取消支付',
|
||||||
|
// type: 'error',
|
||||||
|
// duration: 1500,
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// } else {
|
||||||
|
// that.$refs.uToast.show({
|
||||||
|
// title: response.msg,
|
||||||
|
// type: 'error',
|
||||||
|
// duration: 2000
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -85,6 +123,10 @@
|
|||||||
this.updata.totalPrice = Number(options.price)
|
this.updata.totalPrice = Number(options.price)
|
||||||
this.updata.hospitalPersonId = Number(options.hospitalPersonId)
|
this.updata.hospitalPersonId = Number(options.hospitalPersonId)
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
|
const value2 = uni.getStorageSync('openid');
|
||||||
|
if (value2) {
|
||||||
|
this.openid = value2
|
||||||
|
}
|
||||||
if (value) {
|
if (value) {
|
||||||
that.updata.patientId = value
|
that.updata.patientId = value
|
||||||
informationConfirmation(value).then(res => {
|
informationConfirmation(value).then(res => {
|
||||||
|
|||||||
@ -125,7 +125,11 @@
|
|||||||
<view class="serviceorder">护理站服务订单</view>
|
<view class="serviceorder">护理站服务订单</view>
|
||||||
<image src="../../static/huijiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="service" style="top:1100rpx" @tap='remove'>
|
<view class="service" style="top:1100rpx" @tap="">
|
||||||
|
<view class="serviceorder">健康咨询订单</view>
|
||||||
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="service" style="top:1215rpx" @tap='remove'>
|
||||||
<view class="serviceorder">退出账号</view>
|
<view class="serviceorder">退出账号</view>
|
||||||
<image src="../../static/huijiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -241,7 +241,6 @@
|
|||||||
//确认预约
|
//确认预约
|
||||||
updata() {
|
updata() {
|
||||||
var that = this
|
var that = this
|
||||||
console.log(this.orderlist)
|
|
||||||
this.orderlist.consumableTotalPrice = null
|
this.orderlist.consumableTotalPrice = null
|
||||||
this.orderlist.orderChannel = 'WECHAT_APPLET'
|
this.orderlist.orderChannel = 'WECHAT_APPLET'
|
||||||
if (this.radio == 1) {
|
if (this.radio == 1) {
|
||||||
|
|||||||
@ -33,12 +33,8 @@
|
|||||||
// longPressActions:{
|
// longPressActions:{
|
||||||
// itemList:[this.l('发送给朋友'),this.l]
|
// itemList:[this.l('发送给朋友'),this.l]
|
||||||
// },
|
// },
|
||||||
success: res => {
|
success: res => {},
|
||||||
console.log('previewImage res', res);
|
fail: err => {}
|
||||||
},
|
|
||||||
fail: err => {
|
|
||||||
console.log('previewImage err', err);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -260,7 +260,7 @@
|
|||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
padding-top: 70rpx;
|
padding-top: 65rpx;
|
||||||
background-color: #fff
|
background-color: #fff
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user