修改
This commit is contained in:
parent
a5ef4e8e7f
commit
91e186940f
@ -409,7 +409,6 @@ export default{
|
||||
canvasId: this.canvas_id,
|
||||
quality: 1,
|
||||
success: (res)=>{
|
||||
console.log('res',res)
|
||||
resolve(res)
|
||||
callback && callback(res)
|
||||
},
|
||||
@ -462,7 +461,6 @@ export default{
|
||||
this.setNativeBorderRadius(config)
|
||||
this.ctx.fill()
|
||||
}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))
|
||||
}
|
||||
resolve()
|
||||
|
||||
@ -23,7 +23,6 @@
|
||||
// this.item.informationContent = this.item.informationContent.replace(/\<span/,
|
||||
// "<span class='ql-size-small'")
|
||||
// atch = match.replace(/class="ql-size-large"/gi, 'max-width:100%;')
|
||||
// console.log(this.item.informationContent)
|
||||
},
|
||||
onReady() {}, //更改导航栏文字
|
||||
//1.分享给朋友
|
||||
|
||||
@ -53,9 +53,13 @@
|
||||
informationConfirmation,
|
||||
addHealthConsultationOrder
|
||||
} from '@/api/Informationconfirmation/index.js'
|
||||
import {
|
||||
appletGoodsOrderPay
|
||||
} from '@/api/confirmOrder/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
openid: null,
|
||||
buyshow: false,
|
||||
price: 0,
|
||||
userlist: {},
|
||||
@ -75,7 +79,41 @@
|
||||
methods: {
|
||||
buy() {
|
||||
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.hospitalPersonId = Number(options.hospitalPersonId)
|
||||
const value = uni.getStorageSync('patientId');
|
||||
const value2 = uni.getStorageSync('openid');
|
||||
if (value2) {
|
||||
this.openid = value2
|
||||
}
|
||||
if (value) {
|
||||
that.updata.patientId = value
|
||||
informationConfirmation(value).then(res => {
|
||||
|
||||
@ -125,7 +125,11 @@
|
||||
<view class="serviceorder">护理站服务订单</view>
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
</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>
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
|
||||
@ -241,7 +241,6 @@
|
||||
//确认预约
|
||||
updata() {
|
||||
var that = this
|
||||
console.log(this.orderlist)
|
||||
this.orderlist.consumableTotalPrice = null
|
||||
this.orderlist.orderChannel = 'WECHAT_APPLET'
|
||||
if (this.radio == 1) {
|
||||
|
||||
@ -33,12 +33,8 @@
|
||||
// longPressActions:{
|
||||
// itemList:[this.l('发送给朋友'),this.l]
|
||||
// },
|
||||
success: res => {
|
||||
console.log('previewImage res', res);
|
||||
},
|
||||
fail: err => {
|
||||
console.log('previewImage err', err);
|
||||
}
|
||||
success: res => {},
|
||||
fail: err => {}
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@ -260,7 +260,7 @@
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
.container {
|
||||
padding-top: 70rpx;
|
||||
padding-top: 65rpx;
|
||||
background-color: #fff
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user