123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import { get } from "../../utils/http"
- Page({
-
- data: {
- orderdata: {},
- qrCodeUrl:'',
- store_id:"",
- },
-
- gotoHome() {
- wx.switchTab({
- url: '/pages/home/home'
- })
- },
- orderDetails:function(){
- wx.redirectTo({
- url: '../confirmProjectOrder/confirmProjectOrder?id='+this.data.orderdata.order_id,
- })
- },
-
- getQrCode(){
- get('v2/api/order/url',{
- store_id:this.data.store_id
- },(res=>{
- this.setData({
- qrCodeUrl:res.data
- })
- }))
- },
-
- onLoad: function (options) {
- console.log('options.orderdata')
- console.log(options)
- this.setData({
- orderdata: JSON.parse(options.orderdata),
- store_id:options.store_id,
- })
-
- this.getQrCode()
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- }
- })
|