1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import { get } from "../../common/request.js"
- import pathmap from "../../common/pathmap"
- import stylemap from "../../common/stylemap"
- import { retCartData } from "../../data/car"
- Page({
-
- data: {
-
- },
-
- onLoad: function (options) {
- this.loadDetail(options.id);
- this.setData(stylemap);
- },
-
- onReady: function () {
-
- },
-
- onShow: function () {
-
- },
-
- onHide: function () {
-
- },
-
- onUnload: function () {
-
- },
-
- onPullDownRefresh: function () {
-
- },
-
- onReachBottom: function () {
-
- },
-
- onShareAppMessage: function () {
-
- },
- loadDetail:function(id){
- var _self = this;
- get(pathmap.storeinfo, {
- store_id:id
- }, function (json) {
- _self.setData({
- info: json.data,
- id:id
- })
- })
- },
- makeCall:function(e){
- var number = e.currentTarget.dataset.phonenumber;
- wx.makePhoneCall({phoneNumber:number});
- }
- })
|