// pages/turnpage/turnpage.js
const order = ['red1', 'yellow1', 'blue1', 'green1', 'red1']
// const order = ['red', 'yellow', 'blue', 'green', 'red']
Page({
/**
* 页面的初始数据
*/
data: {
"info": [
{
ct_id: 10,
goods_id: 49,
goods_minimum: null,
goods_name: "夏装新款女装通勤V领雪纺连衣裙花色显瘦A字裙5663A",
goods_original_price: "156.00",
goods_sales_price: "124.00",
goods_stock: "123",
pic_url: "https://caitouxia.oss-cn-hangzhou.aliyuncs.com/caitouxia_shop/upload_img/358f7062ce04252fefce572c621cb60d.jpg"
},
{
ct_id: 11,
goods_id: 429,
goods_minimum: null,
goods_name: "限制啥的女装通勤V领雪纺连衣裙花色显瘦A字裙5663A",
goods_original_price: "156.00",
goods_sales_price: "124.00",
goods_stock: "123",
pic_url: "http://img.weiye.me/zcimgdir/album/file_56eba869f2e91.png"
},
{
ct_id: 102,
goods_id: 349,
goods_minimum: null,
goods_name: "deufseufgo9au瘦A字裙5663A",
goods_original_price: "156.00",
goods_sales_price: "124.00",
goods_stock: "123",
pic_url: "http://r2.ykimg.com/0543040854C8854A6A0A4F30B169591D"
},
{
ct_id: 2,
goods_id: 349,
goods_minimum: null,
goods_name: "好的文案读研u瘦A字裙5663A",
goods_original_price: "156.00",
goods_sales_price: "124.00",
goods_stock: "123",
pic_url: "http://r2.ykimg.com/0543040854C8854A6A0A4F30B169591D"
},
],
imgUrls: [
'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
],
indicatorDots: false,
autoplay: false,
interval: 5000,
duration: 1000,
das: {
"26": {
id: 26
},
"10": {
id: 10
},
"16": {
id: 16
},
},
"blocks": [{ "key": "637gr", "text": "nihao", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {} }, { "key": "6ifpe", "text": " ", "type": "atomic", "depth": 0, "inlineStyleRanges": [], "entityRanges": [{ "offset": 0, "length": 1, "key": 0 }], "data": {} }, { "key": "3hmk9", "text": "234234234", "type": "unstyled", "depth": 0, "inlineStyleRanges": [{ "offset": 0, "length": 9, "style": "color-rgb(209,72,65)" }], "entityRanges": [], "data": {} }],
"articl": [
{
"node": "element",
"tag": "div",
"index": "0",
"tagType": "block",
"styleStr": "text-align:center;margin-top:10px;",
"attr": {
"style": "text-align:center;margin-top:10px;"
},
"nodes": [
{
"node": "text",
"text": "\t\t",
"textArray": [
{
"node": "text",
"text": "\t\t"
}
],
"index": "0.0"
},
{
"node": "element",
"tag": "img",
"index": "0.1",
"tagType": "inline",
"attr": {
"src": "http://img1.gtimg.com/ninja/1/2017/05/ninja149585812442590.jpg",
"alt": "wxParse-微信小程序富文本解析组件Logo"
},
"imgIndex": 0,
"from": "article"
},
{
"node": "text",
"text": "\t\t",
"textArray": [
{
"node": "text",
"text": "\t\t"
}
],
"index": "0.2"
},
{
"node": "element",
"tag": "h1",
"index": "0.3",
"tagType": "block",
"styleStr": "color:red;",
"attr": {
"style": "color:red;"
},
"nodes": [
{
"node": "text",
"text": "wxParse-微信小程序富文本解析组件",
"textArray": [
{
"node": "text",
"text": "wxParse-微信小程序富文本解析组件"
}
],
"index": "0.3.0"
}
]
},
{
"node": "element",
"tag": "div",
"index": "0.4",
"tagType": "block",
"styleStr": "color:red;text-align:center;padding:20px;",
"attr": {
"style": "color:red;text-align:center;padding:20px;"
},
"nodes": [
{
"node": "element",
"tag": "a",
"index": "0.4.0",
"tagType": "block",
"attr": {
"href": "/pages/next/next"
},
"nodes": [
{
"node": "text",
"text": "点击我,可以跳转",
"textArray": [
{
"node": "text",
"text": "点击我,可以跳转"
}
],
"index": "0.4.0.0"
},
{
"node": "element",
"tag": "img",
"index": "0.4.0.1",
"tagType": "inline",
"attr": {
"src": "http://inews.gtimg.com/newsapp_ls/0/3384621142_295195/0",
"alt": ""
},
"imgIndex": 1,
"from": "article"
}
]
}
]
},
{
"node": "element",
"tag": "button",
"index": "0.5",
"tagType": "block",
"nodes": [
{
"node": "text",
"text": "我是按钮",
"textArray": [
{
"node": "text",
"text": "我是按钮"
}
],
"index": "0.5.0"
}
]
},
{
"node": "text",
"text": "\t\t",
"textArray": [
{
"node": "text",
"text": "\t\t"
}
],
"index": "0.6"
},
{
"node": "element",
"tag": "h2",
"index": "0.7",
"tagType": "block",
"nodes": [
{
"node": "text",
"text": "支持Html及markdown转wxml可视化",
"textArray": [
{
"node": "text",
"text": "支持Html及markdown转wxml可视化"
}
],
"index": "0.7.0"
}
]
},
{
"node": "text",
"text": "\t",
"textArray": [
{
"node": "text",
"text": "\t"
}
],
"index": "0.8"
}
]
},
{
"node": "text",
"text": "\t",
"textArray": [
{
"node": "text",
"text": "\t"
}
],
"index": "1"
},
{
"node": "element",
"tag": "div",
"index": "2",
"tagType": "block",
"styleStr": "margin-top:10px;",
"attr": {
"style": "margin-top:10px;"
},
"nodes": [
{
"node": "text",
"text": "\t\t",
"textArray": [
{
"node": "text",
没有合适的资源?快使用搜索试试~ 我知道了~
微信小程序-图片转base64
共40个文件
js:11个
json:9个
wxss:9个
需积分: 49 35 下载量 2 浏览量
2018-07-02
16:27:11
上传
评论
收藏 54KB RAR 举报
温馨提示
微信小程序-上传图片转base64,so~~~;百度n多资料最后写成,还是有一点小bug就是生成的图片不太清晰;
资源推荐
资源详情
资源评论
收起资源包目录
wxpay.rar (40个子文件)
wxpay
project.config.json 578B
pages
logs
logs.wxml 763B
logs.json 126B
logs.wxss 408B
logs.js 3KB
index
index.wxss 309B
index.json 80B
index.wxml 1007B
index.js 5KB
modal
modal.js 687B
modal.json 24B
modal.wxss 1KB
modal.wxml 475B
blank
blank.json 80B
blank.wxss 124B
blank.js 1KB
blank.wxml 871B
tabBarcpn
tabBarcpn.wxml 408B
tabBarcpn.js 1KB
tabBarcpn.json 25B
tabBarcpn.wxss 529B
template
template.wxss 628B
template.wxml 4KB
template.js 1KB
template.json 112B
turnpage
turnpage.js 79KB
turnpage.wxml 3KB
turnpage.json 80B
turnpage.wxss 1KB
utils
UPNG.js 30KB
util.js 472B
pako.min.js 46KB
images
home.png 338B
home1.png 315B
article.png 1KB
article1.png 244B
lib
iconfont.wxss 10KB
app.js 1KB
app.json 503B
app.wxss 225B
共 40 条
- 1
资源评论
Presbyterian
- 粉丝: 119
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功