This commit is contained in:
曹辉 2023-03-09 16:48:35 +08:00
parent a5ef4e8e7f
commit 91e186940f
7 changed files with 51 additions and 13 deletions

View File

@ -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()

View File

@ -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.

View File

@ -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 => {

View File

@ -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>

View File

@ -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) {

View File

@ -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 => {}
});
},
},

View File

@ -260,7 +260,7 @@
-webkit-overflow-scrolling: touch;
.container {
padding-top: 70rpx;
padding-top: 65rpx;
background-color: #fff
}