Authored by huangyi

渠道业务完成

// 线上环境
export const API_HOST = 'https://api.yoho.cn';
export const SERVICE_HOST = 'https://api.yoho.cn';
export const ACTIVITY_HOST = 'https://action.yoho.cn';
// export const API_HOST = 'https://api.yoho.cn';
// export const SERVICE_HOST = 'https://api.yoho.cn';
// export const ACTIVITY_HOST = 'https://action.yoho.cn';
// 测试环境
// export const API_HOST = 'http://api-test3.dev.yohocorp.com';
// export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com';
// export const ACTIVITY_HOST = 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com';
export const API_HOST = 'http://api-test3.dev.yohocorp.com';
export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com';
//export const ACTIVITY_HOST = 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com';
export const ACTIVITY_HOST = 'http://192.168.102.49:6006'
// export const API_HOST = 'http://dev-api.yohops.com:9999';
// export const SERVICE_HOST = 'http://dev-api.yohops.com:9999/';
... ...
... ... @@ -12,8 +12,22 @@ Component({
text: {
type: String,
value: "",
observer: function(value){
this.setData({_text:value})
observer: function (value) {
this.setData({_text: value })
}
},
copyText: {
type: String,
value: '',
observer: function (value) {
this.setData({_copyText: value })
}
},
type: {
type: Number,
value: 0,
observer: function (value) {
this.setData({_type: value })
}
}
},
... ... @@ -22,7 +36,9 @@ Component({
* 组件的初始数据
*/
data: {
_text:'',
_type: "",
_copyText: '',
_text: '',
_show: false
},
... ... @@ -31,6 +47,17 @@ Component({
*/
methods: {
onConfirm() {
if (this.data._copyText) {
wx.setClipboardData({
data: this.data._copyText,
success() {
},
fail() {
},
complete() {
}
})
}
this.triggerEvent('ok')
},
... ...
<zero-alert wx:if="{{_show}}">
<view class="content" wx:if="{{!_text}}">
<view class="content" wx:if="{{!_type == 1}}">
<view>微信搜索公众号</view>
<view><text style="font-weight: bolder;">“潮流有货”</text>并关注,发送</view>
<view>关键词<text style="font-weight: bolder;">“开奖”</text>查询中奖信息</view>
... ...
... ... @@ -22,7 +22,9 @@ Component({
*/
data: {
show: false,
text: ''
text: '',
copyText: '',
type: 0
},
/**
... ... @@ -31,10 +33,11 @@ Component({
methods: {
goFellow(e) {
let text = JSON.parse(e.target.dataset.text || "{}");
debugger;
this.setData({
show: true,
text:text.miniapp || ''
text: text.miniappTip || '',
copyText: text.miniappCopy || '',
type: text.miniappType || 0
})
},
goShare() {
... ...
... ... @@ -28,4 +28,4 @@
</view>
<fellow-alert show="{{show}}" text="{{text}}" bindok="onOk"></fellow-alert>
\ No newline at end of file
<fellow-alert show="{{show}}" text="{{text}}" copyText="{{copyText}}" type="{{type}}" bindok="onOk"></fellow-alert>
\ No newline at end of file
... ...