Commit dba69ae0 by chenwq

联调

1 parent 6d0e81d6
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
import wxqrcode from '~/utils/lib/wxqrcode'
Component({
/**
* 组件的属性列表
......@@ -94,6 +95,13 @@ Component({
this.setData({
orderObj: list
})
},
handleCopy(e) {
var { idx } = e.currentTarget.dataset
var currentItem = this.data.orderObj.activityList[idx]
console.log(currentItem)
// console.log(wxqrcode)
wxqrcode.createQrCodeImg(currentItem.activityUrl)
}
}
})
......@@ -12,7 +12,7 @@
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<view class="text-hide head-title">{{item.activityName}}</view>
<view class="head-link" bindtap="handleCopy">复制活动链接</view>
<view class="head-link" bindtap="handleCopy" data-idx="{{index}}">复制活动链接</view>
</view>
<view class="content">
<view class="content-row" wx:for="{{merchantFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
......
......@@ -6,7 +6,7 @@ Component({
properties: {
formData: {
type: Object,
value: () => {}
value: () => { }
}
},
......@@ -45,6 +45,19 @@ Component({
* 组件的方法列表
*/
methods: {
// handleDetail() {
// wx.navigateToMiniProgram({
// appId: 'wx0ff4e01294eca299', //appid
// path: '/pages/web_view/web_view',//path
// extraData: { //参数
// foo: 'bar'
// },
// envVersion: 'develop', //开发版develop 开发版 trial 体验版 release 正式版
// success(res) {
// console.log('成功')
// // 打开成功
// }
// })
// }
}
})
......@@ -8,4 +8,6 @@
</view>
<view class="label">{{item.label}}</view>
</view>
</view>
\ No newline at end of file
</view>
<navigator target="miniProgram" open-type="navigate" app-id="wx570d9331f9ace0bd" version="release">查看订单详情
</navigator>
\ No newline at end of file
......@@ -21,7 +21,7 @@ Component({
totalProfit: 0,
pageObj: {
currentPage: 1,
pageSize: 3
pageSize: 10
},
totalPages: -1,
list: []
......@@ -44,6 +44,14 @@ Component({
pMerchantId: userInfo.subLoginUser.merchantId
})
},
clientRefresh() {
this.getPMerchantInfo()
this.setData({
['pageObj.currentPage']: 1,
list: []
})
this.getClientApi()
},
getClientApi() {
this.getProfit()
this.getList()
......
......@@ -66,7 +66,7 @@ Page({
let merchantModule = this.selectComponent('#merchant')
// console.log('clientModule', clientModule)
// console.log()
clientModule.getClientApi && clientModule.getClientApi()
clientModule.getClientApi && clientModule.clientRefresh()
merchantModule.init && merchantModule.init()
}
let { isSuper, userInfo } = this.data
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!