Store.js
879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// 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: {
}
})