goos_detail.js
// pages/goos_detail/goos_detail.js
Page({
/**
* 页面的初始数据
*/
data: {
indicatorDots: true,//把true改为false就可以隐藏起来
autoplay: true,
interval: 5000,
duration: 1000,
imgUrls: [
"https://tse4-mm.cn.bing.net/th/id/OIP-C.3wIDYRQyag4hRd0ZEnWDnAHaHa?w=215&h=215&c=7&r=0&o=5&dpr=1.25&pid=1.7",
"https://tse4-mm.cn.bing.net/th/id/OIP-C.rjMm5yv8KP5YB8HelOx0mQHaHa?w=194&h=194&c=7&r=0&o=5&dpr=1.25&pid=1.7",
"https://tse1-mm.cn.bing.net/th/id/OIP-C._BbBRyCwa9-v0Dnaayd-8QHaHa?w=191&h=192&c=7&r=0&o=5&dpr=1.25&pid=1.7"
],
good: {
id: 2,
nowPrice: 18,
oldPrice: 9.9,
name: '饮料',
coupon: [
"5元", "10元"
],
promotion: [
"小杯",
"中杯",
"大杯",
],
count: 20,
size: [
"小杯",
"中杯",
"大杯",
"特大杯"
],
},
goods:[ {
id: 2,
nowPrice: 9.9,
oldPrice: 18,
name: '饮料',
coupon: [
"5元", "10元"
],
promotion: [
"小杯",
"中杯",
"大杯",
],
count: 20,
size: [
"小杯",
"中杯",
"大杯",
"特大杯"
],
}],
quantity: 0
},
onLoa