| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- const _Http = getApp().globalData.http;
- Component({
- data: {
- types: [{
- value: '经销商订单',
- name: '经销商订单',
- }, {
- value: '医院订单',
- name: '医院订单',
- }],
- actionShow: false,
- },
- lifetimes: {
- attached: function () {
- getApp().globalData.Language.getLanguagePackage(this)
- }
- },
- methods: {
- /* 挑选新增订单类型 */
- onSelect() {
- this.setData({
- actionShow: true
- })
- },
- /* 选择订单类型 */
- selectType({
- detail
- }) {
- wx.navigateTo({
- url: '/prsx/orderForm/add/add?type=' + detail.value,
- })
- this.onCancel();
- },
- /* 取消选择订单类型 */
- onCancel() {
- this.setData({
- actionShow: false
- })
- },
- }
- })
|