Store.js 879 Bytes
// components/GoodsAction/GoodsAction.js
import {componentsMixin } from '../../mixins/index'
const baseImgUrl = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/cgacar/'
Component({
  behaviors:[componentsMixin],
    /**
     * 组件的属性列表
     */
    properties: {
        store: {
            type:Object,
            observer(n) {
              return n
              },
            value:''
        },
    },
  
    /**
     * 组件的初始数据
     */
    data: {
      IMGURLTemp:baseImgUrl
    },
  
    /**
     * 组件的方法列表
     */
    methods: {
      //选择门店
      chooseMerchant() {
        wx.$router.go('merchantList')
      },
      //拨打门店电话
      phoneCall(e) {
        let { phone } = e.currentTarget.dataset
        if (!phone) return
        wx.$util.phoneCall(phone)
      },
    },
    lifetimes: {
    }
  })